aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/arl
Commit message (Collapse)AuthorAgeFilesLines
* Remove the arl(4) driver. It is reported to not work on 6.x or laterJohn Baldwin2008-07-043-1995/+0
| | | | | | | | even though the driver hasn't changed since 4.x (last known working release). Notes: svn path=/head/; revision=180257
* Make arl(4) MPSAFE:John Baldwin2008-07-043-130/+149
| | | | | | | | | | | | | | | | - Add a mutex to the softc and use it to protect the softc and device hardware. - Setup interrupt handler after ether_ifattach(). - Use a private timer instead of if_timer/if_watchdog. - Retire arl_unit from the softc and use if_printf() and device_printf() instead. Note that the unpatched driver in 6.x and later does not work with the hardware, so the one person who had volunteered to test the patch wasn't able to test it. Notes: svn path=/head/; revision=180256
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-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@ Notes: svn path=/head/; revision=166901
* Various bpf(4) related fixes to catch places up to the new bpf(4)John Baldwin2006-12-291-1/+1
| | | | | | | | | | | | | | | | semantics. - Stop testing bpf pointers for NULL. In some cases use bpf_peers_present() and then call the function directly inside the conditional block instead of the macro. - For places where the entire conditional block is the macro, remove the test and make the macro unconditional. - Use BPF_MTAP() in if_pfsync on FreeBSD instead of an expanded version of the old semantics. Reviewed by: csjp (older version) Notes: svn path=/head/; revision=165632
* Sweep kernel replacing suser(9) calls with priv(9) calls, assigningRobert Watson2006-11-061-3/+4
| | | | | | | | | | | | | | | | specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net> Notes: svn path=/head/; revision=164033
* while (0); -> while (0) in multi-line macrosWarner Losh2006-08-171-1/+1
| | | | Notes: svn path=/head/; revision=161425
* Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp2006-05-162-2/+0
| | | | | | | unnecessary. Notes: svn path=/head/; revision=158651
* - Store pointer to the link-level address right in "struct ifnet"Ruslan Ermilov2005-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. Notes: svn path=/head/; revision=152315
* Make sure that we call if_free(ifp) after bus_teardown_intr. Since weWarner Losh2005-09-191-1/+1
| | | | | | | | | | could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call. Notes: svn path=/head/; revision=150306
* 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
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-103-17/+21
| | | | | | | | | | | | | | | | | | | | | | | 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
* Since if_arl doesn't contain locking or run with INTR_MPSAFE, markRobert Watson2004-08-131-1/+2
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Notes: svn path=/head/; revision=133676
* Add copyright notices.Max Khon2004-07-313-3/+78
| | | | | | | Prodded by: imp Notes: svn path=/head/; revision=132936
* Remove extra semicolon.Max Khon2004-06-021-1/+1
| | | | Notes: svn path=/head/; revision=130004
* 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
* Add 354k and 512k support.Max Khon2004-04-172-14/+34
| | | | | | | | | Fix quality stats. Submitted by: Stanislav A Svirid <count@riss-telecom.ru> Notes: svn path=/head/; revision=128369
* Remove improper use of if_addrhead in device drivers to checkLuigi Rizzo2004-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. Notes: svn path=/head/; revision=128293
* Use ifconfig(8) for setting common 802.11 parameters.Max Khon2004-04-133-63/+245
| | | | | | | Submitted by: Stanislav A. Svirid <count@riss-telecom.ru> Notes: svn path=/head/; revision=128196
* Implement "arlconfig arlX quality".Max Khon2004-03-163-41/+103
| | | | | | | | | Man pages fixes. Submitted by: Stanislav A. Svirid <count@riss-telecom.ru> Notes: svn path=/head/; revision=127097
* Add arl(4): driver for Aironet Arlan 655 wireless adapters.Max Khon2004-03-153-0/+1637
MFC after: 2 weeks Notes: svn path=/head/; revision=127040