aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/snc
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wundef warnings from compiling GENERIC and LINT kernels ofRuslan Ermilov2005-12-062-4/+4
| | | | | | | all architectures. Notes: svn path=/head/; revision=153165
* - Store pointer to the link-level address right in "struct ifnet"Ruslan Ermilov2005-11-111-1/+1
| | | | | | | | | | | | | 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
* 'PC Card' instead of other variantsWarner Losh2005-09-221-2/+2
| | | | Notes: svn path=/head/; revision=150460
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andRobert Watson2005-08-092-11/+13
| | | | | | | | | | | | | | | | | 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
* Build on pc98.Brooks Davis2005-06-121-1/+1
| | | | Notes: svn path=/head/; revision=147318
* change 'dev' to 'sc->sc_dev' to fix the build.Scott Long2005-06-121-1/+2
| | | | | | | Approved: re (implicit) Notes: svn path=/head/; revision=147316
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-102-21/+24
| | | | | | | | | | | | | | | | | | | | | | | 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
* Only send packet to bpf if we are committed to send it. Previously it wasMax Laier2005-02-211-6/+10
| | | | | | | | | | | | possible that the same packet would show up multiple times. This poses some constraints on the TBD locking for snc(4) (see comment). Obtained from: DragonFlyBSD Submitted by: Joerg Sonnenberger Reviewed by: rwatson Notes: svn path=/head/; revision=142180
* Remove now-stale commentWarner Losh2005-01-201-10/+2
| | | | Notes: svn path=/head/; revision=140529
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-0610-14/+13
| | | | Notes: svn path=/head/; revision=139749
* Since if_snc doesn't contain locking or run with INTR_MPSAFE, markRobert Watson2004-08-131-1/+1
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Notes: svn path=/head/; revision=133698
* 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
* It turns out that the module dependency on pccard is in error. SinceWarner Losh2004-05-081-1/+0
| | | | | | | | | | | | | | | there's not dependencies on pccard symboles, such a dependency is not necessary. This means that drivers that have multiple attachments can not drag bogus devices into the kernel at load time. We can't (yet) do this with pci and isa. Drivers written for them actually do seem to have symbols that depend on these busses' implementation code. ndis not touched until other things can be tested. Notes: svn path=/head/; revision=129046
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-2/+1
| | | | | | | | 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-1/+0
| | | | Notes: svn path=/head/; revision=126966
* Do if_xname conversion. I missed this one because it's pc98 only.Brooks Davis2003-11-011-2/+2
| | | | Notes: svn path=/head/; revision=121867
* Use __FBSDID().David E. O'Brien2003-08-244-4/+12
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119419
* Consistently use the BSD u_int and u_short instead of the SYSV uint andJohn Baldwin2003-08-071-1/+1
| | | | | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c) Notes: svn path=/head/; revision=118607
* Remove unused #ifdef BRIDGE.Maxim Konovalov2003-06-021-5/+0
| | | | | | | Reviewed by: nyan Notes: svn path=/head/; revision=115688
* Fix off-by-one bug.Yoshihiro Takahashi2003-05-031-3/+3
| | | | | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=114561
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-152-2/+6
| | | | | | | | | | | 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
* Introduce an M_ASSERTPKTHDR() macro which performs the very common taskDag-Erling Smørgrav2003-04-081-3/+1
| | | | | | | | | | of asserting that an mbuf has a packet header. Use it instead of hand- rolled versions wherever applicable. Submitted by: Hiten Pandya <hiten@unixdaemons.com> Notes: svn path=/head/; revision=113255
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-3/+3
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Use correct spl mask.Yoshihiro Takahashi2003-02-102-3/+7
| | | | | | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) MFC after: 1 day Notes: svn path=/head/; revision=110644
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-3/+3
| | | | | | | 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-13/+6
| | | | | | | | | | | | | | | | | 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
* Remove __P.Alfred Perlstein2002-03-206-73/+70
| | | | Notes: svn path=/head/; revision=92739
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedPoul-Henning Kamp2001-02-061-1/+1
| | | | | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh Notes: svn path=/head/; revision=72084
* Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead ofPoul-Henning Kamp2001-02-031-2/+1
| | | | | | | | | | <sys/queue.h> implementation details. Created with: /usr/sbin/sed Reviewed with: /sbin/md5 Notes: svn path=/head/; revision=71962
* Remove unused #includes.Poul-Henning Kamp2000-10-315-35/+0
| | | | | | | Approved by: nyan Notes: svn path=/head/; revision=68054
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Don't use bus_get_resource() and bus_get_resource_start() functions ifYoshihiro Takahashi2000-10-031-12/+3
| | | | | | | | | bus_alloc_resource() failed. So, error messages are changed more simply. Suggested by: "Matthew N. Dodd" <winter@jurai.net> Notes: svn path=/head/; revision=66581
* Added NEC PC-9801-83, 84, PC-9801-103, 104, PC-9801N-25 and PC-9801N-J02RYoshihiro Takahashi2000-10-0210-0/+3618
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 Notes: svn path=/head/; revision=66550