ath - Basic Makefile infrastructure
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Jan 2014 19:04:09 +0000 (11:04 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Jan 2014 07:15:36 +0000 (23:15 -0800)
sys/dev/netif/ath/Makefile [new file with mode: 0644]
sys/dev/netif/ath/Makefile.inc [new file with mode: 0644]
sys/dev/netif/ath/ath/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_dfs/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_dfs/null/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_hal/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_rate/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_rate/amrr/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_rate/onoe/Makefile [new file with mode: 0644]
sys/dev/netif/ath/ath_rate/sample/Makefile [new file with mode: 0644]

diff --git a/sys/dev/netif/ath/Makefile b/sys/dev/netif/ath/Makefile
new file mode 100644 (file)
index 0000000..25fed53
--- /dev/null
@@ -0,0 +1,6 @@
+#
+#
+
+SUBDIR= ath ath_dfs ath_hal ath_rate
+
+.include <bsd.subdir.mk>
diff --git a/sys/dev/netif/ath/Makefile.inc b/sys/dev/netif/ath/Makefile.inc
new file mode 100644 (file)
index 0000000..8704d88
--- /dev/null
@@ -0,0 +1,20 @@
+# $DragonFly: src/sys/dev/netif/ath/Makefile.inc,v 1.2 2007/02/22 05:17:09 sephe Exp $
+
+HAL    = ${.CURDIR}/../ath_hal
+HALOSDEP= ${.CURDIR}/../ath_hal
+CFLAGS += -I${HALOSDEP}
+
+opt_inet.h:
+       echo "#define INET      1" > ${.TARGET}
+       echo "#define INET6     1" >> ${.TARGET}
+
+opt_wlan.h:
+       echo "#define IEEE80211_DEBUG           1" > ${.TARGET}
+       echo "#define IEEE80211_SUPPORT_TDMA    1" >> ${.TARGET}
+       echo "#define IEEE80211_SUPPORT_MESH    1" >> ${.TARGET}
+
+opt_ah.h:
+       echo "#define AH_SUPPORT_AR5416         1" > ${.TARGET}
+
+#opt_ktr.h:
+#      echo "" > ${.TARGET}
diff --git a/sys/dev/netif/ath/ath/Makefile b/sys/dev/netif/ath/ath/Makefile
new file mode 100644 (file)
index 0000000..ff16889
--- /dev/null
@@ -0,0 +1,16 @@
+#
+#
+
+KMOD=  if_ath
+
+SRCS=  if_ath.c if_ath_keycache.c if_ath_spectral.c
+SRCS+= if_ath_ahb.c if_ath_led.c if_ath_sysctl.c
+SRCS+= if_ath_alq.c if_ath_lna_div.c if_ath_tdma.c
+SRCS+= if_ath_beacon.c if_ath_pci.c if_ath_tx.c
+SRCS+= if_ath_btcoex.c if_ath_rx.c if_ath_tx_edma.c
+SRCS+= if_ath_debug.c if_ath_rx_edma.c if_ath_tx_ht.c
+
+SRCS+= device_if.h bus_if.h pci_if.h
+SRCS+= opt_ath.h opt_ah.h opt_wlan.h opt_inet.h opt_ktr.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/dev/netif/ath/ath_dfs/Makefile b/sys/dev/netif/ath/ath_dfs/Makefile
new file mode 100644 (file)
index 0000000..cc8ad46
--- /dev/null
@@ -0,0 +1,6 @@
+#
+#
+
+SUBDIR= null
+
+.include <bsd.subdir.mk>
diff --git a/sys/dev/netif/ath/ath_dfs/null/Makefile b/sys/dev/netif/ath/ath_dfs/null/Makefile
new file mode 100644 (file)
index 0000000..ff658ba
--- /dev/null
@@ -0,0 +1,8 @@
+#
+#
+
+KMOD=  ath_dfs
+SRCS=  null.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_ah.h opt_wlan.h opt_inet.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/dev/netif/ath/ath_hal/Makefile b/sys/dev/netif/ath/ath_hal/Makefile
new file mode 100644 (file)
index 0000000..7eaff88
--- /dev/null
@@ -0,0 +1,62 @@
+#
+#
+
+ATH_RATE?=     sample          # tx rate control algorithm
+
+KMOD=  ath_hal
+
+.PATH: ar5211 ar5416 ar5312 ar5212 ar9003 ar9002 ar9001 ar5210
+
+SRCS=  ah_eeprom_9287.c ah_eeprom_v4k.c ah_regdomain.c \
+SRCS+= ah_eeprom_v1.c ah_eeprom_v3.c ah_osdep.c ah.c ah_eeprom_v14.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h
+
+# AR5211
+#
+SRCS+= ar5211_attach.c ar5211_power.c ar5211_keycache.c ar5211_beacon.c
+SRCS+= ar5211_recv.c ar5211_misc.c ar5211_xmit.c ar5211_reset.c ar5211_phy.c
+SRCS+= ar5211_interrupts.c
+
+# AR5416
+#
+SRCS+= ar5416_power.c ar5416_radar.c ar5416_cal_adcgain.c ar5416_ani.c
+SRCS+= ar5416_attach.c ar5416_btcoex.c ar5416_beacon.c ar5416_spectral.c
+SRCS+= ar5416_keycache.c ar5416_cal.c ar5416_recv.c ar5416_gpio.c
+SRCS+= ar5416_eeprom.c ar5416_reset.c ar2133.c ar5416_cal_adcdc.c
+SRCS+= ar5416_interrupts.c ar5416_xmit.c ar5416_misc.c ar5416_phy.c
+SRCS+= ar5416_cal_iq.c
+
+# AR5312
+#
+SRCS+= ar5312_misc.c ar5312_interrupts.c ar5312_reset.c ar5312_eeprom.c
+SRCS+= ar5312_gpio.c ar5315_gpio.c ar5312_power.c ar5312_attach.c
+
+# AR5212
+#
+SRCS+= ar5212_rfgain.c ar5212_interrupts.c ar5212_ani.c ar2316.c
+SRCS+= ar2317.c ar2413.c ar5413.c ar5212_power.c ar2425.c ar5212_recv.c
+SRCS+= ar5212_gpio.c ar5212_beacon.c ar5212_misc.c ar5212_xmit.c
+SRCS+= ar5212_eeprom.c ar5212_keycache.c ar5212_phy.c ar5212_attach.c
+SRCS+= ar5212_reset.c ar5111.c ar5112.c
+
+# AR9002
+#
+
+SRCS+= ar9280_olc.c ar9280_attach.c ar9285_diversity.c ar9285_phy.c
+SRCS+= ar9287.c ar9285.c ar9280.c ar9287_reset.c ar9287_olc.c ar9285_cal.c
+SRCS+= ar9287_attach.c ar9285_reset.c ar9285_attach.c ar9285_btcoex.c
+SRCS+= ar9287_cal.c
+
+# AR9001
+#
+SRCS+= ar9130_phy.c ar9160_attach.c ar9130_attach.c ar9130_eeprom.c
+
+# AR5210
+#
+SRCS+= ar5210_misc.c ar5210_xmit.c ar5210_power.c ar5210_keycache.c
+SRCS+= ar5210_beacon.c ar5210_reset.c ar5210_interrupts.c ar5210_attach.c
+SRCS+= ar5210_recv.c ar5210_phy.c
+
+CFLAGS+=  -I. -I${HAL}
+
+.include <bsd.kmod.mk>
diff --git a/sys/dev/netif/ath/ath_rate/Makefile b/sys/dev/netif/ath/ath_rate/Makefile
new file mode 100644 (file)
index 0000000..d65aedb
--- /dev/null
@@ -0,0 +1,9 @@
+#
+#
+
+# choose one of the rates below
+#SUBDIR= amrr
+#SUBDIR= onoe
+SUBDIR= sample
+
+.include <bsd.subdir.mk>
diff --git a/sys/dev/netif/ath/ath_rate/amrr/Makefile b/sys/dev/netif/ath/ath_rate/amrr/Makefile
new file mode 100644 (file)
index 0000000..53d7ed1
--- /dev/null
@@ -0,0 +1,8 @@
+#
+#
+
+KMOD=  ath_rate
+SRCS=  amrr.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_ah.h opt_wlan.h opt_inet.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/dev/netif/ath/ath_rate/onoe/Makefile b/sys/dev/netif/ath/ath_rate/onoe/Makefile
new file mode 100644 (file)
index 0000000..44385d3
--- /dev/null
@@ -0,0 +1,8 @@
+#
+#
+
+KMOD=  ath_rate
+SRCS=  onoe.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_ah.h opt_wlan.h opt_inet.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/dev/netif/ath/ath_rate/sample/Makefile b/sys/dev/netif/ath/ath_rate/sample/Makefile
new file mode 100644 (file)
index 0000000..834e5e9
--- /dev/null
@@ -0,0 +1,8 @@
+#
+#
+
+KMOD=  ath_rate
+SRCS=  sample.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_ah.h opt_wlan.h opt_inet.h
+
+.include <bsd.kmod.mk>