summaryrefslogtreecommitdiffstats
path: root/sys/dev/ex
Commit message (Collapse)AuthorAgeFilesLines
* Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in ordertrasz2010-01-081-1/+1
| | | | to silence newer GCC versions.
* Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/rwatson2009-06-261-4/+4
| | | | | | | | | | | | | IF_ADDR_UNLOCK() across network device drivers when accessing the per-interface multicast address list, if_multiaddrs. This will allow us to change the locking strategy without affecting our driver programming interface or binary interface. For two wireless drivers, remove unnecessary locking, since they don't actually access the multicast address list. Approved by: re (kib) MFC after: 6 weeks
* Add preliminary support for the OLICOM OC2231 and OC2232. This is theimp2008-08-271-12/+55
| | | | | | first driver that does the configuration dance with CFE's. There's likely some additional configuration that's needed to get things working completely...
* Some PC Card variants of the 82365 don't seem to like setting the IRQimp2008-08-243-10/+18
| | | | | | | | | | | number in the irq register. While there are other issues with these variants, avoiding writing to it helps interrupt generation on at least one card, and doesn't hurt on the others. Flag ISA attachment as needing INT_NO_REG written, and don't update the PC Card attachment (which will have the effect of not touching it for PC Cards). Document this in a comment, and tweak one or two formatting nits while I'm here.
* Make ex(4) MPSAFE:jhb2008-06-134-90/+101
| | | | | | | | | | - Add a mutex to the softc to protect the softc and device hardware. - Use a private watchdog timer. - Setup interrupt handler after ether_ifattach(). - Use bus_foo() rather than bus_space_foo() and remove bus space tag and handle from softc. Tested by: imp
* s/destory/destroy/ (except for the code in contrib/).pjd2007-04-161-1/+1
|
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-232-2/+2
| | | | | | | | | | | | | 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@
* Remove ifdef notyet SIOCGHWADDR vestige.imp2006-02-041-7/+0
|
* - Store pointer to the link-level address right in "struct ifnet"ru2005-11-111-2/+2
| | | | | | | | | | 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.
* Catch up with IFP2ENADDR() type change (array -> pointer).ru2005-11-111-1/+1
|
* Fix "struct ifnet" leaks when attach() fails in the middle.ru2005-09-161-1/+3
|
* MFp4:imp2005-09-131-73/+40
| | | | | o Move to new pccard_cis_scan convenience function. o Remove compat layer goo.
* Add the olicom OC2231 and OC2232 to the list of cards that we shouldimp2005-09-131-0/+2
| | | | | | | attach to. These cards are combo cards (in that they have a modem inside of them), but not true MFC cards. Full support of these cards will have to wait until we can pick the config to use and for the PFC support that I have brewing.
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andrwatson2005-08-091-9/+9
| | | | | | | | | | | | | | 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
* Modify device drivers supporting multicast addresses to lock if_addr_mtxrwatson2005-08-031-1/+5
| | | | | | | | 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
* Add real support for obtaining the silicom MAC address from theimp2005-07-151-34/+7
| | | | apporpriate place in the CIS, now that we have the CIS scanning code.
* Eliminate unused argument in PCMCIA_CARD macro.imp2005-06-241-2/+2
| | | | | | | | 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)
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-104-14/+22
| | | | | | | | | | | | | | | | | | | | 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
* Include necessary declarationsimp2005-01-201-0/+3
|
* Only match ethernet functions. I've not seen any multifunction cardsimp2005-01-201-0/+7
| | | | | | (from a PC Card sense), so this should be a nop. The pseudo-multifunction cards (eg Silicom ones) need a special driver anyway..
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-062-2/+2
|
* Use cluster if data >= MINCLSIZE.glebius2004-10-171-1/+1
| | | | | | Reviewed by: mdodd Approved by: julian (mentor) MFC after: 1 month
* Since if_ex doesn't contain locking or run with INTR_MPSAFE, markrwatson2004-08-131-1/+2
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Note: there are locking macros in if_exreg.h, but they appear to be unused.
* another format nitimp2004-06-281-1/+2
|
* casting for printf happinessimp2004-06-281-4/+4
|
* MFp4:imp2004-06-274-257/+351
| | | | | | Use bus space rather than direct inb/outb. Minor style changes while I'm here. Extremely preliminary support for siliconix ethernet cards (but more work is required).
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewimp2004-05-271-1/+1
| | | | | | 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.
* We don't need to initialize if_output, ether_ifattach() does itmux2004-05-231-1/+0
| | | | for us.
* Remove improper use of if_addrhead in device drivers to checkluigi2004-04-151-3/+0
| | | | | | | | | | | | if the link-level address has been initialized already. The majority of modern drivers never does this and works fine, which makes me think that the check is totally unnecessary and a residue of cut&paste from other drivers. This change is done to simplify locking because now almost none of the drivers uses this field. The exceptions are "ct" "ctau" and "cx" where i am not sure if i can remove that part.
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-4/+4
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Announce ethernet MAC addresss in ether_ifattach().mdodd2004-03-141-3/+0
|
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-9/+7
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* add newcard support to eximp2003-10-261-2/+28
|
* Use __FBSDID().obrien2003-08-243-3/+9
| | | | Also some minor style cleanups.
* - Declare ex_devclass in if_ex.cmdodd2003-03-294-8/+8
| | | | - Rename module datastructures in if_ex_isa.c to be more standard.
* - Move ex_pccard_detach() to if_ex.c and rename it to ex_detach().mdodd2003-03-294-15/+22
| | | | - Add detach method to ISA front end.
* Reformat for readability.mdodd2003-03-291-96/+98
|
* Don't panic if we aren't plugged into a hub.mdodd2003-03-291-5/+18
|
* Multicast support, gleaned from NetBSD's if_iy driver.mdodd2003-03-282-5/+103
| | | | Submitted by: Craig Boston <craig@xfoil.gank.org>
* Back out M_* changes, per decision of the TRB.imp2003-02-191-3/+3
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-3/+3
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface driver changes:sam2002-11-141-6/+3
| | | | | | | | | | | | | | 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
* Remove __P.alfred2002-03-203-16/+16
|
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-1/+1
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* Warning police:jhb2001-01-192-2/+2
| | | | | - Share the ex_stop() prototype in if_exvar.h - Remove an unused local variable.
* Remove unneeded #include <machine/clock.h>phk2000-10-153-3/+0
|
* Add support for pccard attachments of the ex driver. It supports theimp2000-09-293-3/+166
| | | | | | | Olicom OC-2220 card, and maybe others. Submitted by: iwasaki Reviewed by: mdodd
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-131-6/+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
* Unused include: #include "ex.h"peter2000-06-101-2/+0
|
OpenPOWER on IntegriCloud