summaryrefslogtreecommitdiff
path: root/sys/conf/files
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-05-10 17:44:22 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-05-10 17:44:22 +0000
commit752b30688d178e71a271482cf41961c54cce1b10 (patch)
treeac540f43c352fea3f174841a97e6a7c3b30012c1 /sys/conf/files
parent84c9dd0d237ccba9e15a9356be17a8e307bbbd29 (diff)
athn(4) is going to support a new family of Atheros 802.11n
chips (AR9003), which differs from the currently supported families (AR5008, AR9001 and AR9002). The main differences (from a driver point of view) are: * DMA: Tx and Rx descriptors have changed. A single Tx descriptor can now reference up to 4 scatter/gather DMA segments. There is now a DMA ring for reporting Tx status with separate Tx status descriptors (this ring is used to report Tx status for all the Tx FIFOs). Rx status descriptors are now put at the beginning of Rx buffers and do not need to be allocated separately from buffers. There are two Rx FIFOs (low priority and high priority) instead of one. * ROM: The AR9003 family uses OTP-ROM instead of EEPROM. Reading the ROM is totally insane since vendors can provide only the chunks of ROM that differ from a default image (and thus the default image has to be stored in the driver). This is referenced as "compressed ROM" in the Linux driver, though there is no real compression involved, at least for the moment. * PHY registers: All PHY registers have changed. Some registers offsets do not fit on 16 bits anymore, but since they are 32-bit aligned, we can still make them fit on 16 bits to save .rodata space in initialization tables. * MAC registers: Some MAC registers offsets have changed (GPIO, interrupt masks) which is quite annoying (though ~98% remain the same.) * Initialization values: Initialization values are now split in mac/soc/bb/radio blocks and pre/core/post phases in the Linux driver. I have chosen to not go that road and merge these blocks in modal and non-modal initialization values (similar to the other families). The initialization order remains exactly the same as the Linux driver though. To manage these differences, I have split athn.c in two backends: ar5008.c contains the bits that are specific to the AR5008, AR9001 and AR9002 families (used by ar5416.c, ar9280.c, ar9285.c and ar9287.c) and that were previously in athn.c. ar9003.c contains the bits that are specific to the new AR9003 family (used by ar9380.c only for now.) I have introduced a thin hardware abstraction layer (actually a set of pointers to functions) that is used in athn.c. My intent is to keep this abstraction layer as thin as possible and not to create another ugly pile of abstraction layers a la MadWifi. I think I've managed to keep things sane, probably at the expense of duplicating some code in both ar5008.c and ar9003.c, but at least we do not have to dig through layers and layers of virtual descriptors to figure out what is mapped to the hardware. Tested for non-regression on various AR5416 (sparc64+i386), AR9281 and AR9285 (i386 only) adapters. AR9380 part is not tested (hardware is not available to the general public yet). Committed over my AR9285 2.0.
Diffstat (limited to 'sys/conf/files')
-rw-r--r--sys/conf/files5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 02f86c125ed..24fe7a92951 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1,4 +1,4 @@
-# $OpenBSD: files,v 1.488 2010/05/01 13:13:08 oga Exp $
+# $OpenBSD: files,v 1.489 2010/05/10 17:44:21 damien Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@@ -374,10 +374,13 @@ file dev/ic/ath.c ath
# Atheros AR9k (802.11a/g/n) driver
device athn: ether, ifnet, ifmedia, wlan
file dev/ic/athn.c athn
+file dev/ic/ar5008.c athn
file dev/ic/ar5416.c athn
file dev/ic/ar9280.c athn
file dev/ic/ar9285.c athn
file dev/ic/ar9287.c athn
+file dev/ic/ar9003.c athn
+file dev/ic/ar9380.c athn
# ADMtek ADM8211 802.11
device atw: ether, ifnet, ifmedia, smc93cx6, wlan