driver for Silan SC92031 netdev
Subsystems (2)
PATCH 3/7 driver for Silan SC92031 netdev
From: Cesar Eduardo Barros <[email protected]>
This is a driver for the Silan SC92031/Rsltek 8139D NIC chip.
This chip is found on at least one counterfeit Encore ENL832-TX-RENT NIC [1], which came with a mini-CD with the 2.4 driver. A slightly older version of the driver was found at [2]. The main difference between them is that the newer one has a small bugfix in the RX path, a lot of gratuitous renaming of functions, all the printable strings changed to show as a "Rsltek 8139D" [sic], and a PCI ID of 8139 instead of 2031. The driver on this patch is a rewrite of the vendor drivers (based mostly on the older one).
Changes from the previous patch sent to netdev:
- Use MMIO instead of PIO
- Changed TX bounce buffers allocation
- Use skb_copy_and_csum_dev
- Several small bug fixes
- Tested for more than just a few minutes each time
[1] See http://www.encore-usa.com/faq.php under ENL832-TX-RENT for more information
[2] Look for SL_LINUX.ZIP (which is really a .tar.gz) at
http://broadbandforum.in/dataone_Intex_LAN_cardlinux-t4207-s15.html
[3] To compile on 2.6.17, simply add back the last argument to the interrupt handler in two places, and copy the boolean declarations from 2.6.19
---
drivers/net/Kconfig | 12 drivers/net/Makefile | 1 drivers/net/sc92031.c | 1620 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1633 insertions(+)
drivers/net/Kconfig renamed from drivers/net/Kconfig~driver-for-silan-sc92031-netdev +12 -0
@@ -1788,6 +1788,18 @@ config LAN_SAA9730 workstations. See <http://www.semiconductors.philips.com/pip/SAA9730_flyer_1>. +config SC92031 + tristate "Silan SC92031 PCI Fast Ethernet Adapter driver (EXPERIMENTAL)" + depends on NET_PCI && PCI && EXPERIMENTAL + select CRC32 + ---help--- + This is a driver for the Fast Ethernet PCI network cards based on + the Silan SC92031 chip (sometimes also called Rsltek 8139D). If you + have one of these, say Y here. + + To compile this driver as a module, choose M here: the module + will be called sc92031. This is recommended. + config NET_POCKET bool "Pocket and portable adapters" depends on NET_ETHERNET && PARPORT
drivers/net/Makefile renamed from drivers/net/Makefile~driver-for-silan-sc92031-netdev +1 -0
@@ -160,6 +160,7 @@ obj-$(CONFIG_APRICOT) += 82596.o obj-$(CONFIG_LASI_82596) += lasi_82596.o obj-$(CONFIG_MVME16x_NET) += 82596.o obj-$(CONFIG_BVME6000_NET) += 82596.o +obj-$(CONFIG_SC92031) += sc92031.o # This is also a 82596 and should probably be merged obj-$(CONFIG_LP486E) += lp486e.o
drivers/net/sc92031.c new file +1620 -0
1,620 lines not on this page · raw message
_
Jeff Garzik
AppliedQuoted 23 lines · [email protected] wrote:
From: Cesar Eduardo Barros <[email protected]>
This is a driver for the Silan SC92031/Rsltek 8139D NIC chip.
This chip is found on at least one counterfeit Encore ENL832-TX-RENT NIC [1], which came with a mini-CD with the 2.4 driver. A slightly older version of the driver was found at [2]. The main difference between them is that the newer one has a small bugfix in the RX path, a lot of gratuitous renaming of functions, all the printable strings changed to show as a "Rsltek 8139D" [sic], and a PCI ID of 8139 instead of 2031. The driver on this patch is a rewrite of the vendor drivers (based mostly on the older one).
Changes from the previous patch sent to netdev:
- Use MMIO instead of PIO
- Changed TX bounce buffers allocation
- Useskb_copy_and_csum_dev
- Several small bug fixes
- Tested for more than just a few minutes each time[1] See http://www.encore-usa.com/faq.php under ENL832-TX-RENT for more information
[2] Look for SL_LINUX.ZIP (which is really a .tar.gz) at
Quoted 8 lines
http://broadbandforum.in/dataone_Intex_LAN_cardlinux-t4207-s15.html[3] To compile on 2.6.17, simply add back the last argument to the interrupt handler in two places, and copy the boolean declarations from 2.6.19
[[email protected]: build fixes]Signed-off-by Cesar Eduardo Barros <[email protected]>Signed-off-by Andrew Morton <[email protected]>
applied