summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn
Commit message (Collapse)AuthorAgeFilesLines
* Only attach to network functions. I'm not aware of any multifunctionimp2005-01-201-0/+10
| | | | | (pccard sense) sn based cards, but this won't hurt. The pseudo-multifunction cards need a special driver anyway...
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-064-4/+4
|
* Replace handrolled CRC calculation with ether_crc32_[lb]e().naddy2004-06-091-22/+2
|
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* Include required machine/bus.himp2004-05-281-0/+2
|
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewimp2004-05-271-9/+4
| | | | | | 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.
* It turns out that the module dependency on pccard is in error. Sinceimp2004-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.
* Remove two variables that became unused because of last commit.luigi2004-04-161-2/+0
| | | | Reported by: tinderbox
* Remove improper use of if_addrhead in device drivers to checkluigi2004-04-151-18/+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-2/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Announce ethernet MAC addresss in ether_ifattach().mdodd2004-03-141-1/+0
|
* Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.obrien2003-12-081-1/+1
| | | | Requested by: bde,imp
* Remove duplicate FBSDID's, move others to their right place.obrien2003-11-141-1/+0
|
* Reconst-poison crc routine that was renamed to mchash.imp2003-11-141-5/+5
| | | | re-remove the _ in u_intXX_t
* Try to create some sort of consistency in how the routings to find theobrien2003-11-131-15/+16
| | | | | | | multicast hash are written. There are still two distinct algorithms used, and there actually isn't any reason each driver should have its own copy of this function as they could all share one copy of it (if it grew an additional argument).
* Don't establish the ISR in the sn_activate routine. I've had twoimp2003-11-102-12/+11
| | | | | | | crashes that had sn0 as the irq that's being serviced, when there was no sn0 in the system. This seems to prevent them. Also, we want to wait until after we've registered with the network layer before we turn on the interrupt spigot to avoid races.
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-2/+1
| | | | | | | | | | | | | 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)
* Make sn MPSAFE. This has survived a couple of make buildworlds withimp2003-10-262-123/+119
| | | | my Megahertz XJ10BT.
* Style changes:imp2003-10-261-16/+16
| | | | | o kill register o minor function name tweaks.
* Convert to bus_space.imp2003-10-254-144/+206
| | | | | | | | | Make the pccard attachment work with NEWCARD Start locking of the driver, but only the macros are defined right now Tested on: Megahertz CC10BT/2 # (These cards are very popular on ebay these days, and run < $10 including # shipping from some sellers).
* Use __FBSDID().obrien2003-08-243-6/+10
| | | | Also some minor style cleanups.
* DSP Solutions, Inc made the XJEM1144 and XJACK ethernet cards. Updateimp2003-08-211-1/+1
| | | | MEGAHERTZ2 to DSPSI.
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-04-152-3/+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.)
* Make sure that pp_name is non-null before setting the deviceimp2003-04-101-1/+2
| | | | | description. This allows us to rely entirely on the CIS entries if necessary...
* Finish driving a stake through the heart of netns and the associatedpeter2003-03-051-5/+0
| | | | | | ifdefs scattered around the place - its dead Jim! The SMB stuff had stolen AF_NS, make it official.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-2/+2
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface driver changes:sam2002-11-141-17/+8
| | | | | | | | | | | | | | 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
* Use if_printf(ifp, "blah") instead of printf("sn%d: blah", ifp->if_unit).brooks2002-10-011-8/+7
|
* Don't bogusly depend on pcic. pccard should be enough.imp2002-08-081-1/+0
| | | | | Noticed by: jhay Forgotten about for two years by: imp
* Minor whitespace nits. remove #if 1 and #endif pair, but not code between.imp2002-07-212-7/+1
|
* Migrate to PCMCIA_CARD() macrosimp2001-11-151-9/+3
|
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingimp2001-11-111-9/+9
|
* Kill debug output for sn device. It is confusing the nativesimp2001-08-041-1/+0
|
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Another round of the <sys/queue.h> FOREACH transmogriffer.phk2001-02-041-2/+1
| | | | | Created with: sed(1) Reviewed by: md5(1)
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-2/+2
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* Use PCCARD_CIS_xxx #defines for the table of oem ids. These usuallyimp2001-01-211-5/+6
| | | | translate to all NULLs (as for all the ones in this commit).
* Add support for SMC91C100FD chip of MELCO LPC-TX.toshi2001-01-152-1/+3
| | | | | | | sn1 at port 0x240-0x24f irq 10 slot 0 on pccard0 sn1: SMC91C100FD UTP MAC address 00:a0:dc:22:26:8c Submitted by: "KOMURO" <komujun@nifty.com>
* Add isa support:imp2000-12-134-20/+18
| | | | | o write isa driver routines. o factor detach routine in sn_detach.
* Make sn_pccard_products[] staticpeter2000-11-251-1/+1
|
* Remove unneeded #include <machine/clock.h>phk2000-10-153-3/+0
|
* Implement sn_pccard_match. The match routines are the compromiseimp2000-09-281-11/+24
| | | | | | | | | | matching methods so that we can run the same driver on both NEWCARD and OLDCARD. Also set the device description to the card that we found, if any. The sn driver should be ready when the NEWCARD catches up. There's a config activation issue as well as a kernel thread issue to resolve first.
* Remove 8 unnecessary includes from phk's scriptimp2000-09-202-8/+0
|
* Implement indirection in the pccard probe/attach. This should make itimp2000-09-193-22/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | possible to have different probe/attach semantics between the two systems and yet still use the same driver for both. Compatibility methods for OLDCARD drivers. We use these routines to make it possible to call the OLDCARD driver's probe routine in the context that it expects. For OLDCARD these are implemented as pass throughs to the device_{probe,attach} routines. For NEWCARD they are implemented such such that probe becomes strictly a matching routine and attach does both the old probe and old attach. compat devices should use the following: /* Device interface */ DEVMETHOD(device_probe), pccard_compat_probe), DEVMETHOD(device_attach), pccard_compat_attach), /* Card interface */ DEVMETHOD(card_compat_match, foo_match), /* newly written */ DEVMETHOD(card_compat_probe, foo_probe), /* old probe */ DEVMETHOD(card_compat_attach, foo_attach), /* old attach */ This will allow a single driver binary image to be used for both OLDCARD and NEWCARD. Drivers wishing to not retain OLDCARD compatibility needn't do this. ep driver minorly updated. sn driver updated more than minorly. Add module dependencies to allow module to load. Also change name to if_sn. Add some debugging code. attempt to fix the cannot allocate memory problem I'd been seeing. Minor formatting nits.
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-132-5/+2
| | | | | | | | | 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
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-141-20/+0
| | | | | | | | | | | | | | | of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code. The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers. The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists. Reviewed by: freebsd-net
* Don't claim devices that we fail to probe for. Reverse the sense of a testimp2000-05-071-2/+2
| | | | | | | | so that we return failure when we've failed and succeed when we succeed. Otherwise, users always get a sn device :-(. PR: 18431 Submitted by: <sanpei@sanpei.org> MIHIRA Yoshiro-san
OpenPOWER on IntegriCloud