summaryrefslogtreecommitdiffstats
path: root/sys/dev/snc/if_snc.c
Commit message (Collapse)AuthorAgeFilesLines
* Use ANSI prototype to fix build with clang.nyan2012-11-101-19/+7
| | | | MFC after: 1 week
* strict kobj sigs: fix assortment of device_detach and device_shutdown implsavg2009-06-111-1/+3
| | | | | | | with common issue of having void return type instead of int Reviewed by: imp, current@ Approved by: jhb (mentor)
* Add locking to snc(4) so it is MPSAFE:jhb2008-08-041-2/+29
| | | | | | | | | | | | | | | | - Add a mutex to the softc to protect the softc and device hardware. - Use a private timer routine to drive the transmit watchdog timer instead of using if_watchdog/if_timer. - If if_alloc() fails during attach, fail the attach with an error rather than panic'ing. - Clear RUNNING and OACTIVE only in sncstop(). - Don't mess with IFF_UP. - Don't leak 'struct ifnet' on detach. - Setup interrupt handler after ether_ifattach(). - Call ether_ifdetach() rather than if_detach() in the pccard detach routine. Tested by: no one despite repeated requests
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-2/+1
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* Remove unused #ifdef BRIDGE.maxim2003-06-021-5/+0
| | | | Reviewed by: nyan
* Remove unused #includes.phk2000-10-311-8/+0
| | | | Approved by: nyan
* Don't use bus_get_resource() and bus_get_resource_start() functions ifnyan2000-10-031-12/+3
| | | | | | bus_alloc_resource() failed. So, error messages are changed more simply. Suggested by: "Matthew N. Dodd" <winter@jurai.net>
* Added NEC PC-9801-83, 84, PC-9801-103, 104, PC-9801N-25 and PC-9801N-J02Rnyan2000-10-021-0/+258
support which use National Semiconductor DP8393X (SONIC) as ethernet controller. Currently, this driver is used on only PC-98. Submitted by: Motomichi Matsuzaki <mzaki@e-mail.ne.jp> Obtained from: NetBSD/pc98
OpenPOWER on IntegriCloud