summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_mue.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* In mue_iff() move the initialization of the hash table up so that is donemestre2018-09-191-4/+2
| | | | | | | | | | | | unconditionally, like it's done on other devices, so that we don't end up in the situation of the card being put in promiscuous mode or if ac->ac_multirangecnt > 0 and then we would write into the table while being uninitialized a little bit later. Noticed on Coverity ID 1473316. hint from claudio@ and kettenis@ OK kevlo@ claudio@
* Introduce mue_eeprom_present to check if the EEPROM is present.kevlo2018-08-151-9/+49
| | | | | | When the EEPROM is not populated, set the MAC config register MUE_MAC_CR_AUTO_SPEED. While there, encode the MAC address for the onboard USB Ethernet for the Rasperry Pi, like smsc(4) does.
* avoid using a value uninitialisedjsg2018-08-041-1/+2
| | | | ok kevlo@
* - use memset() for for clearing hashtblkevlo2018-08-031-6/+2
| | | | | | | - the switch case for IFM_100_TX was the same code as for IFM_1000_T so it can be rolled into one. From Michael W. Bombardieri
* Add mue(4), a driver for Microchip LAN75xx/LAN78xx 10/100/1000 USB Ethernetkevlo2018-08-031-0/+1354
adapters. "go ahead commit it" deraadt@