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