summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_ste.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kill a few more casts that aren't helpful. ok krw miodtedu2011-06-221-5/+4
|
* use nitems(); no binary change for drivers that are compiled on amd64.jasper2011-04-031-2/+2
| | | | ok claudio@
* - consistify cfdriver for the ethernet drivers (0 -> NULL)jasper2009-08-131-2/+2
| | | | ok dlg@
* A few more simple cases of shutdown hooks which only call xxstop, whenderaadt2009-08-101-12/+1
| | | | we now know the interface has already been stopped
* Eliminate the redundant bits of code for MTU and multicast handlingbrad2008-11-281-17/+10
| | | | | | | | | | | | | | from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
* First step towards cleaning up the Ethernet driver ioctl handling.brad2008-10-021-9/+2
| | | | | | | | | | | | | | | | | | | | Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
* Convert timeout_add() calls using multiples of hz to timeout_add_sec()blambert2008-09-101-3/+3
| | | | | | | Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
* Add missing '};' to end struct declaration. Compiles again.krw2007-07-171-1/+2
|
* ident/ansify/de-registerjasper2007-07-171-140/+117
|
* uncomment call to ste_miibus_statchg in ste_stats_update.brad2006-07-081-7/+5
|
* unknown ioctl is ENOTTY not EINVALjason2006-05-281-2/+2
|
* add another PCI id to the ste(4) driver.brad2006-04-021-3/+4
| | | | From the Sundance Linux driver.
* allow bpf(4) to ignore packets based on their direction (inbound ordjm2006-03-251-3/+4
| | | | | outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
* - splimp -> splnetbrad2005-11-071-11/+8
| | | | | | | | - remove spl's from attach - removing redundant checks before pci_mapreg_map() - fix dmesg printing - de-allocate resources on failure to attach - remove unused VLAN input code from vge(4)
* - a few fixes from the FreeBSD driverbrad2005-09-101-67/+74
| | | | | - make use of pci_mapreg_map() - ensure driver cleans after itself if ste_attach() fails
* do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ okmickey2005-08-091-6/+2
|
* clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.brad2005-07-021-3/+3
|
* o if the mac address cannot be read, just fail and disestablish thefgsch2005-04-211-14/+32
| | | | | | | | | | | irq (for shared irq's) on failure. (should other drivers do the same?) o if it's a rev 0x12 card, only use the first phy as it reports a non-existent one as well (From FreeBSD). o remove splimp/splx from ste_attach(). o some cleanup. thanks to matt at mattroberts dot org and paolo at actcom dot net dot il for testing; commit deraadt@.
* remove dmesg spewage when link changes, ok deraadt, brad, canacarbeck2005-04-081-3/+1
|
* make sure interface is in RUNNING state before touching the multicast filtersbrad2005-01-151-2/+3
| | | | | | | | From NetBSD NetBSD PR 27678 for details ok mcbride@
* - Use ETHER_MAX_DIX_LEN.brad2004-11-211-6/+11
| | | | - Accept VLAN sized frames. based on diff from canacar@
* vaddr_t casts for vtophys, works on amd64, enabled in GENERICcanacar2004-10-301-7/+7
| | | | | patch submitted and tested by Steffen Schütz, schuetz.steffen at melle de ok tedu@
* don't need to set ifp->if_mtu or ifp->if_output in each driver,brad2004-09-231-3/+1
| | | | | | {ether,atm,fddi}_ifattach already does this. ok mcbride@ markus@ henning@
* Do check for STATS_OFLOW in interrupt handler. The overflow interrupt iscanacar2004-08-221-7/+1
| | | | | | already disabled and the status update function fails to clear the overflow, causing high interrupt load. Reported and tested by Arvid Grøtting. ok deraadt@
* update ste(4) with stability and performance fixes fromcanacar2004-08-091-98/+156
| | | | | FreeBSD if_ste.c revisions 1.28, 1.29, 1.38, 1.43, 1.63, 1.68, 1.70 ok henning@
* Multicast cleanupsmcbride2004-06-061-29/+8
| | | | | | | | - make multicast ranges work - replace handrolled crc code with ether_crc32_{be,le}() - add missing calls to ether_{add,del}multi() ok deraadt@
* do not whine if we cannot get mbufs. the countless printfd makes the machinehenning2004-04-091-7/+2
| | | | | | crawl under mbuf starvation, making the situationmuch worse, and don't make sense in the first place. ok tdeval@ millert@ beck@ deraadt@
* lose ste_unit; jason@ okavsm2003-06-291-21/+20
|
* another bad format string; %s->%davsm2003-06-291-2/+2
| | | | ok tedu@
* Get rid of the remaining vm_offset_t in pci drivers.art2003-01-151-2/+2
|
* Add a simplistic table driven lookup routine and use it where appropriate.jason2002-11-191-12/+7
|
* First round of __P removal in sysmillert2002-03-141-40/+40
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* Change pci_intr_map to take pci_attach_args as an argument.art2001-08-251-3/+2
| | | | | | | | | | | All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
* remove redundant vm includesmickey2001-08-121-2/+1
|
* ALTQ'ify network drivers.kjc2001-06-271-6/+7
| | | | | | | | | | | - use the new queue macros. - use IFQ_POLL() to peek at the next packet. - use IFQ_IS_EMPTY() for empty check. - drivers should always check if (m == NULL) after IFQ_DEQUEUE(), since it could return NULL even when IFQ_IS_EMPTY() is FALSE under rate-limiting. - drivers are supposed to call if_start from tx complete interrupts (in order to trigger the next dequeue under rate-limiting).
* trivial ether_input_mbuf() conversion.fgsch2001-06-251-6/+3
|
* for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okmickey2001-02-201-5/+1
|
* new timeoutsmickey2001-02-031-5/+7
|
* Use mii_attach() directly instead of mii_phy_probe().aaron2000-10-161-2/+3
|
* Make this driver work. When I ported it from FreeBSD, somehow a line got leftaaron2000-06-271-1/+2
| | | | | out. :-( It was never noticed until now since I didn't have an actual D-Link 550TX card to test with. Thanks to Gardner Cohen for sending me one of these.
* make sure to call ether_{add,del}multi() as appropriate in xxx_ioctl()jason2000-02-151-3/+13
|
* Remove unused #define cruft.aaron1999-12-081-9/+1
|
* Whoops; forgot to bump FreeBSD version numbers.aaron1999-12-081-2/+2
|
* Sync with FreeBSD:aaron1999-12-081-131/+109
| | | | | | - Use TX descriptor polling, similar to the xl driver, to reduce TX overhead. - As in if_sf, reset PHY when switching modes. - Remove unused code that was #ifdef foo'd out.
* remove freebsd bridging stuff, and let ALL packets go to ether_input()jason1999-12-071-39/+1
|
* Driver for Sundance ST201 Ethernet; from FreeBSD.aaron1999-12-071-0/+1573