diff --git a/machine/DEFAULT_8C_1SFP.c b/machine/DEFAULT_8C_1SFP.c deleted file mode 100644 index 2a923596..00000000 --- a/machine/DEFAULT_8C_1SFP.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - .machine_name = MACHINE_MODEL, - .isRTL8373 = 1, - .min_port = 0, - .max_port = 8, - .n_sfp = 1, - .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, - .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 0}, - .led_sets = { { LEDS_2G5 | LEDS_TWO_PAIR_1G | LEDS_1G | LEDS_500M | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G | LEDS_TWO_PAIR_5G | LEDS_5G | LEDS_TWO_PAIR_2G5, - LEDS_2G5 | LEDS_LINK, - LEDS_1G | LEDS_LINK, - LEDS_2G5 | LEDS_LINK | LEDS_ACT }, - }, -}; diff --git a/machine/DEFAULT_8C_1SFP.c b/machine/DEFAULT_8C_1SFP.c new file mode 120000 index 00000000..f00039af --- /dev/null +++ b/machine/DEFAULT_8C_1SFP.c @@ -0,0 +1 @@ +KP_9000_9XH_X_EU.c \ No newline at end of file diff --git a/machine/FNS1200P.c b/machine/FNS1200P.c deleted file mode 100644 index 71334029..00000000 --- a/machine/FNS1200P.c +++ /dev/null @@ -1,55 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - .machine_name = MACHINE_MODEL, - .isRTL8373 = 0, - .min_port = 3, - .max_port = 8, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, - .is_sfp = {0, 0, 0, 2, 0, 0, 0, 0, 1}, - - /* Left SFP (logical 8, SDS1): GPIO30=ModAbs, GPIO37=RX_LOS */ - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - /* Right SFP (logical 3, SDS0): GPIO50=ModAbs, GPIO51=RX_LOS */ - .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, - .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 0, - .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO_NA, - - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - - /* Copper ports use SET0; SFP ports use SET1 */ - .port_led_set = {0, 0, 0, 1, 0, 0, 0, 0, 1}, - - .led_sets = { - { /* SET0: copper — LED0=amber (2.5G), LED2=green (1G/100M/10M) */ - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - 0, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0 - }, - { /* SET1: SFP — all speeds link/act */ - LEDS_10G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0, 0 - }, - }, - - .led_mux_custom = 1, - .led_mux = { - 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, /* GPIO0-7: unused */ - 0x0f, 0x0c, 0x0d, 0x0e, 0x10, 0x11, 0x12, /* GPIO8-14 */ - 0x14, 0x15, 0x16, 0x18, 0x19, 0x1a, /* GPIO15-20 */ - 0x1c, 0x1d, 0x1e, 0x20, 0x21, 0x22, 0x23 /* GPIO21-27 */ - }, -}; diff --git a/machine/FNS1200P.c b/machine/FNS1200P.c new file mode 120000 index 00000000..c836c871 --- /dev/null +++ b/machine/FNS1200P.c @@ -0,0 +1 @@ +PCB_K0402WS_V2.c \ No newline at end of file diff --git a/machine/HASIVO_S1100WP_8GT_1SX_SE.c b/machine/HASIVO_S1100WP_8GT_1SX_SE.c deleted file mode 100644 index 7500ba94..00000000 --- a/machine/HASIVO_S1100WP_8GT_1SX_SE.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - .machine_name = MACHINE_MODEL, - .isRTL8373 = 1, - .mac_flash_offset = 0x1FC000, - .min_port = 0, - .max_port = 8, - .n_sfp = 1, - .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, - .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO54_ACL_BIT2_EN, - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, - .led_sets = { { LEDS_2G5 | LEDS_LINK | LEDS_ACT, // Green LED (right) - 0, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Amber LED (left) - 0 - }, - { LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, // SFP LED - 0, - 0, - 0 - }, - }, -}; diff --git a/machine/HASIVO_S1100WP_8GT_1SX_SE.c b/machine/HASIVO_S1100WP_8GT_1SX_SE.c new file mode 120000 index 00000000..1fc0cdb2 --- /dev/null +++ b/machine/HASIVO_S1100WP_8GT_1SX_SE.c @@ -0,0 +1 @@ +SWTGW218AS.c \ No newline at end of file diff --git a/machine/PCB_K0402WS_V2.c b/machine/PCB_K0402WS_V2.c index c37e6201..71334029 100644 --- a/machine/PCB_K0402WS_V2.c +++ b/machine/PCB_K0402WS_V2.c @@ -1,7 +1,7 @@ #include "machine_defs.h" __code const struct machine machine = { - .machine_name = MACHINE_MODEL, + .machine_name = MACHINE_MODEL, .isRTL8373 = 0, .min_port = 3, .max_port = 8, diff --git a/machine/SKS3200_8E1X.c b/machine/SKS3200_8E1X.c new file mode 120000 index 00000000..2eb54be2 --- /dev/null +++ b/machine/SKS3200_8E1X.c @@ -0,0 +1 @@ +PCB_SWTG018AS_V2_1_0.c \ No newline at end of file diff --git a/machine/SKS3200_8E1X.h b/machine/SKS3200_8E1X.h new file mode 100644 index 00000000..e644baf4 --- /dev/null +++ b/machine/SKS3200_8E1X.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_SKS3200_8E1X_H_ +#define _MACHINE_SKS3200_8E1X_H_ + +#define MACHINE_MODEL "XikeStor SKS3200-8E1X" + +#endif +