summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sis.c
AgeCommit message (Collapse)Author
2002-11-22off by one for sis_tx_cnt, can lead to corrupt sis_tx_list; ok fgs@Markus Friedl
2002-11-20Read mac address correctly on rev 0x90; tested by Alexander, patchFederico G. Schwindt
provided from FreeBSD via Gabriel Gonzalez. jason@ ok.
2002-11-19Add a simplistic table driven lookup routine and use it where appropriate.Jason Wright
2002-07-31aaron: sync THEN access =)Jason Wright
2002-07-05Typo; stobe -> strobeAaron Campbell
2002-07-03Fix some major brain damage where I was performing arithmetic on aAaron Campbell
physical address with a virtual address; thanks art@. Now sis(4) compiles and works on alpha.
2002-07-02bus_dma'ify, works on an SiS900 and a Netgear FA411. Thanks to wilfried@ forAaron Campbell
testing.
2002-03-25support 630ETi; from wyllie@dilex.netMichael Shalayeff
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-15Don't cast nonexistent return value from splx to (void). ok art@Thomas Nordin
2002-02-08Partial sync with FreeBSD, mostly bugfixes from Luigi Rizzo (ok jason@)Chris Cappuccio
-Remove m_devget on non-STRICT_ALIGNMENT architectures, supposedly a 50-70% performance increase for peak packet forwarding on the Soekris 486/133 on fbsd -Fix a bug in the driver -- under load, the receive unit could become idle and the driver would not detect the event, requiring userland to cycle the interface to bring it up again. The fix consists in adding SIS_IMR_RX_IDLE to the interrupt mask and add a command in sis_intr() to restart the receiver when this happens. -While at it, make the test of status bits more efficient -Slightly simplify the code to initialize the ring buffers -Add VLAN support (Accept Long Packets)
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-09-23Read the MAC address correctly from 630EA1-based sis(4) devices. Should fixAaron Campbell
problems people have been reporting of this nature with the SiS network devices found on some motherboards; fixes pr#2085. Patch by peter@, jason@ ok Also, some space vs tab fixes while we're here.
2001-08-25Change pci_intr_map to take pci_attach_args as an argument.Artur Grabowski
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.
2001-08-12remove redundant vm includesMichael Shalayeff
2001-06-27ALTQ'ify network drivers.Kenjiro Cho
- 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).
2001-06-24more ether_input_mbuf() conversion.Federico G. Schwindt
2001-05-10Simplify probe routine.Aaron Campbell
2001-03-14Disable PME mode in sis_reset() to fix a problem with the DP83815 chip onAaron Campbell
some motherboards; from FreeBSD.
2001-03-12Add support for reading the MAC address from the APC CMOS RAM in theAaron Campbell
integrated Ethernet controller on the SiS630E-based chipsets; from FreeBSD, this patch mostly by jason@. With these changes, my SiS900 card still works fine, but the new functionality is actually untested.
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2001-02-20sync with freebsd:Jason Wright
use LIST_FOREACH construct instead of homebrew loop
2000-12-06new timeouts, proper spl()s; aaron@ okMichael Shalayeff
2000-10-16Use mii_attach() directly instead of mii_phy_probe().Aaron Campbell
2000-08-25Sync with FreeBSD. Summary of changes:Aaron Campbell
- Modify to poll link state and positively set MAC's duplex as needed. - Program some DP83815 registers that are recommended for optimum performance. - Select the TX DMA burst size correctly for 10 and 100Mbps modes, especially improving the performance of the DP83815 at 10Mbps.
2000-07-06Fix a minor bug in the MAC address unscrambling code. From FreeBSD.Aaron Campbell
2000-07-06Add support for the National Semiconductor DP83815 Fast Ethernet chip.Aaron Campbell
This chip is currently being used on the NetGear FA312-TX adapter, which is presumably a replacement for the PNIC-based FA310-TX. From FreeBSD.
2000-02-15make sure to call ether_{add,del}multi() as appropriate in xxx_ioctl()Jason Wright
1999-12-08Remove unused #define cruft.Aaron Campbell
1999-12-04Driver for SiS 900/7016 Ethernet; from FreeBSD.Aaron Campbell