Add modules support for the bhnd code.

Submitted by:	Landon Fuller <landonf@landonf.org>
Obtained from:	https://github.com/landonf/freebsd/compare/user/landonf/bcm4331-CURRENT
This commit is contained in:
adrian 2016-02-26 03:34:32 +00:00
parent 8e7c909559
commit fd73394505
13 changed files with 143 additions and 0 deletions

21
sys/modules/bhnd/Makefile Normal file
View File

@ -0,0 +1,21 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../dev/bhnd
KMOD= bhnd
SRCS= bhnd.c bhnd_subr.c \
bhnd_bus_if.c bhnd_bus_if.h
SRCS+= device_if.h bus_if.h
SUBDIR= bcma \
bcma_bhndb \
bhndb \
bhndb_pci \
cores \
nvram \
siba \
siba_bhndb
.include <bsd.kmod.mk>
.include <bsd.subdir.mk>

View File

@ -0,0 +1,10 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/bcma
KMOD= bcma
SRCS= bcma.c bcma_subr.c bcma_erom.c
SRCS+= device_if.h bus_if.h bhnd_bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,11 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/bcma
KMOD= bcma_bhndb
SRCS= bcma_bhndb.c
SRCS+= bhnd_bus_if.h bhndb_if.h
SRCS+= device_if.h bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,12 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/bhndb
KMOD= bhndb
SRCS= bhndb.c bhndb_subr.c bhndb_hwdata.c \
bhndb_bus_if.c bhndb_bus_if.h \
bhndb_if.c bhndb_if.h
SRCS+= device_if.h bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,11 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/bhndb
KMOD= bhndb_pci
SRCS= bhndb_pci.c bhndb_pci_hwdata.c
SRCS+= bhnd_bus_if.h bhndb_bus_if.h bhndb_if.h
SRCS+= device_if.h bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,8 @@
# $FreeBSD$
SUBDIR= bhnd_chipc \
bhnd_pci \
bhnd_pci_hostb \
bhnd_pcib
.include <bsd.subdir.mk>

View File

@ -0,0 +1,10 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../../dev/bhnd/cores/chipc
KMOD= bhnd_chipc
SRCS= chipc.c \
bhnd_chipc_if.c bhnd_chipc_if.h
SRCS+= device_if.h bus_if.h bhnd_bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,11 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../../dev/bhnd/cores/pci
KMOD= bhnd_pci
SRCS= bhnd_pci.c \
mdio_pcie.c
SRCS+= device_if.h bus_if.h bhnd_bus_if.h \
mdio_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,9 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../../dev/bhnd/cores/pci
KMOD= bhnd_pci_hostb
SRCS= bhnd_pci_hostb.c
SRCS+= device_if.h bus_if.h bhnd_bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,9 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../../dev/bhnd/cores/pci
KMOD= bhnd_pcib
SRCS= bhnd_pcib.c
SRCS+= device_if.h bus_if.h bhnd_bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,10 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/nvram
KMOD= bhnd_nvram
SRCS= bhnd_nvram_if.c bhnd_nvram_if.h
SRCS+= device_if.h bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,10 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/siba
KMOD= siba
SRCS= siba.c siba_subr.c
SRCS+= device_if.h bus_if.h bhnd_bus_if.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,11 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../dev/bhnd/siba
KMOD= siba_bhndb
SRCS= siba_bhndb.c
SRCS+= bhnd_bus_if.h bhndb_if.h
SRCS+= device_if.h bus_if.h
.include <bsd.kmod.mk>