Introduce mue_eeprom_present to check if the EEPROM is present.
authorkevlo <kevlo@openbsd.org>
Wed, 15 Aug 2018 07:13:51 +0000 (07:13 +0000)
committerkevlo <kevlo@openbsd.org>
Wed, 15 Aug 2018 07:13:51 +0000 (07:13 +0000)
commita20dd8f554d1b6b2f5e949cfbb48f5cd1cc22dbd
tree2e6f8498747915ff3fcb0815199e5b4b3747cd80
parentb2fd490a7d46f842813d53d302f1bac63e2c37a5
Introduce mue_eeprom_present to check if the EEPROM is present.
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.
sys/dev/usb/if_mue.c
sys/dev/usb/if_muereg.h