diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-09-13 01:06:31 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-11-03 13:38:48 +0000 |
commit | 78f675abd0d00e355a9d9d6324625cbea5e6246f (patch) | |
tree | ef42a84d2aa9e130592a3e007a38d052375fd769 /drivers/net/phy/sff.h | |
parent | 9c1eb01f4cc8f99b18bdc688b46a3253ee4760c9 (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 |