diff options
| author | Robert Mustacchi <rm@joyent.com> | 2017-04-25 09:21:09 -0700 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2017-05-12 16:25:39 +0000 |
| commit | 88647b1f8a054be3ea3387eac468e599079c79cd (patch) | |
| tree | fec31149d1b048840a913c3b5eb02464348b0fe0 /usr/src/uts/common/sys/mac_impl.h | |
| parent | d654e31c434d823a86f5384955fc7c6b7b7ada3e (diff) | |
| download | illumos-joyent-88647b1f8a054be3ea3387eac468e599079c79cd.tar.gz | |
OS-6092 Want means of toggling data link LEDs
OS-6093 e1000g MAC_CAPAB_LED support
OS-6094 i40e MAC_CAPAB_LED support
OS-6095 igb MAC_CAPAB_LED support
Reviewed by: Cody Mello <melloc@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>
Diffstat (limited to 'usr/src/uts/common/sys/mac_impl.h')
| -rw-r--r-- | usr/src/uts/common/sys/mac_impl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/mac_impl.h b/usr/src/uts/common/sys/mac_impl.h index 1bbaf9810b..12937cea1b 100644 --- a/usr/src/uts/common/sys/mac_impl.h +++ b/usr/src/uts/common/sys/mac_impl.h @@ -481,6 +481,12 @@ struct mac_impl_s { mac_capab_transceiver_t mi_transceiver; /* + * LED Capability information. SL protected. + */ + mac_led_mode_t mi_led_modes; + mac_capab_led_t mi_led; + + /* * MAC address list. SL protected. */ mac_address_t *mi_addresses; @@ -930,6 +936,15 @@ extern int mac_transceiver_info(mac_handle_t, uint_t, boolean_t *, boolean_t *); extern int mac_transceiver_read(mac_handle_t, uint_t, uint_t, void *, size_t, off_t, size_t *); +/* + * MAC LED related functions + */ +#define MAC_LED_ALL (MAC_LED_DEFAULT | MAC_LED_OFF | MAC_LED_IDENT | \ + MAC_LED_ON) +extern void mac_led_init(mac_impl_t *); +extern int mac_led_get(mac_handle_t, mac_led_mode_t *, mac_led_mode_t *); +extern int mac_led_set(mac_handle_t, mac_led_mode_t); + #ifdef __cplusplus } #endif |
