diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-12-11 13:30:49 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-12-11 13:30:49 +0000 |
commit | c59963322525df96a856035c21b158ce2ab8c99d (patch) | |
tree | 3fd3e4f204fb7107ec70f094cc3583f1572443ae /sys/ofed | |
parent | 8fd2c598fd103bd31d2fed70e9fc760d8dc2691f (diff) | |
download | FreeBSD-src-c59963322525df96a856035c21b158ce2ab8c99d.zip FreeBSD-src-c59963322525df96a856035c21b158ce2ab8c99d.tar.gz |
MFC r291693:
Add some structures and defines which will be used when decoding small
form factor, SFF, standards compliant ethernet EEPROMs.
Obtained from: Linux
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/include/linux/etherdevice.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/ofed/include/linux/etherdevice.h b/sys/ofed/include/linux/etherdevice.h index d863651..c50dc5d 100644 --- a/sys/ofed/include/linux/etherdevice.h +++ b/sys/ofed/include/linux/etherdevice.h @@ -37,6 +37,25 @@ #include <linux/types.h> +#define ETH_MODULE_SFF_8079 1 +#define ETH_MODULE_SFF_8079_LEN 256 +#define ETH_MODULE_SFF_8472 2 +#define ETH_MODULE_SFF_8472_LEN 512 +#define ETH_MODULE_SFF_8636 3 +#define ETH_MODULE_SFF_8636_LEN 256 +#define ETH_MODULE_SFF_8436 4 +#define ETH_MODULE_SFF_8436_LEN 256 + +struct ethtool_eeprom { + u32 offset; + u32 len; +}; + +struct ethtool_modinfo { + u32 type; + u32 eeprom_len; +}; + /** * is_zero_ether_addr - Determine if give Ethernet address is all zeros. * @addr: Pointer to a six-byte array containing the Ethernet address |