summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/mac_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/mac_impl.h')
-rw-r--r--usr/src/uts/common/sys/mac_impl.h15
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