Light description for led-set

Very light description for port_led_set and led_sets, which was
helpfull when bringing up the trendnet device.
This commit is contained in:
diijkstra
2026-03-13 21:43:22 +01:00
parent 511d35f63d
commit d5fdaf28e8
+7
View File
@@ -49,7 +49,9 @@ struct sfp_port
typedef struct machine { typedef struct machine {
char machine_name[30]; char machine_name[30];
uint8_t isRTL8373; uint8_t isRTL8373;
// Lowest logical port number
uint8_t min_port; uint8_t min_port;
// Highest logical port number
uint8_t max_port; uint8_t max_port;
uint8_t n_sfp; uint8_t n_sfp;
uint8_t log_to_phys_port[9]; uint8_t log_to_phys_port[9];
@@ -59,7 +61,12 @@ typedef struct machine {
struct sfp_port sfp_port[2]; struct sfp_port sfp_port[2];
uint8_t reset_pin; uint8_t reset_pin;
struct high_leds high_leds; struct high_leds high_leds;
// Defines which led-set (0-3) will be used for given logical port
// led-set is physical group of LEDs that can be configured to show different port status combinations (see port_led_set below)
uint8_t port_led_set[9]; uint8_t port_led_set[9];
// Defines led-set configuration, applied to all ports using particular led-set
// Each led-set can have 4 different hardware LED configurations. Which one should be used, depends how LED is wired on the board
// See stock RTL837X_REG_LED3_2_SETx and RTL837X_REG_LED1_0_SETx registers for reference configuration
uint32_t led_sets[4][4]; uint32_t led_sets[4][4];
uint8_t led_mux_custom; uint8_t led_mux_custom;
uint8_t led_mux[28]; uint8_t led_mux[28];