xref: /freebsd/sys/modules/bhnd/Makefile (revision 61e21613)
1
2.PATH: ${SRCTOP}/sys/dev/bhnd
3.PATH: ${SRCTOP}/sys/dev/bhnd/cores/chipc
4.PATH: ${SRCTOP}/sys/dev/bhnd/cores/chipc/pwrctl
5.PATH: ${SRCTOP}/sys/dev/bhnd/cores/pmu
6.PATH: ${SRCTOP}/sys/dev/bhnd/nvram
7
8KMOD=	bhnd
9SRCS=	bhnd.c bhnd_subr.c
10SRCS+=	bhnd_bus_if.c bhnd_bus_if.h
11
12SRCS+=	bhnd_erom.c
13SRCS+=	bhnd_erom_if.c bhnd_erom_if.h
14
15# ChipCommon
16SRCS+=	chipc.c chipc_subr.c
17
18SRCS+=	chipc_gpio.c
19SRCS+=	gpio_if.h ofw_bus_if.h
20SRCS+=	opt_platform.h
21
22SRCS+=	bhnd_sprom_chipc.c \
23	bhnd_pmu_chipc.c
24
25SRCS+=	bhnd_pwrctl.c \
26	bhnd_pwrctl_subr.c \
27	bhnd_pwrctl_if.c \
28	bhnd_pwrctl_if.h
29SRCS+=	bhnd_pwrctl_hostb_if.c bhnd_pwrctl_hostb_if.h
30
31SRCS+=	bhnd_chipc_if.c bhnd_chipc_if.h
32
33# PMU
34SRCS+=	bhnd_pmu.c \
35	bhnd_pmu_core.c \
36	bhnd_pmu_subr.c
37SRCS+=	bhnd_pmu_if.c bhnd_pmu_if.h
38
39# NVRAM/SPROM
40SRCS+=	bhnd_nvram_data.c \
41	bhnd_nvram_data_bcm.c \
42	bhnd_nvram_data_bcmraw.c \
43	bhnd_nvram_data_btxt.c \
44	bhnd_nvram_data_sprom.c \
45	bhnd_nvram_data_sprom_subr.c \
46	bhnd_nvram_data_tlv.c \
47	bhnd_nvram_io.c \
48	bhnd_nvram_iobuf.c \
49	bhnd_nvram_ioptr.c \
50	bhnd_nvram_iores.c \
51	bhnd_nvram_plist.c \
52	bhnd_nvram_store.c \
53	bhnd_nvram_store_subr.c \
54	bhnd_nvram_subr.c \
55	bhnd_nvram_value.c \
56	bhnd_nvram_value_fmts.c \
57	bhnd_nvram_value_prf.c \
58	bhnd_nvram_value_subr.c \
59	bhnd_sprom.c
60SRCS+=	bhnd_nvram_map.h bhnd_nvram_map_data.h
61SRCS+=	bhnd_nvram_if.c bhnd_nvram_if.h
62
63SRCS+=	device_if.h bus_if.h
64
65SUBDIR=	bcma \
66	bcma_bhndb \
67	bhndb \
68	bhndb_pci \
69	cores \
70	siba \
71	siba_bhndb
72
73EXPORT_SYMS=	YES
74
75.include <bsd.kmod.mk>
76.include <bsd.subdir.mk>
77