aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sbni
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-064-4/+4
| | | | Notes: svn path=/head/; revision=139749
* Since if_sbni 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=133697
* 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
* Remove improper use of if_addrhead in device drivers to checkLuigi Rizzo2004-04-151-4/+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
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-172-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/+1
| | | | Notes: svn path=/head/; revision=126966
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-312-5/+4
| | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=121816
* There is no way to enter the attach routine twice with the same softcBrooks Davis2003-10-301-19/+17
| | | | | | | | | | without a detach call in between so don't try to deal with that possiability. This is a diff-reduction commit for the upcoming if_xname conversion. Notes: svn path=/head/; revision=121752
* Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin2003-09-021-1/+1
| | | | | | | | Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
* Use __FBSDID().David E. O'Brien2003-08-243-6/+10
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119419
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119287
* Fix i386 assembly constraints. The same register cannot beAlexander Kabaev2003-07-111-3/+3
| | | | | | | in output and clobber lists at the same time. Notes: svn path=/head/; revision=117433
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-152-4/+4
| | | | | | | | | | | 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.) Notes: svn path=/head/; revision=113506
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-2/+2
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-2/+2
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* network interface driver changes:Sam Leffler2002-11-141-15/+7
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=106937
* Use if_printf() instead of printf() to print "sbni#: blah".Brooks Davis2002-10-011-4/+3
| | | | Notes: svn path=/head/; revision=104256
* This driver doesn't need to include <sys/bus_private.h> either.Poul-Henning Kamp2002-09-282-2/+0
| | | | | | | Spotted by: FlexeLint Notes: svn path=/head/; revision=104112
* use __packed/__aligned rather than GCC-specific __attribute__.Alfred Perlstein2002-09-231-1/+1
| | | | Notes: svn path=/head/; revision=103844
* printf() formats fixesMax Khon2002-08-062-2/+2
| | | | Notes: svn path=/head/; revision=101432
* Make driver portable:Max Khon2002-08-054-45/+56
| | | | | | | | | | | | | | | - bus_space'ify - generate fake ethernet address using read_random() instead of reading from timer i/o ports Other minor fixes: - remove "hack" in connect_to_master() - use M_ZERO - remove unused variable in sbni_ioctl() - properly release irq in sbni_attach_isa() on attach errors Notes: svn path=/head/; revision=101400
* back out one change that crept in (will be committed later)Max Khon2002-08-051-1/+1
| | | | Notes: svn path=/head/; revision=101394
* style fixesMax Khon2002-08-053-26/+30
| | | | Notes: svn path=/head/; revision=101393
* fix driver name in DRIVER_MODULEMax Khon2002-07-152-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=100023
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-04-011-3/+5
| | | | | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@ Notes: svn path=/head/; revision=93593
* Rename a variable that might accidentally be duplicated elsewhere.Mike Smith2002-01-083-5/+5
| | | | Notes: svn path=/head/; revision=89092
* Add driver for Granch SBNI12-xx ISA and PCI network adapters.Max Khon2001-11-215-0/+1898
MFC after: 1 week Notes: svn path=/head/; revision=86752