-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Move bfn asic drivers out of platform package (#30) * Move bfn asic drivers out of platform package * Change debian pkg name for bfn modules * Change license file * Fix build breakage due to dependency issue * Minor changes to debian bld files (#31)
- Loading branch information
Showing
32 changed files
with
328 additions
and
3,921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# BFN Platform modules | ||
|
||
VERSION = 1.0 | ||
|
||
BFN_MODULE = bfn-modules_$(VERSION)_amd64.deb | ||
$(BFN_MODULE)_SRC_PATH = $(PLATFORM_PATH)/bfn-modules | ||
$(BFN_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON) | ||
SONIC_DPKG_DEBS += $(BFN_MODULE) | ||
|
||
SONIC_STRETCH_DEBS += $(BFN_MODULE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
BAREFOOT NETWORKS CONFIDENTIAL & PROPRIETARY | ||
|
||
Copyright (c) 2015-2016 Barefoot Networks, Inc. | ||
|
||
All Rights Reserved. | ||
|
||
NOTICE: All information contained herein is, and remains the property of | ||
Barefoot Networks, Inc. and its suppliers, if any. The intellectual and | ||
technical concepts contained herein are proprietary to Barefoot Networks, | ||
Inc. | ||
and its suppliers and may be covered by U.S. and Foreign Patents, patents in | ||
process, and are protected by trade secret or copyright law. | ||
Dissemination of this information or reproduction of this material is | ||
strictly forbidden unless prior written permission is obtained from | ||
Barefoot Networks, Inc. | ||
|
||
No warranty, explicit or implicit is provided, unless granted under a | ||
written agreement with Barefoot Networks, Inc. | ||
|
||
|
||
GPL LICENSE SUMMARY | ||
|
||
Copyright(c) 2015 Barefoot Networks. All rights reserved. | ||
|
||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of version 2 of the GNU General Public License as | ||
published by the Free Software Foundation. | ||
|
||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the... | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file describes the maintainers for sonic-platform-modules-bfn | ||
# See the SONiC project governance document for more information | ||
|
||
Mailinglist = sonicproject@googlegroups.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# bfn-modules | ||
Device drivers for support of BFN platform for the SONiC project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bfn-modules (1.0) unstable; urgency=low | ||
|
||
* Initial release | ||
|
||
-- Support <support@barefootnetworks.com> Mon, 22 Oct 2018 11:11:11 -0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Source: bfn-modules | ||
Section: main | ||
Priority: extra | ||
Maintainer: support <support@barefootnetworks.com> | ||
Build-Depends: debhelper (>= 8.0.0), bzip2 | ||
Standards-Version: 3.9.3 | ||
|
||
Package: bfn-modules | ||
Architecture: amd64 | ||
Depends: linux-image-4.9.0-7-amd64 | ||
Description: kernel modules for bfn asic for mmap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Provides linux kernel driver for BF PCIe devices | ||
|
||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation; either version 2 | ||
of the License, or (at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bfn-modules_1.0_amd64.deb main extra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/make -f | ||
|
||
export INSTALL_MOD_DIR:=extra | ||
|
||
PACKAGE_NAME := bfn-modules | ||
KVERSION ?= $(shell uname -r) | ||
KERNEL_SRC := /lib/modules/$(KVERSION) | ||
MODULE_SRC := $(shell pwd)/modules | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
make -C $(KERNEL_SRC)/build M=$(MODULE_SRC) | ||
|
||
override_dh_auto_install: | ||
dh_installdirs -p$(PACKAGE_NAME) $(KERNEL_SRC)/$(INSTALL_MOD_DIR) | ||
cp $(MODULE_SRC)/*.ko debian/$(PACKAGE_NAME)/$(KERNEL_SRC)/$(INSTALL_MOD_DIR) | ||
dh_installdirs -p$(PACKAGE_NAME) usr/local/bin | ||
|
||
override_dh_usrlocal: | ||
|
||
override_dh_pysupport: | ||
|
||
override_dh_clean: | ||
dh_clean | ||
rm -f $(MODULE_SRC)/*.o $(MODULE_SRC)/*.ko $(MODULE_SRC)/*.mod.c $(MODULE_SRC)/.*.cmd | ||
rm -f $(MODULE_SRC)/Module.markers $(MODULE_SRC)/Module.symvers $(MODULE_SRC)/modules.order | ||
rm -rf $(MODULE_SRC)/.tmp_versions | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/******************************************************************************* | ||
* BAREFOOT NETWORKS CONFIDENTIAL & PROPRIETARY | ||
* | ||
* Copyright (c) 2018-2018 Barefoot Networks, Inc. | ||
* | ||
* NOTICE: All information contained herein is, and remains the property of | ||
* Barefoot Networks, Inc. and its suppliers, if any. The intellectual and | ||
* technical concepts contained herein are proprietary to Barefoot Networks, | ||
* Inc. | ||
* and its suppliers and may be covered by U.S. and Foreign Patents, patents in | ||
* process, and are protected by trade secret or copyright law. | ||
* Dissemination of this information or reproduction of this material is | ||
* strictly forbidden unless prior written permission is obtained from | ||
* Barefoot Networks, Inc. | ||
* | ||
* No warranty, explicit or implicit is provided, unless granted under a | ||
* written agreement with Barefoot Networks, Inc. | ||
* | ||
* $Id: $ | ||
* | ||
******************************************************************************/ | ||
|
||
#ifndef _BF_IOCTL_H_ | ||
#define _BF_IOCTL_H_ | ||
|
||
#ifdef __KERNEL__ | ||
#include <linux/ioctl.h> | ||
#else | ||
#include <sys/ioctl.h> | ||
|
||
#ifndef phys_addr_t | ||
typedef uint64_t phys_addr_t; | ||
#endif | ||
|
||
#endif /* __KERNEL__ */ | ||
|
||
#define BF_IOC_MAGIC 'b' | ||
|
||
typedef struct bf_dma_bus_map_s | ||
{ | ||
phys_addr_t phy_addr; | ||
void *dma_addr; | ||
size_t size; | ||
} bf_dma_bus_map_t; | ||
|
||
#define BF_IOCMAPDMAADDR _IOWR(BF_IOC_MAGIC, 0, bf_dma_bus_map_t) | ||
#define BF_IOCUNMAPDMAADDR _IOW(BF_IOC_MAGIC, 0, bf_dma_bus_map_t) | ||
|
||
#endif /* _BF_IOCTL_H_ */ |
Oops, something went wrong.