Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules add module glue for ath_hal, ath, and if_ath_pci



details:   https://anonhg.NetBSD.org/src/rev/7b27a2beffa8
branches:  trunk
changeset: 762353:7b27a2beffa8
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Feb 20 03:58:33 2011 +0000

description:
add module glue for ath_hal, ath, and if_ath_pci

diffstat:

 sys/modules/ath/Makefile                 |  17 +++++
 sys/modules/ath_hal/Makefile             |  96 ++++++++++++++++++++++++++++++++
 sys/modules/ath_hal/Makefile.inc         |   9 +++
 sys/modules/ath_hal/ath_hal.ldscript     |  38 ++++++++++++
 sys/modules/if_ath_pci/Makefile          |  15 +++++
 sys/modules/if_ath_pci/if_ath_pci.ioconf |  10 +++
 6 files changed, 185 insertions(+), 0 deletions(-)

diffs (209 lines):

diff -r 210221542208 -r 7b27a2beffa8 sys/modules/ath/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/ath/Makefile  Sun Feb 20 03:58:33 2011 +0000
@@ -0,0 +1,17 @@
+#      $NetBSD: Makefile,v 1.1 2011/02/20 03:58:33 jmcneill Exp $
+
+.include "../Makefile.inc"
+
+.PATH: ${S}/dev/ic
+
+KMOD=  ath
+
+SRCS=  ath.c \
+       ath_netbsd.c \
+       athrate-sample.c
+
+WARNS=         3
+CPPFLAGS+=     -DINET
+
+.include "../ath_hal/Makefile.inc"
+.include <bsd.kmodule.mk>
diff -r 210221542208 -r 7b27a2beffa8 sys/modules/ath_hal/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/ath_hal/Makefile      Sun Feb 20 03:58:33 2011 +0000
@@ -0,0 +1,96 @@
+#      $NetBSD: Makefile,v 1.1 2011/02/20 03:58:33 jmcneill Exp $
+
+.include "../Makefile.inc"
+
+.PATH: ${S}/external/isc/atheros_hal/dist
+.PATH: ${S}/external/isc/atheros_hal/dist/ar5210
+.PATH: ${S}/external/isc/atheros_hal/dist/ar5211
+.PATH: ${S}/external/isc/atheros_hal/dist/ar5212
+.PATH: ${S}/external/isc/atheros_hal/dist/ar5312
+.PATH: ${S}/external/isc/atheros_hal/dist/ar5312
+.PATH: ${S}/external/isc/atheros_hal/dist/ar5416
+.PATH: ${S}/external/isc/atheros_hal/ic
+
+KMOD=  ath_hal
+
+SRCS=  ah.c \
+       ah_eeprom_v1.c \
+       ah_eeprom_v3.c \
+       ah_eeprom_v14.c \
+       ah_regdomain.c
+SRCS+= ah_osdep.c
+SRCS+= ar5210_attach.c \
+       ar5210_beacon.c \
+       ar5210_interrupts.c \
+       ar5210_keycache.c \
+       ar5210_misc.c \
+       ar5210_phy.c \
+       ar5210_power.c \
+       ar5210_recv.c \
+       ar5210_reset.c \
+       ar5210_xmit.c
+SRCS+= ar5211_attach.c \
+       ar5211_beacon.c \
+       ar5211_interrupts.c \
+       ar5211_keycache.c \
+       ar5211_misc.c \
+       ar5211_phy.c \
+       ar5211_power.c \
+       ar5211_recv.c \
+       ar5211_reset.c \
+       ar5211_xmit.c
+SRCS+= ar2316.c \
+       ar2317.c \
+       ar2413.c \
+       ar2425.c \
+       ar5111.c \
+       ar5112.c \
+       ar5413.c
+SRCS+= ar5212_ani.c \
+       ar5212_attach.c \
+       ar5212_beacon.c \
+       ar5212_eeprom.c \
+       ar5212_gpio.c \
+       ar5212_interrupts.c \
+       ar5212_keycache.c \
+       ar5212_misc.c \
+       ar5212_phy.c \
+       ar5212_power.c \
+       ar5212_recv.c \
+       ar5212_reset.c \
+       ar5212_rfgain.c \
+       ar5212_xmit.c
+SRCS+= ar5312_attach.c \
+       ar5312_eeprom.c \
+       ar5312_gpio.c \
+       ar5312_interrupts.c \
+       ar5312_misc.c \
+       ar5312_power.c \
+       ar5312_reset.c \
+       ar5315_gpio.c
+SRCS+= ar2133.c \
+       ar5416_ani.c \
+       ar5416_attach.c \
+       ar5416_beacon.c \
+       ar5416_cal.c \
+       ar5416_cal_adcdc.c \
+       ar5416_cal_adcgain.c \
+       ar5416_cal_iq.c \
+       ar5416_eeprom.c \
+       ar5416_gpio.c \
+       ar5416_interrupts.c \
+       ar5416_keycache.c \
+       ar5416_misc.c \
+       ar5416_phy.c \
+       ar5416_power.c \
+       ar5416_recv.c \
+       ar5416_reset.c \
+       ar5416_xmit.c \
+       ar9160_attach.c
+
+WARNS=         3
+
+.include "Makefile.inc"
+
+.include <bsd.kmodule.mk>
+KMODSCRIPT=    ${S}/modules/ath_hal/ath_hal.ldscript
diff -r 210221542208 -r 7b27a2beffa8 sys/modules/ath_hal/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/ath_hal/Makefile.inc  Sun Feb 20 03:58:33 2011 +0000
@@ -0,0 +1,9 @@
+#      $NetBSD: Makefile.inc,v 1.1 2011/02/20 03:58:33 jmcneill Exp $
+
+CPPFLAGS+=     -I${S}/external/isc/atheros_hal/dist
+CPPFLAGS+=     -I${S}/external/isc/atheros_hal/ic
+CPPFLAGS+=     -DATHHAL_AR5210 -DATHHAL_AR5211 -DATHHAL_AR5212 \
+               -DATHHAL_AR5311 -DATHHAL_AR5312 -DATHHAL_AR5416
+CPPFLAGS+=     -DATHHAL_RF2316 -DATHHAL_RF2317 -DATHHAL_RF2413 \
+               -DATHHAL_RF2425 -DATHHAL_RF5111 -DATHHAL_RF5112 \
+               -DATHHAL_RF5413
diff -r 210221542208 -r 7b27a2beffa8 sys/modules/ath_hal/ath_hal.ldscript
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/ath_hal/ath_hal.ldscript      Sun Feb 20 03:58:33 2011 +0000
@@ -0,0 +1,38 @@
+/*     $NetBSD: ath_hal.ldscript,v 1.1 2011/02/20 03:58:33 jmcneill Exp $      */
+
+SECTIONS
+{
+   /* Pre-loaded modules must have merged BSS and data. */
+   .data 0 :
+   {
+     *(.data)
+     *(.bss)
+     *(.bss.*)
+     *(COMMON)
+   }
+
+   link_set_ah_rfs :
+   {
+     __start_link_set_ah_rfs = .;
+     *(link_set_ah_rfs);
+     __stop_link_set_ah_rfs = .;
+   }
+
+   link_set_ah_chips :
+   {
+     __start_link_set_ah_chips = .;
+     *(link_set_ah_chips);
+     __stop_link_set_ah_chips = .;
+   }
+
+   . = ALIGN(64);      /* COHERENCY_UNIT */
+   .data.cacheline_aligned     : { *(.data.cacheline_aligned) }
+   . = ALIGN(64);      /* COHERENCY_UNIT */
+   .data.read_mostly           : { *(.data.read_mostly) }
+   . = ALIGN(64);      /* COHERENCY_UNIT */
+   /* Pre-loaded modules do not need the following. */
+   /DISCARD/ :
+   {
+     *(.comment)
+   }
+}
diff -r 210221542208 -r 7b27a2beffa8 sys/modules/if_ath_pci/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/if_ath_pci/Makefile   Sun Feb 20 03:58:33 2011 +0000
@@ -0,0 +1,15 @@
+#      $NetBSD: Makefile,v 1.1 2011/02/20 03:58:33 jmcneill Exp $
+
+.include "../Makefile.inc"
+
+.PATH: ${S}/dev/pci
+
+KMOD=  if_ath_pci
+IOCONF=        if_ath_pci.ioconf
+
+SRCS=  if_ath_pci.c
+
+WARNS= 3
+
+.include "../ath_hal/Makefile.inc"
+.include <bsd.kmodule.mk>
diff -r 210221542208 -r 7b27a2beffa8 sys/modules/if_ath_pci/if_ath_pci.ioconf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/if_ath_pci/if_ath_pci.ioconf  Sun Feb 20 03:58:33 2011 +0000
@@ -0,0 +1,10 @@
+#      $NetBSD: if_ath_pci.ioconf,v 1.1 2011/02/20 03:58:33 jmcneill Exp $
+
+ioconf if_ath_pci
+
+include "conf/files"
+include "dev/pci/files.pci"
+
+pseudo-root pci*
+
+ath* at pci? dev ? function ?



Home | Main Index | Thread Index | Old Index