summaryrefslogtreecommitdiffstats
path: root/sys/dev/an/if_an_pccard.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge r259393 from head:gavin2014-05-071-2/+0
| | | | | | | | | | | | Fix several panics when initialization of an ISA or PC-CARD device fails: o Assign sc->an_dev in an_probe() (which isn't really a probe function in the standard newbus sense) as we may need it for printing errors. o Use device_printf() rather than if_printf() in an_reset() - this is called from an_probe() long before the ifp structure is initialised in an_attach(). o Initialize the ifp structure early in an_attach() as we use if_printf() in cases where allocation of descriptors etc fails.
* Use bus_*() rather than bus_space_*().jhb2009-11-241-2/+0
|
* - Use device_printf() instead of printf() with an explicit unit numberjhb2009-11-061-1/+1
| | | | | | | | | in the PCI attach routine. - Simplify PCI probe. - Remove no-longer-used 'unit' from an_attach() parameters. PR: kern/126924 Submitted by: gavin
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* MFp4: Remove OLDCARD shimsimp2005-09-221-27/+13
|
* MFp4: trivial KNF nitsimp2005-09-221-6/+1
|
* Eliminate unused argument in PCMCIA_CARD macro.imp2005-06-241-4/+4
| | | | | | | | Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments. Approved by: re (dwhite)
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewimp2004-05-271-3/+4
| | | | | | redundant includes and fix some of the include disordering. Submitted by: bde
* Move to generating pccarddevs.h on the fly, both for the kernel andimp2004-05-261-1/+1
| | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment.
* It turns out that the module dependency on pccard is in error. Sinceimp2004-05-081-1/+0
| | | | | | | | | | | | there's not dependencies on pccard symboles, such a dependency is not necessary. This means that drivers that have multiple attachments can not drag bogus devices into the kernel at load time. We can't (yet) do this with pci and isa. Drivers written for them actually do seem to have symbols that depend on these busses' implementation code. ndis not touched until other things can be tested.
* - Bump up the general and status RID sizesambrisko2003-12-301-23/+1
| | | | | | | | | | | - Clear out an_dma_vaddr on free so we can test to see if dma is setup when the card is kldunloaded/kldloaded etc. only for MPI350 - Use a common detach like wi(4) - Notify on RID read overflow and truncate this currently causes a panic in -stable when the stack during an ifconfig an0 is done with newer firmware - Convert from UNLOCK/tsleep/LOCK to msleep. I thought I did that a while ago.
* Xircom Wireless Ethernet card is a rebadged Cisco 340, but with aimp2003-10-081-0/+1
| | | | | | different vendor id/product id. Submitted by: Keith Davis
* Use __FBSDID().obrien2003-08-241-1/+0
| | | | Also some minor style cleanups.
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-04-151-2/+3
| | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
* Don't lock in the attach routine. It isn't required. Register theimp2003-04-101-8/+16
| | | | | | | interrupt handler last. This gets rid of the sleep while locked messages. Reviewed by: ambrisko
* Make sure that pp_name is non-null before setting the deviceimp2003-04-101-1/+2
| | | | | description. This allows us to rely entirely on the CIS entries if necessary...
* Use __FBSDID rather than rcsid[].obrien2003-04-031-7/+3
|
* an driver now needs wlan, so put the required explicit dependsimp2003-02-171-0/+1
| | | | | | into the source. Reviewed by: ambrisko
* Add support for MPI-350 the mini-pci Cisco Aironet card. This needs moreambrisko2002-12-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | work. The interface was gleaned from the Linux driver. Currently only one RX & one TX buffer are used. Firmware support is not tested so for the MPI-350 so it is disabled. Signal cache and monitor mode are not supported yet. Signal cache is not supported since in encapsulation mode ethernet frames are returned by the chip. LAN monitor mode support will be added shortly. Thanks to Warner for the MPI-350 card he sent me. Add support for RSSI map from PR kern/32880 which was incomplete. Enhanced with the ability to select the cache mode of raw, dbm or per-cent. Clean up Signal/Noise/Quality structures and units with help from Marco Molteni. Change flash to use a malloc'ed buffer when needed. PR: kern/32880 Submitted by: Douglas S. J. De Couto decouto@pdos.lcs.mit.edu, Marco Molteni MFC: 3 weeks
* network interface driver changes:sam2002-11-141-1/+1
| | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re
* Minor style problem I introduced recentlyimp2001-11-151-4/+4
|
* Hoist the Card/Card2 macros that I invented for the wi driver intoimp2001-11-151-9/+4
| | | | | | | | pccard layer and rename them PCMCIA_CARD and PCMCIA_CARD2 respectively (note, this is being done with an eye towards NetBSD integreation so it is easier to keep lists of cards between us and them in sync). Use this in the an and wi drivers.
* Add PC4500 and 350 for newer cards in this line.imp2001-11-151-3/+9
| | | | Obtained from: NetBSD's an driver (and FreeBSD's /etc/defaults/pccard.conf)
* Add NEWCARD support for aironet stuff.imp2001-11-151-2/+32
| | | | | | PR: 24854 Submitted by: "Sam Habash" <the+xp@llama.com> (with the mtx fix by Jonathan Chen)
* Lots of style(9) related white space fixes. Mostly missing spacesbrooks2001-09-101-5/+5
| | | | | after if, for, while, switch, '{', and '}' plus a bunch of bogus whitespace at the end of lines.
* Currently, each wireless networking driver has it's own control programphk2001-05-261-0/+2
| | | | | | | | | | | | despite the fact that most people want to set exactly the same settings regardless of which card they have. It has been repeatidly suggested that this configuration should be done via ifconfig. This patch implements the required functionality in ifconfig and add support to the wi and an drivers. It also provides partial, untested support for the awi driver. PR: 25577 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Catch up to header include changes:jhb2001-03-281-0/+1
| | | | | - <sys/mutex.h> now requires <sys/systm.h> - <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
* Catch up to moving headers:jhb2000-10-201-1/+1
| | | | | - machine/ipl.h -> sys/ipl.h - machine/mutex.h -> sys/mutex.h
* Remember to assign an_dev to device_t before calling an_attach().wpaul2000-10-131-0/+6
|
* Convert the Aironet driver to use mutexes instead of spls.wpaul2000-10-131-0/+1
|
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-131-1/+1
| | | | | | | | | ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
* Remove unloaded printf. We do this now in the newbus layer.imp2000-04-171-1/+0
|
* Add driver support for the Aironet 4500/4800 series wireless 802.11wpaul2000-01-141-0/+156
NICs. (Finally!) The PCMCIA, ISA and PCI varieties are all supported, though only the ISA and PCI ones will work on the alpha for now. PCCARD, ISA and PCI attachments are all provided. Also provided an ancontrol(8) utility for configuring the NIC, man pages, and updated pccard.conf.sample. ISA cards are supported in both ISA PnP and hard-wired mode, although you must configure the kernel explicitly to support the hardwired mode since you have to know the I/O address and port ahead of time. Special thanks to Doug Ambrisko for doing the initial newbus hackery and getting it to work in infrastructure mode.
OpenPOWER on IntegriCloud