From 302c94fa293881d3ac8c99a87d95ea2adb449fbb Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 8 Dec 2004 17:34:36 +0000 Subject: Update with last year of work. --- sys/dev/ath/if_ath_pci.c | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'sys/dev/ath/if_ath_pci.c') diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index 194d167..0e7ead2 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -41,43 +41,27 @@ __FBSDID("$FreeBSD$"); * PCI/Cardbus front-end for the Atheros Wireless LAN controller driver. */ -#include "opt_inet.h" - #include #include -#include -#include #include #include #include #include -#include -#include #include #include #include #include #include + +#include #include -#include #include -#include -#include #include -#include -#include -#include -#include #include -#ifdef INET -#include -#include -#endif - #include #include @@ -92,7 +76,7 @@ struct ath_pci_softc { struct ath_softc sc_sc; struct resource *sc_sr; /* memory resource */ struct resource *sc_irq; /* irq resource */ - void *sc_ih; /* intererupt handler */ + void *sc_ih; /* interrupt handler */ u_int8_t sc_saved_intline; u_int8_t sc_saved_cachelinesz; u_int8_t sc_saved_lattimer; @@ -106,7 +90,7 @@ ath_pci_probe(device_t dev) const char* devname; devname = ath_hal_probe(pci_get_vendor(dev), pci_get_device(dev)); - if (devname) { + if (devname != NULL) { device_set_desc(dev, devname); return 0; } @@ -185,7 +169,7 @@ ath_pci_attach(device_t dev) NULL, NULL, /* filter, filterarg */ 0x3ffff, /* maxsize XXX */ ATH_MAX_SCATTER, /* nsegments */ - 0xffff, /* maxsegsize XXX */ + BUS_SPACE_MAXADDR, /* maxsegsize */ BUS_DMA_ALLOCNOW, /* flags */ NULL, /* lockfunc */ NULL, /* lockarg */ @@ -300,3 +284,4 @@ DRIVER_MODULE(if_ath, cardbus, ath_pci_driver, ath_devclass, 0, 0); MODULE_VERSION(if_ath, 1); MODULE_DEPEND(if_ath, ath_hal, 1, 1, 1); /* Atheros HAL */ MODULE_DEPEND(if_ath, wlan, 1, 1, 1); /* 802.11 media layer */ +MODULE_DEPEND(if_ath, ath_rate, 1, 1, 1); /* rate control algorithm */ -- cgit v1.1