Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/usb/net/if_muge.c
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#define muge_warn_printf(sc, fmt, args...) \ | #define muge_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 muge_err_printf(sc, fmt, args...) \ | #define muge_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)) | ||||
/* USB endpoints. */ | /* USB endpoints. */ | ||||
enum { | enum { | ||||
MUGE_BULK_DT_RD, | MUGE_BULK_DT_RD, | ||||
MUGE_BULK_DT_WR, | MUGE_BULK_DT_WR, | ||||
▲ Show 20 Lines • Show All 2,114 Lines • Show Last 20 Lines |