aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/owi
Commit message (Collapse)AuthorAgeFilesLines
* this is no longer needed.Warner Losh2005-11-165-3721/+0
| | | | Notes: svn path=/head/; revision=152530
* - Store pointer to the link-level address right in "struct ifnet"Ruslan Ermilov2005-11-111-3/+3
| | | | | | | | | | | | | rather than in ifindex_table[]; all (except one) accesses are through ifp anyway. IF_LLADDR() works faster, and all (except one) ifaddr_byindex() users were converted to use ifp->if_addr. - Stop storing a (pointer to) Ethernet address in "struct arpcom", and drop the IFP2ENADDR() macro; all users have been converted to use IF_LLADDR() instead. Notes: svn path=/head/; revision=152315
* Catch up with IFP2ENADDR() type change (array -> pointer).Ruslan Ermilov2005-11-111-2/+2
| | | | Notes: svn path=/head/; revision=152311
* - Make IFP2ENADDR() a pointer to IF_LLADDR() rather than anotherRuslan Ermilov2005-11-111-5/+0
| | | | | | | | | | | copy of Ethernet address. - Change iso88025_ifattach() and fddi_ifattach() to accept MAC address as an argument, similar to ether_ifattach(), to make this work. Notes: svn path=/head/; revision=152296
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andRobert Watson2005-08-091-10/+10
| | | | | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days Notes: svn path=/head/; revision=148887
* Modify device drivers supporting multicast addresses to lock if_addr_mtxRobert Watson2005-08-031-0/+2
| | | | | | | | | | | over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> MFC after: 1 week Notes: svn path=/head/; revision=148654
* Fixing compilation error by:Tai-hwa Liang2005-08-012-2/+2
| | | | | | | | | | | - Conforming to the latest ether_ifattach() change; - Moving PCCARD_API_LEVEL to the right place. Reported and Tested by: Vladimir Grebenschikov <vova at fbsd dot ru> MFC after: 3 days Notes: svn path=/head/; revision=148620
* Eliminate unused argument in PCMCIA_CARD macro.Warner Losh2005-06-241-0/+1
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=147580
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-102-17/+26
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* MF dev/wi: merge the pccard lists.Warner Losh2005-02-031-11/+19
| | | | | | | | | # this hasn't compiled for two weeks and no one noticed! MFC After: 7 days or so Notes: svn path=/head/; revision=141165
* The two PLANEX cards listed in pccarddevs, identified only by theirWarner Losh2005-02-011-1/+1
| | | | | | | | | | | | | | | | | | | | | CIS, weren't actually used anywhere (other than the generic PC Card code when certain variables are defined). They aren't used in NetBSD either. Make things simpler by removing them. Change PLANEX_2 to PLANEX and tweak wi and owi to use that instead. The PLANEX id seems to actually be pci ID assigned to planex, not its pcmcia id. Ooops. I don't know if this is a reporting error from where this entry came from, or if it is a mistake on PLANEX's part. I suspect the latter, as ACTIONTEC and NEWMEDIA made the same mistake (although new media may be because it uses an advansys chip inside). Make a note of this in the file. The 0xc entires may be JEITA assigned, so note that as well. # This leaves just 3 entries that are totally unknown: airvast, archos # and edimax although the arivast number is the same assigned to # avertec in usb... Notes: svn path=/head/; revision=141122
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-064-4/+4
| | | | Notes: svn path=/head/; revision=139749
* Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh2004-05-261-1/+1
| | | | | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment. Notes: svn path=/head/; revision=129740
* We don't need to initialize if_output, ether_ifattach() does itMaxime Henrion2004-05-231-1/+0
| | | | | | | for us. Notes: svn path=/head/; revision=129616
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+4
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-141-2/+0
| | | | Notes: svn path=/head/; revision=126966
* Nursemaid: Fix compilation.Bruce M Simpson2003-12-101-4/+4
| | | | | | | Sponsored by: Weyland-Yutani Corporation Notes: svn path=/head/; revision=123389
* Drop the driver lock around calls to if_input to avoid a LOR whenSam Leffler2003-11-142-0/+6
| | | | | | | | | | | the packets are immediately returned for sending (e.g. when bridging or packet forwarding). There are more efficient ways to do this but for now use the least intrusive approach. Reviewed by: imp, rwatson Notes: svn path=/head/; revision=122689
* Fix a race condition in owi. If you eject a card, then the wi_inquireWarner Losh2003-10-141-2/+2
| | | | | | | | | | | | | timeout would continue to happen: boom! Fix this[*] by timing out earlier. [*] almost fixes the race on unload: wi_inquire could be running when untimeout is called, and there's no way to know when it has actually returned. This race is very rare and hard to lose. Submitted by: scottl Notes: svn path=/head/; revision=121079
* Check in the known good version of the wi driver, with prism/symbolWarner Losh2003-08-245-0/+3703
support stripped out and minimally renamed to owi. This driver attaches to lucent cards only. This is designed to aid in the testing of fixes to the wi driver for lucent cards. It is supported only as a module (you cannot compile it into your kernel). You cannot have the wi driver in your kernel (or loaded as a moudle) to use the owi module. I've not connected it to build, as this module is currently for debugging purposes. This is for developers only at the present time. If we can't get lucent support fixed by 5.2 code freeze, then we'll re-evaulate this support level. Please use this to fix the lucent support in dev/wi. This will be removed from the system when lucent support has been fixed in dev/wi. Note to developers: Do not connect this to the build, make it possible to build into the kernel or otherwise 'integrate' this into system without checking with me first. This is for debugging purposes only. If this doesn't work for you, I don't want to hear about it unless you are fixing the wi driver :-) Notes: svn path=/head/; revision=119392