aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/et
Commit message (Collapse)AuthorAgeFilesLines
* Converted the remainder of the NIC drivers to use the mii_attach()Marius Strobl2010-10-151-4/+4
| | | | | | | | | | introduced in r213878 instead of mii_phy_probe(). Unlike r213893 these are only straight forward conversions though. Reviewed by: yongari Notes: svn path=/head/; revision=213894
* Make sure to clear IFF_DRV_RUNNING to reinitialize controller.Pyun YongHyeon2010-09-211-0/+2
| | | | | | | | While I'm here update if_oerrors counter when driver encounters watchdog timeout. Notes: svn path=/head/; revision=212969
* Change copyright holder to author. We prefer using a real legalXin LI2010-07-303-3/+3
| | | | | | | | | | entity for copyright holders. Approved by: sephe MFC after: 3 days Notes: svn path=/head/; revision=210661
* Only Tx checksum offloading is supported now. Remove experimentalPyun YongHyeon2009-11-201-1/+1
| | | | | | | code sneaked in r199611. Notes: svn path=/head/; revision=199613
* Add __FBSDID.Pyun YongHyeon2009-11-201-1/+3
| | | | Notes: svn path=/head/; revision=199612
* Add IPv4/TCP/UDP Tx checksum offloading support. It seems thePyun YongHyeon2009-11-202-6/+43
| | | | | | | | | controller also has support for IP/TCP checksum offloading for Rx path. But I failed to find to way to enable Rx MAC to compute the checksum of received frames. Notes: svn path=/head/; revision=199611
* Because we know received bytes including CRC there is no reason toPyun YongHyeon2009-11-201-4/+2
| | | | | | | | | call m_adj(9). The controller also seems to have a capability to strip CRC bytes but I failed to activate this feature except for loopback traffic. Notes: svn path=/head/; revision=199610
* Add initial endianness support. It seems the controller supportsPyun YongHyeon2009-11-201-14/+14
| | | | | | | | | both big-endian and little-endian format in descriptors for Rx path but I couldn't find equivalent feature in Tx path. So just stick to little-endian for now. Notes: svn path=/head/; revision=199609
* Remove unnecessary structure packing.Pyun YongHyeon2009-11-201-4/+4
| | | | Notes: svn path=/head/; revision=199608
* Fix copy & paste error and remove extra space before colon.Pyun YongHyeon2009-11-191-2/+2
| | | | | | | Pointed out by: danfe Notes: svn path=/head/; revision=199563
* Use capability pointer to access PCIe registers rather thanPyun YongHyeon2009-11-191-18/+26
| | | | | | | | | | | | | directly access them at fixed address. Frequently the register offset could be changed if additional PCI capabilities are added to controller. One odd thing is ET_PCIR_L0S_L1_LATENCY register. I think it's PCIe link capabilities register but the location of the register does not match with PCIe capability pointer + offset. I'm not sure it's shadow register of PCIe link capabilities register. Notes: svn path=/head/; revision=199561
* Use bus_{read,write}_4 rather than bus_space_{read,write}_4.Pyun YongHyeon2009-11-192-6/+2
| | | | Notes: svn path=/head/; revision=199558
* style(9)Pyun YongHyeon2009-11-191-59/+59
| | | | Notes: svn path=/head/; revision=199556
* Remove extra spce at the EOL.Pyun YongHyeon2009-11-193-12/+12
| | | | Notes: svn path=/head/; revision=199553
* Add MSI support.Pyun YongHyeon2009-11-192-10/+44
| | | | Notes: svn path=/head/; revision=199552
* Destroy driver mutex in device detach.Pyun YongHyeon2009-11-191-1/+2
| | | | Notes: svn path=/head/; revision=199551
* Remove support code for FreeBSD 6.x versions.Pyun YongHyeon2009-11-191-5/+0
| | | | Notes: svn path=/head/; revision=199550
* Remove complex macros that were used to compute bits values.Pyun YongHyeon2009-11-193-221/+198
| | | | | | | | | | Although these macros may have its own strength, its complex definition make hard to read the code. Approved by: delphij Notes: svn path=/head/; revision=199548
* Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/Robert Watson2009-06-261-2/+2
| | | | | | | | | | | | | | | | IF_ADDR_UNLOCK() across network device drivers when accessing the per-interface multicast address list, if_multiaddrs. This will allow us to change the locking strategy without affecting our driver programming interface or binary interface. For two wireless drivers, remove unnecessary locking, since they don't actually access the multicast address list. Approved by: re (kib) MFC after: 6 weeks Notes: svn path=/head/; revision=195049
* Don't leak DMA map if not freed.Xin LI2008-07-111-0/+2
| | | | | | | Submitted by: kevlo Notes: svn path=/head/; revision=180453
* Add et(4), a port of DragonFly's Agere ET1310 10/100/GigabitXin LI2008-06-203-0/+3104
Ethernet device driver, written by sephe@ Obtained from: DragonFly Sponsored by: iXsystems MFC after: 2 weeks Notes: svn path=/head/; revision=179895