Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/usb/net/if_smsc.c
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | |||||
#define smsc_warn_printf(sc, fmt, args...) \ | #define smsc_warn_printf(sc, fmt, args...) \ | ||||
device_printf((sc)->sc_ue.ue_dev, "warning: " fmt, ##args) | device_printf((sc)->sc_ue.ue_dev, "warning: " fmt, ##args) | ||||
#define smsc_err_printf(sc, fmt, args...) \ | #define smsc_err_printf(sc, fmt, args...) \ | ||||
device_printf((sc)->sc_ue.ue_dev, "error: " fmt, ##args) | device_printf((sc)->sc_ue.ue_dev, "error: " fmt, ##args) | ||||
#define ETHER_IS_ZERO(addr) \ | |||||
(!(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5])) | |||||
#define ETHER_IS_VALID(addr) \ | #define ETHER_IS_VALID(addr) \ | ||||
(!ETHER_IS_MULTICAST(addr) && !ETHER_IS_ZERO(addr)) | (!ETHER_IS_MULTICAST(addr) && !ETHER_IS_ZERO(addr)) | ||||
static device_probe_t smsc_probe; | static device_probe_t smsc_probe; | ||||
static device_attach_t smsc_attach; | static device_attach_t smsc_attach; | ||||
static device_detach_t smsc_detach; | static device_detach_t smsc_detach; | ||||
static usb_callback_t smsc_bulk_read_callback; | static usb_callback_t smsc_bulk_read_callback; | ||||
▲ Show 20 Lines • Show All 1,630 Lines • Show Last 20 Lines |