diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-09-13 01:06:31 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-05-09 18:17:29 +0100 |
commit | eb750e16c825f48a94b45e60ec99b3251916d37f (patch) | |
tree | 2c8e9d404eb271773d5e22079fb45722de5b322b /drivers/net/phy/sff.h | |
parent | 8469a5a363b4b899488ce47917b1f01f4edf1670 (diff) |
net: sfp: display SFP module information [*not for mainline*]
Display SFP module information verbosely, splitting the generic parts
into a separate file.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/net/phy/sff.h')
-rw-r--r-- | drivers/net/phy/sff.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/phy/sff.h b/drivers/net/phy/sff.h new file mode 100644 index 000000000000..cd7bb7c7ae4a --- /dev/null +++ b/drivers/net/phy/sff.h @@ -0,0 +1,16 @@ +#ifndef SFF_H +#define SFF_H + +struct sff_bitfield { + unsigned int mask; + unsigned int val; + const char *str; +}; + +const char *sff_link_len(char *buf, size_t size, unsigned int length, + unsigned int multiplier); +const char *sff_bitfield(char *buf, size_t size, + const struct sff_bitfield *bits, unsigned int val); +const char *sff_connector(unsigned int connector); +const char *sff_encoding(unsigned int encoding); +#endif |