ksz9477_driver.h File Reference

KSZ9477 7-port Gigabit Ethernet switch driver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define KSZ9477_PORT1   1
 
#define KSZ9477_PORT2   2
 
#define KSZ9477_PORT3   3
 
#define KSZ9477_PORT4   4
 
#define KSZ9477_PORT5   5
 
#define KSZ9477_PORT6   6
 
#define KSZ9477_PORT7   7
 
#define KSZ9477_PORT_MASK   0x7F
 
#define KSZ9477_PORT1_MASK   0x01
 
#define KSZ9477_PORT2_MASK   0x02
 
#define KSZ9477_PORT3_MASK   0x04
 
#define KSZ9477_PORT4_MASK   0x08
 
#define KSZ9477_PORT5_MASK   0x10
 
#define KSZ9477_PORT6_MASK   0x20
 
#define KSZ9477_PORT7_MASK   0x40
 
#define KSZ9477_SPI_CMD_WRITE   0x40000000
 
#define KSZ9477_SPI_CMD_READ   0x60000000
 
#define KSZ9477_SPI_CMD_ADDR   0x001FFFE0
 
#define KSZ9477_STATIC_MAC_TABLE_SIZE   16
 
#define KSZ9477_DYNAMIC_MAC_TABLE_SIZE   4096
 
#define KSZ9477_TAIL_TAG_NORMAL_ADDR_LOOKUP   0x0400
 
#define KSZ9477_TAIL_TAG_PORT_BLOCKING_OVERRIDE   0x0200
 
#define KSZ9477_TAIL_TAG_PRIORITY   0x0180
 
#define KSZ9477_TAIL_TAG_DEST_PORT7   0x0040
 
#define KSZ9477_TAIL_TAG_DEST_PORT6   0x0020
 
#define KSZ9477_TAIL_TAG_DEST_PORT5   0x0010
 
#define KSZ9477_TAIL_TAG_DEST_PORT4   0x0008
 
#define KSZ9477_TAIL_TAG_DEST_PORT3   0x0004
 
#define KSZ9477_TAIL_TAG_DEST_PORT2   0x0002
 
#define KSZ9477_TAIL_TAG_DEST_PORT1   0x0001
 
#define KSZ9477_TAIL_TAG_PTP_MSG   0x80
 
#define KSZ9477_TAIL_TAG_SRC_PORT   0x07
 
#define KSZ9477_BMCR   0x00
 
#define KSZ9477_BMSR   0x01
 
#define KSZ9477_PHYID1   0x02
 
#define KSZ9477_PHYID2   0x03
 
#define KSZ9477_ANAR   0x04
 
#define KSZ9477_ANLPAR   0x05
 
#define KSZ9477_ANER   0x06
 
#define KSZ9477_ANNPR   0x07
 
#define KSZ9477_ANLPNPR   0x08
 
#define KSZ9477_GBCR   0x09
 
#define KSZ9477_GBSR   0x0A
 
#define KSZ9477_MMDACR   0x0D
 
#define KSZ9477_MMDAADR   0x0E
 
#define KSZ9477_GBESR   0x0F
 
#define KSZ9477_RLB   0x11
 
#define KSZ9477_LINKMD   0x12
 
#define KSZ9477_DPMAPCSS   0x13
 
#define KSZ9477_RXERCTR   0x15
 
#define KSZ9477_ICSR   0x1B
 
#define KSZ9477_AUTOMDI   0x1C
 
#define KSZ9477_PHYCON   0x1F
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_A   0x01, 0xAC
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_B   0x01, 0xAD
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_C   0x01, 0xAE
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_D   0x01, 0xAF
 
#define KSZ9477_MMD_LED_MODE   0x02, 0x00
 
#define KSZ9477_MMD_EEE_ADV   0x07, 0x3C
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG0   0x1C, 0x25
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG1   0x1C, 0x26
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG2   0x1C, 0x27
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG3   0x1C, 0x28
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG4   0x1C, 0x29
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG5   0x1C, 0x2A
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG6   0x1C, 0x2B
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG7   0x1C, 0x2C
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG8   0x1C, 0x2D
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG9   0x1C, 0x2E
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG10   0x1C, 0x2F
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG11   0x1C, 0x30
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG12   0x1C, 0x31
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG13   0x1C, 0x32
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG14   0x1C, 0x33
 
#define KSZ9477_MMD_QUIET_WIRE_CONFIG15   0x1C, 0x34
 
#define KSZ9477_CHIP_ID0   0x0000
 
#define KSZ9477_CHIP_ID1   0x0001
 
#define KSZ9477_CHIP_ID2   0x0002
 
#define KSZ9477_CHIP_ID3   0x0003
 
#define KSZ9477_PME_PIN_CTRL   0x0006
 
#define KSZ9477_GLOBAL_INT_STAT   0x0010
 
#define KSZ9477_GLOBAL_INT_MASK   0x0014
 
#define KSZ9477_GLOBAL_PORT_INT_STAT   0x0018
 
#define KSZ9477_GLOBAL_PORT_INT_MASK   0x001C
 
#define KSZ9477_SERIAL_IO_CTRL   0x0100
 
#define KSZ9477_OUT_CLK_CTRL   0x0103
 
#define KSZ9477_IBA_CTRL   0x0104
 
#define KSZ9477_IO_DRIVE_STRENGTH   0x010D
 
#define KSZ9477_IBA_OP_STAT1   0x0110
 
#define KSZ9477_LED_OVERRIDE   0x0120
 
#define KSZ9477_LED_OUTPUT   0x0124
 
#define KSZ9477_LED2_0_LED2_1_SRC   0x0128
 
#define KSZ9477_PWR_DOWN_CTRL0   0x0201
 
#define KSZ9477_LED_STRAP_IN   0x0210
 
#define KSZ9477_SWITCH_OP   0x0300
 
#define KSZ9477_SWITCH_MAC_ADDR0   0x0302
 
#define KSZ9477_SWITCH_MAC_ADDR1   0x0303
 
#define KSZ9477_SWITCH_MAC_ADDR2   0x0304
 
#define KSZ9477_SWITCH_MAC_ADDR3   0x0305
 
#define KSZ9477_SWITCH_MAC_ADDR4   0x0306
 
#define KSZ9477_SWITCH_MAC_ADDR5   0x0307
 
#define KSZ9477_SWITCH_MTU   0x0308
 
#define KSZ9477_SWITCH_ISP_TPID   0x030A
 
#define KSZ9477_SWITCH_HSR_TPID   0x030C
 
#define KSZ9477_AVB_CBS_STRATEGY   0x030E
 
#define KSZ9477_SWITCH_LUE_CTRL0   0x0310
 
#define KSZ9477_SWITCH_LUE_CTRL1   0x0311
 
#define KSZ9477_SWITCH_LUE_CTRL2   0x0312
 
#define KSZ9477_SWITCH_LUE_CTRL3   0x0313
 
#define KSZ9477_ALU_TABLE_INT   0x0314
 
#define KSZ9477_ALU_TABLE_MASK   0x0315
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX0   0x0316
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX1   0x0318
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX2   0x031A
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL   0x0320
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL   0x0324
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL   0x0328
 
#define KSZ9477_SWITCH_MAC_CTRL0   0x0330
 
#define KSZ9477_SWITCH_MAC_CTRL1   0x0331
 
#define KSZ9477_SWITCH_MAC_CTRL2   0x0332
 
#define KSZ9477_SWITCH_MAC_CTRL3   0x0333
 
#define KSZ9477_SWITCH_MAC_CTRL4   0x0334
 
#define KSZ9477_SWITCH_MAC_CTRL5   0x0335
 
#define KSZ9477_SWITCH_MIB_CTRL   0x0336
 
#define KSZ9477_802_1P_PRIO_MAPPING0   0x0338
 
#define KSZ9477_802_1P_PRIO_MAPPING1   0x0339
 
#define KSZ9477_802_1P_PRIO_MAPPING2   0x033A
 
#define KSZ9477_802_1P_PRIO_MAPPING3   0x033B
 
#define KSZ9477_IP_DIFFSERV_PRIO_EN   0x033E
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING0   0x0340
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING1   0x0341
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING2   0x0342
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING3   0x0343
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING4   0x0344
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING5   0x0345
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING6   0x0346
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING7   0x0347
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING8   0x0348
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING9   0x0349
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING10   0x034A
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING11   0x034B
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING12   0x034C
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING13   0x034D
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING14   0x034E
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING15   0x034F
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING16   0x0350
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING17   0x0351
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING18   0x0352
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING19   0x0353
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING20   0x0354
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING21   0x0355
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING22   0x0356
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING23   0x0357
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING24   0x0358
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING25   0x0359
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING26   0x035A
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING27   0x035B
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING28   0x035C
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING29   0x035D
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING30   0x035E
 
#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING31   0x035F
 
#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL   0x0370
 
#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING   0x0378
 
#define KSZ9477_PTP_EVENT_MSG_PRIO   0x037C
 
#define KSZ9477_PTP_NON_EVENT_MSG_PRIO   0x037D
 
#define KSZ9477_QUEUE_MGMT_CTRL0   0x0390
 
#define KSZ9477_VLAN_TABLE_ENTRY0   0x0400
 
#define KSZ9477_VLAN_TABLE_ENTRY1   0x0404
 
#define KSZ9477_VLAN_TABLE_ENTRY2   0x0408
 
#define KSZ9477_VLAN_TABLE_INDEX   0x040C
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL   0x040E
 
#define KSZ9477_ALU_TABLE_INDEX0   0x0410
 
#define KSZ9477_ALU_TABLE_INDEX1   0x0414
 
#define KSZ9477_ALU_TABLE_CTRL   0x0418
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL   0x041C
 
#define KSZ9477_ALU_TABLE_ENTRY1   0x0420
 
#define KSZ9477_STATIC_TABLE_ENTRY1   0x0420
 
#define KSZ9477_ALU_TABLE_ENTRY2   0x0424
 
#define KSZ9477_STATIC_TABLE_ENTRY2   0x0424
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2   0x0424
 
#define KSZ9477_ALU_TABLE_ENTRY3   0x0428
 
#define KSZ9477_STATIC_TABLE_ENTRY3   0x0428
 
#define KSZ9477_ALU_TABLE_ENTRY4   0x042C
 
#define KSZ9477_STATIC_TABLE_ENTRY4   0x042C
 
#define KSZ9477_GLOBAL_HSR_ALU_INDEX1   0x0444
 
#define KSZ9477_GLOBAL_HSR_ALU_INDEX2   0x0448
 
#define KSZ9477_GLOBAL_HSR_ALU_ACCESS_CTRL   0x0450
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_A   0x0454
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_B   0x0458
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_C   0x045C
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_D   0x0460
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_E   0x0464
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_F   0x0468
 
#define KSZ9477_GLOBAL_HSR_ALU_VALUE_G   0x046C
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL   0x0500
 
#define KSZ9477_GLOBAL_PTP_RTC_CLK_PHASE   0x0502
 
#define KSZ9477_GLOBAL_PTP_RTC_CLK_NS_H   0x0504
 
#define KSZ9477_GLOBAL_PTP_RTC_CLK_NS_L   0x0506
 
#define KSZ9477_GLOBAL_PTP_RTC_CLK_S_H   0x0508
 
#define KSZ9477_GLOBAL_PTP_RTC_CLK_S_L   0x050A
 
#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H   0x050C
 
#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_L   0x050E
 
#define KSZ9477_GLOBAL_PTP_CLK_TEMP_ADJ_DURATION_H   0x0510
 
#define KSZ9477_GLOBAL_PTP_CLK_TEMP_ADJ_DURATION_L   0x0512
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1   0x0514
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2   0x0516
 
#define KSZ9477_GLOBAL_PTP_DOMAIN_VERSION   0x0518
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX   0x0520
 
#define KSZ9477_GPIO_STATUS_MONITOR0   0x0524
 
#define KSZ9477_GPIO_STATUS_MONITOR1   0x0528
 
#define KSZ9477_TS_CTRL_STAT   0x052C
 
#define KSZ9477_TOU_TARGET_TIME_NS   0x0530
 
#define KSZ9477_TOU_TARGET_TIME_S   0x0534
 
#define KSZ9477_TOU_CTRL1   0x0538
 
#define KSZ9477_TOU_CTRL2   0x053C
 
#define KSZ9477_TOU_CTRL3   0x0540
 
#define KSZ9477_TOU_CTRL4   0x0544
 
#define KSZ9477_TOU_CTRL5   0x0548
 
#define KSZ9477_TS_STAT_CTRL   0x0550
 
#define KSZ9477_TS_SAMPLE1_TIME_NS   0x0554
 
#define KSZ9477_TS_SAMPLE1_TIME_S   0x0558
 
#define KSZ9477_TS_SAMPLE1_TIME_PHASE   0x055C
 
#define KSZ9477_TS_SAMPLE2_TIME_NS   0x0560
 
#define KSZ9477_TS_SAMPLE2_TIME_S   0x0564
 
#define KSZ9477_TS_SAMPLE2_TIME_PHASE   0x0568
 
#define KSZ9477_TS_SAMPLE3_TIME_NS   0x056C
 
#define KSZ9477_TS_SAMPLE3_TIME_S   0x0570
 
#define KSZ9477_TS_SAMPLE3_TIME_PHASE   0x0574
 
#define KSZ9477_TS_SAMPLE4_TIME_NS   0x0578
 
#define KSZ9477_TS_SAMPLE4_TIME_S   0x057C
 
#define KSZ9477_TS_SAMPLE4_TIME_PHASE   0x0580
 
#define KSZ9477_TS_SAMPLE5_TIME_NS   0x0584
 
#define KSZ9477_TS_SAMPLE5_TIME_S   0x0588
 
#define KSZ9477_TS_SAMPLE5_TIME_PHASE   0x058C
 
#define KSZ9477_TS_SAMPLE6_TIME_NS   0x0590
 
#define KSZ9477_TS_SAMPLE6_TIME_S   0x0594
 
#define KSZ9477_TS_SAMPLE6_TIME_PHASE   0x0598
 
#define KSZ9477_TS_SAMPLE7_TIME_NS   0x059C
 
#define KSZ9477_TS_SAMPLE7_TIME_S   0x05A0
 
#define KSZ9477_TS_SAMPLE7_TIME_PHASE   0x05A4
 
#define KSZ9477_TS_SAMPLE8_TIME_NS   0x05A8
 
#define KSZ9477_TS_SAMPLE8_TIME_S   0x05AC
 
#define KSZ9477_TS_SAMPLE8_TIME_PHASE   0x05B0
 
#define KSZ9477_GLOBAL_DLR_SRC_PORT   0x0604
 
#define KSZ9477_GLOBAL_DLR_SRC_IP_ADDR   0x0608
 
#define KSZ9477_GLOBAL_DLR_CTRL   0x0610
 
#define KSZ9477_GLOBAL_DLR_STATE   0x0611
 
#define KSZ9477_GLOBAL_DLR_SUPERVISOR_PRECEDENT   0x0612
 
#define KSZ9477_GLOBAL_DLR_BEACON_INTERVAL   0x0614
 
#define KSZ9477_GLOBAL_DLR_BEACON_TIMEOUT   0x0618
 
#define KSZ9477_GLOBAL_DLR_BEACON_TIMEOUT_WINDOW   0x061C
 
#define KSZ9477_GLOBAL_DLR_VLAN   0x0620
 
#define KSZ9477_GLOBAL_DLR_DEST_ADDR   0x0622
 
#define KSZ9477_GLOBAL_DLR_PORT_MAP   0x0628
 
#define KSZ9477_GLOBAL_DLR_CLASS   0x062C
 
#define KSZ9477_GLOBAL_HSR_PORT_MAP   0x0640
 
#define KSZ9477_GLOBAL_HSR_AME_CTRL0   0x0644
 
#define KSZ9477_GLOBAL_HSR_AME_CTRL1   0x0645
 
#define KSZ9477_GLOBAL_HSR_AME_AGE_PERIOD   0x0648
 
#define KSZ9477_GLOBAL_HSR_AME_INT   0x064C
 
#define KSZ9477_GLOBAL_HSR_AME_INT_MASK   0x064D
 
#define KSZ9477_PORT1_DEFAULT_TAG0   0x1000
 
#define KSZ9477_PORT1_DEFAULT_TAG1   0x1001
 
#define KSZ9477_PORT1_PME_WOL_EVENT   0x1013
 
#define KSZ9477_PORT1_PME_WOL_EN   0x1017
 
#define KSZ9477_PORT1_INT_STATUS   0x101B
 
#define KSZ9477_PORT1_INT_MASK   0x101F
 
#define KSZ9477_PORT1_OP_CTRL0   0x1020
 
#define KSZ9477_PORT1_STATUS   0x1030
 
#define KSZ9477_PORT1_MAC_CTRL0   0x1400
 
#define KSZ9477_PORT1_MAC_CTRL1   0x1401
 
#define KSZ9477_PORT1_IG_RATE_LIMIT_CTRL   0x1403
 
#define KSZ9477_PORT1_PRIO0_IG_LIMIT_CTRL   0x1410
 
#define KSZ9477_PORT1_PRIO1_IG_LIMIT_CTRL   0x1411
 
#define KSZ9477_PORT1_PRIO2_IG_LIMIT_CTRL   0x1412
 
#define KSZ9477_PORT1_PRIO3_IG_LIMIT_CTRL   0x1413
 
#define KSZ9477_PORT1_PRIO4_IG_LIMIT_CTRL   0x1414
 
#define KSZ9477_PORT1_PRIO5_IG_LIMIT_CTRL   0x1415
 
#define KSZ9477_PORT1_PRIO6_IG_LIMIT_CTRL   0x1416
 
#define KSZ9477_PORT1_PRIO7_IG_LIMIT_CTRL   0x1417
 
#define KSZ9477_PORT1_QUEUE0_EG_LIMIT_CTRL   0x1420
 
#define KSZ9477_PORT1_QUEUE1_EG_LIMIT_CTRL   0x1421
 
#define KSZ9477_PORT1_QUEUE2_EG_LIMIT_CTRL   0x1422
 
#define KSZ9477_PORT1_QUEUE3_EG_LIMIT_CTRL   0x1423
 
#define KSZ9477_PORT1_MIB_CTRL_STAT   0x1500
 
#define KSZ9477_PORT1_MIB_DATA   0x1504
 
#define KSZ9477_PORT1_ACL_ACCESS0   0x1600
 
#define KSZ9477_PORT1_ACL_ACCESS1   0x1601
 
#define KSZ9477_PORT1_ACL_ACCESS2   0x1602
 
#define KSZ9477_PORT1_ACL_ACCESS3   0x1603
 
#define KSZ9477_PORT1_ACL_ACCESS4   0x1604
 
#define KSZ9477_PORT1_ACL_ACCESS5   0x1605
 
#define KSZ9477_PORT1_ACL_ACCESS6   0x1606
 
#define KSZ9477_PORT1_ACL_ACCESS7   0x1607
 
#define KSZ9477_PORT1_ACL_ACCESS8   0x1608
 
#define KSZ9477_PORT1_ACL_ACCESS9   0x1609
 
#define KSZ9477_PORT1_ACL_ACCESS10   0x160A
 
#define KSZ9477_PORT1_ACL_ACCESS11   0x160B
 
#define KSZ9477_PORT1_ACL_ACCESS12   0x160C
 
#define KSZ9477_PORT1_ACL_ACCESS13   0x160D
 
#define KSZ9477_PORT1_ACL_ACCESS14   0x160E
 
#define KSZ9477_PORT1_ACL_ACCESS15   0x160F
 
#define KSZ9477_PORT1_ACL_BYTE_EN_MSB   0x1610
 
#define KSZ9477_PORT1_ACL_BYTE_EN_LSB   0x1611
 
#define KSZ9477_PORT1_ACL_ACCESS_CTRL0   0x1612
 
#define KSZ9477_PORT1_ACL_ACCESS_CTRL1   0x1613
 
#define KSZ9477_PORT1_MIRRORING_CTRL   0x1800
 
#define KSZ9477_PORT1_PRIO_CTRL   0x1801
 
#define KSZ9477_PORT1_IG_MAC_CTRL   0x1802
 
#define KSZ9477_PORT1_AUTH_CTRL   0x1803
 
#define KSZ9477_PORT1_PTR   0x1804
 
#define KSZ9477_PORT1_PRIO_TO_QUEUE_MAPPING   0x1808
 
#define KSZ9477_PORT1_POLICE_CTRL   0x180C
 
#define KSZ9477_PORT1_POLICE_QUEUE_RATE   0x1820
 
#define KSZ9477_PORT1_POLICE_QUEUE_BURST_SIZE   0x1824
 
#define KSZ9477_PORT1_WRED_PKT_MEM_CTRL0   0x1830
 
#define KSZ9477_PORT1_WRED_PKT_MEM_CTRL1   0x1834
 
#define KSZ9477_PORT1_WRED_QUEUE_CTRL0   0x1840
 
#define KSZ9477_PORT1_WRED_QUEUE_CTRL1   0x1844
 
#define KSZ9477_PORT1_WRED_QUEUE_PERF_MON_CTRL   0x1848
 
#define KSZ9477_PORT1_TX_QUEUE_INDEX   0x1900
 
#define KSZ9477_PORT1_TX_QUEUE_PVID   0x1904
 
#define KSZ9477_PORT1_TX_QUEUE_CTRL0   0x1914
 
#define KSZ9477_PORT1_TX_QUEUE_CTRL1   0x1915
 
#define KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL0   0x1916
 
#define KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL1   0x1918
 
#define KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL2   0x191A
 
#define KSZ9477_PORT1_TAS_CTRL   0x1920
 
#define KSZ9477_PORT1_TAS_EVENT_INDEX   0x1923
 
#define KSZ9477_PORT1_TAS_EVENT   0x1924
 
#define KSZ9477_PORT1_CTRL0   0x1A00
 
#define KSZ9477_PORT1_CTRL1   0x1A04
 
#define KSZ9477_PORT1_CTRL2   0x1B00
 
#define KSZ9477_PORT1_MSTP_PTR   0x1B01
 
#define KSZ9477_PORT1_MSTP_STATE   0x1B04
 
#define KSZ9477_PORT1_PTP_RX_LATENCY   0x1C00
 
#define KSZ9477_PORT1_PTP_TX_LATENCY   0x1C02
 
#define KSZ9477_PORT1_PTP_ASYM_CORRECTION   0x1C04
 
#define KSZ9477_PORT1_PTP_XDLY_REQ_TSH   0x1C08
 
#define KSZ9477_PORT1_PTP_XDLY_REQ_TSL   0x1C0A
 
#define KSZ9477_PORT1_PTP_SYNC_TSH   0x1C0C
 
#define KSZ9477_PORT1_PTP_SYNC_TSL   0x1C0E
 
#define KSZ9477_PORT1_PTP_PDLY_RESP_TSH   0x1C10
 
#define KSZ9477_PORT1_PTP_PDLY_RESP_TSL   0x1C12
 
#define KSZ9477_PORT1_PTP_TS_INT_STAT   0x1C14
 
#define KSZ9477_PORT1_PTP_TS_INT_EN   0x1C16
 
#define KSZ9477_PORT1_PTP_LINK_DELAY   0x1C18
 
#define KSZ9477_PORT2_DEFAULT_TAG0   0x2000
 
#define KSZ9477_PORT2_DEFAULT_TAG1   0x2001
 
#define KSZ9477_PORT2_PME_WOL_EVENT   0x2013
 
#define KSZ9477_PORT2_PME_WOL_EN   0x2017
 
#define KSZ9477_PORT2_INT_STATUS   0x201B
 
#define KSZ9477_PORT2_INT_MASK   0x201F
 
#define KSZ9477_PORT2_OP_CTRL0   0x2020
 
#define KSZ9477_PORT2_STATUS   0x2030
 
#define KSZ9477_PORT2_MAC_CTRL0   0x2400
 
#define KSZ9477_PORT2_MAC_CTRL1   0x2401
 
#define KSZ9477_PORT2_IG_RATE_LIMIT_CTRL   0x2403
 
#define KSZ9477_PORT2_PRIO0_IG_LIMIT_CTRL   0x2410
 
#define KSZ9477_PORT2_PRIO1_IG_LIMIT_CTRL   0x2411
 
#define KSZ9477_PORT2_PRIO2_IG_LIMIT_CTRL   0x2412
 
#define KSZ9477_PORT2_PRIO3_IG_LIMIT_CTRL   0x2413
 
#define KSZ9477_PORT2_PRIO4_IG_LIMIT_CTRL   0x2414
 
#define KSZ9477_PORT2_PRIO5_IG_LIMIT_CTRL   0x2415
 
#define KSZ9477_PORT2_PRIO6_IG_LIMIT_CTRL   0x2416
 
#define KSZ9477_PORT2_PRIO7_IG_LIMIT_CTRL   0x2417
 
#define KSZ9477_PORT2_QUEUE0_EG_LIMIT_CTRL   0x2420
 
#define KSZ9477_PORT2_QUEUE1_EG_LIMIT_CTRL   0x2421
 
#define KSZ9477_PORT2_QUEUE2_EG_LIMIT_CTRL   0x2422
 
#define KSZ9477_PORT2_QUEUE3_EG_LIMIT_CTRL   0x2423
 
#define KSZ9477_PORT2_MIB_CTRL_STAT   0x2500
 
#define KSZ9477_PORT2_MIB_DATA   0x2504
 
#define KSZ9477_PORT2_ACL_ACCESS0   0x2600
 
#define KSZ9477_PORT2_ACL_ACCESS1   0x2601
 
#define KSZ9477_PORT2_ACL_ACCESS2   0x2602
 
#define KSZ9477_PORT2_ACL_ACCESS3   0x2603
 
#define KSZ9477_PORT2_ACL_ACCESS4   0x2604
 
#define KSZ9477_PORT2_ACL_ACCESS5   0x2605
 
#define KSZ9477_PORT2_ACL_ACCESS6   0x2606
 
#define KSZ9477_PORT2_ACL_ACCESS7   0x2607
 
#define KSZ9477_PORT2_ACL_ACCESS8   0x2608
 
#define KSZ9477_PORT2_ACL_ACCESS9   0x2609
 
#define KSZ9477_PORT2_ACL_ACCESS10   0x260A
 
#define KSZ9477_PORT2_ACL_ACCESS11   0x260B
 
#define KSZ9477_PORT2_ACL_ACCESS12   0x260C
 
#define KSZ9477_PORT2_ACL_ACCESS13   0x260D
 
#define KSZ9477_PORT2_ACL_ACCESS14   0x260E
 
#define KSZ9477_PORT2_ACL_ACCESS15   0x260F
 
#define KSZ9477_PORT2_ACL_BYTE_EN_MSB   0x2610
 
#define KSZ9477_PORT2_ACL_BYTE_EN_LSB   0x2611
 
#define KSZ9477_PORT2_ACL_ACCESS_CTRL0   0x2612
 
#define KSZ9477_PORT2_ACL_ACCESS_CTRL1   0x2613
 
#define KSZ9477_PORT2_MIRRORING_CTRL   0x2800
 
#define KSZ9477_PORT2_PRIO_CTRL   0x2801
 
#define KSZ9477_PORT2_IG_MAC_CTRL   0x2802
 
#define KSZ9477_PORT2_AUTH_CTRL   0x2803
 
#define KSZ9477_PORT2_PTR   0x2804
 
#define KSZ9477_PORT2_PRIO_TO_QUEUE_MAPPING   0x2808
 
#define KSZ9477_PORT2_POLICE_CTRL   0x280C
 
#define KSZ9477_PORT2_POLICE_QUEUE_RATE   0x2820
 
#define KSZ9477_PORT2_POLICE_QUEUE_BURST_SIZE   0x2824
 
#define KSZ9477_PORT2_WRED_PKT_MEM_CTRL0   0x2830
 
#define KSZ9477_PORT2_WRED_PKT_MEM_CTRL1   0x2834
 
#define KSZ9477_PORT2_WRED_QUEUE_CTRL0   0x2840
 
#define KSZ9477_PORT2_WRED_QUEUE_CTRL1   0x2844
 
#define KSZ9477_PORT2_WRED_QUEUE_PERF_MON_CTRL   0x2848
 
#define KSZ9477_PORT2_TX_QUEUE_INDEX   0x2900
 
#define KSZ9477_PORT2_TX_QUEUE_PVID   0x2904
 
#define KSZ9477_PORT2_TX_QUEUE_CTRL0   0x2914
 
#define KSZ9477_PORT2_TX_QUEUE_CTRL1   0x2915
 
#define KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL0   0x2916
 
#define KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL1   0x2918
 
#define KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL2   0x291A
 
#define KSZ9477_PORT2_TAS_CTRL   0x2920
 
#define KSZ9477_PORT2_TAS_EVENT_INDEX   0x2923
 
#define KSZ9477_PORT2_TAS_EVENT   0x2924
 
#define KSZ9477_PORT2_CTRL0   0x2A00
 
#define KSZ9477_PORT2_CTRL1   0x2A04
 
#define KSZ9477_PORT2_CTRL2   0x2B00
 
#define KSZ9477_PORT2_MSTP_PTR   0x2B01
 
#define KSZ9477_PORT2_MSTP_STATE   0x2B04
 
#define KSZ9477_PORT2_PTP_RX_LATENCY   0x2C00
 
#define KSZ9477_PORT2_PTP_TX_LATENCY   0x2C02
 
#define KSZ9477_PORT2_PTP_ASYM_CORRECTION   0x2C04
 
#define KSZ9477_PORT2_PTP_XDLY_REQ_TSH   0x2C08
 
#define KSZ9477_PORT2_PTP_XDLY_REQ_TSL   0x2C0A
 
#define KSZ9477_PORT2_PTP_SYNC_TSH   0x2C0C
 
#define KSZ9477_PORT2_PTP_SYNC_TSL   0x2C0E
 
#define KSZ9477_PORT2_PTP_PDLY_RESP_TSH   0x2C10
 
#define KSZ9477_PORT2_PTP_PDLY_RESP_TSL   0x2C12
 
#define KSZ9477_PORT2_PTP_TS_INT_STAT   0x2C14
 
#define KSZ9477_PORT2_PTP_TS_INT_EN   0x2C16
 
#define KSZ9477_PORT2_PTP_LINK_DELAY   0x2C18
 
#define KSZ9477_PORT3_DEFAULT_TAG0   0x3000
 
#define KSZ9477_PORT3_DEFAULT_TAG1   0x3001
 
#define KSZ9477_PORT3_PME_WOL_EVENT   0x3013
 
#define KSZ9477_PORT3_PME_WOL_EN   0x3017
 
#define KSZ9477_PORT3_INT_STATUS   0x301B
 
#define KSZ9477_PORT3_INT_MASK   0x301F
 
#define KSZ9477_PORT3_OP_CTRL0   0x3020
 
#define KSZ9477_PORT3_STATUS   0x3030
 
#define KSZ9477_PORT3_MAC_CTRL0   0x3400
 
#define KSZ9477_PORT3_MAC_CTRL1   0x3401
 
#define KSZ9477_PORT3_IG_RATE_LIMIT_CTRL   0x3403
 
#define KSZ9477_PORT3_PRIO0_IG_LIMIT_CTRL   0x3410
 
#define KSZ9477_PORT3_PRIO1_IG_LIMIT_CTRL   0x3411
 
#define KSZ9477_PORT3_PRIO2_IG_LIMIT_CTRL   0x3412
 
#define KSZ9477_PORT3_PRIO3_IG_LIMIT_CTRL   0x3413
 
#define KSZ9477_PORT3_PRIO4_IG_LIMIT_CTRL   0x3414
 
#define KSZ9477_PORT3_PRIO5_IG_LIMIT_CTRL   0x3415
 
#define KSZ9477_PORT3_PRIO6_IG_LIMIT_CTRL   0x3416
 
#define KSZ9477_PORT3_PRIO7_IG_LIMIT_CTRL   0x3417
 
#define KSZ9477_PORT3_QUEUE0_EG_LIMIT_CTRL   0x3420
 
#define KSZ9477_PORT3_QUEUE1_EG_LIMIT_CTRL   0x3421
 
#define KSZ9477_PORT3_QUEUE2_EG_LIMIT_CTRL   0x3422
 
#define KSZ9477_PORT3_QUEUE3_EG_LIMIT_CTRL   0x3423
 
#define KSZ9477_PORT3_MIB_CTRL_STAT   0x3500
 
#define KSZ9477_PORT3_MIB_DATA   0x3504
 
#define KSZ9477_PORT3_ACL_ACCESS0   0x3600
 
#define KSZ9477_PORT3_ACL_ACCESS1   0x3601
 
#define KSZ9477_PORT3_ACL_ACCESS2   0x3602
 
#define KSZ9477_PORT3_ACL_ACCESS3   0x3603
 
#define KSZ9477_PORT3_ACL_ACCESS4   0x3604
 
#define KSZ9477_PORT3_ACL_ACCESS5   0x3605
 
#define KSZ9477_PORT3_ACL_ACCESS6   0x3606
 
#define KSZ9477_PORT3_ACL_ACCESS7   0x3607
 
#define KSZ9477_PORT3_ACL_ACCESS8   0x3608
 
#define KSZ9477_PORT3_ACL_ACCESS9   0x3609
 
#define KSZ9477_PORT3_ACL_ACCESS10   0x360A
 
#define KSZ9477_PORT3_ACL_ACCESS11   0x360B
 
#define KSZ9477_PORT3_ACL_ACCESS12   0x360C
 
#define KSZ9477_PORT3_ACL_ACCESS13   0x360D
 
#define KSZ9477_PORT3_ACL_ACCESS14   0x360E
 
#define KSZ9477_PORT3_ACL_ACCESS15   0x360F
 
#define KSZ9477_PORT3_ACL_BYTE_EN_MSB   0x3610
 
#define KSZ9477_PORT3_ACL_BYTE_EN_LSB   0x3611
 
#define KSZ9477_PORT3_ACL_ACCESS_CTRL0   0x3612
 
#define KSZ9477_PORT3_ACL_ACCESS_CTRL1   0x3613
 
#define KSZ9477_PORT3_MIRRORING_CTRL   0x3800
 
#define KSZ9477_PORT3_PRIO_CTRL   0x3801
 
#define KSZ9477_PORT3_IG_MAC_CTRL   0x3802
 
#define KSZ9477_PORT3_AUTH_CTRL   0x3803
 
#define KSZ9477_PORT3_PTR   0x3804
 
#define KSZ9477_PORT3_PRIO_TO_QUEUE_MAPPING   0x3808
 
#define KSZ9477_PORT3_POLICE_CTRL   0x380C
 
#define KSZ9477_PORT3_POLICE_QUEUE_RATE   0x3820
 
#define KSZ9477_PORT3_POLICE_QUEUE_BURST_SIZE   0x3824
 
#define KSZ9477_PORT3_WRED_PKT_MEM_CTRL0   0x3830
 
#define KSZ9477_PORT3_WRED_PKT_MEM_CTRL1   0x3834
 
#define KSZ9477_PORT3_WRED_QUEUE_CTRL0   0x3840
 
#define KSZ9477_PORT3_WRED_QUEUE_CTRL1   0x3844
 
#define KSZ9477_PORT3_WRED_QUEUE_PERF_MON_CTRL   0x3848
 
#define KSZ9477_PORT3_TX_QUEUE_INDEX   0x3900
 
#define KSZ9477_PORT3_TX_QUEUE_PVID   0x3904
 
#define KSZ9477_PORT3_TX_QUEUE_CTRL0   0x3914
 
#define KSZ9477_PORT3_TX_QUEUE_CTRL1   0x3915
 
#define KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL0   0x3916
 
#define KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL1   0x3918
 
#define KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL2   0x391A
 
#define KSZ9477_PORT3_TAS_CTRL   0x3920
 
#define KSZ9477_PORT3_TAS_EVENT_INDEX   0x3923
 
#define KSZ9477_PORT3_TAS_EVENT   0x3924
 
#define KSZ9477_PORT3_CTRL0   0x3A00
 
#define KSZ9477_PORT3_CTRL1   0x3A04
 
#define KSZ9477_PORT3_CTRL2   0x3B00
 
#define KSZ9477_PORT3_MSTP_PTR   0x3B01
 
#define KSZ9477_PORT3_MSTP_STATE   0x3B04
 
#define KSZ9477_PORT3_PTP_RX_LATENCY   0x3C00
 
#define KSZ9477_PORT3_PTP_TX_LATENCY   0x3C02
 
#define KSZ9477_PORT3_PTP_ASYM_CORRECTION   0x3C04
 
#define KSZ9477_PORT3_PTP_XDLY_REQ_TSH   0x3C08
 
#define KSZ9477_PORT3_PTP_XDLY_REQ_TSL   0x3C0A
 
#define KSZ9477_PORT3_PTP_SYNC_TSH   0x3C0C
 
#define KSZ9477_PORT3_PTP_SYNC_TSL   0x3C0E
 
#define KSZ9477_PORT3_PTP_PDLY_RESP_TSH   0x3C10
 
#define KSZ9477_PORT3_PTP_PDLY_RESP_TSL   0x3C12
 
#define KSZ9477_PORT3_PTP_TS_INT_STAT   0x3C14
 
#define KSZ9477_PORT3_PTP_TS_INT_EN   0x3C16
 
#define KSZ9477_PORT3_PTP_LINK_DELAY   0x3C18
 
#define KSZ9477_PORT4_DEFAULT_TAG0   0x4000
 
#define KSZ9477_PORT4_DEFAULT_TAG1   0x4001
 
#define KSZ9477_PORT4_PME_WOL_EVENT   0x4013
 
#define KSZ9477_PORT4_PME_WOL_EN   0x4017
 
#define KSZ9477_PORT4_INT_STATUS   0x401B
 
#define KSZ9477_PORT4_INT_MASK   0x401F
 
#define KSZ9477_PORT4_OP_CTRL0   0x4020
 
#define KSZ9477_PORT4_STATUS   0x4030
 
#define KSZ9477_PORT4_MAC_CTRL0   0x4400
 
#define KSZ9477_PORT4_MAC_CTRL1   0x4401
 
#define KSZ9477_PORT4_IG_RATE_LIMIT_CTRL   0x4403
 
#define KSZ9477_PORT4_PRIO0_IG_LIMIT_CTRL   0x4410
 
#define KSZ9477_PORT4_PRIO1_IG_LIMIT_CTRL   0x4411
 
#define KSZ9477_PORT4_PRIO2_IG_LIMIT_CTRL   0x4412
 
#define KSZ9477_PORT4_PRIO3_IG_LIMIT_CTRL   0x4413
 
#define KSZ9477_PORT4_PRIO4_IG_LIMIT_CTRL   0x4414
 
#define KSZ9477_PORT4_PRIO5_IG_LIMIT_CTRL   0x4415
 
#define KSZ9477_PORT4_PRIO6_IG_LIMIT_CTRL   0x4416
 
#define KSZ9477_PORT4_PRIO7_IG_LIMIT_CTRL   0x4417
 
#define KSZ9477_PORT4_QUEUE0_EG_LIMIT_CTRL   0x4420
 
#define KSZ9477_PORT4_QUEUE1_EG_LIMIT_CTRL   0x4421
 
#define KSZ9477_PORT4_QUEUE2_EG_LIMIT_CTRL   0x4422
 
#define KSZ9477_PORT4_QUEUE3_EG_LIMIT_CTRL   0x4423
 
#define KSZ9477_PORT4_MIB_CTRL_STAT   0x4500
 
#define KSZ9477_PORT4_MIB_DATA   0x4504
 
#define KSZ9477_PORT4_ACL_ACCESS0   0x4600
 
#define KSZ9477_PORT4_ACL_ACCESS1   0x4601
 
#define KSZ9477_PORT4_ACL_ACCESS2   0x4602
 
#define KSZ9477_PORT4_ACL_ACCESS3   0x4603
 
#define KSZ9477_PORT4_ACL_ACCESS4   0x4604
 
#define KSZ9477_PORT4_ACL_ACCESS5   0x4605
 
#define KSZ9477_PORT4_ACL_ACCESS6   0x4606
 
#define KSZ9477_PORT4_ACL_ACCESS7   0x4607
 
#define KSZ9477_PORT4_ACL_ACCESS8   0x4608
 
#define KSZ9477_PORT4_ACL_ACCESS9   0x4609
 
#define KSZ9477_PORT4_ACL_ACCESS10   0x460A
 
#define KSZ9477_PORT4_ACL_ACCESS11   0x460B
 
#define KSZ9477_PORT4_ACL_ACCESS12   0x460C
 
#define KSZ9477_PORT4_ACL_ACCESS13   0x460D
 
#define KSZ9477_PORT4_ACL_ACCESS14   0x460E
 
#define KSZ9477_PORT4_ACL_ACCESS15   0x460F
 
#define KSZ9477_PORT4_ACL_BYTE_EN_MSB   0x4610
 
#define KSZ9477_PORT4_ACL_BYTE_EN_LSB   0x4611
 
#define KSZ9477_PORT4_ACL_ACCESS_CTRL0   0x4612
 
#define KSZ9477_PORT4_ACL_ACCESS_CTRL1   0x4613
 
#define KSZ9477_PORT4_MIRRORING_CTRL   0x4800
 
#define KSZ9477_PORT4_PRIO_CTRL   0x4801
 
#define KSZ9477_PORT4_IG_MAC_CTRL   0x4802
 
#define KSZ9477_PORT4_AUTH_CTRL   0x4803
 
#define KSZ9477_PORT4_PTR   0x4804
 
#define KSZ9477_PORT4_PRIO_TO_QUEUE_MAPPING   0x4808
 
#define KSZ9477_PORT4_POLICE_CTRL   0x480C
 
#define KSZ9477_PORT4_POLICE_QUEUE_RATE   0x4820
 
#define KSZ9477_PORT4_POLICE_QUEUE_BURST_SIZE   0x4824
 
#define KSZ9477_PORT4_WRED_PKT_MEM_CTRL0   0x4830
 
#define KSZ9477_PORT4_WRED_PKT_MEM_CTRL1   0x4834
 
#define KSZ9477_PORT4_WRED_QUEUE_CTRL0   0x4840
 
#define KSZ9477_PORT4_WRED_QUEUE_CTRL1   0x4844
 
#define KSZ9477_PORT4_WRED_QUEUE_PERF_MON_CTRL   0x4848
 
#define KSZ9477_PORT4_TX_QUEUE_INDEX   0x4900
 
#define KSZ9477_PORT4_TX_QUEUE_PVID   0x4904
 
#define KSZ9477_PORT4_TX_QUEUE_CTRL0   0x4914
 
#define KSZ9477_PORT4_TX_QUEUE_CTRL1   0x4915
 
#define KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL0   0x4916
 
#define KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL1   0x4918
 
#define KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL2   0x491A
 
#define KSZ9477_PORT4_TAS_CTRL   0x4920
 
#define KSZ9477_PORT4_TAS_EVENT_INDEX   0x4923
 
#define KSZ9477_PORT4_TAS_EVENT   0x4924
 
#define KSZ9477_PORT4_CTRL0   0x4A00
 
#define KSZ9477_PORT4_CTRL1   0x4A04
 
#define KSZ9477_PORT4_CTRL2   0x4B00
 
#define KSZ9477_PORT4_MSTP_PTR   0x4B01
 
#define KSZ9477_PORT4_MSTP_STATE   0x4B04
 
#define KSZ9477_PORT4_PTP_RX_LATENCY   0x4C00
 
#define KSZ9477_PORT4_PTP_TX_LATENCY   0x4C02
 
#define KSZ9477_PORT4_PTP_ASYM_CORRECTION   0x4C04
 
#define KSZ9477_PORT4_PTP_XDLY_REQ_TSH   0x4C08
 
#define KSZ9477_PORT4_PTP_XDLY_REQ_TSL   0x4C0A
 
#define KSZ9477_PORT4_PTP_SYNC_TSH   0x4C0C
 
#define KSZ9477_PORT4_PTP_SYNC_TSL   0x4C0E
 
#define KSZ9477_PORT4_PTP_PDLY_RESP_TSH   0x4C10
 
#define KSZ9477_PORT4_PTP_PDLY_RESP_TSL   0x4C12
 
#define KSZ9477_PORT4_PTP_TS_INT_STAT   0x4C14
 
#define KSZ9477_PORT4_PTP_TS_INT_EN   0x4C16
 
#define KSZ9477_PORT4_PTP_LINK_DELAY   0x4C18
 
#define KSZ9477_PORT5_DEFAULT_TAG0   0x5000
 
#define KSZ9477_PORT5_DEFAULT_TAG1   0x5001
 
#define KSZ9477_PORT5_PME_WOL_EVENT   0x5013
 
#define KSZ9477_PORT5_PME_WOL_EN   0x5017
 
#define KSZ9477_PORT5_INT_STATUS   0x501B
 
#define KSZ9477_PORT5_INT_MASK   0x501F
 
#define KSZ9477_PORT5_OP_CTRL0   0x5020
 
#define KSZ9477_PORT5_STATUS   0x5030
 
#define KSZ9477_PORT5_MAC_CTRL0   0x5400
 
#define KSZ9477_PORT5_MAC_CTRL1   0x5401
 
#define KSZ9477_PORT5_IG_RATE_LIMIT_CTRL   0x5403
 
#define KSZ9477_PORT5_PRIO0_IG_LIMIT_CTRL   0x5410
 
#define KSZ9477_PORT5_PRIO1_IG_LIMIT_CTRL   0x5411
 
#define KSZ9477_PORT5_PRIO2_IG_LIMIT_CTRL   0x5412
 
#define KSZ9477_PORT5_PRIO3_IG_LIMIT_CTRL   0x5413
 
#define KSZ9477_PORT5_PRIO4_IG_LIMIT_CTRL   0x5414
 
#define KSZ9477_PORT5_PRIO5_IG_LIMIT_CTRL   0x5415
 
#define KSZ9477_PORT5_PRIO6_IG_LIMIT_CTRL   0x5416
 
#define KSZ9477_PORT5_PRIO7_IG_LIMIT_CTRL   0x5417
 
#define KSZ9477_PORT5_QUEUE0_EG_LIMIT_CTRL   0x5420
 
#define KSZ9477_PORT5_QUEUE1_EG_LIMIT_CTRL   0x5421
 
#define KSZ9477_PORT5_QUEUE2_EG_LIMIT_CTRL   0x5422
 
#define KSZ9477_PORT5_QUEUE3_EG_LIMIT_CTRL   0x5423
 
#define KSZ9477_PORT5_MIB_CTRL_STAT   0x5500
 
#define KSZ9477_PORT5_MIB_DATA   0x5504
 
#define KSZ9477_PORT5_ACL_ACCESS0   0x5600
 
#define KSZ9477_PORT5_ACL_ACCESS1   0x5601
 
#define KSZ9477_PORT5_ACL_ACCESS2   0x5602
 
#define KSZ9477_PORT5_ACL_ACCESS3   0x5603
 
#define KSZ9477_PORT5_ACL_ACCESS4   0x5604
 
#define KSZ9477_PORT5_ACL_ACCESS5   0x5605
 
#define KSZ9477_PORT5_ACL_ACCESS6   0x5606
 
#define KSZ9477_PORT5_ACL_ACCESS7   0x5607
 
#define KSZ9477_PORT5_ACL_ACCESS8   0x5608
 
#define KSZ9477_PORT5_ACL_ACCESS9   0x5609
 
#define KSZ9477_PORT5_ACL_ACCESS10   0x560A
 
#define KSZ9477_PORT5_ACL_ACCESS11   0x560B
 
#define KSZ9477_PORT5_ACL_ACCESS12   0x560C
 
#define KSZ9477_PORT5_ACL_ACCESS13   0x560D
 
#define KSZ9477_PORT5_ACL_ACCESS14   0x560E
 
#define KSZ9477_PORT5_ACL_ACCESS15   0x560F
 
#define KSZ9477_PORT5_ACL_BYTE_EN_MSB   0x5610
 
#define KSZ9477_PORT5_ACL_BYTE_EN_LSB   0x5611
 
#define KSZ9477_PORT5_ACL_ACCESS_CTRL0   0x5612
 
#define KSZ9477_PORT5_ACL_ACCESS_CTRL1   0x5613
 
#define KSZ9477_PORT5_MIRRORING_CTRL   0x5800
 
#define KSZ9477_PORT5_PRIO_CTRL   0x5801
 
#define KSZ9477_PORT5_IG_MAC_CTRL   0x5802
 
#define KSZ9477_PORT5_AUTH_CTRL   0x5803
 
#define KSZ9477_PORT5_PTR   0x5804
 
#define KSZ9477_PORT5_PRIO_TO_QUEUE_MAPPING   0x5808
 
#define KSZ9477_PORT5_POLICE_CTRL   0x580C
 
#define KSZ9477_PORT5_POLICE_QUEUE_RATE   0x5820
 
#define KSZ9477_PORT5_POLICE_QUEUE_BURST_SIZE   0x5824
 
#define KSZ9477_PORT5_WRED_PKT_MEM_CTRL0   0x5830
 
#define KSZ9477_PORT5_WRED_PKT_MEM_CTRL1   0x5834
 
#define KSZ9477_PORT5_WRED_QUEUE_CTRL0   0x5840
 
#define KSZ9477_PORT5_WRED_QUEUE_CTRL1   0x5844
 
#define KSZ9477_PORT5_WRED_QUEUE_PERF_MON_CTRL   0x5848
 
#define KSZ9477_PORT5_TX_QUEUE_INDEX   0x5900
 
#define KSZ9477_PORT5_TX_QUEUE_PVID   0x5904
 
#define KSZ9477_PORT5_TX_QUEUE_CTRL0   0x5914
 
#define KSZ9477_PORT5_TX_QUEUE_CTRL1   0x5915
 
#define KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL0   0x5916
 
#define KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL1   0x5918
 
#define KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL2   0x591A
 
#define KSZ9477_PORT5_TAS_CTRL   0x5920
 
#define KSZ9477_PORT5_TAS_EVENT_INDEX   0x5923
 
#define KSZ9477_PORT5_TAS_EVENT   0x5924
 
#define KSZ9477_PORT5_CTRL0   0x5A00
 
#define KSZ9477_PORT5_CTRL1   0x5A04
 
#define KSZ9477_PORT5_CTRL2   0x5B00
 
#define KSZ9477_PORT5_MSTP_PTR   0x5B01
 
#define KSZ9477_PORT5_MSTP_STATE   0x5B04
 
#define KSZ9477_PORT5_PTP_RX_LATENCY   0x5C00
 
#define KSZ9477_PORT5_PTP_TX_LATENCY   0x5C02
 
#define KSZ9477_PORT5_PTP_ASYM_CORRECTION   0x5C04
 
#define KSZ9477_PORT5_PTP_XDLY_REQ_TSH   0x5C08
 
#define KSZ9477_PORT5_PTP_XDLY_REQ_TSL   0x5C0A
 
#define KSZ9477_PORT5_PTP_SYNC_TSH   0x5C0C
 
#define KSZ9477_PORT5_PTP_SYNC_TSL   0x5C0E
 
#define KSZ9477_PORT5_PTP_PDLY_RESP_TSH   0x5C10
 
#define KSZ9477_PORT5_PTP_PDLY_RESP_TSL   0x5C12
 
#define KSZ9477_PORT5_PTP_TS_INT_STAT   0x5C14
 
#define KSZ9477_PORT5_PTP_TS_INT_EN   0x5C16
 
#define KSZ9477_PORT5_PTP_LINK_DELAY   0x5C18
 
#define KSZ9477_PORT6_DEFAULT_TAG0   0x6000
 
#define KSZ9477_PORT6_DEFAULT_TAG1   0x6001
 
#define KSZ9477_PORT6_PME_WOL_EVENT   0x6013
 
#define KSZ9477_PORT6_PME_WOL_EN   0x6017
 
#define KSZ9477_PORT6_INT_STATUS   0x601B
 
#define KSZ9477_PORT6_INT_MASK   0x601F
 
#define KSZ9477_PORT6_OP_CTRL0   0x6020
 
#define KSZ9477_PORT6_STATUS   0x6030
 
#define KSZ9477_PORT6_XMII_CTRL0   0x6300
 
#define KSZ9477_PORT6_XMII_CTRL1   0x6301
 
#define KSZ9477_PORT6_MAC_CTRL0   0x6400
 
#define KSZ9477_PORT6_MAC_CTRL1   0x6401
 
#define KSZ9477_PORT6_IG_RATE_LIMIT_CTRL   0x6403
 
#define KSZ9477_PORT6_PRIO0_IG_LIMIT_CTRL   0x6410
 
#define KSZ9477_PORT6_PRIO1_IG_LIMIT_CTRL   0x6411
 
#define KSZ9477_PORT6_PRIO2_IG_LIMIT_CTRL   0x6412
 
#define KSZ9477_PORT6_PRIO3_IG_LIMIT_CTRL   0x6413
 
#define KSZ9477_PORT6_PRIO4_IG_LIMIT_CTRL   0x6414
 
#define KSZ9477_PORT6_PRIO5_IG_LIMIT_CTRL   0x6415
 
#define KSZ9477_PORT6_PRIO6_IG_LIMIT_CTRL   0x6416
 
#define KSZ9477_PORT6_PRIO7_IG_LIMIT_CTRL   0x6417
 
#define KSZ9477_PORT6_QUEUE0_EG_LIMIT_CTRL   0x6420
 
#define KSZ9477_PORT6_QUEUE1_EG_LIMIT_CTRL   0x6421
 
#define KSZ9477_PORT6_QUEUE2_EG_LIMIT_CTRL   0x6422
 
#define KSZ9477_PORT6_QUEUE3_EG_LIMIT_CTRL   0x6423
 
#define KSZ9477_PORT6_MIB_CTRL_STAT   0x6500
 
#define KSZ9477_PORT6_MIB_DATA   0x6504
 
#define KSZ9477_PORT6_ACL_ACCESS0   0x6600
 
#define KSZ9477_PORT6_ACL_ACCESS1   0x6601
 
#define KSZ9477_PORT6_ACL_ACCESS2   0x6602
 
#define KSZ9477_PORT6_ACL_ACCESS3   0x6603
 
#define KSZ9477_PORT6_ACL_ACCESS4   0x6604
 
#define KSZ9477_PORT6_ACL_ACCESS5   0x6605
 
#define KSZ9477_PORT6_ACL_ACCESS6   0x6606
 
#define KSZ9477_PORT6_ACL_ACCESS7   0x6607
 
#define KSZ9477_PORT6_ACL_ACCESS8   0x6608
 
#define KSZ9477_PORT6_ACL_ACCESS9   0x6609
 
#define KSZ9477_PORT6_ACL_ACCESS10   0x660A
 
#define KSZ9477_PORT6_ACL_ACCESS11   0x660B
 
#define KSZ9477_PORT6_ACL_ACCESS12   0x660C
 
#define KSZ9477_PORT6_ACL_ACCESS13   0x660D
 
#define KSZ9477_PORT6_ACL_ACCESS14   0x660E
 
#define KSZ9477_PORT6_ACL_ACCESS15   0x660F
 
#define KSZ9477_PORT6_ACL_BYTE_EN_MSB   0x6610
 
#define KSZ9477_PORT6_ACL_BYTE_EN_LSB   0x6611
 
#define KSZ9477_PORT6_ACL_ACCESS_CTRL0   0x6612
 
#define KSZ9477_PORT6_ACL_ACCESS_CTRL1   0x6613
 
#define KSZ9477_PORT6_MIRRORING_CTRL   0x6800
 
#define KSZ9477_PORT6_PRIO_CTRL   0x6801
 
#define KSZ9477_PORT6_IG_MAC_CTRL   0x6802
 
#define KSZ9477_PORT6_AUTH_CTRL   0x6803
 
#define KSZ9477_PORT6_PTR   0x6804
 
#define KSZ9477_PORT6_PRIO_TO_QUEUE_MAPPING   0x6808
 
#define KSZ9477_PORT6_POLICE_CTRL   0x680C
 
#define KSZ9477_PORT6_POLICE_QUEUE_RATE   0x6820
 
#define KSZ9477_PORT6_POLICE_QUEUE_BURST_SIZE   0x6824
 
#define KSZ9477_PORT6_WRED_PKT_MEM_CTRL0   0x6830
 
#define KSZ9477_PORT6_WRED_PKT_MEM_CTRL1   0x6834
 
#define KSZ9477_PORT6_WRED_QUEUE_CTRL0   0x6840
 
#define KSZ9477_PORT6_WRED_QUEUE_CTRL1   0x6844
 
#define KSZ9477_PORT6_WRED_QUEUE_PERF_MON_CTRL   0x6848
 
#define KSZ9477_PORT6_TX_QUEUE_INDEX   0x6900
 
#define KSZ9477_PORT6_TX_QUEUE_PVID   0x6904
 
#define KSZ9477_PORT6_TX_QUEUE_CTRL0   0x6914
 
#define KSZ9477_PORT6_TX_QUEUE_CTRL1   0x6915
 
#define KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL0   0x6916
 
#define KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL1   0x6918
 
#define KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL2   0x691A
 
#define KSZ9477_PORT6_TAS_CTRL   0x6920
 
#define KSZ9477_PORT6_TAS_EVENT_INDEX   0x6923
 
#define KSZ9477_PORT6_TAS_EVENT   0x6924
 
#define KSZ9477_PORT6_CTRL0   0x6A00
 
#define KSZ9477_PORT6_CTRL1   0x6A04
 
#define KSZ9477_PORT6_CTRL2   0x6B00
 
#define KSZ9477_PORT6_MSTP_PTR   0x6B01
 
#define KSZ9477_PORT6_MSTP_STATE   0x6B04
 
#define KSZ9477_PORT6_PTP_RX_LATENCY   0x6C00
 
#define KSZ9477_PORT6_PTP_TX_LATENCY   0x6C02
 
#define KSZ9477_PORT6_PTP_ASYM_CORRECTION   0x6C04
 
#define KSZ9477_PORT6_PTP_XDLY_REQ_TSH   0x6C08
 
#define KSZ9477_PORT6_PTP_XDLY_REQ_TSL   0x6C0A
 
#define KSZ9477_PORT6_PTP_SYNC_TSH   0x6C0C
 
#define KSZ9477_PORT6_PTP_SYNC_TSL   0x6C0E
 
#define KSZ9477_PORT6_PTP_PDLY_RESP_TSH   0x6C10
 
#define KSZ9477_PORT6_PTP_PDLY_RESP_TSL   0x6C12
 
#define KSZ9477_PORT6_PTP_TS_INT_STAT   0x6C14
 
#define KSZ9477_PORT6_PTP_TS_INT_EN   0x6C16
 
#define KSZ9477_PORT6_PTP_LINK_DELAY   0x6C18
 
#define KSZ9477_PORT7_DEFAULT_TAG0   0x7000
 
#define KSZ9477_PORT7_DEFAULT_TAG1   0x7001
 
#define KSZ9477_PORT7_PME_WOL_EVENT   0x7013
 
#define KSZ9477_PORT7_PME_WOL_EN   0x7017
 
#define KSZ9477_PORT7_INT_STATUS   0x701B
 
#define KSZ9477_PORT7_INT_MASK   0x701F
 
#define KSZ9477_PORT7_OP_CTRL0   0x7020
 
#define KSZ9477_PORT7_STATUS   0x7030
 
#define KSZ9477_PORT7_SGMII_ADDR   0x7200
 
#define KSZ9477_PORT7_SGMII_DATA   0x7206
 
#define KSZ9477_PORT7_XMII_CTRL0   0x7300
 
#define KSZ9477_PORT7_XMII_CTRL1   0x7301
 
#define KSZ9477_PORT7_MAC_CTRL0   0x7400
 
#define KSZ9477_PORT7_MAC_CTRL1   0x7401
 
#define KSZ9477_PORT7_IG_RATE_LIMIT_CTRL   0x7403
 
#define KSZ9477_PORT7_PRIO0_IG_LIMIT_CTRL   0x7410
 
#define KSZ9477_PORT7_PRIO1_IG_LIMIT_CTRL   0x7411
 
#define KSZ9477_PORT7_PRIO2_IG_LIMIT_CTRL   0x7412
 
#define KSZ9477_PORT7_PRIO3_IG_LIMIT_CTRL   0x7413
 
#define KSZ9477_PORT7_PRIO4_IG_LIMIT_CTRL   0x7414
 
#define KSZ9477_PORT7_PRIO5_IG_LIMIT_CTRL   0x7415
 
#define KSZ9477_PORT7_PRIO6_IG_LIMIT_CTRL   0x7416
 
#define KSZ9477_PORT7_PRIO7_IG_LIMIT_CTRL   0x7417
 
#define KSZ9477_PORT7_QUEUE0_EG_LIMIT_CTRL   0x7420
 
#define KSZ9477_PORT7_QUEUE1_EG_LIMIT_CTRL   0x7421
 
#define KSZ9477_PORT7_QUEUE2_EG_LIMIT_CTRL   0x7422
 
#define KSZ9477_PORT7_QUEUE3_EG_LIMIT_CTRL   0x7423
 
#define KSZ9477_PORT7_MIB_CTRL_STAT   0x7500
 
#define KSZ9477_PORT7_MIB_DATA   0x7504
 
#define KSZ9477_PORT7_ACL_ACCESS0   0x7600
 
#define KSZ9477_PORT7_ACL_ACCESS1   0x7601
 
#define KSZ9477_PORT7_ACL_ACCESS2   0x7602
 
#define KSZ9477_PORT7_ACL_ACCESS3   0x7603
 
#define KSZ9477_PORT7_ACL_ACCESS4   0x7604
 
#define KSZ9477_PORT7_ACL_ACCESS5   0x7605
 
#define KSZ9477_PORT7_ACL_ACCESS6   0x7606
 
#define KSZ9477_PORT7_ACL_ACCESS7   0x7607
 
#define KSZ9477_PORT7_ACL_ACCESS8   0x7608
 
#define KSZ9477_PORT7_ACL_ACCESS9   0x7609
 
#define KSZ9477_PORT7_ACL_ACCESS10   0x760A
 
#define KSZ9477_PORT7_ACL_ACCESS11   0x760B
 
#define KSZ9477_PORT7_ACL_ACCESS12   0x760C
 
#define KSZ9477_PORT7_ACL_ACCESS13   0x760D
 
#define KSZ9477_PORT7_ACL_ACCESS14   0x760E
 
#define KSZ9477_PORT7_ACL_ACCESS15   0x760F
 
#define KSZ9477_PORT7_ACL_BYTE_EN_MSB   0x7610
 
#define KSZ9477_PORT7_ACL_BYTE_EN_LSB   0x7611
 
#define KSZ9477_PORT7_ACL_ACCESS_CTRL0   0x7612
 
#define KSZ9477_PORT7_ACL_ACCESS_CTRL1   0x7613
 
#define KSZ9477_PORT7_MIRRORING_CTRL   0x7800
 
#define KSZ9477_PORT7_PRIO_CTRL   0x7801
 
#define KSZ9477_PORT7_IG_MAC_CTRL   0x7802
 
#define KSZ9477_PORT7_AUTH_CTRL   0x7803
 
#define KSZ9477_PORT7_PTR   0x7804
 
#define KSZ9477_PORT7_PRIO_TO_QUEUE_MAPPING   0x7808
 
#define KSZ9477_PORT7_POLICE_CTRL   0x780C
 
#define KSZ9477_PORT7_POLICE_QUEUE_RATE   0x7820
 
#define KSZ9477_PORT7_POLICE_QUEUE_BURST_SIZE   0x7824
 
#define KSZ9477_PORT7_WRED_PKT_MEM_CTRL0   0x7830
 
#define KSZ9477_PORT7_WRED_PKT_MEM_CTRL1   0x7834
 
#define KSZ9477_PORT7_WRED_QUEUE_CTRL0   0x7840
 
#define KSZ9477_PORT7_WRED_QUEUE_CTRL1   0x7844
 
#define KSZ9477_PORT7_WRED_QUEUE_PERF_MON_CTRL   0x7848
 
#define KSZ9477_PORT7_TX_QUEUE_INDEX   0x7900
 
#define KSZ9477_PORT7_TX_QUEUE_PVID   0x7904
 
#define KSZ9477_PORT7_TX_QUEUE_CTRL0   0x7914
 
#define KSZ9477_PORT7_TX_QUEUE_CTRL1   0x7915
 
#define KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL0   0x7916
 
#define KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL1   0x7918
 
#define KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL2   0x791A
 
#define KSZ9477_PORT7_TAS_CTRL   0x7920
 
#define KSZ9477_PORT7_TAS_EVENT_INDEX   0x7923
 
#define KSZ9477_PORT7_TAS_EVENT   0x7924
 
#define KSZ9477_PORT7_CTRL0   0x7A00
 
#define KSZ9477_PORT7_CTRL1   0x7A04
 
#define KSZ9477_PORT7_CTRL2   0x7B00
 
#define KSZ9477_PORT7_MSTP_PTR   0x7B01
 
#define KSZ9477_PORT7_MSTP_STATE   0x7B04
 
#define KSZ9477_PORT7_PTP_RX_LATENCY   0x7C00
 
#define KSZ9477_PORT7_PTP_TX_LATENCY   0x7C02
 
#define KSZ9477_PORT7_PTP_ASYM_CORRECTION   0x7C04
 
#define KSZ9477_PORT7_PTP_XDLY_REQ_TSH   0x7C08
 
#define KSZ9477_PORT7_PTP_XDLY_REQ_TSL   0x7C0A
 
#define KSZ9477_PORT7_PTP_SYNC_TSH   0x7C0C
 
#define KSZ9477_PORT7_PTP_SYNC_TSL   0x7C0E
 
#define KSZ9477_PORT7_PTP_PDLY_RESP_TSH   0x7C10
 
#define KSZ9477_PORT7_PTP_PDLY_RESP_TSL   0x7C12
 
#define KSZ9477_PORT7_PTP_TS_INT_STAT   0x7C14
 
#define KSZ9477_PORT7_PTP_TS_INT_EN   0x7C16
 
#define KSZ9477_PORT7_PTP_LINK_DELAY   0x7C18
 
#define KSZ9477_PORTn_DEFAULT_TAG0(port)   (0x0000 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_DEFAULT_TAG1(port)   (0x0001 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PME_WOL_EVENT(port)   (0x0013 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PME_WOL_EN(port)   (0x0017 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_INT_STATUS(port)   (0x001B + ((port) * 0x1000))
 
#define KSZ9477_PORTn_INT_MASK(port)   (0x001F + ((port) * 0x1000))
 
#define KSZ9477_PORTn_OP_CTRL0(port)   (0x0020 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_STATUS(port)   (0x0030 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_XMII_CTRL0(port)   (0x0300 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_XMII_CTRL1(port)   (0x0301 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MAC_CTRL0(port)   (0x0400 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MAC_CTRL1(port)   (0x0401 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_IG_RATE_LIMIT_CTRL(port)   (0x0403 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO0_IG_LIMIT_CTRL(port)   (0x0410 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO1_IG_LIMIT_CTRL(port)   (0x0411 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO2_IG_LIMIT_CTRL(port)   (0x0412 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO3_IG_LIMIT_CTRL(port)   (0x0413 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO4_IG_LIMIT_CTRL(port)   (0x0414 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO5_IG_LIMIT_CTRL(port)   (0x0415 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO6_IG_LIMIT_CTRL(port)   (0x0416 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO7_IG_LIMIT_CTRL(port)   (0x0417 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_QUEUE0_EG_LIMIT_CTRL(port)   (0x0420 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_QUEUE1_EG_LIMIT_CTRL(port)   (0x0421 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_QUEUE2_EG_LIMIT_CTRL(port)   (0x0422 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_QUEUE3_EG_LIMIT_CTRL(port)   (0x0423 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MIB_CTRL_STAT(port)   (0x0500 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MIB_DATA(port)   (0x0504 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS0(port)   (0x0600 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS1(port)   (0x0601 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS2(port)   (0x0602 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS3(port)   (0x0603 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS4(port)   (0x0604 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS5(port)   (0x0605 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS6(port)   (0x0606 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS7(port)   (0x0607 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS8(port)   (0x0608 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS9(port)   (0x0609 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS10(port)   (0x060A + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS11(port)   (0x060B + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS12(port)   (0x060C + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS13(port)   (0x060D + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS14(port)   (0x060E + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS15(port)   (0x060F + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_BYTE_EN_MSB(port)   (0x0610 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_BYTE_EN_LSB(port)   (0x0611 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL0(port)   (0x0612 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL1(port)   (0x0613 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MIRRORING_CTRL(port)   (0x0800 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO_CTRL(port)   (0x0801 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_IG_MAC_CTRL(port)   (0x0802 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_AUTH_CTRL(port)   (0x0803 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTR(port)   (0x0804 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PRIO_TO_QUEUE_MAPPING(port)   (0x0808 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_POLICE_CTRL(port)   (0x080C + ((port) * 0x1000))
 
#define KSZ9477_PORTn_POLICE_QUEUE_RATE(port)   (0x0820 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_POLICE_QUEUE_BURST_SIZE(port)   (0x0824 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_WRED_PKT_MEM_CTRL0(port)   (0x0830 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_WRED_PKT_MEM_CTRL1(port)   (0x0834 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_WRED_QUEUE_CTRL0(port)   (0x0840 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_WRED_QUEUE_CTRL1(port)   (0x0844 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_WRED_QUEUE_PERF_MON_CTRL(port)   (0x0848 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_QUEUE_INDEX(port)   (0x0900 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_QUEUE_PVID(port)   (0x0904 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_QUEUE_CTRL0(port)   (0x0914 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_QUEUE_CTRL1(port)   (0x0915 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL0(port)   (0x0916 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL1(port)   (0x0918 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL2(port)   (0x091A + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TAS_CTRL(port)   (0x0920 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TAS_EVENT_INDEX(port)   (0x0923 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_TAS_EVENT(port)   (0x0924 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_CTRL0(port)   (0x0A00 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_CTRL1(port)   (0x0A04 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_CTRL2(port)   (0x0B00 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MSTP_PTR(port)   (0x0B01 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_MSTP_STATE(port)   (0x0B04 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_RX_LATENCY(port)   (0x0C00 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_TX_LATENCY(port)   (0x0C02 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_ASYM_CORRECTION(port)   (0x0C04 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_XDLY_REQ_TSH(port)   (0x0C08 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_XDLY_REQ_TSL(port)   (0x0C0A + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_SYNC_TSH(port)   (0x0C0C + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_SYNC_TSL(port)   (0x0C0E + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_PDLY_RESP_TSH(port)   (0x0C10 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_PDLY_RESP_TSL(port)   (0x0C12 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_TS_INT_STAT(port)   (0x0C14 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_TS_INT_EN(port)   (0x0C16 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_PTP_LINK_DELAY(port)   (0x0C18 + ((port) * 0x1000))
 
#define KSZ9477_PORTn_ETH_PHY_REG(port, addr)   (0x0100 + ((port) * 0x1000) + ((addr) * 2))
 
#define KSZ9477_BMCR_RESET   0x8000
 
#define KSZ9477_BMCR_LOOPBACK   0x4000
 
#define KSZ9477_BMCR_SPEED_SEL_LSB   0x2000
 
#define KSZ9477_BMCR_AN_EN   0x1000
 
#define KSZ9477_BMCR_POWER_DOWN   0x0800
 
#define KSZ9477_BMCR_ISOLATE   0x0400
 
#define KSZ9477_BMCR_RESTART_AN   0x0200
 
#define KSZ9477_BMCR_DUPLEX_MODE   0x0100
 
#define KSZ9477_BMCR_COL_TEST   0x0080
 
#define KSZ9477_BMCR_SPEED_SEL_MSB   0x0040
 
#define KSZ9477_BMSR_100BT4   0x8000
 
#define KSZ9477_BMSR_100BTX_FD   0x4000
 
#define KSZ9477_BMSR_100BTX_HD   0x2000
 
#define KSZ9477_BMSR_10BT_FD   0x1000
 
#define KSZ9477_BMSR_10BT_HD   0x0800
 
#define KSZ9477_BMSR_EXTENDED_STATUS   0x0100
 
#define KSZ9477_BMSR_MF_PREAMBLE_SUPPR   0x0040
 
#define KSZ9477_BMSR_AN_COMPLETE   0x0020
 
#define KSZ9477_BMSR_REMOTE_FAULT   0x0010
 
#define KSZ9477_BMSR_AN_CAPABLE   0x0008
 
#define KSZ9477_BMSR_LINK_STATUS   0x0004
 
#define KSZ9477_BMSR_JABBER_DETECT   0x0002
 
#define KSZ9477_BMSR_EXTENDED_CAPABLE   0x0001
 
#define KSZ9477_PHYID1_DEFAULT   0x0022
 
#define KSZ9477_PHYID2_DEFAULT   0x1631
 
#define KSZ9477_ANAR_NEXT_PAGE   0x8000
 
#define KSZ9477_ANAR_REMOTE_FAULT   0x2000
 
#define KSZ9477_ANAR_PAUSE   0x0C00
 
#define KSZ9477_ANAR_100BT4   0x0200
 
#define KSZ9477_ANAR_100BTX_FD   0x0100
 
#define KSZ9477_ANAR_100BTX_HD   0x0080
 
#define KSZ9477_ANAR_10BT_FD   0x0040
 
#define KSZ9477_ANAR_10BT_HD   0x0020
 
#define KSZ9477_ANAR_SELECTOR   0x001F
 
#define KSZ9477_ANAR_SELECTOR_DEFAULT   0x0001
 
#define KSZ9477_ANLPAR_NEXT_PAGE   0x8000
 
#define KSZ9477_ANLPAR_ACK   0x4000
 
#define KSZ9477_ANLPAR_REMOTE_FAULT   0x2000
 
#define KSZ9477_ANLPAR_PAUSE   0x0C00
 
#define KSZ9477_ANLPAR_100BT4   0x0200
 
#define KSZ9477_ANLPAR_100BTX_FD   0x0100
 
#define KSZ9477_ANLPAR_100BTX_HD   0x0080
 
#define KSZ9477_ANLPAR_10BT_FD   0x0040
 
#define KSZ9477_ANLPAR_10BT_HD   0x0020
 
#define KSZ9477_ANLPAR_SELECTOR   0x001F
 
#define KSZ9477_ANLPAR_SELECTOR_DEFAULT   0x0001
 
#define KSZ9477_ANER_PAR_DETECT_FAULT   0x0010
 
#define KSZ9477_ANER_LP_NEXT_PAGE_ABLE   0x0008
 
#define KSZ9477_ANER_NEXT_PAGE_ABLE   0x0004
 
#define KSZ9477_ANER_PAGE_RECEIVED   0x0002
 
#define KSZ9477_ANER_LP_AN_ABLE   0x0001
 
#define KSZ9477_ANNPR_NEXT_PAGE   0x8000
 
#define KSZ9477_ANNPR_MSG_PAGE   0x2000
 
#define KSZ9477_ANNPR_ACK2   0x1000
 
#define KSZ9477_ANNPR_TOGGLE   0x0800
 
#define KSZ9477_ANNPR_MESSAGE   0x07FF
 
#define KSZ9477_ANLPNPR_NEXT_PAGE   0x8000
 
#define KSZ9477_ANLPNPR_ACK   0x4000
 
#define KSZ9477_ANLPNPR_MSG_PAGE   0x2000
 
#define KSZ9477_ANLPNPR_ACK2   0x1000
 
#define KSZ9477_ANLPNPR_TOGGLE   0x0800
 
#define KSZ9477_ANLPNPR_MESSAGE   0x07FF
 
#define KSZ9477_GBCR_TEST_MODE   0xE000
 
#define KSZ9477_GBCR_MS_MAN_CONF_EN   0x1000
 
#define KSZ9477_GBCR_MS_MAN_CONF_VAL   0x0800
 
#define KSZ9477_GBCR_PORT_TYPE   0x0400
 
#define KSZ9477_GBCR_1000BT_FD   0x0200
 
#define KSZ9477_GBCR_1000BT_HD   0x0100
 
#define KSZ9477_GBSR_MS_CONF_FAULT   0x8000
 
#define KSZ9477_GBSR_MS_CONF_RES   0x4000
 
#define KSZ9477_GBSR_LOCAL_RECEIVER_STATUS   0x2000
 
#define KSZ9477_GBSR_REMOTE_RECEIVER_STATUS   0x1000
 
#define KSZ9477_GBSR_LP_1000BT_FD   0x0800
 
#define KSZ9477_GBSR_LP_1000BT_HD   0x0400
 
#define KSZ9477_GBSR_IDLE_ERR_COUNT   0x00FF
 
#define KSZ9477_MMDACR_FUNC   0xC000
 
#define KSZ9477_MMDACR_FUNC_ADDR   0x0000
 
#define KSZ9477_MMDACR_FUNC_DATA_NO_POST_INC   0x4000
 
#define KSZ9477_MMDACR_FUNC_DATA_POST_INC_RW   0x8000
 
#define KSZ9477_MMDACR_FUNC_DATA_POST_INC_W   0xC000
 
#define KSZ9477_MMDACR_DEVAD   0x001F
 
#define KSZ9477_GBESR_1000BX_FD   0x8000
 
#define KSZ9477_GBESR_1000BX_HD   0x4000
 
#define KSZ9477_GBESR_1000BT_FD   0x2000
 
#define KSZ9477_GBESR_1000BT_HD   0x1000
 
#define KSZ9477_RLB_REMOTE_LOOPBACK   0x0100
 
#define KSZ9477_LINKMD_TEST_EN   0x8000
 
#define KSZ9477_LINKMD_PAIR   0x3000
 
#define KSZ9477_LINKMD_PAIR_A   0x0000
 
#define KSZ9477_LINKMD_PAIR_B   0x1000
 
#define KSZ9477_LINKMD_PAIR_C   0x2000
 
#define KSZ9477_LINKMD_PAIR_D   0x3000
 
#define KSZ9477_LINKMD_STATUS   0x0300
 
#define KSZ9477_LINKMD_STATUS_NORMAL   0x0000
 
#define KSZ9477_LINKMD_STATUS_OPEN   0x0100
 
#define KSZ9477_LINKMD_STATUS_SHORT   0x0200
 
#define KSZ9477_LINKMD_RESULT   0x00FF
 
#define KSZ9477_DPMAPCSS_1000BT_LINK_STATUS   0x0002
 
#define KSZ9477_DPMAPCSS_100BTX_LINK_STATUS   0x0001
 
#define KSZ9477_ICSR_JABBER_IE   0x8000
 
#define KSZ9477_ICSR_RECEIVE_ERROR_IE   0x4000
 
#define KSZ9477_ICSR_PAGE_RECEIVED_IE   0x2000
 
#define KSZ9477_ICSR_PAR_DETECT_FAULT_IE   0x1000
 
#define KSZ9477_ICSR_LP_ACK_IE   0x0800
 
#define KSZ9477_ICSR_LINK_DOWN_IE   0x0400
 
#define KSZ9477_ICSR_REMOTE_FAULT_IE   0x0200
 
#define KSZ9477_ICSR_LINK_UP_IE   0x0100
 
#define KSZ9477_ICSR_JABBER_IF   0x0080
 
#define KSZ9477_ICSR_RECEIVE_ERROR_IF   0x0040
 
#define KSZ9477_ICSR_PAGE_RECEIVED_IF   0x0020
 
#define KSZ9477_ICSR_PAR_DETECT_FAULT_IF   0x0010
 
#define KSZ9477_ICSR_LP_ACK_IF   0x0008
 
#define KSZ9477_ICSR_LINK_DOWN_IF   0x0004
 
#define KSZ9477_ICSR_REMOTE_FAULT_IF   0x0002
 
#define KSZ9477_ICSR_LINK_UP_IF   0x0001
 
#define KSZ9477_AUTOMDI_MDI_SET   0x0080
 
#define KSZ9477_AUTOMDI_SWAP_OFF   0x0040
 
#define KSZ9477_PHYCON_JABBER_EN   0x0200
 
#define KSZ9477_PHYCON_SPEED_1000BT   0x0040
 
#define KSZ9477_PHYCON_SPEED_100BTX   0x0020
 
#define KSZ9477_PHYCON_SPEED_10BT   0x0010
 
#define KSZ9477_PHYCON_DUPLEX_STATUS   0x0008
 
#define KSZ9477_PHYCON_1000BT_MS_STATUS   0x0004
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_A_QUALITY_INDICATOR   0x7F00
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_B_QUALITY_INDICATOR   0x7F00
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_C_QUALITY_INDICATOR   0x7F00
 
#define KSZ9477_MMD_SIGNAL_QUALITY_CH_D_QUALITY_INDICATOR   0x7F00
 
#define KSZ9477_MMD_LED_MODE_LED_MODE   0x0010
 
#define KSZ9477_MMD_LED_MODE_LED_MODE_TRI_COLOR_DUAL   0x0000
 
#define KSZ9477_MMD_LED_MODE_LED_MODE_SINGLE   0x0010
 
#define KSZ9477_MMD_LED_MODE_RESERVED   0x000F
 
#define KSZ9477_MMD_LED_MODE_RESERVED_DEFAULT   0x0001
 
#define KSZ9477_MMD_EEE_ADV_1000BT_EEE_EN   0x0004
 
#define KSZ9477_MMD_EEE_ADV_100BT_EEE_EN   0x0002
 
#define KSZ9477_CHIP_ID0_DEFAULT   0x00
 
#define KSZ9477_CHIP_ID1_DEFAULT   0x94
 
#define KSZ9477_CHIP_ID2_DEFAULT   0x77
 
#define KSZ9477_CHIP_ID3_REVISION_ID   0xF0
 
#define KSZ9477_CHIP_ID3_GLOBAL_SOFT_RESET   0x01
 
#define KSZ9477_PME_PIN_CTRL_PME_PIN_OUT_EN   0x02
 
#define KSZ9477_PME_PIN_CTRL_PME_PIN_OUT_POL   0x01
 
#define KSZ9477_GLOBAL_INT_STAT_LUE   0x80000000
 
#define KSZ9477_GLOBAL_INT_STAT_GPIO_TRIG_TS_UNIT   0x40000000
 
#define KSZ9477_GLOBAL_INT_MASK_LUE   0x80000000
 
#define KSZ9477_GLOBAL_INT_MASK_GPIO_TRIG_TS_UNIT   0x40000000
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT7   0x00000040
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT6   0x00000020
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT5   0x00000010
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT4   0x00000008
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT3   0x00000004
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT2   0x00000002
 
#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT1   0x00000001
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT7   0x00000040
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT6   0x00000020
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT5   0x00000010
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT4   0x00000008
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT3   0x00000004
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT2   0x00000002
 
#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT1   0x00000001
 
#define KSZ9477_SERIAL_IO_CTRL_MIIM_PREAMBLE_SUPPR   0x04
 
#define KSZ9477_SERIAL_IO_CTRL_AUTO_SPI_DATA_OUT_EDGE_SEL   0x02
 
#define KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL   0x01
 
#define KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL_FALLING   0x00
 
#define KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL_RISING   0x01
 
#define KSZ9477_OUT_CLK_CTRL_REC_CLK_RDY   0x80
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC   0x1C
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_XI   0x00
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT1   0x04
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT2   0x08
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT3   0x0C
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT4   0x10
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT5   0x14
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_EN   0x02
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ   0x01
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ_25MHZ   0x00
 
#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ_125MHZ   0x01
 
#define KSZ9477_IBA_CTRL_IBA_EN   0x80000000
 
#define KSZ9477_IBA_CTRL_DEST_MAC_ADDR_MATCH_EN   0x40000000
 
#define KSZ9477_IBA_CTRL_IBA_RESET   0x20000000
 
#define KSZ9477_IBA_CTRL_RESP_PRIO_QUEUE   0x00C00000
 
#define KSZ9477_IBA_CTRL_RESP_PRIO_QUEUE_DEFAULT   0x00400000
 
#define KSZ9477_IBA_CTRL_IBA_COMM   0x00070000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT1   0x00000000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT2   0x00010000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT3   0x00020000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT4   0x00030000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT5   0x00040000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT6   0x00050000
 
#define KSZ9477_IBA_CTRL_IBA_COMM_PORT7   0x00060000
 
#define KSZ9477_IBA_CTRL_TPID   0x0000FFFF
 
#define KSZ9477_IBA_CTRL_TPID_DEFAULT   0x000040FE
 
#define KSZ9477_IO_DRIVE_STRENGTH_HIGH_SPEED_DRIVE_STRENGTH   0x70
 
#define KSZ9477_IO_DRIVE_STRENGTH_LOW_SPEED_DRIVE_STRENGTH   0x07
 
#define KSZ9477_IBA_OP_STAT1_GOOD_PKT_DETECT   0x80000000
 
#define KSZ9477_IBA_OP_STAT1_RESP_PKT_TX_DONE   0x40000000
 
#define KSZ9477_IBA_OP_STAT1_EXEC_DONE   0x20000000
 
#define KSZ9477_IBA_OP_STAT1_MAC_ADDR_MISMATCH_ERR   0x00004000
 
#define KSZ9477_IBA_OP_STAT1_ACCESS_FORMAT_ERR   0x00002000
 
#define KSZ9477_IBA_OP_STAT1_ACCESS_CODE_ERR   0x00001000
 
#define KSZ9477_IBA_OP_STAT1_ACCESS_CMD_ERR   0x00000800
 
#define KSZ9477_IBA_OP_STAT1_OVERSIZE_PKT_ERR   0x00000400
 
#define KSZ9477_IBA_OP_STAT1_ACCESS_CODE_ERR_LOC   0x0000007F
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE   0x000003FF
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED1_0   0x00000001
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED1_1   0x00000002
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED2_0   0x00000004
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED2_1   0x00000008
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED3_0   0x00000010
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED3_1   0x00000020
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED4_0   0x00000040
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED4_1   0x00000080
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED5_0   0x00000100
 
#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED5_1   0x00000200
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL   0x000003FF
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED1_0   0x00000001
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED1_1   0x00000002
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED2_0   0x00000004
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED2_1   0x00000008
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED3_0   0x00000010
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED3_1   0x00000020
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED4_0   0x00000040
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED4_1   0x00000080
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED5_0   0x00000100
 
#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED5_1   0x00000200
 
#define KSZ9477_LED2_0_LED2_1_SRC_LED2_1_SRC   0x00000008
 
#define KSZ9477_LED2_0_LED2_1_SRC_LED2_0_SRC   0x00000004
 
#define KSZ9477_PWR_DOWN_CTRL0_PLL_PWR_DOWN   0x20
 
#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE   0x18
 
#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_NORMAL   0x00
 
#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_EDPD   0x08
 
#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_SOFT_PWR_DOWN   0x10
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN   0x000003FF
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED1_0   0x00000001
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED1_1   0x00000002
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED2_0   0x00000004
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED2_1   0x00000008
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED3_0   0x00000010
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED3_1   0x00000020
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED4_0   0x00000040
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED4_1   0x00000080
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED5_0   0x00000100
 
#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED5_1   0x00000200
 
#define KSZ9477_SWITCH_OP_DOUBLE_TAG_EN   0x80
 
#define KSZ9477_SWITCH_OP_SOFT_HARD_RESET   0x02
 
#define KSZ9477_SWITCH_OP_START_SWITCH   0x01
 
#define KSZ9477_SWITCH_MTU_MTU   0x3FFF
 
#define KSZ9477_SWITCH_MTU_MTU_DEFAULT   0x07D0
 
#define KSZ9477_SWITCH_ISP_TPID_ISP_TAG_TPID   0xFFFF
 
#define KSZ9477_AVB_CBS_STRATEGY_SHAPING_CREDIT_ACCOUNTING   0x0002
 
#define KSZ9477_AVB_CBS_STRATEGY_POLICING_CREDIT_ACCOUNTING   0x0001
 
#define KSZ9477_SWITCH_LUE_CTRL0_VLAN_EN   0x80
 
#define KSZ9477_SWITCH_LUE_CTRL0_DROP_INVALID_VID   0x40
 
#define KSZ9477_SWITCH_LUE_CTRL0_AGE_COUNT   0x38
 
#define KSZ9477_SWITCH_LUE_CTRL0_AGE_COUNT_DEFAULT   0x20
 
#define KSZ9477_SWITCH_LUE_CTRL0_RESERVED_MCAST_LOOKUP_EN   0x04
 
#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION   0x03
 
#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_NONE   0x00
 
#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_CRC   0x01
 
#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_XOR   0x02
 
#define KSZ9477_SWITCH_LUE_CTRL1_UNICAST_LEARNING_DIS   0x80
 
#define KSZ9477_SWITCH_LUE_CTRL1_SELF_ADDR_FILT   0x40
 
#define KSZ9477_SWITCH_LUE_CTRL1_FLUSH_ALU_TABLE   0x20
 
#define KSZ9477_SWITCH_LUE_CTRL1_FLUSH_MSTP_ENTRIES   0x10
 
#define KSZ9477_SWITCH_LUE_CTRL1_MCAST_SRC_ADDR_FILT   0x08
 
#define KSZ9477_SWITCH_LUE_CTRL1_AGING_EN   0x04
 
#define KSZ9477_SWITCH_LUE_CTRL1_FAST_AGING   0x02
 
#define KSZ9477_SWITCH_LUE_CTRL1_LINK_DOWN_FLUSH   0x01
 
#define KSZ9477_SWITCH_LUE_CTRL2_DOUBLE_TAG_MCAST_TRAP   0x40
 
#define KSZ9477_SWITCH_LUE_CTRL2_DYNAMIC_ENTRY_EG_VLAN_FILT   0x20
 
#define KSZ9477_SWITCH_LUE_CTRL2_STATIC_ENTRY_EG_VLAN_FILT   0x10
 
#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION   0x0C
 
#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_NONE   0x00
 
#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_DYNAMIC   0x04
 
#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_STATIC   0x08
 
#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_BOTH   0x0C
 
#define KSZ9477_SWITCH_LUE_CTRL2_MAC_ADDR_PRIORITY   0x03
 
#define KSZ9477_SWITCH_LUE_CTRL3_AGE_PERIOD   0xFF
 
#define KSZ9477_SWITCH_LUE_CTRL3_AGE_PERIOD_DEFAULT   0x4B
 
#define KSZ9477_ALU_TABLE_INT_LEARN_FAIL   0x04
 
#define KSZ9477_ALU_TABLE_INT_ALMOST_FULL   0x02
 
#define KSZ9477_ALU_TABLE_INT_WRITE_FAIL   0x01
 
#define KSZ9477_ALU_TABLE_MASK_LEARN_FAIL   0x04
 
#define KSZ9477_ALU_TABLE_MASK_ALMOST_FULL   0x02
 
#define KSZ9477_ALU_TABLE_MASK_WRITE_FAIL   0x01
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX0_ALMOST_FULL_ENTRY_INDEX   0x0FFF
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX0_FAIL_WRITE_INDEX   0x03FF
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX1_FAIL_LEARN_INDEX   0x03FF
 
#define KSZ9477_ALU_TABLE_ENTRY_INDEX2_CPU_ACCESS_INDEX   0x03FF
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD   0x80000000
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP   0x0000007F
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT1   0x00000001
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT2   0x00000002
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT3   0x00000004
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT4   0x00000008
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT5   0x00000010
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT6   0x00000020
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT7   0x00000040
 
#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_ALL   0x0000007F
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD   0x80000000
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP   0x0000007F
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT1   0x00000001
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT2   0x00000002
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT3   0x00000004
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT4   0x00000008
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT5   0x00000010
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT6   0x00000020
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT7   0x00000040
 
#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_ALL   0x0000007F
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD   0x80000000
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP   0x0000007F
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT1   0x00000001
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT2   0x00000002
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT3   0x00000004
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT4   0x00000008
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT5   0x00000010
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT6   0x00000020
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT7   0x00000040
 
#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_ALL   0x0000007F
 
#define KSZ9477_SWITCH_MAC_CTRL0_ALT_BACK_OFF_MODE   0x80
 
#define KSZ9477_SWITCH_MAC_CTRL0_FRAME_LEN_CHECK_EN   0x08
 
#define KSZ9477_SWITCH_MAC_CTRL0_FLOW_CTRL_PKT_DROP_MODE   0x02
 
#define KSZ9477_SWITCH_MAC_CTRL0_AGGRESSIVE_BACK_OFF_EN   0x01
 
#define KSZ9477_SWITCH_MAC_CTRL1_MCAST_STORM_PROTECT_DIS   0x40
 
#define KSZ9477_SWITCH_MAC_CTRL1_BACK_PRESSURE_MODE   0x20
 
#define KSZ9477_SWITCH_MAC_CTRL1_FLOW_CTRL_FAIR_MODE   0x10
 
#define KSZ9477_SWITCH_MAC_CTRL1_NO_EXCESSIVE_COL_DROP   0x08
 
#define KSZ9477_SWITCH_MAC_CTRL1_JUMBO_PKT_SUPPORT   0x04
 
#define KSZ9477_SWITCH_MAC_CTRL1_MAX_PKT_SIZE_CHECK_DIS   0x02
 
#define KSZ9477_SWITCH_MAC_CTRL1_PASS_SHORT_PKT   0x01
 
#define KSZ9477_SWITCH_MAC_CTRL2_NULL_VID_REPLACEMENT   0x08
 
#define KSZ9477_SWITCH_MAC_CTRL2_BCAST_STORM_PROTECT_RATE_MSB   0x07
 
#define KSZ9477_SWITCH_MAC_CTRL3_BCAST_STORM_PROTECT_RATE_LSB   0xFF
 
#define KSZ9477_SWITCH_MAC_CTRL4_PASS_FLOW_CTRL_PKT   0x01
 
#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD   0x30
 
#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_16MS   0x00
 
#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_64MS   0x10
 
#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_256MS   0x20
 
#define KSZ9477_SWITCH_MAC_CTRL5_QUEUE_BASED_EG_RATE_LIMITE_EN   0x08
 
#define KSZ9477_SWITCH_MIB_CTRL_FLUSH   0x80
 
#define KSZ9477_SWITCH_MIB_CTRL_FREEZE   0x40
 
#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_IGMP_SNOOP_EN   0x40
 
#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_MLD_SNOOP_OPT   0x08
 
#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_MLD_SNOOP_EN   0x04
 
#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_SNIFF_MODE_SEL   0x01
 
#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_RED   0x30
 
#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_YELLOW   0x0C
 
#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_GREEN   0x03
 
#define KSZ9477_PTP_EVENT_MSG_PRIO_OVERRIDE   0x80
 
#define KSZ9477_PTP_EVENT_MSG_PRIO_PRIORITY   0x0F
 
#define KSZ9477_PTP_NON_EVENT_MSG_PRIO_OVERRIDE   0x80
 
#define KSZ9477_PTP_NON_EVENT_MSG_PRIO_PRIORITY   0x0F
 
#define KSZ9477_QUEUE_MGMT_CTRL0_PRIORITY_2Q   0x000000C0
 
#define KSZ9477_QUEUE_MGMT_CTRL0_UNICAST_PORT_VLAN_DISCARD   0x00000002
 
#define KSZ9477_VLAN_TABLE_ENTRY0_VALID   0x80000000
 
#define KSZ9477_VLAN_TABLE_ENTRY0_FORWARD_OPTION   0x08000000
 
#define KSZ9477_VLAN_TABLE_ENTRY0_PRIORITY   0x07000000
 
#define KSZ9477_VLAN_TABLE_ENTRY0_MSTP_INDEX   0x00007000
 
#define KSZ9477_VLAN_TABLE_ENTRY0_FID   0x0000007F
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT_UNTAG   0x0000007F
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT7_UNTAG   0x00000040
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT6_UNTAG   0x00000020
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT5_UNTAG   0x00000010
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT4_UNTAG   0x00000008
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT3_UNTAG   0x00000004
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT2_UNTAG   0x00000002
 
#define KSZ9477_VLAN_TABLE_ENTRY1_PORT1_UNTAG   0x00000001
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT_FORWARD   0x0000007F
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT7_FORWARD   0x00000040
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT6_FORWARD   0x00000020
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT5_FORWARD   0x00000010
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT4_FORWARD   0x00000008
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT3_FORWARD   0x00000004
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT2_FORWARD   0x00000002
 
#define KSZ9477_VLAN_TABLE_ENTRY2_PORT1_FORWARD   0x00000001
 
#define KSZ9477_VLAN_TABLE_INDEX_VLAN_INDEX   0x0FFF
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_START_FINISH   0x80
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION   0x03
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_NOP   0x00
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_WRITE   0x01
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_READ   0x02
 
#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_CLEAR   0x03
 
#define KSZ9477_ALU_TABLE_INDEX0_FID_INDEX   0x007F0000
 
#define KSZ9477_ALU_TABLE_INDEX0_MAC_INDEX_MSB   0x0000FFFF
 
#define KSZ9477_ALU_TABLE_INDEX1_MAC_INDEX_LSB   0xFFFFFFFF
 
#define KSZ9477_ALU_TABLE_CTRL_VALID_COUNT   0x3FFF0000
 
#define KSZ9477_ALU_TABLE_CTRL_START_FINISH   0x00000080
 
#define KSZ9477_ALU_TABLE_CTRL_VALID   0x00000040
 
#define KSZ9477_ALU_TABLE_CTRL_VALID_ENTRY_OR_SEARCH_END   0x00000020
 
#define KSZ9477_ALU_TABLE_CTRL_DIRECT   0x00000004
 
#define KSZ9477_ALU_TABLE_CTRL_ACTION   0x00000003
 
#define KSZ9477_ALU_TABLE_CTRL_ACTION_NOP   0x00000000
 
#define KSZ9477_ALU_TABLE_CTRL_ACTION_WRITE   0x00000001
 
#define KSZ9477_ALU_TABLE_CTRL_ACTION_READ   0x00000002
 
#define KSZ9477_ALU_TABLE_CTRL_ACTION_SEARCH   0x00000003
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL_TABLE_INDEX   0x003F0000
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL_START_FINISH   0x00000080
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL_TABLE_SELECT   0x00000002
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION   0x00000001
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION_READ   0x00000000
 
#define KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION_WRITE   0x00000001
 
#define KSZ9477_ALU_TABLE_ENTRY1_STATIC   0x80000000
 
#define KSZ9477_ALU_TABLE_ENTRY1_SRC_FILTER   0x40000000
 
#define KSZ9477_ALU_TABLE_ENTRY1_DES_FILTER   0x20000000
 
#define KSZ9477_ALU_TABLE_ENTRY1_PRIORITY   0x1C000000
 
#define KSZ9477_ALU_TABLE_ENTRY1_AGE_COUNT   0x1C000000
 
#define KSZ9477_ALU_TABLE_ENTRY1_MSTP   0x00000007
 
#define KSZ9477_ALU_TABLE_ENTRY2_OVERRIDE   0x80000000
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT_FORWARD   0x0000007F
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT7_FORWARD   0x00000040
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT6_FORWARD   0x00000020
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT5_FORWARD   0x00000010
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT4_FORWARD   0x00000008
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT3_FORWARD   0x00000004
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT2_FORWARD   0x00000002
 
#define KSZ9477_ALU_TABLE_ENTRY2_PORT1_FORWARD   0x00000001
 
#define KSZ9477_ALU_TABLE_ENTRY3_FID   0x007F0000
 
#define KSZ9477_ALU_TABLE_ENTRY3_MAC_ADDR_MSB   0x0000FFFF
 
#define KSZ9477_ALU_TABLE_ENTRY4_MAC_ADDR_LSB   0xFFFFFFFF
 
#define KSZ9477_STATIC_TABLE_ENTRY1_VALID   0x80000000
 
#define KSZ9477_STATIC_TABLE_ENTRY1_SRC_FILTER   0x40000000
 
#define KSZ9477_STATIC_TABLE_ENTRY1_DES_FILTER   0x20000000
 
#define KSZ9477_STATIC_TABLE_ENTRY1_PRIORITY   0x1C000000
 
#define KSZ9477_STATIC_TABLE_ENTRY1_MSTP   0x00000007
 
#define KSZ9477_STATIC_TABLE_ENTRY2_OVERRIDE   0x80000000
 
#define KSZ9477_STATIC_TABLE_ENTRY2_USE_FID   0x40000000
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT_FORWARD   0x0000007F
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT7_FORWARD   0x00000040
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT6_FORWARD   0x00000020
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT5_FORWARD   0x00000010
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT4_FORWARD   0x00000008
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT3_FORWARD   0x00000004
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT2_FORWARD   0x00000002
 
#define KSZ9477_STATIC_TABLE_ENTRY2_PORT1_FORWARD   0x00000001
 
#define KSZ9477_STATIC_TABLE_ENTRY3_FID   0x007F0000
 
#define KSZ9477_STATIC_TABLE_ENTRY3_MAC_ADDR_MSB   0x0000FFFF
 
#define KSZ9477_STATIC_TABLE_ENTRY4_MAC_ADDR_LSB   0xFFFFFFFF
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT_FORWARD   0x0000007F
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT7_FORWARD   0x00000040
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT6_FORWARD   0x00000020
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT5_FORWARD   0x00000010
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT4_FORWARD   0x00000008
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT3_FORWARD   0x00000004
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT2_FORWARD   0x00000002
 
#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT1_FORWARD   0x00000001
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_SW_FREQ_ADJ_DIS   0x8000
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_STEP_ADJ   0x0040
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_STEP_DIR   0x0020
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_READ   0x0010
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_LOAD   0x0008
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_CONTINUOUS_ADJ   0x0004
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_EN   0x0002
 
#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_RESET   0x0001
 
#define KSZ9477_GLOBAL_PTP_RTC_CLK_PHASE_PTP_RTC_8NS_PHASE   0x0007
 
#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_RATE_DIR   0x8000
 
#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_TEMP_ADJ_MODE   0x4000
 
#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_RTC_SUB_NS_29_16   0x3FFF
 
#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_L_PTP_RTC_SUB_NS_15_0   0xFFFF
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IEEE_802_1AS_MODE   0x0080
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IEEE_1588_PTP_MODE   0x0040
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_ETH_PTP_DETECT   0x0020
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IPV4_UDP_PTP_DETECT   0x0010
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IPV6_UDP_PTP_DETECT   0x0008
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_E2E_CLK_MODE   0x0000
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_P2P_CLK_MODE   0x0004
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_SLAVE_OC_CLK_MODE   0x0000
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_MASTER_OC_CLK_MODE   0x0002
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_TWO_STEP_CLK_MODE   0x0000
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_ONE_STEP_CLK_MODE   0x0001
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_UNICAST_PTP_EN   0x1000
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_ALT_MASTER_EN   0x0800
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_PTP_MSG_PRIO_TX_QUEUE   0x0400
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_SYNC_FOLLOW_UP   0x0200
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_DELAY_REQ_RESP   0x0100
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_PDELAY_REQ_RESP   0x0080
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_DROP_SYNC_FOLLOW_UP_DELAY_REQ   0x0020
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_DOMAIN   0x0010
 
#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_IPV4_UDP_CHECKSUM_EN   0x0004
 
#define KSZ9477_GLOBAL_PTP_DOMAIN_VERSION_PTP_VERSION   0x0F00
 
#define KSZ9477_GLOBAL_PTP_DOMAIN_VERSION_PTP_DOMAIN   0x00FF
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX   0x00000100
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX_UNIT0   0x00000000
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX_UNIT1   0x00000100
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX   0x00000003
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT0   0x00000000
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT1   0x00000001
 
#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT2   0x00000002
 
#define KSZ9477_GPIO_STATUS_MONITOR0_TRIGGER_ERROR   0x00070000
 
#define KSZ9477_GPIO_STATUS_MONITOR0_TRIGGER_DONE   0x00000007
 
#define KSZ9477_GPIO_STATUS_MONITOR1_TRIGGER_INT_STATUS   0x00070000
 
#define KSZ9477_GPIO_STATUS_MONITOR1_TS_INT_STATUS   0x00000003
 
#define KSZ9477_TS_CTRL_STAT_GPIO_OUT_SEL   0x00000100
 
#define KSZ9477_TS_CTRL_STAT_GPIO_IN   0x00000080
 
#define KSZ9477_TS_CTRL_STAT_GPIO_OEN   0x00000040
 
#define KSZ9477_TS_CTRL_STAT_TS_INT_ENB   0x00000020
 
#define KSZ9477_TS_CTRL_STAT_TRIGGER_ACTIVE   0x00000010
 
#define KSZ9477_TS_CTRL_STAT_TRIGGER_EN   0x00000008
 
#define KSZ9477_TS_CTRL_STAT_TRIGGER_SW_RESET   0x00000004
 
#define KSZ9477_TS_CTRL_STAT_TS_ENB   0x00000002
 
#define KSZ9477_TS_CTRL_STAT_TS_SW_RESET   0x00000001
 
#define KSZ9477_TOU_TARGET_TIME_NS_TRIGGER_TARGET_TIME_NS   0x3FFFFFFF
 
#define KSZ9477_TOU_TARGET_TIME_S_TRIGGER_TARGET_TIME_S   0xFFFFFFFF
 
#define KSZ9477_TOU_CTRL1_CASCADE_MODE_ENB   0x80000000
 
#define KSZ9477_TOU_CTRL1_CASCADE_MODE_TAIL   0x40000000
 
#define KSZ9477_TOU_CTRL1_CASCADE_MODE_DONE   0x0C000000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_NOW   0x02000000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_NOTIFY   0x01000000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_EDGE   0x00800000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN   0x00700000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_EDGE   0x00000000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_EDGE   0x00100000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_PULSE   0x00200000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_PULSE   0x00300000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_CYCLE   0x00400000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_CYCLE   0x00500000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_REG_OUTPUT   0x00600000
 
#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_ITERATION   0x0000FFFF
 
#define KSZ9477_TOU_CTRL2_TRIGGER_CYCLE_WIDTH   0xFFFFFFFF
 
#define KSZ9477_TOU_CTRL3_TRIGGER_CYCLE   0xFFFF0000
 
#define KSZ9477_TOU_CTRL3_TRIGGER_BIT_PATTERN   0x0000FFFF
 
#define KSZ9477_TOU_CTRL4_CASCADE_INTERATION_CYCLE_TIME   0xFFFFFFFF
 
#define KSZ9477_TOU_CTRL5_PPS_PULSE_WIDTH   0x00FF0000
 
#define KSZ9477_TOU_CTRL5_TRIGGER_PULSE_WIDTH   0x0000FFFF
 
#define KSZ9477_TS_STAT_CTRL_TS_EVENT_DET_CNT   0x001E0000
 
#define KSZ9477_TS_STAT_CTRL_TS_DET_EVENT_CNT_OVERFLOW   0x00010000
 
#define KSZ9477_TS_STAT_CTRL_TS_RISING_EDGE_ENB   0x00000080
 
#define KSZ9477_TS_STAT_CTRL_TS_FALLING_EDGE_ENB   0x00000040
 
#define KSZ9477_TS_STAT_CTRL_TS_CASCADE_MODE_TAIL   0x00000020
 
#define KSZ9477_TS_STAT_CTRL_TS_UPSTREAM_CASCADE_MODE_SEL   0x00000002
 
#define KSZ9477_TS_STAT_CTRL_TS_CASCADE_MODE_ENB   0x00000001
 
#define KSZ9477_TS_SAMPLE1_TIME_NS_TS_SAMPLE_EDGE_1ST   0x40000000
 
#define KSZ9477_TS_SAMPLE1_TIME_NS_TS_SAMPLE_TIME_NS_1ST   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE1_TIME_S_TS_SAMPLE_TIME_S_1ST   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE1_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_1ST   0x00000007
 
#define KSZ9477_TS_SAMPLE2_TIME_NS_TS_SAMPLE_EDGE_2ND   0x40000000
 
#define KSZ9477_TS_SAMPLE2_TIME_NS_TS_SAMPLE_TIME_NS_2ND   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE2_TIME_S_TS_SAMPLE_TIME_S_2ND   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE2_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_2ND   0x00000007
 
#define KSZ9477_TS_SAMPLE3_TIME_NS_TS_SAMPLE_EDGE_3RD   0x40000000
 
#define KSZ9477_TS_SAMPLE3_TIME_NS_TS_SAMPLE_TIME_NS_3RD   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE3_TIME_S_TS_SAMPLE_TIME_S_3RD   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE3_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_3RD   0x00000007
 
#define KSZ9477_TS_SAMPLE4_TIME_NS_TS_SAMPLE_EDGE_4TH   0x40000000
 
#define KSZ9477_TS_SAMPLE4_TIME_NS_TS_SAMPLE_TIME_NS_4TH   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE4_TIME_S_TS_SAMPLE_TIME_S_4TH   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE4_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_4TH   0x00000007
 
#define KSZ9477_TS_SAMPLE5_TIME_NS_TS_SAMPLE_EDGE_5TH   0x40000000
 
#define KSZ9477_TS_SAMPLE5_TIME_NS_TS_SAMPLE_TIME_NS_5TH   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE5_TIME_S_TS_SAMPLE_TIME_S_5TH   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE5_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_5TH   0x00000007
 
#define KSZ9477_TS_SAMPLE6_TIME_NS_TS_SAMPLE_EDGE_6TH   0x40000000
 
#define KSZ9477_TS_SAMPLE6_TIME_NS_TS_SAMPLE_TIME_NS_6TH   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE6_TIME_S_TS_SAMPLE_TIME_S_6TH   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE6_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_6TH   0x00000007
 
#define KSZ9477_TS_SAMPLE7_TIME_NS_TS_SAMPLE_EDGE_7TH   0x40000000
 
#define KSZ9477_TS_SAMPLE7_TIME_NS_TS_SAMPLE_TIME_NS_7TH   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE7_TIME_S_TS_SAMPLE_TIME_S_7TH   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE7_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_7TH   0x00000007
 
#define KSZ9477_TS_SAMPLE8_TIME_NS_TS_SAMPLE_EDGE_8TH   0x40000000
 
#define KSZ9477_TS_SAMPLE8_TIME_NS_TS_SAMPLE_TIME_NS_8TH   0x3FFFFFFF
 
#define KSZ9477_TS_SAMPLE8_TIME_S_TS_SAMPLE_TIME_S_8TH   0xFFFFFFFF
 
#define KSZ9477_TS_SAMPLE8_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_8TH   0x00000007
 
#define KSZ9477_PORTn_DEFAULT_TAG0_PCP   0xE0
 
#define KSZ9477_PORTn_DEFAULT_TAG0_DEI   0x10
 
#define KSZ9477_PORTn_DEFAULT_TAG0_VID_MSB   0x0F
 
#define KSZ9477_PORTn_DEFAULT_TAG1_VID_LSB   0xFF
 
#define KSZ9477_PORTn_INT_STATUS_SGMII_AN_DONE   0x08
 
#define KSZ9477_PORTn_INT_STATUS_PTP   0x04
 
#define KSZ9477_PORTn_INT_STATUS_PHY   0x02
 
#define KSZ9477_PORTn_INT_STATUS_ACL   0x01
 
#define KSZ9477_PORTn_INT_MASK_SGMII_AN_DONE   0x08
 
#define KSZ9477_PORTn_INT_MASK_PTP   0x04
 
#define KSZ9477_PORTn_INT_MASK_PHY   0x02
 
#define KSZ9477_PORTn_INT_MASK_ACL   0x01
 
#define KSZ9477_PORTn_OP_CTRL0_LOCAL_LOOPBACK   0x80
 
#define KSZ9477_PORTn_OP_CTRL0_REMOTE_LOOPBACK   0x40
 
#define KSZ9477_PORTn_OP_CTRL0_TAIL_TAG_EN   0x04
 
#define KSZ9477_PORTn_OP_CTRL0_TX_QUEUE_SPLIT_EN   0x03
 
#define KSZ9477_PORTn_STATUS_SPEED   0x18
 
#define KSZ9477_PORTn_STATUS_SPEED_10MBPS   0x00
 
#define KSZ9477_PORTn_STATUS_SPEED_100MBPS   0x08
 
#define KSZ9477_PORTn_STATUS_SPEED_1000MBPS   0x10
 
#define KSZ9477_PORTn_STATUS_DUPLEX   0x04
 
#define KSZ9477_PORTn_STATUS_TX_FLOW_CTRL_EN   0x02
 
#define KSZ9477_PORTn_STATUS_RX_FLOW_CTRL_EN   0x01
 
#define KSZ9477_PORTn_XMII_CTRL0_DUPLEX   0x40
 
#define KSZ9477_PORTn_XMII_CTRL0_TX_FLOW_CTRL_EN   0x20
 
#define KSZ9477_PORTn_XMII_CTRL0_SPEED_10_100   0x10
 
#define KSZ9477_PORTn_XMII_CTRL0_RX_FLOW_CTRL_EN   0x08
 
#define KSZ9477_PORTn_XMII_CTRL1_SPEED_1000   0x40
 
#define KSZ9477_PORTn_XMII_CTRL1_RGMII_ID_IG   0x10
 
#define KSZ9477_PORTn_XMII_CTRL1_RGMII_ID_EG   0x08
 
#define KSZ9477_PORTn_XMII_CTRL1_MII_RMII_MODE   0x04
 
#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE   0x03
 
#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_RGMII   0x00
 
#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_RMII   0x01
 
#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_MII   0x03
 
#define KSZ9477_PORTn_MAC_CTRL0_BCAST_STORM_PROTECT_EN   0x02
 
#define KSZ9477_PORTn_MAC_CTRL1_BACK_PRESSURE_EN   0x08
 
#define KSZ9477_PORTn_MAC_CTRL1_PASS_ALL_FRAMES   0x01
 
#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_COUNTER_OVERFLOW   0x80000000
 
#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_READ   0x02000000
 
#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_FLUSH_FREEZE   0x01000000
 
#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_INDEX   0x00FF0000
 
#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_COUNTER_VALUE_35_32   0x0000000F
 
#define KSZ9477_PORTn_MIB_DATA_MIB_COUNTER_VALUE_31_0   0xFFFFFFFF
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_WRITE_STATUS   0x40
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_READ_STATUS   0x20
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_READ   0x00
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_WRITE   0x10
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_ACL_INDEX   0x0F
 
#define KSZ9477_PORTn_ACL_ACCESS_CTRL1_FORCE_DLR_MISS   0x01
 
#define KSZ9477_PORTn_MIRRORING_CTRL_RECEIVE_SNIFF   0x40
 
#define KSZ9477_PORTn_MIRRORING_CTRL_TRANSMIT_SNIFF   0x20
 
#define KSZ9477_PORTn_MIRRORING_CTRL_SNIFFER_PORT   0x02
 
#define KSZ9477_PORTn_AUTH_CTRL_ACL_EN   0x04
 
#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE   0x03
 
#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_PASS   0x00
 
#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_BLOCK   0x01
 
#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_TRAP   0x02
 
#define KSZ9477_PORTn_PTR_PORT_INDEX   0x00070000
 
#define KSZ9477_PORTn_PTR_QUEUE_PTR   0x00000003
 
#define KSZ9477_PORTn_CTRL1_PORT_VLAN_MEMBERSHIP   0x0000007F
 
#define KSZ9477_PORTn_CTRL1_PORT7_VLAN_MEMBERSHIP   0x00000040
 
#define KSZ9477_PORTn_CTRL1_PORT6_VLAN_MEMBERSHIP   0x00000020
 
#define KSZ9477_PORTn_CTRL1_PORT5_VLAN_MEMBERSHIP   0x00000010
 
#define KSZ9477_PORTn_CTRL1_PORT4_VLAN_MEMBERSHIP   0x00000008
 
#define KSZ9477_PORTn_CTRL1_PORT3_VLAN_MEMBERSHIP   0x00000004
 
#define KSZ9477_PORTn_CTRL1_PORT2_VLAN_MEMBERSHIP   0x00000002
 
#define KSZ9477_PORTn_CTRL1_PORT1_VLAN_MEMBERSHIP   0x00000001
 
#define KSZ9477_PORTn_CTRL2_NULL_VID_LOOKUP_EN   0x80
 
#define KSZ9477_PORTn_CTRL2_INGRESS_VLAN_FILT   0x40
 
#define KSZ9477_PORTn_CTRL2_DISCARD_NON_PVID_PKT   0x20
 
#define KSZ9477_PORTn_CTRL2_802_1X_EN   0x10
 
#define KSZ9477_PORTn_CTRL2_SELF_ADDR_FILT   0x08
 
#define KSZ9477_PORTn_MSTP_PTR_MSTP_PTR   0x07
 
#define KSZ9477_PORTn_MSTP_STATE_TRANSMIT_EN   0x04
 
#define KSZ9477_PORTn_MSTP_STATE_RECEIVE_EN   0x02
 
#define KSZ9477_PORTn_MSTP_STATE_LEARNING_DIS   0x01
 
#define KSZ9477_PORTn_PTP_ASYM_CORRECTION_PTP_ASYM_COR_SIGN   0x8000
 
#define KSZ9477_PORTn_PTP_ASYM_CORRECTION_PTP_ASYM_COR   0x7FFF
 
#define KSZ9477_PORTn_PTP_TS_INT_STAT_TS_SYNC_INT_STATUS   0x8000
 
#define KSZ9477_PORTn_PTP_TS_INT_STAT_TS_PDLY_REQ_INT_STATUS   0x4000
 
#define KSZ9477_PORTn_PTP_TS_INT_STAT_TS_PDLY_RESP_INT_STATUS   0x2000
 
#define KSZ9477_PORTn_PTP_TS_INT_EN_TS_SYNC_INT_ENB   0x8000
 
#define KSZ9477_PORTn_PTP_TS_INT_EN_TS_PDLY_REQ_INT_ENB   0x4000
 
#define KSZ9477_PORTn_PTP_TS_INT_EN_TS_PDLY_RESP_INT_ENB   0x2000
 

Functions

error_t ksz9477Init (NetInterface *interface)
 KSZ9477 Ethernet switch initialization. More...
 
void ksz9477InitHook (NetInterface *interface)
 KSZ9477 custom configuration. More...
 
void ksz9477Tick (NetInterface *interface)
 KSZ9477 timer handler. More...
 
void ksz9477EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void ksz9477DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void ksz9477EventHandler (NetInterface *interface)
 KSZ9477 event handler. More...
 
error_t ksz9477TagFrame (NetInterface *interface, NetBuffer *buffer, size_t *offset, NetTxAncillary *ancillary)
 Add tail tag to Ethernet frame. More...
 
error_t ksz9477UntagFrame (NetInterface *interface, uint8_t **frame, size_t *length, NetRxAncillary *ancillary)
 Decode tail tag from incoming Ethernet frame. More...
 
bool_t ksz9477GetLinkState (NetInterface *interface, uint8_t port)
 Get link state. More...
 
uint32_t ksz9477GetLinkSpeed (NetInterface *interface, uint8_t port)
 Get link speed. More...
 
NicDuplexMode ksz9477GetDuplexMode (NetInterface *interface, uint8_t port)
 Get duplex mode. More...
 
void ksz9477SetPortState (NetInterface *interface, uint8_t port, SwitchPortState state)
 Set port state. More...
 
SwitchPortState ksz9477GetPortState (NetInterface *interface, uint8_t port)
 Get port state. More...
 
void ksz9477SetAgingTime (NetInterface *interface, uint32_t agingTime)
 Set aging time for dynamic filtering entries. More...
 
void ksz9477EnableIgmpSnooping (NetInterface *interface, bool_t enable)
 Enable IGMP snooping. More...
 
void ksz9477EnableMldSnooping (NetInterface *interface, bool_t enable)
 Enable MLD snooping. More...
 
void ksz9477EnableRsvdMcastTable (NetInterface *interface, bool_t enable)
 Enable reserved multicast table. More...
 
error_t ksz9477AddStaticFdbEntry (NetInterface *interface, const SwitchFdbEntry *entry)
 Add a new entry to the static MAC table. More...
 
error_t ksz9477DeleteStaticFdbEntry (NetInterface *interface, const SwitchFdbEntry *entry)
 Remove an entry from the static MAC table. More...
 
error_t ksz9477GetStaticFdbEntry (NetInterface *interface, uint_t index, SwitchFdbEntry *entry)
 Read an entry from the static MAC table. More...
 
void ksz9477FlushStaticFdbTable (NetInterface *interface)
 Flush static MAC table. More...
 
error_t ksz9477GetDynamicFdbEntry (NetInterface *interface, uint_t index, SwitchFdbEntry *entry)
 Read an entry from the dynamic MAC table. More...
 
void ksz9477FlushDynamicFdbTable (NetInterface *interface, uint8_t port)
 Flush dynamic MAC table. More...
 
void ksz9477SetUnknownMcastFwdPorts (NetInterface *interface, bool_t enable, uint32_t forwardPorts)
 Set forward ports for unknown multicast packets. More...
 
void ksz9477WritePhyReg (NetInterface *interface, uint8_t port, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t ksz9477ReadPhyReg (NetInterface *interface, uint8_t port, uint8_t address)
 Read PHY register. More...
 
void ksz9477DumpPhyReg (NetInterface *interface, uint8_t port)
 Dump PHY registers for debugging purpose. More...
 
void ksz9477WriteMmdReg (NetInterface *interface, uint8_t port, uint8_t devAddr, uint16_t regAddr, uint16_t data)
 Write MMD register. More...
 
uint16_t ksz9477ReadMmdReg (NetInterface *interface, uint8_t port, uint8_t devAddr, uint16_t regAddr)
 Read MMD register. More...
 
void ksz9477WriteSwitchReg8 (NetInterface *interface, uint16_t address, uint8_t data)
 Write switch register (8 bits) More...
 
uint8_t ksz9477ReadSwitchReg8 (NetInterface *interface, uint16_t address)
 Read switch register (8 bits) More...
 
void ksz9477WriteSwitchReg16 (NetInterface *interface, uint16_t address, uint16_t data)
 Write switch register (16 bits) More...
 
uint16_t ksz9477ReadSwitchReg16 (NetInterface *interface, uint16_t address)
 Read switch register (16 bits) More...
 
void ksz9477WriteSwitchReg32 (NetInterface *interface, uint16_t address, uint32_t data)
 Write switch register (32 bits) More...
 
uint32_t ksz9477ReadSwitchReg32 (NetInterface *interface, uint16_t address)
 Read switch register (32 bits) More...
 

Variables

const SwitchDriver ksz9477SwitchDriver
 KSZ9477 Ethernet switch driver. More...
 

Detailed Description

KSZ9477 7-port Gigabit Ethernet switch driver.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file ksz9477_driver.h.

Macro Definition Documentation

◆ KSZ9477_802_1P_PRIO_MAPPING0

#define KSZ9477_802_1P_PRIO_MAPPING0   0x0338

Definition at line 178 of file ksz9477_driver.h.

◆ KSZ9477_802_1P_PRIO_MAPPING1

#define KSZ9477_802_1P_PRIO_MAPPING1   0x0339

Definition at line 179 of file ksz9477_driver.h.

◆ KSZ9477_802_1P_PRIO_MAPPING2

#define KSZ9477_802_1P_PRIO_MAPPING2   0x033A

Definition at line 180 of file ksz9477_driver.h.

◆ KSZ9477_802_1P_PRIO_MAPPING3

#define KSZ9477_802_1P_PRIO_MAPPING3   0x033B

Definition at line 181 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL

#define KSZ9477_ALU_TABLE_CTRL   0x0418

Definition at line 227 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_ACTION

#define KSZ9477_ALU_TABLE_CTRL_ACTION   0x00000003

Definition at line 1563 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_ACTION_NOP

#define KSZ9477_ALU_TABLE_CTRL_ACTION_NOP   0x00000000

Definition at line 1564 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_ACTION_READ

#define KSZ9477_ALU_TABLE_CTRL_ACTION_READ   0x00000002

Definition at line 1566 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_ACTION_SEARCH

#define KSZ9477_ALU_TABLE_CTRL_ACTION_SEARCH   0x00000003

Definition at line 1567 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_ACTION_WRITE

#define KSZ9477_ALU_TABLE_CTRL_ACTION_WRITE   0x00000001

Definition at line 1565 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_DIRECT

#define KSZ9477_ALU_TABLE_CTRL_DIRECT   0x00000004

Definition at line 1562 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_START_FINISH

#define KSZ9477_ALU_TABLE_CTRL_START_FINISH   0x00000080

Definition at line 1559 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_VALID

#define KSZ9477_ALU_TABLE_CTRL_VALID   0x00000040

Definition at line 1560 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_VALID_COUNT

#define KSZ9477_ALU_TABLE_CTRL_VALID_COUNT   0x3FFF0000

Definition at line 1558 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_CTRL_VALID_ENTRY_OR_SEARCH_END

#define KSZ9477_ALU_TABLE_CTRL_VALID_ENTRY_OR_SEARCH_END   0x00000020

Definition at line 1561 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1

#define KSZ9477_ALU_TABLE_ENTRY1   0x0420

Definition at line 229 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1_AGE_COUNT

#define KSZ9477_ALU_TABLE_ENTRY1_AGE_COUNT   0x1C000000

Definition at line 1582 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1_DES_FILTER

#define KSZ9477_ALU_TABLE_ENTRY1_DES_FILTER   0x20000000

Definition at line 1580 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1_MSTP

#define KSZ9477_ALU_TABLE_ENTRY1_MSTP   0x00000007

Definition at line 1583 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1_PRIORITY

#define KSZ9477_ALU_TABLE_ENTRY1_PRIORITY   0x1C000000

Definition at line 1581 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1_SRC_FILTER

#define KSZ9477_ALU_TABLE_ENTRY1_SRC_FILTER   0x40000000

Definition at line 1579 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY1_STATIC

#define KSZ9477_ALU_TABLE_ENTRY1_STATIC   0x80000000

Definition at line 1578 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2

#define KSZ9477_ALU_TABLE_ENTRY2   0x0424

Definition at line 231 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_OVERRIDE

#define KSZ9477_ALU_TABLE_ENTRY2_OVERRIDE   0x80000000

Definition at line 1586 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT1_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT1_FORWARD   0x00000001

Definition at line 1594 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT2_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT2_FORWARD   0x00000002

Definition at line 1593 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT3_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT3_FORWARD   0x00000004

Definition at line 1592 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT4_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT4_FORWARD   0x00000008

Definition at line 1591 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT5_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT5_FORWARD   0x00000010

Definition at line 1590 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT6_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT6_FORWARD   0x00000020

Definition at line 1589 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT7_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT7_FORWARD   0x00000040

Definition at line 1588 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY2_PORT_FORWARD

#define KSZ9477_ALU_TABLE_ENTRY2_PORT_FORWARD   0x0000007F

Definition at line 1587 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY3

#define KSZ9477_ALU_TABLE_ENTRY3   0x0428

Definition at line 234 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY3_FID

#define KSZ9477_ALU_TABLE_ENTRY3_FID   0x007F0000

Definition at line 1597 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY3_MAC_ADDR_MSB

#define KSZ9477_ALU_TABLE_ENTRY3_MAC_ADDR_MSB   0x0000FFFF

Definition at line 1598 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY4

#define KSZ9477_ALU_TABLE_ENTRY4   0x042C

Definition at line 236 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY4_MAC_ADDR_LSB

#define KSZ9477_ALU_TABLE_ENTRY4_MAC_ADDR_LSB   0xFFFFFFFF

Definition at line 1601 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX0

#define KSZ9477_ALU_TABLE_ENTRY_INDEX0   0x0316

Definition at line 165 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX0_ALMOST_FULL_ENTRY_INDEX

#define KSZ9477_ALU_TABLE_ENTRY_INDEX0_ALMOST_FULL_ENTRY_INDEX   0x0FFF

Definition at line 1408 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX0_FAIL_WRITE_INDEX

#define KSZ9477_ALU_TABLE_ENTRY_INDEX0_FAIL_WRITE_INDEX   0x03FF

Definition at line 1409 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX1

#define KSZ9477_ALU_TABLE_ENTRY_INDEX1   0x0318

Definition at line 166 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX1_FAIL_LEARN_INDEX

#define KSZ9477_ALU_TABLE_ENTRY_INDEX1_FAIL_LEARN_INDEX   0x03FF

Definition at line 1412 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX2

#define KSZ9477_ALU_TABLE_ENTRY_INDEX2   0x031A

Definition at line 167 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_ENTRY_INDEX2_CPU_ACCESS_INDEX

#define KSZ9477_ALU_TABLE_ENTRY_INDEX2_CPU_ACCESS_INDEX   0x03FF

Definition at line 1415 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INDEX0

#define KSZ9477_ALU_TABLE_INDEX0   0x0410

Definition at line 225 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INDEX0_FID_INDEX

#define KSZ9477_ALU_TABLE_INDEX0_FID_INDEX   0x007F0000

Definition at line 1551 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INDEX0_MAC_INDEX_MSB

#define KSZ9477_ALU_TABLE_INDEX0_MAC_INDEX_MSB   0x0000FFFF

Definition at line 1552 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INDEX1

#define KSZ9477_ALU_TABLE_INDEX1   0x0414

Definition at line 226 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INDEX1_MAC_INDEX_LSB

#define KSZ9477_ALU_TABLE_INDEX1_MAC_INDEX_LSB   0xFFFFFFFF

Definition at line 1555 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INT

#define KSZ9477_ALU_TABLE_INT   0x0314

Definition at line 163 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INT_ALMOST_FULL

#define KSZ9477_ALU_TABLE_INT_ALMOST_FULL   0x02

Definition at line 1399 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INT_LEARN_FAIL

#define KSZ9477_ALU_TABLE_INT_LEARN_FAIL   0x04

Definition at line 1398 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_INT_WRITE_FAIL

#define KSZ9477_ALU_TABLE_INT_WRITE_FAIL   0x01

Definition at line 1400 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_MASK

#define KSZ9477_ALU_TABLE_MASK   0x0315

Definition at line 164 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_MASK_ALMOST_FULL

#define KSZ9477_ALU_TABLE_MASK_ALMOST_FULL   0x02

Definition at line 1404 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_MASK_LEARN_FAIL

#define KSZ9477_ALU_TABLE_MASK_LEARN_FAIL   0x04

Definition at line 1403 of file ksz9477_driver.h.

◆ KSZ9477_ALU_TABLE_MASK_WRITE_FAIL

#define KSZ9477_ALU_TABLE_MASK_WRITE_FAIL   0x01

Definition at line 1405 of file ksz9477_driver.h.

◆ KSZ9477_ANAR

#define KSZ9477_ANAR   0x04

Definition at line 86 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_100BT4

#define KSZ9477_ANAR_100BT4   0x0200

Definition at line 1052 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_100BTX_FD

#define KSZ9477_ANAR_100BTX_FD   0x0100

Definition at line 1053 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_100BTX_HD

#define KSZ9477_ANAR_100BTX_HD   0x0080

Definition at line 1054 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_10BT_FD

#define KSZ9477_ANAR_10BT_FD   0x0040

Definition at line 1055 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_10BT_HD

#define KSZ9477_ANAR_10BT_HD   0x0020

Definition at line 1056 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_NEXT_PAGE

#define KSZ9477_ANAR_NEXT_PAGE   0x8000

Definition at line 1049 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_PAUSE

#define KSZ9477_ANAR_PAUSE   0x0C00

Definition at line 1051 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_REMOTE_FAULT

#define KSZ9477_ANAR_REMOTE_FAULT   0x2000

Definition at line 1050 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_SELECTOR

#define KSZ9477_ANAR_SELECTOR   0x001F

Definition at line 1057 of file ksz9477_driver.h.

◆ KSZ9477_ANAR_SELECTOR_DEFAULT

#define KSZ9477_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 1058 of file ksz9477_driver.h.

◆ KSZ9477_ANER

#define KSZ9477_ANER   0x06

Definition at line 88 of file ksz9477_driver.h.

◆ KSZ9477_ANER_LP_AN_ABLE

#define KSZ9477_ANER_LP_AN_ABLE   0x0001

Definition at line 1078 of file ksz9477_driver.h.

◆ KSZ9477_ANER_LP_NEXT_PAGE_ABLE

#define KSZ9477_ANER_LP_NEXT_PAGE_ABLE   0x0008

Definition at line 1075 of file ksz9477_driver.h.

◆ KSZ9477_ANER_NEXT_PAGE_ABLE

#define KSZ9477_ANER_NEXT_PAGE_ABLE   0x0004

Definition at line 1076 of file ksz9477_driver.h.

◆ KSZ9477_ANER_PAGE_RECEIVED

#define KSZ9477_ANER_PAGE_RECEIVED   0x0002

Definition at line 1077 of file ksz9477_driver.h.

◆ KSZ9477_ANER_PAR_DETECT_FAULT

#define KSZ9477_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 1074 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR

#define KSZ9477_ANLPAR   0x05

Definition at line 87 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_100BT4

#define KSZ9477_ANLPAR_100BT4   0x0200

Definition at line 1065 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_100BTX_FD

#define KSZ9477_ANLPAR_100BTX_FD   0x0100

Definition at line 1066 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_100BTX_HD

#define KSZ9477_ANLPAR_100BTX_HD   0x0080

Definition at line 1067 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_10BT_FD

#define KSZ9477_ANLPAR_10BT_FD   0x0040

Definition at line 1068 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_10BT_HD

#define KSZ9477_ANLPAR_10BT_HD   0x0020

Definition at line 1069 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_ACK

#define KSZ9477_ANLPAR_ACK   0x4000

Definition at line 1062 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_NEXT_PAGE

#define KSZ9477_ANLPAR_NEXT_PAGE   0x8000

Definition at line 1061 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_PAUSE

#define KSZ9477_ANLPAR_PAUSE   0x0C00

Definition at line 1064 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_REMOTE_FAULT

#define KSZ9477_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 1063 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_SELECTOR

#define KSZ9477_ANLPAR_SELECTOR   0x001F

Definition at line 1070 of file ksz9477_driver.h.

◆ KSZ9477_ANLPAR_SELECTOR_DEFAULT

#define KSZ9477_ANLPAR_SELECTOR_DEFAULT   0x0001

Definition at line 1071 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR

#define KSZ9477_ANLPNPR   0x08

Definition at line 90 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR_ACK

#define KSZ9477_ANLPNPR_ACK   0x4000

Definition at line 1089 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR_ACK2

#define KSZ9477_ANLPNPR_ACK2   0x1000

Definition at line 1091 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR_MESSAGE

#define KSZ9477_ANLPNPR_MESSAGE   0x07FF

Definition at line 1093 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR_MSG_PAGE

#define KSZ9477_ANLPNPR_MSG_PAGE   0x2000

Definition at line 1090 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR_NEXT_PAGE

#define KSZ9477_ANLPNPR_NEXT_PAGE   0x8000

Definition at line 1088 of file ksz9477_driver.h.

◆ KSZ9477_ANLPNPR_TOGGLE

#define KSZ9477_ANLPNPR_TOGGLE   0x0800

Definition at line 1092 of file ksz9477_driver.h.

◆ KSZ9477_ANNPR

#define KSZ9477_ANNPR   0x07

Definition at line 89 of file ksz9477_driver.h.

◆ KSZ9477_ANNPR_ACK2

#define KSZ9477_ANNPR_ACK2   0x1000

Definition at line 1083 of file ksz9477_driver.h.

◆ KSZ9477_ANNPR_MESSAGE

#define KSZ9477_ANNPR_MESSAGE   0x07FF

Definition at line 1085 of file ksz9477_driver.h.

◆ KSZ9477_ANNPR_MSG_PAGE

#define KSZ9477_ANNPR_MSG_PAGE   0x2000

Definition at line 1082 of file ksz9477_driver.h.

◆ KSZ9477_ANNPR_NEXT_PAGE

#define KSZ9477_ANNPR_NEXT_PAGE   0x8000

Definition at line 1081 of file ksz9477_driver.h.

◆ KSZ9477_ANNPR_TOGGLE

#define KSZ9477_ANNPR_TOGGLE   0x0800

Definition at line 1084 of file ksz9477_driver.h.

◆ KSZ9477_AUTOMDI

#define KSZ9477_AUTOMDI   0x1C

Definition at line 101 of file ksz9477_driver.h.

◆ KSZ9477_AUTOMDI_MDI_SET

#define KSZ9477_AUTOMDI_MDI_SET   0x0080

Definition at line 1165 of file ksz9477_driver.h.

◆ KSZ9477_AUTOMDI_SWAP_OFF

#define KSZ9477_AUTOMDI_SWAP_OFF   0x0040

Definition at line 1166 of file ksz9477_driver.h.

◆ KSZ9477_AVB_CBS_STRATEGY

#define KSZ9477_AVB_CBS_STRATEGY   0x030E

Definition at line 158 of file ksz9477_driver.h.

◆ KSZ9477_AVB_CBS_STRATEGY_POLICING_CREDIT_ACCOUNTING

#define KSZ9477_AVB_CBS_STRATEGY_POLICING_CREDIT_ACCOUNTING   0x0001

Definition at line 1359 of file ksz9477_driver.h.

◆ KSZ9477_AVB_CBS_STRATEGY_SHAPING_CREDIT_ACCOUNTING

#define KSZ9477_AVB_CBS_STRATEGY_SHAPING_CREDIT_ACCOUNTING   0x0002

Definition at line 1358 of file ksz9477_driver.h.

◆ KSZ9477_BMCR

#define KSZ9477_BMCR   0x00

Definition at line 82 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_AN_EN

#define KSZ9477_BMCR_AN_EN   0x1000

Definition at line 1019 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_COL_TEST

#define KSZ9477_BMCR_COL_TEST   0x0080

Definition at line 1024 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_DUPLEX_MODE

#define KSZ9477_BMCR_DUPLEX_MODE   0x0100

Definition at line 1023 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_ISOLATE

#define KSZ9477_BMCR_ISOLATE   0x0400

Definition at line 1021 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_LOOPBACK

#define KSZ9477_BMCR_LOOPBACK   0x4000

Definition at line 1017 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_POWER_DOWN

#define KSZ9477_BMCR_POWER_DOWN   0x0800

Definition at line 1020 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_RESET

#define KSZ9477_BMCR_RESET   0x8000

Definition at line 1016 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_RESTART_AN

#define KSZ9477_BMCR_RESTART_AN   0x0200

Definition at line 1022 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_SPEED_SEL_LSB

#define KSZ9477_BMCR_SPEED_SEL_LSB   0x2000

Definition at line 1018 of file ksz9477_driver.h.

◆ KSZ9477_BMCR_SPEED_SEL_MSB

#define KSZ9477_BMCR_SPEED_SEL_MSB   0x0040

Definition at line 1025 of file ksz9477_driver.h.

◆ KSZ9477_BMSR

#define KSZ9477_BMSR   0x01

Definition at line 83 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_100BT4

#define KSZ9477_BMSR_100BT4   0x8000

Definition at line 1028 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_100BTX_FD

#define KSZ9477_BMSR_100BTX_FD   0x4000

Definition at line 1029 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_100BTX_HD

#define KSZ9477_BMSR_100BTX_HD   0x2000

Definition at line 1030 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_10BT_FD

#define KSZ9477_BMSR_10BT_FD   0x1000

Definition at line 1031 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_10BT_HD

#define KSZ9477_BMSR_10BT_HD   0x0800

Definition at line 1032 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_AN_CAPABLE

#define KSZ9477_BMSR_AN_CAPABLE   0x0008

Definition at line 1037 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_AN_COMPLETE

#define KSZ9477_BMSR_AN_COMPLETE   0x0020

Definition at line 1035 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_EXTENDED_CAPABLE

#define KSZ9477_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 1040 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_EXTENDED_STATUS

#define KSZ9477_BMSR_EXTENDED_STATUS   0x0100

Definition at line 1033 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_JABBER_DETECT

#define KSZ9477_BMSR_JABBER_DETECT   0x0002

Definition at line 1039 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_LINK_STATUS

#define KSZ9477_BMSR_LINK_STATUS   0x0004

Definition at line 1038 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_MF_PREAMBLE_SUPPR

#define KSZ9477_BMSR_MF_PREAMBLE_SUPPR   0x0040

Definition at line 1034 of file ksz9477_driver.h.

◆ KSZ9477_BMSR_REMOTE_FAULT

#define KSZ9477_BMSR_REMOTE_FAULT   0x0010

Definition at line 1036 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID0

#define KSZ9477_CHIP_ID0   0x0000

Definition at line 129 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID0_DEFAULT

#define KSZ9477_CHIP_ID0_DEFAULT   0x00

Definition at line 1200 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID1

#define KSZ9477_CHIP_ID1   0x0001

Definition at line 130 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID1_DEFAULT

#define KSZ9477_CHIP_ID1_DEFAULT   0x94

Definition at line 1203 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID2

#define KSZ9477_CHIP_ID2   0x0002

Definition at line 131 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID2_DEFAULT

#define KSZ9477_CHIP_ID2_DEFAULT   0x77

Definition at line 1206 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID3

#define KSZ9477_CHIP_ID3   0x0003

Definition at line 132 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID3_GLOBAL_SOFT_RESET

#define KSZ9477_CHIP_ID3_GLOBAL_SOFT_RESET   0x01

Definition at line 1210 of file ksz9477_driver.h.

◆ KSZ9477_CHIP_ID3_REVISION_ID

#define KSZ9477_CHIP_ID3_REVISION_ID   0xF0

Definition at line 1209 of file ksz9477_driver.h.

◆ KSZ9477_DPMAPCSS

#define KSZ9477_DPMAPCSS   0x13

Definition at line 98 of file ksz9477_driver.h.

◆ KSZ9477_DPMAPCSS_1000BT_LINK_STATUS

#define KSZ9477_DPMAPCSS_1000BT_LINK_STATUS   0x0002

Definition at line 1143 of file ksz9477_driver.h.

◆ KSZ9477_DPMAPCSS_100BTX_LINK_STATUS

#define KSZ9477_DPMAPCSS_100BTX_LINK_STATUS   0x0001

Definition at line 1144 of file ksz9477_driver.h.

◆ KSZ9477_DYNAMIC_MAC_TABLE_SIZE

#define KSZ9477_DYNAMIC_MAC_TABLE_SIZE   4096

Definition at line 63 of file ksz9477_driver.h.

◆ KSZ9477_GBCR

#define KSZ9477_GBCR   0x09

Definition at line 91 of file ksz9477_driver.h.

◆ KSZ9477_GBCR_1000BT_FD

#define KSZ9477_GBCR_1000BT_FD   0x0200

Definition at line 1100 of file ksz9477_driver.h.

◆ KSZ9477_GBCR_1000BT_HD

#define KSZ9477_GBCR_1000BT_HD   0x0100

Definition at line 1101 of file ksz9477_driver.h.

◆ KSZ9477_GBCR_MS_MAN_CONF_EN

#define KSZ9477_GBCR_MS_MAN_CONF_EN   0x1000

Definition at line 1097 of file ksz9477_driver.h.

◆ KSZ9477_GBCR_MS_MAN_CONF_VAL

#define KSZ9477_GBCR_MS_MAN_CONF_VAL   0x0800

Definition at line 1098 of file ksz9477_driver.h.

◆ KSZ9477_GBCR_PORT_TYPE

#define KSZ9477_GBCR_PORT_TYPE   0x0400

Definition at line 1099 of file ksz9477_driver.h.

◆ KSZ9477_GBCR_TEST_MODE

#define KSZ9477_GBCR_TEST_MODE   0xE000

Definition at line 1096 of file ksz9477_driver.h.

◆ KSZ9477_GBESR

#define KSZ9477_GBESR   0x0F

Definition at line 95 of file ksz9477_driver.h.

◆ KSZ9477_GBESR_1000BT_FD

#define KSZ9477_GBESR_1000BT_FD   0x2000

Definition at line 1123 of file ksz9477_driver.h.

◆ KSZ9477_GBESR_1000BT_HD

#define KSZ9477_GBESR_1000BT_HD   0x1000

Definition at line 1124 of file ksz9477_driver.h.

◆ KSZ9477_GBESR_1000BX_FD

#define KSZ9477_GBESR_1000BX_FD   0x8000

Definition at line 1121 of file ksz9477_driver.h.

◆ KSZ9477_GBESR_1000BX_HD

#define KSZ9477_GBESR_1000BX_HD   0x4000

Definition at line 1122 of file ksz9477_driver.h.

◆ KSZ9477_GBSR

#define KSZ9477_GBSR   0x0A

Definition at line 92 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_IDLE_ERR_COUNT

#define KSZ9477_GBSR_IDLE_ERR_COUNT   0x00FF

Definition at line 1110 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_LOCAL_RECEIVER_STATUS

#define KSZ9477_GBSR_LOCAL_RECEIVER_STATUS   0x2000

Definition at line 1106 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_LP_1000BT_FD

#define KSZ9477_GBSR_LP_1000BT_FD   0x0800

Definition at line 1108 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_LP_1000BT_HD

#define KSZ9477_GBSR_LP_1000BT_HD   0x0400

Definition at line 1109 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_MS_CONF_FAULT

#define KSZ9477_GBSR_MS_CONF_FAULT   0x8000

Definition at line 1104 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_MS_CONF_RES

#define KSZ9477_GBSR_MS_CONF_RES   0x4000

Definition at line 1105 of file ksz9477_driver.h.

◆ KSZ9477_GBSR_REMOTE_RECEIVER_STATUS

#define KSZ9477_GBSR_REMOTE_RECEIVER_STATUS   0x1000

Definition at line 1107 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_BEACON_INTERVAL

#define KSZ9477_GLOBAL_DLR_BEACON_INTERVAL   0x0614

Definition at line 302 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_BEACON_TIMEOUT

#define KSZ9477_GLOBAL_DLR_BEACON_TIMEOUT   0x0618

Definition at line 303 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_BEACON_TIMEOUT_WINDOW

#define KSZ9477_GLOBAL_DLR_BEACON_TIMEOUT_WINDOW   0x061C

Definition at line 304 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_CLASS

#define KSZ9477_GLOBAL_DLR_CLASS   0x062C

Definition at line 308 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_CTRL

#define KSZ9477_GLOBAL_DLR_CTRL   0x0610

Definition at line 299 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_DEST_ADDR

#define KSZ9477_GLOBAL_DLR_DEST_ADDR   0x0622

Definition at line 306 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_PORT_MAP

#define KSZ9477_GLOBAL_DLR_PORT_MAP   0x0628

Definition at line 307 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_SRC_IP_ADDR

#define KSZ9477_GLOBAL_DLR_SRC_IP_ADDR   0x0608

Definition at line 298 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_SRC_PORT

#define KSZ9477_GLOBAL_DLR_SRC_PORT   0x0604

Definition at line 297 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_STATE

#define KSZ9477_GLOBAL_DLR_STATE   0x0611

Definition at line 300 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_SUPERVISOR_PRECEDENT

#define KSZ9477_GLOBAL_DLR_SUPERVISOR_PRECEDENT   0x0612

Definition at line 301 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_DLR_VLAN

#define KSZ9477_GLOBAL_DLR_VLAN   0x0620

Definition at line 305 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_ACCESS_CTRL

#define KSZ9477_GLOBAL_HSR_ALU_ACCESS_CTRL   0x0450

Definition at line 240 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_INDEX1

#define KSZ9477_GLOBAL_HSR_ALU_INDEX1   0x0444

Definition at line 238 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_INDEX2

#define KSZ9477_GLOBAL_HSR_ALU_INDEX2   0x0448

Definition at line 239 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_A

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_A   0x0454

Definition at line 241 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_B

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_B   0x0458

Definition at line 242 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_C

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_C   0x045C

Definition at line 243 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_D

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_D   0x0460

Definition at line 244 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_E

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_E   0x0464

Definition at line 245 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_F

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_F   0x0468

Definition at line 246 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_ALU_VALUE_G

#define KSZ9477_GLOBAL_HSR_ALU_VALUE_G   0x046C

Definition at line 247 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_AME_AGE_PERIOD

#define KSZ9477_GLOBAL_HSR_AME_AGE_PERIOD   0x0648

Definition at line 312 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_AME_CTRL0

#define KSZ9477_GLOBAL_HSR_AME_CTRL0   0x0644

Definition at line 310 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_AME_CTRL1

#define KSZ9477_GLOBAL_HSR_AME_CTRL1   0x0645

Definition at line 311 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_AME_INT

#define KSZ9477_GLOBAL_HSR_AME_INT   0x064C

Definition at line 313 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_AME_INT_MASK

#define KSZ9477_GLOBAL_HSR_AME_INT_MASK   0x064D

Definition at line 314 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_HSR_PORT_MAP

#define KSZ9477_GLOBAL_HSR_PORT_MAP   0x0640

Definition at line 309 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_INT_MASK

#define KSZ9477_GLOBAL_INT_MASK   0x0014

Definition at line 135 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_INT_MASK_GPIO_TRIG_TS_UNIT

#define KSZ9477_GLOBAL_INT_MASK_GPIO_TRIG_TS_UNIT   0x40000000

Definition at line 1222 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_INT_MASK_LUE

#define KSZ9477_GLOBAL_INT_MASK_LUE   0x80000000

Definition at line 1221 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_INT_STAT

#define KSZ9477_GLOBAL_INT_STAT   0x0010

Definition at line 134 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_INT_STAT_GPIO_TRIG_TS_UNIT

#define KSZ9477_GLOBAL_INT_STAT_GPIO_TRIG_TS_UNIT   0x40000000

Definition at line 1218 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_INT_STAT_LUE

#define KSZ9477_GLOBAL_INT_STAT_LUE   0x80000000

Definition at line 1217 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK

#define KSZ9477_GLOBAL_PORT_INT_MASK   0x001C

Definition at line 137 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT1

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT1   0x00000001

Definition at line 1240 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT2

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT2   0x00000002

Definition at line 1239 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT3

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT3   0x00000004

Definition at line 1238 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT4

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT4   0x00000008

Definition at line 1237 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT5

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT5   0x00000010

Definition at line 1236 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT6

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT6   0x00000020

Definition at line 1235 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_MASK_PORT7

#define KSZ9477_GLOBAL_PORT_INT_MASK_PORT7   0x00000040

Definition at line 1234 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT

#define KSZ9477_GLOBAL_PORT_INT_STAT   0x0018

Definition at line 136 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT1

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT1   0x00000001

Definition at line 1231 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT2

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT2   0x00000002

Definition at line 1230 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT3

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT3   0x00000004

Definition at line 1229 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT4

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT4   0x00000008

Definition at line 1228 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT5

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT5   0x00000010

Definition at line 1227 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT6

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT6   0x00000020

Definition at line 1226 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_INT_STAT_PORT7

#define KSZ9477_GLOBAL_PORT_INT_STAT_PORT7   0x00000040

Definition at line 1225 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL

#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL   0x0370

Definition at line 215 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_IGMP_SNOOP_EN

#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_IGMP_SNOOP_EN   0x40

Definition at line 1490 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_MLD_SNOOP_EN

#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_MLD_SNOOP_EN   0x04

Definition at line 1492 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_MLD_SNOOP_OPT

#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_MLD_SNOOP_OPT   0x08

Definition at line 1491 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_SNIFF_MODE_SEL

#define KSZ9477_GLOBAL_PORT_MIRROR_SNOOP_CTRL_SNIFF_MODE_SEL   0x01

Definition at line 1493 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL

#define KSZ9477_GLOBAL_PTP_CLK_CTRL   0x0500

Definition at line 248 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_CONTINUOUS_ADJ

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_CONTINUOUS_ADJ   0x0004

Definition at line 1645 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_EN

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_EN   0x0002

Definition at line 1646 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_LOAD

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_LOAD   0x0008

Definition at line 1644 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_READ

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_READ   0x0010

Definition at line 1643 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_RESET

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_RESET   0x0001

Definition at line 1647 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_STEP_ADJ

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_CLK_STEP_ADJ   0x0040

Definition at line 1641 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_STEP_DIR

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_PTP_STEP_DIR   0x0020

Definition at line 1642 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_CTRL_SW_FREQ_ADJ_DIS

#define KSZ9477_GLOBAL_PTP_CLK_CTRL_SW_FREQ_ADJ_DIS   0x8000

Definition at line 1640 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H

#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H   0x050C

Definition at line 254 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_RATE_DIR

#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_RATE_DIR   0x8000

Definition at line 1653 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_RTC_SUB_NS_29_16

#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_RTC_SUB_NS_29_16   0x3FFF

Definition at line 1655 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_TEMP_ADJ_MODE

#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_H_PTP_TEMP_ADJ_MODE   0x4000

Definition at line 1654 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_L

#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_L   0x050E

Definition at line 255 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_L_PTP_RTC_SUB_NS_15_0

#define KSZ9477_GLOBAL_PTP_CLK_SUB_NS_RATE_L_PTP_RTC_SUB_NS_15_0   0xFFFF

Definition at line 1658 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_TEMP_ADJ_DURATION_H

#define KSZ9477_GLOBAL_PTP_CLK_TEMP_ADJ_DURATION_H   0x0510

Definition at line 256 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_CLK_TEMP_ADJ_DURATION_L

#define KSZ9477_GLOBAL_PTP_CLK_TEMP_ADJ_DURATION_L   0x0512

Definition at line 257 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_DOMAIN_VERSION

#define KSZ9477_GLOBAL_PTP_DOMAIN_VERSION   0x0518

Definition at line 260 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_DOMAIN_VERSION_PTP_DOMAIN

#define KSZ9477_GLOBAL_PTP_DOMAIN_VERSION_PTP_DOMAIN   0x00FF

Definition at line 1686 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_DOMAIN_VERSION_PTP_VERSION

#define KSZ9477_GLOBAL_PTP_DOMAIN_VERSION_PTP_VERSION   0x0F00

Definition at line 1685 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1   0x0514

Definition at line 258 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_E2E_CLK_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_E2E_CLK_MODE   0x0000

Definition at line 1666 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_ETH_PTP_DETECT

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_ETH_PTP_DETECT   0x0020

Definition at line 1663 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IEEE_1588_PTP_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IEEE_1588_PTP_MODE   0x0040

Definition at line 1662 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IEEE_802_1AS_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IEEE_802_1AS_MODE   0x0080

Definition at line 1661 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IPV4_UDP_PTP_DETECT

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IPV4_UDP_PTP_DETECT   0x0010

Definition at line 1664 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IPV6_UDP_PTP_DETECT

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_IPV6_UDP_PTP_DETECT   0x0008

Definition at line 1665 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_MASTER_OC_CLK_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_MASTER_OC_CLK_MODE   0x0002

Definition at line 1669 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_ONE_STEP_CLK_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_ONE_STEP_CLK_MODE   0x0001

Definition at line 1671 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_P2P_CLK_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_P2P_CLK_MODE   0x0004

Definition at line 1667 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_SLAVE_OC_CLK_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_SLAVE_OC_CLK_MODE   0x0000

Definition at line 1668 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG1_TWO_STEP_CLK_MODE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG1_TWO_STEP_CLK_MODE   0x0000

Definition at line 1670 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2   0x0516

Definition at line 259 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_ALT_MASTER_EN

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_ALT_MASTER_EN   0x0800

Definition at line 1675 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_DELAY_REQ_RESP

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_DELAY_REQ_RESP   0x0100

Definition at line 1678 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_DOMAIN

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_DOMAIN   0x0010

Definition at line 1681 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_PDELAY_REQ_RESP

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_PDELAY_REQ_RESP   0x0080

Definition at line 1679 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_SYNC_FOLLOW_UP

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_CHECK_SYNC_FOLLOW_UP   0x0200

Definition at line 1677 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_DROP_SYNC_FOLLOW_UP_DELAY_REQ

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_DROP_SYNC_FOLLOW_UP_DELAY_REQ   0x0020

Definition at line 1680 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_IPV4_UDP_CHECKSUM_EN

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_IPV4_UDP_CHECKSUM_EN   0x0004

Definition at line 1682 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_PTP_MSG_PRIO_TX_QUEUE

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_PTP_MSG_PRIO_TX_QUEUE   0x0400

Definition at line 1676 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_MSG_CONFIG2_UNICAST_PTP_EN

#define KSZ9477_GLOBAL_PTP_MSG_CONFIG2_UNICAST_PTP_EN   0x1000

Definition at line 1674 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_RTC_CLK_NS_H

#define KSZ9477_GLOBAL_PTP_RTC_CLK_NS_H   0x0504

Definition at line 250 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_RTC_CLK_NS_L

#define KSZ9477_GLOBAL_PTP_RTC_CLK_NS_L   0x0506

Definition at line 251 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_RTC_CLK_PHASE

#define KSZ9477_GLOBAL_PTP_RTC_CLK_PHASE   0x0502

Definition at line 249 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_RTC_CLK_PHASE_PTP_RTC_8NS_PHASE

#define KSZ9477_GLOBAL_PTP_RTC_CLK_PHASE_PTP_RTC_8NS_PHASE   0x0007

Definition at line 1650 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_RTC_CLK_S_H

#define KSZ9477_GLOBAL_PTP_RTC_CLK_S_H   0x0508

Definition at line 252 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_RTC_CLK_S_L

#define KSZ9477_GLOBAL_PTP_RTC_CLK_S_L   0x050A

Definition at line 253 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX   0x0520

Definition at line 261 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX   0x00000003

Definition at line 1692 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT0

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT0   0x00000000

Definition at line 1693 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT1

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT1   0x00000001

Definition at line 1694 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT2

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TRIGGER_PTR_INDEX_UNIT2   0x00000002

Definition at line 1695 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX   0x00000100

Definition at line 1689 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX_UNIT0

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX_UNIT0   0x00000000

Definition at line 1690 of file ksz9477_driver.h.

◆ KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX_UNIT1

#define KSZ9477_GLOBAL_PTP_UNIT_INDEX_TS_PTR_INDEX_UNIT1   0x00000100

Definition at line 1691 of file ksz9477_driver.h.

◆ KSZ9477_GPIO_STATUS_MONITOR0

#define KSZ9477_GPIO_STATUS_MONITOR0   0x0524

Definition at line 262 of file ksz9477_driver.h.

◆ KSZ9477_GPIO_STATUS_MONITOR0_TRIGGER_DONE

#define KSZ9477_GPIO_STATUS_MONITOR0_TRIGGER_DONE   0x00000007

Definition at line 1699 of file ksz9477_driver.h.

◆ KSZ9477_GPIO_STATUS_MONITOR0_TRIGGER_ERROR

#define KSZ9477_GPIO_STATUS_MONITOR0_TRIGGER_ERROR   0x00070000

Definition at line 1698 of file ksz9477_driver.h.

◆ KSZ9477_GPIO_STATUS_MONITOR1

#define KSZ9477_GPIO_STATUS_MONITOR1   0x0528

Definition at line 263 of file ksz9477_driver.h.

◆ KSZ9477_GPIO_STATUS_MONITOR1_TRIGGER_INT_STATUS

#define KSZ9477_GPIO_STATUS_MONITOR1_TRIGGER_INT_STATUS   0x00070000

Definition at line 1702 of file ksz9477_driver.h.

◆ KSZ9477_GPIO_STATUS_MONITOR1_TS_INT_STATUS

#define KSZ9477_GPIO_STATUS_MONITOR1_TS_INT_STATUS   0x00000003

Definition at line 1703 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL

#define KSZ9477_IBA_CTRL   0x0104

Definition at line 140 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_DEST_MAC_ADDR_MATCH_EN

#define KSZ9477_IBA_CTRL_DEST_MAC_ADDR_MATCH_EN   0x40000000

Definition at line 1265 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM

#define KSZ9477_IBA_CTRL_IBA_COMM   0x00070000

Definition at line 1269 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT1

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT1   0x00000000

Definition at line 1270 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT2

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT2   0x00010000

Definition at line 1271 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT3

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT3   0x00020000

Definition at line 1272 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT4

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT4   0x00030000

Definition at line 1273 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT5

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT5   0x00040000

Definition at line 1274 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT6

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT6   0x00050000

Definition at line 1275 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_COMM_PORT7

#define KSZ9477_IBA_CTRL_IBA_COMM_PORT7   0x00060000

Definition at line 1276 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_EN

#define KSZ9477_IBA_CTRL_IBA_EN   0x80000000

Definition at line 1264 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_IBA_RESET

#define KSZ9477_IBA_CTRL_IBA_RESET   0x20000000

Definition at line 1266 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_RESP_PRIO_QUEUE

#define KSZ9477_IBA_CTRL_RESP_PRIO_QUEUE   0x00C00000

Definition at line 1267 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_RESP_PRIO_QUEUE_DEFAULT

#define KSZ9477_IBA_CTRL_RESP_PRIO_QUEUE_DEFAULT   0x00400000

Definition at line 1268 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_TPID

#define KSZ9477_IBA_CTRL_TPID   0x0000FFFF

Definition at line 1277 of file ksz9477_driver.h.

◆ KSZ9477_IBA_CTRL_TPID_DEFAULT

#define KSZ9477_IBA_CTRL_TPID_DEFAULT   0x000040FE

Definition at line 1278 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1

#define KSZ9477_IBA_OP_STAT1   0x0110

Definition at line 142 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_ACCESS_CMD_ERR

#define KSZ9477_IBA_OP_STAT1_ACCESS_CMD_ERR   0x00000800

Definition at line 1291 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_ACCESS_CODE_ERR

#define KSZ9477_IBA_OP_STAT1_ACCESS_CODE_ERR   0x00001000

Definition at line 1290 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_ACCESS_CODE_ERR_LOC

#define KSZ9477_IBA_OP_STAT1_ACCESS_CODE_ERR_LOC   0x0000007F

Definition at line 1293 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_ACCESS_FORMAT_ERR

#define KSZ9477_IBA_OP_STAT1_ACCESS_FORMAT_ERR   0x00002000

Definition at line 1289 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_EXEC_DONE

#define KSZ9477_IBA_OP_STAT1_EXEC_DONE   0x20000000

Definition at line 1287 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_GOOD_PKT_DETECT

#define KSZ9477_IBA_OP_STAT1_GOOD_PKT_DETECT   0x80000000

Definition at line 1285 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_MAC_ADDR_MISMATCH_ERR

#define KSZ9477_IBA_OP_STAT1_MAC_ADDR_MISMATCH_ERR   0x00004000

Definition at line 1288 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_OVERSIZE_PKT_ERR

#define KSZ9477_IBA_OP_STAT1_OVERSIZE_PKT_ERR   0x00000400

Definition at line 1292 of file ksz9477_driver.h.

◆ KSZ9477_IBA_OP_STAT1_RESP_PKT_TX_DONE

#define KSZ9477_IBA_OP_STAT1_RESP_PKT_TX_DONE   0x40000000

Definition at line 1286 of file ksz9477_driver.h.

◆ KSZ9477_ICSR

#define KSZ9477_ICSR   0x1B

Definition at line 100 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_JABBER_IE

#define KSZ9477_ICSR_JABBER_IE   0x8000

Definition at line 1147 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_JABBER_IF

#define KSZ9477_ICSR_JABBER_IF   0x0080

Definition at line 1155 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_LINK_DOWN_IE

#define KSZ9477_ICSR_LINK_DOWN_IE   0x0400

Definition at line 1152 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_LINK_DOWN_IF

#define KSZ9477_ICSR_LINK_DOWN_IF   0x0004

Definition at line 1160 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_LINK_UP_IE

#define KSZ9477_ICSR_LINK_UP_IE   0x0100

Definition at line 1154 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_LINK_UP_IF

#define KSZ9477_ICSR_LINK_UP_IF   0x0001

Definition at line 1162 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_LP_ACK_IE

#define KSZ9477_ICSR_LP_ACK_IE   0x0800

Definition at line 1151 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_LP_ACK_IF

#define KSZ9477_ICSR_LP_ACK_IF   0x0008

Definition at line 1159 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_PAGE_RECEIVED_IE

#define KSZ9477_ICSR_PAGE_RECEIVED_IE   0x2000

Definition at line 1149 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_PAGE_RECEIVED_IF

#define KSZ9477_ICSR_PAGE_RECEIVED_IF   0x0020

Definition at line 1157 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_PAR_DETECT_FAULT_IE

#define KSZ9477_ICSR_PAR_DETECT_FAULT_IE   0x1000

Definition at line 1150 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_PAR_DETECT_FAULT_IF

#define KSZ9477_ICSR_PAR_DETECT_FAULT_IF   0x0010

Definition at line 1158 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_RECEIVE_ERROR_IE

#define KSZ9477_ICSR_RECEIVE_ERROR_IE   0x4000

Definition at line 1148 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_RECEIVE_ERROR_IF

#define KSZ9477_ICSR_RECEIVE_ERROR_IF   0x0040

Definition at line 1156 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_REMOTE_FAULT_IE

#define KSZ9477_ICSR_REMOTE_FAULT_IE   0x0200

Definition at line 1153 of file ksz9477_driver.h.

◆ KSZ9477_ICSR_REMOTE_FAULT_IF

#define KSZ9477_ICSR_REMOTE_FAULT_IF   0x0002

Definition at line 1161 of file ksz9477_driver.h.

◆ KSZ9477_IO_DRIVE_STRENGTH

#define KSZ9477_IO_DRIVE_STRENGTH   0x010D

Definition at line 141 of file ksz9477_driver.h.

◆ KSZ9477_IO_DRIVE_STRENGTH_HIGH_SPEED_DRIVE_STRENGTH

#define KSZ9477_IO_DRIVE_STRENGTH_HIGH_SPEED_DRIVE_STRENGTH   0x70

Definition at line 1281 of file ksz9477_driver.h.

◆ KSZ9477_IO_DRIVE_STRENGTH_LOW_SPEED_DRIVE_STRENGTH

#define KSZ9477_IO_DRIVE_STRENGTH_LOW_SPEED_DRIVE_STRENGTH   0x07

Definition at line 1282 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_EN

#define KSZ9477_IP_DIFFSERV_PRIO_EN   0x033E

Definition at line 182 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING0

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING0   0x0340

Definition at line 183 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING1

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING1   0x0341

Definition at line 184 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING10

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING10   0x034A

Definition at line 193 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING11

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING11   0x034B

Definition at line 194 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING12

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING12   0x034C

Definition at line 195 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING13

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING13   0x034D

Definition at line 196 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING14

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING14   0x034E

Definition at line 197 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING15

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING15   0x034F

Definition at line 198 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING16

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING16   0x0350

Definition at line 199 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING17

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING17   0x0351

Definition at line 200 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING18

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING18   0x0352

Definition at line 201 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING19

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING19   0x0353

Definition at line 202 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING2

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING2   0x0342

Definition at line 185 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING20

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING20   0x0354

Definition at line 203 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING21

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING21   0x0355

Definition at line 204 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING22

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING22   0x0356

Definition at line 205 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING23

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING23   0x0357

Definition at line 206 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING24

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING24   0x0358

Definition at line 207 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING25

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING25   0x0359

Definition at line 208 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING26

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING26   0x035A

Definition at line 209 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING27

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING27   0x035B

Definition at line 210 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING28

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING28   0x035C

Definition at line 211 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING29

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING29   0x035D

Definition at line 212 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING3

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING3   0x0343

Definition at line 186 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING30

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING30   0x035E

Definition at line 213 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING31

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING31   0x035F

Definition at line 214 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING4

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING4   0x0344

Definition at line 187 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING5

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING5   0x0345

Definition at line 188 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING6

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING6   0x0346

Definition at line 189 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING7

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING7   0x0347

Definition at line 190 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING8

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING8   0x0348

Definition at line 191 of file ksz9477_driver.h.

◆ KSZ9477_IP_DIFFSERV_PRIO_MAPPING9

#define KSZ9477_IP_DIFFSERV_PRIO_MAPPING9   0x0349

Definition at line 192 of file ksz9477_driver.h.

◆ KSZ9477_LED2_0_LED2_1_SRC

#define KSZ9477_LED2_0_LED2_1_SRC   0x0128

Definition at line 145 of file ksz9477_driver.h.

◆ KSZ9477_LED2_0_LED2_1_SRC_LED2_0_SRC

#define KSZ9477_LED2_0_LED2_1_SRC_LED2_0_SRC   0x00000004

Definition at line 1323 of file ksz9477_driver.h.

◆ KSZ9477_LED2_0_LED2_1_SRC_LED2_1_SRC

#define KSZ9477_LED2_0_LED2_1_SRC_LED2_1_SRC   0x00000008

Definition at line 1322 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT

#define KSZ9477_LED_OUTPUT   0x0124

Definition at line 144 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL   0x000003FF

Definition at line 1309 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED1_0

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED1_0   0x00000001

Definition at line 1310 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED1_1

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED1_1   0x00000002

Definition at line 1311 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED2_0

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED2_0   0x00000004

Definition at line 1312 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED2_1

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED2_1   0x00000008

Definition at line 1313 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED3_0

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED3_0   0x00000010

Definition at line 1314 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED3_1

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED3_1   0x00000020

Definition at line 1315 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED4_0

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED4_0   0x00000040

Definition at line 1316 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED4_1

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED4_1   0x00000080

Definition at line 1317 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED5_0

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED5_0   0x00000100

Definition at line 1318 of file ksz9477_driver.h.

◆ KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED5_1

#define KSZ9477_LED_OUTPUT_GPIO_OUT_CTRL_LED5_1   0x00000200

Definition at line 1319 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE

#define KSZ9477_LED_OVERRIDE   0x0120

Definition at line 143 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE

#define KSZ9477_LED_OVERRIDE_OVERRIDE   0x000003FF

Definition at line 1296 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED1_0

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED1_0   0x00000001

Definition at line 1297 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED1_1

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED1_1   0x00000002

Definition at line 1298 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED2_0

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED2_0   0x00000004

Definition at line 1299 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED2_1

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED2_1   0x00000008

Definition at line 1300 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED3_0

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED3_0   0x00000010

Definition at line 1301 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED3_1

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED3_1   0x00000020

Definition at line 1302 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED4_0

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED4_0   0x00000040

Definition at line 1303 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED4_1

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED4_1   0x00000080

Definition at line 1304 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED5_0

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED5_0   0x00000100

Definition at line 1305 of file ksz9477_driver.h.

◆ KSZ9477_LED_OVERRIDE_OVERRIDE_LED5_1

#define KSZ9477_LED_OVERRIDE_OVERRIDE_LED5_1   0x00000200

Definition at line 1306 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN

#define KSZ9477_LED_STRAP_IN   0x0210

Definition at line 147 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN

#define KSZ9477_LED_STRAP_IN_STRAP_IN   0x000003FF

Definition at line 1333 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED1_0

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED1_0   0x00000001

Definition at line 1334 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED1_1

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED1_1   0x00000002

Definition at line 1335 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED2_0

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED2_0   0x00000004

Definition at line 1336 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED2_1

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED2_1   0x00000008

Definition at line 1337 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED3_0

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED3_0   0x00000010

Definition at line 1338 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED3_1

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED3_1   0x00000020

Definition at line 1339 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED4_0

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED4_0   0x00000040

Definition at line 1340 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED4_1

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED4_1   0x00000080

Definition at line 1341 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED5_0

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED5_0   0x00000100

Definition at line 1342 of file ksz9477_driver.h.

◆ KSZ9477_LED_STRAP_IN_STRAP_IN_LED5_1

#define KSZ9477_LED_STRAP_IN_STRAP_IN_LED5_1   0x00000200

Definition at line 1343 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD

#define KSZ9477_LINKMD   0x12

Definition at line 97 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_PAIR

#define KSZ9477_LINKMD_PAIR   0x3000

Definition at line 1131 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_PAIR_A

#define KSZ9477_LINKMD_PAIR_A   0x0000

Definition at line 1132 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_PAIR_B

#define KSZ9477_LINKMD_PAIR_B   0x1000

Definition at line 1133 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_PAIR_C

#define KSZ9477_LINKMD_PAIR_C   0x2000

Definition at line 1134 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_PAIR_D

#define KSZ9477_LINKMD_PAIR_D   0x3000

Definition at line 1135 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_RESULT

#define KSZ9477_LINKMD_RESULT   0x00FF

Definition at line 1140 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_STATUS

#define KSZ9477_LINKMD_STATUS   0x0300

Definition at line 1136 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_STATUS_NORMAL

#define KSZ9477_LINKMD_STATUS_NORMAL   0x0000

Definition at line 1137 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_STATUS_OPEN

#define KSZ9477_LINKMD_STATUS_OPEN   0x0100

Definition at line 1138 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_STATUS_SHORT

#define KSZ9477_LINKMD_STATUS_SHORT   0x0200

Definition at line 1139 of file ksz9477_driver.h.

◆ KSZ9477_LINKMD_TEST_EN

#define KSZ9477_LINKMD_TEST_EN   0x8000

Definition at line 1130 of file ksz9477_driver.h.

◆ KSZ9477_MMD_EEE_ADV

#define KSZ9477_MMD_EEE_ADV   0x07, 0x3C

Definition at line 110 of file ksz9477_driver.h.

◆ KSZ9477_MMD_EEE_ADV_1000BT_EEE_EN

#define KSZ9477_MMD_EEE_ADV_1000BT_EEE_EN   0x0004

Definition at line 1196 of file ksz9477_driver.h.

◆ KSZ9477_MMD_EEE_ADV_100BT_EEE_EN

#define KSZ9477_MMD_EEE_ADV_100BT_EEE_EN   0x0002

Definition at line 1197 of file ksz9477_driver.h.

◆ KSZ9477_MMD_LED_MODE

#define KSZ9477_MMD_LED_MODE   0x02, 0x00

Definition at line 109 of file ksz9477_driver.h.

◆ KSZ9477_MMD_LED_MODE_LED_MODE

#define KSZ9477_MMD_LED_MODE_LED_MODE   0x0010

Definition at line 1189 of file ksz9477_driver.h.

◆ KSZ9477_MMD_LED_MODE_LED_MODE_SINGLE

#define KSZ9477_MMD_LED_MODE_LED_MODE_SINGLE   0x0010

Definition at line 1191 of file ksz9477_driver.h.

◆ KSZ9477_MMD_LED_MODE_LED_MODE_TRI_COLOR_DUAL

#define KSZ9477_MMD_LED_MODE_LED_MODE_TRI_COLOR_DUAL   0x0000

Definition at line 1190 of file ksz9477_driver.h.

◆ KSZ9477_MMD_LED_MODE_RESERVED

#define KSZ9477_MMD_LED_MODE_RESERVED   0x000F

Definition at line 1192 of file ksz9477_driver.h.

◆ KSZ9477_MMD_LED_MODE_RESERVED_DEFAULT

#define KSZ9477_MMD_LED_MODE_RESERVED_DEFAULT   0x0001

Definition at line 1193 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG0

#define KSZ9477_MMD_QUIET_WIRE_CONFIG0   0x1C, 0x25

Definition at line 111 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG1

#define KSZ9477_MMD_QUIET_WIRE_CONFIG1   0x1C, 0x26

Definition at line 112 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG10

#define KSZ9477_MMD_QUIET_WIRE_CONFIG10   0x1C, 0x2F

Definition at line 121 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG11

#define KSZ9477_MMD_QUIET_WIRE_CONFIG11   0x1C, 0x30

Definition at line 122 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG12

#define KSZ9477_MMD_QUIET_WIRE_CONFIG12   0x1C, 0x31

Definition at line 123 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG13

#define KSZ9477_MMD_QUIET_WIRE_CONFIG13   0x1C, 0x32

Definition at line 124 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG14

#define KSZ9477_MMD_QUIET_WIRE_CONFIG14   0x1C, 0x33

Definition at line 125 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG15

#define KSZ9477_MMD_QUIET_WIRE_CONFIG15   0x1C, 0x34

Definition at line 126 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG2

#define KSZ9477_MMD_QUIET_WIRE_CONFIG2   0x1C, 0x27

Definition at line 113 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG3

#define KSZ9477_MMD_QUIET_WIRE_CONFIG3   0x1C, 0x28

Definition at line 114 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG4

#define KSZ9477_MMD_QUIET_WIRE_CONFIG4   0x1C, 0x29

Definition at line 115 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG5

#define KSZ9477_MMD_QUIET_WIRE_CONFIG5   0x1C, 0x2A

Definition at line 116 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG6

#define KSZ9477_MMD_QUIET_WIRE_CONFIG6   0x1C, 0x2B

Definition at line 117 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG7

#define KSZ9477_MMD_QUIET_WIRE_CONFIG7   0x1C, 0x2C

Definition at line 118 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG8

#define KSZ9477_MMD_QUIET_WIRE_CONFIG8   0x1C, 0x2D

Definition at line 119 of file ksz9477_driver.h.

◆ KSZ9477_MMD_QUIET_WIRE_CONFIG9

#define KSZ9477_MMD_QUIET_WIRE_CONFIG9   0x1C, 0x2E

Definition at line 120 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_A

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_A   0x01, 0xAC

Definition at line 105 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_A_QUALITY_INDICATOR

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_A_QUALITY_INDICATOR   0x7F00

Definition at line 1177 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_B

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_B   0x01, 0xAD

Definition at line 106 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_B_QUALITY_INDICATOR

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_B_QUALITY_INDICATOR   0x7F00

Definition at line 1180 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_C

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_C   0x01, 0xAE

Definition at line 107 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_C_QUALITY_INDICATOR

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_C_QUALITY_INDICATOR   0x7F00

Definition at line 1183 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_D

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_D   0x01, 0xAF

Definition at line 108 of file ksz9477_driver.h.

◆ KSZ9477_MMD_SIGNAL_QUALITY_CH_D_QUALITY_INDICATOR

#define KSZ9477_MMD_SIGNAL_QUALITY_CH_D_QUALITY_INDICATOR   0x7F00

Definition at line 1186 of file ksz9477_driver.h.

◆ KSZ9477_MMDAADR

#define KSZ9477_MMDAADR   0x0E

Definition at line 94 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR

#define KSZ9477_MMDACR   0x0D

Definition at line 93 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR_DEVAD

#define KSZ9477_MMDACR_DEVAD   0x001F

Definition at line 1118 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR_FUNC

#define KSZ9477_MMDACR_FUNC   0xC000

Definition at line 1113 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR_FUNC_ADDR

#define KSZ9477_MMDACR_FUNC_ADDR   0x0000

Definition at line 1114 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR_FUNC_DATA_NO_POST_INC

#define KSZ9477_MMDACR_FUNC_DATA_NO_POST_INC   0x4000

Definition at line 1115 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR_FUNC_DATA_POST_INC_RW

#define KSZ9477_MMDACR_FUNC_DATA_POST_INC_RW   0x8000

Definition at line 1116 of file ksz9477_driver.h.

◆ KSZ9477_MMDACR_FUNC_DATA_POST_INC_W

#define KSZ9477_MMDACR_FUNC_DATA_POST_INC_W   0xC000

Definition at line 1117 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL

#define KSZ9477_OUT_CLK_CTRL   0x0103

Definition at line 139 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_REC_CLK_RDY

#define KSZ9477_OUT_CLK_CTRL_REC_CLK_RDY   0x80

Definition at line 1250 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_EN

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_EN   0x02

Definition at line 1258 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ   0x01

Definition at line 1259 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ_125MHZ

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ_125MHZ   0x01

Definition at line 1261 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ_25MHZ

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_FREQ_25MHZ   0x00

Definition at line 1260 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC   0x1C

Definition at line 1251 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT1

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT1   0x04

Definition at line 1253 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT2

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT2   0x08

Definition at line 1254 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT3

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT3   0x0C

Definition at line 1255 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT4

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT4   0x10

Definition at line 1256 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT5

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_PORT5   0x14

Definition at line 1257 of file ksz9477_driver.h.

◆ KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_XI

#define KSZ9477_OUT_CLK_CTRL_SYNCLKO_SRC_XI   0x00

Definition at line 1252 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON

#define KSZ9477_PHYCON   0x1F

Definition at line 102 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON_1000BT_MS_STATUS

#define KSZ9477_PHYCON_1000BT_MS_STATUS   0x0004

Definition at line 1174 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON_DUPLEX_STATUS

#define KSZ9477_PHYCON_DUPLEX_STATUS   0x0008

Definition at line 1173 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON_JABBER_EN

#define KSZ9477_PHYCON_JABBER_EN   0x0200

Definition at line 1169 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON_SPEED_1000BT

#define KSZ9477_PHYCON_SPEED_1000BT   0x0040

Definition at line 1170 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON_SPEED_100BTX

#define KSZ9477_PHYCON_SPEED_100BTX   0x0020

Definition at line 1171 of file ksz9477_driver.h.

◆ KSZ9477_PHYCON_SPEED_10BT

#define KSZ9477_PHYCON_SPEED_10BT   0x0010

Definition at line 1172 of file ksz9477_driver.h.

◆ KSZ9477_PHYID1

#define KSZ9477_PHYID1   0x02

Definition at line 84 of file ksz9477_driver.h.

◆ KSZ9477_PHYID1_DEFAULT

#define KSZ9477_PHYID1_DEFAULT   0x0022

Definition at line 1043 of file ksz9477_driver.h.

◆ KSZ9477_PHYID2

#define KSZ9477_PHYID2   0x03

Definition at line 85 of file ksz9477_driver.h.

◆ KSZ9477_PHYID2_DEFAULT

#define KSZ9477_PHYID2_DEFAULT   0x1631

Definition at line 1046 of file ksz9477_driver.h.

◆ KSZ9477_PME_PIN_CTRL

#define KSZ9477_PME_PIN_CTRL   0x0006

Definition at line 133 of file ksz9477_driver.h.

◆ KSZ9477_PME_PIN_CTRL_PME_PIN_OUT_EN

#define KSZ9477_PME_PIN_CTRL_PME_PIN_OUT_EN   0x02

Definition at line 1213 of file ksz9477_driver.h.

◆ KSZ9477_PME_PIN_CTRL_PME_PIN_OUT_POL

#define KSZ9477_PME_PIN_CTRL_PME_PIN_OUT_POL   0x01

Definition at line 1214 of file ksz9477_driver.h.

◆ KSZ9477_PORT1

#define KSZ9477_PORT1   1

Definition at line 38 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS0

#define KSZ9477_PORT1_ACL_ACCESS0   0x1600

Definition at line 340 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS1

#define KSZ9477_PORT1_ACL_ACCESS1   0x1601

Definition at line 341 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS10

#define KSZ9477_PORT1_ACL_ACCESS10   0x160A

Definition at line 350 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS11

#define KSZ9477_PORT1_ACL_ACCESS11   0x160B

Definition at line 351 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS12

#define KSZ9477_PORT1_ACL_ACCESS12   0x160C

Definition at line 352 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS13

#define KSZ9477_PORT1_ACL_ACCESS13   0x160D

Definition at line 353 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS14

#define KSZ9477_PORT1_ACL_ACCESS14   0x160E

Definition at line 354 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS15

#define KSZ9477_PORT1_ACL_ACCESS15   0x160F

Definition at line 355 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS2

#define KSZ9477_PORT1_ACL_ACCESS2   0x1602

Definition at line 342 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS3

#define KSZ9477_PORT1_ACL_ACCESS3   0x1603

Definition at line 343 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS4

#define KSZ9477_PORT1_ACL_ACCESS4   0x1604

Definition at line 344 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS5

#define KSZ9477_PORT1_ACL_ACCESS5   0x1605

Definition at line 345 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS6

#define KSZ9477_PORT1_ACL_ACCESS6   0x1606

Definition at line 346 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS7

#define KSZ9477_PORT1_ACL_ACCESS7   0x1607

Definition at line 347 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS8

#define KSZ9477_PORT1_ACL_ACCESS8   0x1608

Definition at line 348 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS9

#define KSZ9477_PORT1_ACL_ACCESS9   0x1609

Definition at line 349 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS_CTRL0

#define KSZ9477_PORT1_ACL_ACCESS_CTRL0   0x1612

Definition at line 358 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_ACCESS_CTRL1

#define KSZ9477_PORT1_ACL_ACCESS_CTRL1   0x1613

Definition at line 359 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_BYTE_EN_LSB

#define KSZ9477_PORT1_ACL_BYTE_EN_LSB   0x1611

Definition at line 357 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_ACL_BYTE_EN_MSB

#define KSZ9477_PORT1_ACL_BYTE_EN_MSB   0x1610

Definition at line 356 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_AUTH_CTRL

#define KSZ9477_PORT1_AUTH_CTRL   0x1803

Definition at line 363 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_CTRL0

#define KSZ9477_PORT1_CTRL0   0x1A00

Definition at line 384 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_CTRL1

#define KSZ9477_PORT1_CTRL1   0x1A04

Definition at line 385 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_CTRL2

#define KSZ9477_PORT1_CTRL2   0x1B00

Definition at line 386 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_DEFAULT_TAG0

#define KSZ9477_PORT1_DEFAULT_TAG0   0x1000

Definition at line 315 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_DEFAULT_TAG1

#define KSZ9477_PORT1_DEFAULT_TAG1   0x1001

Definition at line 316 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_IG_MAC_CTRL

#define KSZ9477_PORT1_IG_MAC_CTRL   0x1802

Definition at line 362 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT1_IG_RATE_LIMIT_CTRL   0x1403

Definition at line 325 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_INT_MASK

#define KSZ9477_PORT1_INT_MASK   0x101F

Definition at line 320 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_INT_STATUS

#define KSZ9477_PORT1_INT_STATUS   0x101B

Definition at line 319 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MAC_CTRL0

#define KSZ9477_PORT1_MAC_CTRL0   0x1400

Definition at line 323 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MAC_CTRL1

#define KSZ9477_PORT1_MAC_CTRL1   0x1401

Definition at line 324 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MASK

#define KSZ9477_PORT1_MASK   0x01

Definition at line 48 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MIB_CTRL_STAT

#define KSZ9477_PORT1_MIB_CTRL_STAT   0x1500

Definition at line 338 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MIB_DATA

#define KSZ9477_PORT1_MIB_DATA   0x1504

Definition at line 339 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MIRRORING_CTRL

#define KSZ9477_PORT1_MIRRORING_CTRL   0x1800

Definition at line 360 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MSTP_PTR

#define KSZ9477_PORT1_MSTP_PTR   0x1B01

Definition at line 387 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_MSTP_STATE

#define KSZ9477_PORT1_MSTP_STATE   0x1B04

Definition at line 388 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_OP_CTRL0

#define KSZ9477_PORT1_OP_CTRL0   0x1020

Definition at line 321 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PME_WOL_EN

#define KSZ9477_PORT1_PME_WOL_EN   0x1017

Definition at line 318 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PME_WOL_EVENT

#define KSZ9477_PORT1_PME_WOL_EVENT   0x1013

Definition at line 317 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_POLICE_CTRL

#define KSZ9477_PORT1_POLICE_CTRL   0x180C

Definition at line 366 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT1_POLICE_QUEUE_BURST_SIZE   0x1824

Definition at line 368 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_POLICE_QUEUE_RATE

#define KSZ9477_PORT1_POLICE_QUEUE_RATE   0x1820

Definition at line 367 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO0_IG_LIMIT_CTRL   0x1410

Definition at line 326 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO1_IG_LIMIT_CTRL   0x1411

Definition at line 327 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO2_IG_LIMIT_CTRL   0x1412

Definition at line 328 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO3_IG_LIMIT_CTRL   0x1413

Definition at line 329 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO4_IG_LIMIT_CTRL   0x1414

Definition at line 330 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO5_IG_LIMIT_CTRL   0x1415

Definition at line 331 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO6_IG_LIMIT_CTRL   0x1416

Definition at line 332 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT1_PRIO7_IG_LIMIT_CTRL   0x1417

Definition at line 333 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO_CTRL

#define KSZ9477_PORT1_PRIO_CTRL   0x1801

Definition at line 361 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT1_PRIO_TO_QUEUE_MAPPING   0x1808

Definition at line 365 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_ASYM_CORRECTION

#define KSZ9477_PORT1_PTP_ASYM_CORRECTION   0x1C04

Definition at line 391 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_LINK_DELAY

#define KSZ9477_PORT1_PTP_LINK_DELAY   0x1C18

Definition at line 400 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT1_PTP_PDLY_RESP_TSH   0x1C10

Definition at line 396 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT1_PTP_PDLY_RESP_TSL   0x1C12

Definition at line 397 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_RX_LATENCY

#define KSZ9477_PORT1_PTP_RX_LATENCY   0x1C00

Definition at line 389 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_SYNC_TSH

#define KSZ9477_PORT1_PTP_SYNC_TSH   0x1C0C

Definition at line 394 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_SYNC_TSL

#define KSZ9477_PORT1_PTP_SYNC_TSL   0x1C0E

Definition at line 395 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_TS_INT_EN

#define KSZ9477_PORT1_PTP_TS_INT_EN   0x1C16

Definition at line 399 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_TS_INT_STAT

#define KSZ9477_PORT1_PTP_TS_INT_STAT   0x1C14

Definition at line 398 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_TX_LATENCY

#define KSZ9477_PORT1_PTP_TX_LATENCY   0x1C02

Definition at line 390 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT1_PTP_XDLY_REQ_TSH   0x1C08

Definition at line 392 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT1_PTP_XDLY_REQ_TSL   0x1C0A

Definition at line 393 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_PTR

#define KSZ9477_PORT1_PTR   0x1804

Definition at line 364 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT1_QUEUE0_EG_LIMIT_CTRL   0x1420

Definition at line 334 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT1_QUEUE1_EG_LIMIT_CTRL   0x1421

Definition at line 335 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT1_QUEUE2_EG_LIMIT_CTRL   0x1422

Definition at line 336 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT1_QUEUE3_EG_LIMIT_CTRL   0x1423

Definition at line 337 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_STATUS

#define KSZ9477_PORT1_STATUS   0x1030

Definition at line 322 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TAS_CTRL

#define KSZ9477_PORT1_TAS_CTRL   0x1920

Definition at line 381 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TAS_EVENT

#define KSZ9477_PORT1_TAS_EVENT   0x1924

Definition at line 383 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TAS_EVENT_INDEX

#define KSZ9477_PORT1_TAS_EVENT_INDEX   0x1923

Definition at line 382 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL0   0x1916

Definition at line 378 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL1   0x1918

Definition at line 379 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT1_TX_CREDIT_SHAPER_CTRL2   0x191A

Definition at line 380 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_QUEUE_CTRL0

#define KSZ9477_PORT1_TX_QUEUE_CTRL0   0x1914

Definition at line 376 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_QUEUE_CTRL1

#define KSZ9477_PORT1_TX_QUEUE_CTRL1   0x1915

Definition at line 377 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_QUEUE_INDEX

#define KSZ9477_PORT1_TX_QUEUE_INDEX   0x1900

Definition at line 374 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_TX_QUEUE_PVID

#define KSZ9477_PORT1_TX_QUEUE_PVID   0x1904

Definition at line 375 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT1_WRED_PKT_MEM_CTRL0   0x1830

Definition at line 369 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT1_WRED_PKT_MEM_CTRL1   0x1834

Definition at line 370 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_WRED_QUEUE_CTRL0

#define KSZ9477_PORT1_WRED_QUEUE_CTRL0   0x1840

Definition at line 371 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_WRED_QUEUE_CTRL1

#define KSZ9477_PORT1_WRED_QUEUE_CTRL1   0x1844

Definition at line 372 of file ksz9477_driver.h.

◆ KSZ9477_PORT1_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT1_WRED_QUEUE_PERF_MON_CTRL   0x1848

Definition at line 373 of file ksz9477_driver.h.

◆ KSZ9477_PORT2

#define KSZ9477_PORT2   2

Definition at line 39 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS0

#define KSZ9477_PORT2_ACL_ACCESS0   0x2600

Definition at line 426 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS1

#define KSZ9477_PORT2_ACL_ACCESS1   0x2601

Definition at line 427 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS10

#define KSZ9477_PORT2_ACL_ACCESS10   0x260A

Definition at line 436 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS11

#define KSZ9477_PORT2_ACL_ACCESS11   0x260B

Definition at line 437 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS12

#define KSZ9477_PORT2_ACL_ACCESS12   0x260C

Definition at line 438 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS13

#define KSZ9477_PORT2_ACL_ACCESS13   0x260D

Definition at line 439 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS14

#define KSZ9477_PORT2_ACL_ACCESS14   0x260E

Definition at line 440 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS15

#define KSZ9477_PORT2_ACL_ACCESS15   0x260F

Definition at line 441 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS2

#define KSZ9477_PORT2_ACL_ACCESS2   0x2602

Definition at line 428 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS3

#define KSZ9477_PORT2_ACL_ACCESS3   0x2603

Definition at line 429 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS4

#define KSZ9477_PORT2_ACL_ACCESS4   0x2604

Definition at line 430 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS5

#define KSZ9477_PORT2_ACL_ACCESS5   0x2605

Definition at line 431 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS6

#define KSZ9477_PORT2_ACL_ACCESS6   0x2606

Definition at line 432 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS7

#define KSZ9477_PORT2_ACL_ACCESS7   0x2607

Definition at line 433 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS8

#define KSZ9477_PORT2_ACL_ACCESS8   0x2608

Definition at line 434 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS9

#define KSZ9477_PORT2_ACL_ACCESS9   0x2609

Definition at line 435 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS_CTRL0

#define KSZ9477_PORT2_ACL_ACCESS_CTRL0   0x2612

Definition at line 444 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_ACCESS_CTRL1

#define KSZ9477_PORT2_ACL_ACCESS_CTRL1   0x2613

Definition at line 445 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_BYTE_EN_LSB

#define KSZ9477_PORT2_ACL_BYTE_EN_LSB   0x2611

Definition at line 443 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_ACL_BYTE_EN_MSB

#define KSZ9477_PORT2_ACL_BYTE_EN_MSB   0x2610

Definition at line 442 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_AUTH_CTRL

#define KSZ9477_PORT2_AUTH_CTRL   0x2803

Definition at line 449 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_CTRL0

#define KSZ9477_PORT2_CTRL0   0x2A00

Definition at line 470 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_CTRL1

#define KSZ9477_PORT2_CTRL1   0x2A04

Definition at line 471 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_CTRL2

#define KSZ9477_PORT2_CTRL2   0x2B00

Definition at line 472 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_DEFAULT_TAG0

#define KSZ9477_PORT2_DEFAULT_TAG0   0x2000

Definition at line 401 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_DEFAULT_TAG1

#define KSZ9477_PORT2_DEFAULT_TAG1   0x2001

Definition at line 402 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_IG_MAC_CTRL

#define KSZ9477_PORT2_IG_MAC_CTRL   0x2802

Definition at line 448 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT2_IG_RATE_LIMIT_CTRL   0x2403

Definition at line 411 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_INT_MASK

#define KSZ9477_PORT2_INT_MASK   0x201F

Definition at line 406 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_INT_STATUS

#define KSZ9477_PORT2_INT_STATUS   0x201B

Definition at line 405 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MAC_CTRL0

#define KSZ9477_PORT2_MAC_CTRL0   0x2400

Definition at line 409 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MAC_CTRL1

#define KSZ9477_PORT2_MAC_CTRL1   0x2401

Definition at line 410 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MASK

#define KSZ9477_PORT2_MASK   0x02

Definition at line 49 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MIB_CTRL_STAT

#define KSZ9477_PORT2_MIB_CTRL_STAT   0x2500

Definition at line 424 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MIB_DATA

#define KSZ9477_PORT2_MIB_DATA   0x2504

Definition at line 425 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MIRRORING_CTRL

#define KSZ9477_PORT2_MIRRORING_CTRL   0x2800

Definition at line 446 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MSTP_PTR

#define KSZ9477_PORT2_MSTP_PTR   0x2B01

Definition at line 473 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_MSTP_STATE

#define KSZ9477_PORT2_MSTP_STATE   0x2B04

Definition at line 474 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_OP_CTRL0

#define KSZ9477_PORT2_OP_CTRL0   0x2020

Definition at line 407 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PME_WOL_EN

#define KSZ9477_PORT2_PME_WOL_EN   0x2017

Definition at line 404 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PME_WOL_EVENT

#define KSZ9477_PORT2_PME_WOL_EVENT   0x2013

Definition at line 403 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_POLICE_CTRL

#define KSZ9477_PORT2_POLICE_CTRL   0x280C

Definition at line 452 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT2_POLICE_QUEUE_BURST_SIZE   0x2824

Definition at line 454 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_POLICE_QUEUE_RATE

#define KSZ9477_PORT2_POLICE_QUEUE_RATE   0x2820

Definition at line 453 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO0_IG_LIMIT_CTRL   0x2410

Definition at line 412 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO1_IG_LIMIT_CTRL   0x2411

Definition at line 413 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO2_IG_LIMIT_CTRL   0x2412

Definition at line 414 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO3_IG_LIMIT_CTRL   0x2413

Definition at line 415 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO4_IG_LIMIT_CTRL   0x2414

Definition at line 416 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO5_IG_LIMIT_CTRL   0x2415

Definition at line 417 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO6_IG_LIMIT_CTRL   0x2416

Definition at line 418 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT2_PRIO7_IG_LIMIT_CTRL   0x2417

Definition at line 419 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO_CTRL

#define KSZ9477_PORT2_PRIO_CTRL   0x2801

Definition at line 447 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT2_PRIO_TO_QUEUE_MAPPING   0x2808

Definition at line 451 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_ASYM_CORRECTION

#define KSZ9477_PORT2_PTP_ASYM_CORRECTION   0x2C04

Definition at line 477 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_LINK_DELAY

#define KSZ9477_PORT2_PTP_LINK_DELAY   0x2C18

Definition at line 486 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT2_PTP_PDLY_RESP_TSH   0x2C10

Definition at line 482 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT2_PTP_PDLY_RESP_TSL   0x2C12

Definition at line 483 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_RX_LATENCY

#define KSZ9477_PORT2_PTP_RX_LATENCY   0x2C00

Definition at line 475 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_SYNC_TSH

#define KSZ9477_PORT2_PTP_SYNC_TSH   0x2C0C

Definition at line 480 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_SYNC_TSL

#define KSZ9477_PORT2_PTP_SYNC_TSL   0x2C0E

Definition at line 481 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_TS_INT_EN

#define KSZ9477_PORT2_PTP_TS_INT_EN   0x2C16

Definition at line 485 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_TS_INT_STAT

#define KSZ9477_PORT2_PTP_TS_INT_STAT   0x2C14

Definition at line 484 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_TX_LATENCY

#define KSZ9477_PORT2_PTP_TX_LATENCY   0x2C02

Definition at line 476 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT2_PTP_XDLY_REQ_TSH   0x2C08

Definition at line 478 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT2_PTP_XDLY_REQ_TSL   0x2C0A

Definition at line 479 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_PTR

#define KSZ9477_PORT2_PTR   0x2804

Definition at line 450 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT2_QUEUE0_EG_LIMIT_CTRL   0x2420

Definition at line 420 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT2_QUEUE1_EG_LIMIT_CTRL   0x2421

Definition at line 421 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT2_QUEUE2_EG_LIMIT_CTRL   0x2422

Definition at line 422 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT2_QUEUE3_EG_LIMIT_CTRL   0x2423

Definition at line 423 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_STATUS

#define KSZ9477_PORT2_STATUS   0x2030

Definition at line 408 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TAS_CTRL

#define KSZ9477_PORT2_TAS_CTRL   0x2920

Definition at line 467 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TAS_EVENT

#define KSZ9477_PORT2_TAS_EVENT   0x2924

Definition at line 469 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TAS_EVENT_INDEX

#define KSZ9477_PORT2_TAS_EVENT_INDEX   0x2923

Definition at line 468 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL0   0x2916

Definition at line 464 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL1   0x2918

Definition at line 465 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT2_TX_CREDIT_SHAPER_CTRL2   0x291A

Definition at line 466 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_QUEUE_CTRL0

#define KSZ9477_PORT2_TX_QUEUE_CTRL0   0x2914

Definition at line 462 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_QUEUE_CTRL1

#define KSZ9477_PORT2_TX_QUEUE_CTRL1   0x2915

Definition at line 463 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_QUEUE_INDEX

#define KSZ9477_PORT2_TX_QUEUE_INDEX   0x2900

Definition at line 460 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_TX_QUEUE_PVID

#define KSZ9477_PORT2_TX_QUEUE_PVID   0x2904

Definition at line 461 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT2_WRED_PKT_MEM_CTRL0   0x2830

Definition at line 455 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT2_WRED_PKT_MEM_CTRL1   0x2834

Definition at line 456 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_WRED_QUEUE_CTRL0

#define KSZ9477_PORT2_WRED_QUEUE_CTRL0   0x2840

Definition at line 457 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_WRED_QUEUE_CTRL1

#define KSZ9477_PORT2_WRED_QUEUE_CTRL1   0x2844

Definition at line 458 of file ksz9477_driver.h.

◆ KSZ9477_PORT2_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT2_WRED_QUEUE_PERF_MON_CTRL   0x2848

Definition at line 459 of file ksz9477_driver.h.

◆ KSZ9477_PORT3

#define KSZ9477_PORT3   3

Definition at line 40 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS0

#define KSZ9477_PORT3_ACL_ACCESS0   0x3600

Definition at line 512 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS1

#define KSZ9477_PORT3_ACL_ACCESS1   0x3601

Definition at line 513 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS10

#define KSZ9477_PORT3_ACL_ACCESS10   0x360A

Definition at line 522 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS11

#define KSZ9477_PORT3_ACL_ACCESS11   0x360B

Definition at line 523 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS12

#define KSZ9477_PORT3_ACL_ACCESS12   0x360C

Definition at line 524 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS13

#define KSZ9477_PORT3_ACL_ACCESS13   0x360D

Definition at line 525 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS14

#define KSZ9477_PORT3_ACL_ACCESS14   0x360E

Definition at line 526 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS15

#define KSZ9477_PORT3_ACL_ACCESS15   0x360F

Definition at line 527 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS2

#define KSZ9477_PORT3_ACL_ACCESS2   0x3602

Definition at line 514 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS3

#define KSZ9477_PORT3_ACL_ACCESS3   0x3603

Definition at line 515 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS4

#define KSZ9477_PORT3_ACL_ACCESS4   0x3604

Definition at line 516 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS5

#define KSZ9477_PORT3_ACL_ACCESS5   0x3605

Definition at line 517 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS6

#define KSZ9477_PORT3_ACL_ACCESS6   0x3606

Definition at line 518 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS7

#define KSZ9477_PORT3_ACL_ACCESS7   0x3607

Definition at line 519 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS8

#define KSZ9477_PORT3_ACL_ACCESS8   0x3608

Definition at line 520 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS9

#define KSZ9477_PORT3_ACL_ACCESS9   0x3609

Definition at line 521 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS_CTRL0

#define KSZ9477_PORT3_ACL_ACCESS_CTRL0   0x3612

Definition at line 530 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_ACCESS_CTRL1

#define KSZ9477_PORT3_ACL_ACCESS_CTRL1   0x3613

Definition at line 531 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_BYTE_EN_LSB

#define KSZ9477_PORT3_ACL_BYTE_EN_LSB   0x3611

Definition at line 529 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_ACL_BYTE_EN_MSB

#define KSZ9477_PORT3_ACL_BYTE_EN_MSB   0x3610

Definition at line 528 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_AUTH_CTRL

#define KSZ9477_PORT3_AUTH_CTRL   0x3803

Definition at line 535 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_CTRL0

#define KSZ9477_PORT3_CTRL0   0x3A00

Definition at line 556 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_CTRL1

#define KSZ9477_PORT3_CTRL1   0x3A04

Definition at line 557 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_CTRL2

#define KSZ9477_PORT3_CTRL2   0x3B00

Definition at line 558 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_DEFAULT_TAG0

#define KSZ9477_PORT3_DEFAULT_TAG0   0x3000

Definition at line 487 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_DEFAULT_TAG1

#define KSZ9477_PORT3_DEFAULT_TAG1   0x3001

Definition at line 488 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_IG_MAC_CTRL

#define KSZ9477_PORT3_IG_MAC_CTRL   0x3802

Definition at line 534 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT3_IG_RATE_LIMIT_CTRL   0x3403

Definition at line 497 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_INT_MASK

#define KSZ9477_PORT3_INT_MASK   0x301F

Definition at line 492 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_INT_STATUS

#define KSZ9477_PORT3_INT_STATUS   0x301B

Definition at line 491 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MAC_CTRL0

#define KSZ9477_PORT3_MAC_CTRL0   0x3400

Definition at line 495 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MAC_CTRL1

#define KSZ9477_PORT3_MAC_CTRL1   0x3401

Definition at line 496 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MASK

#define KSZ9477_PORT3_MASK   0x04

Definition at line 50 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MIB_CTRL_STAT

#define KSZ9477_PORT3_MIB_CTRL_STAT   0x3500

Definition at line 510 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MIB_DATA

#define KSZ9477_PORT3_MIB_DATA   0x3504

Definition at line 511 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MIRRORING_CTRL

#define KSZ9477_PORT3_MIRRORING_CTRL   0x3800

Definition at line 532 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MSTP_PTR

#define KSZ9477_PORT3_MSTP_PTR   0x3B01

Definition at line 559 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_MSTP_STATE

#define KSZ9477_PORT3_MSTP_STATE   0x3B04

Definition at line 560 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_OP_CTRL0

#define KSZ9477_PORT3_OP_CTRL0   0x3020

Definition at line 493 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PME_WOL_EN

#define KSZ9477_PORT3_PME_WOL_EN   0x3017

Definition at line 490 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PME_WOL_EVENT

#define KSZ9477_PORT3_PME_WOL_EVENT   0x3013

Definition at line 489 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_POLICE_CTRL

#define KSZ9477_PORT3_POLICE_CTRL   0x380C

Definition at line 538 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT3_POLICE_QUEUE_BURST_SIZE   0x3824

Definition at line 540 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_POLICE_QUEUE_RATE

#define KSZ9477_PORT3_POLICE_QUEUE_RATE   0x3820

Definition at line 539 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO0_IG_LIMIT_CTRL   0x3410

Definition at line 498 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO1_IG_LIMIT_CTRL   0x3411

Definition at line 499 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO2_IG_LIMIT_CTRL   0x3412

Definition at line 500 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO3_IG_LIMIT_CTRL   0x3413

Definition at line 501 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO4_IG_LIMIT_CTRL   0x3414

Definition at line 502 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO5_IG_LIMIT_CTRL   0x3415

Definition at line 503 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO6_IG_LIMIT_CTRL   0x3416

Definition at line 504 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT3_PRIO7_IG_LIMIT_CTRL   0x3417

Definition at line 505 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO_CTRL

#define KSZ9477_PORT3_PRIO_CTRL   0x3801

Definition at line 533 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT3_PRIO_TO_QUEUE_MAPPING   0x3808

Definition at line 537 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_ASYM_CORRECTION

#define KSZ9477_PORT3_PTP_ASYM_CORRECTION   0x3C04

Definition at line 563 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_LINK_DELAY

#define KSZ9477_PORT3_PTP_LINK_DELAY   0x3C18

Definition at line 572 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT3_PTP_PDLY_RESP_TSH   0x3C10

Definition at line 568 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT3_PTP_PDLY_RESP_TSL   0x3C12

Definition at line 569 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_RX_LATENCY

#define KSZ9477_PORT3_PTP_RX_LATENCY   0x3C00

Definition at line 561 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_SYNC_TSH

#define KSZ9477_PORT3_PTP_SYNC_TSH   0x3C0C

Definition at line 566 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_SYNC_TSL

#define KSZ9477_PORT3_PTP_SYNC_TSL   0x3C0E

Definition at line 567 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_TS_INT_EN

#define KSZ9477_PORT3_PTP_TS_INT_EN   0x3C16

Definition at line 571 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_TS_INT_STAT

#define KSZ9477_PORT3_PTP_TS_INT_STAT   0x3C14

Definition at line 570 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_TX_LATENCY

#define KSZ9477_PORT3_PTP_TX_LATENCY   0x3C02

Definition at line 562 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT3_PTP_XDLY_REQ_TSH   0x3C08

Definition at line 564 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT3_PTP_XDLY_REQ_TSL   0x3C0A

Definition at line 565 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_PTR

#define KSZ9477_PORT3_PTR   0x3804

Definition at line 536 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT3_QUEUE0_EG_LIMIT_CTRL   0x3420

Definition at line 506 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT3_QUEUE1_EG_LIMIT_CTRL   0x3421

Definition at line 507 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT3_QUEUE2_EG_LIMIT_CTRL   0x3422

Definition at line 508 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT3_QUEUE3_EG_LIMIT_CTRL   0x3423

Definition at line 509 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_STATUS

#define KSZ9477_PORT3_STATUS   0x3030

Definition at line 494 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TAS_CTRL

#define KSZ9477_PORT3_TAS_CTRL   0x3920

Definition at line 553 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TAS_EVENT

#define KSZ9477_PORT3_TAS_EVENT   0x3924

Definition at line 555 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TAS_EVENT_INDEX

#define KSZ9477_PORT3_TAS_EVENT_INDEX   0x3923

Definition at line 554 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL0   0x3916

Definition at line 550 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL1   0x3918

Definition at line 551 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT3_TX_CREDIT_SHAPER_CTRL2   0x391A

Definition at line 552 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_QUEUE_CTRL0

#define KSZ9477_PORT3_TX_QUEUE_CTRL0   0x3914

Definition at line 548 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_QUEUE_CTRL1

#define KSZ9477_PORT3_TX_QUEUE_CTRL1   0x3915

Definition at line 549 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_QUEUE_INDEX

#define KSZ9477_PORT3_TX_QUEUE_INDEX   0x3900

Definition at line 546 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_TX_QUEUE_PVID

#define KSZ9477_PORT3_TX_QUEUE_PVID   0x3904

Definition at line 547 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT3_WRED_PKT_MEM_CTRL0   0x3830

Definition at line 541 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT3_WRED_PKT_MEM_CTRL1   0x3834

Definition at line 542 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_WRED_QUEUE_CTRL0

#define KSZ9477_PORT3_WRED_QUEUE_CTRL0   0x3840

Definition at line 543 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_WRED_QUEUE_CTRL1

#define KSZ9477_PORT3_WRED_QUEUE_CTRL1   0x3844

Definition at line 544 of file ksz9477_driver.h.

◆ KSZ9477_PORT3_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT3_WRED_QUEUE_PERF_MON_CTRL   0x3848

Definition at line 545 of file ksz9477_driver.h.

◆ KSZ9477_PORT4

#define KSZ9477_PORT4   4

Definition at line 41 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS0

#define KSZ9477_PORT4_ACL_ACCESS0   0x4600

Definition at line 598 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS1

#define KSZ9477_PORT4_ACL_ACCESS1   0x4601

Definition at line 599 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS10

#define KSZ9477_PORT4_ACL_ACCESS10   0x460A

Definition at line 608 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS11

#define KSZ9477_PORT4_ACL_ACCESS11   0x460B

Definition at line 609 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS12

#define KSZ9477_PORT4_ACL_ACCESS12   0x460C

Definition at line 610 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS13

#define KSZ9477_PORT4_ACL_ACCESS13   0x460D

Definition at line 611 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS14

#define KSZ9477_PORT4_ACL_ACCESS14   0x460E

Definition at line 612 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS15

#define KSZ9477_PORT4_ACL_ACCESS15   0x460F

Definition at line 613 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS2

#define KSZ9477_PORT4_ACL_ACCESS2   0x4602

Definition at line 600 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS3

#define KSZ9477_PORT4_ACL_ACCESS3   0x4603

Definition at line 601 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS4

#define KSZ9477_PORT4_ACL_ACCESS4   0x4604

Definition at line 602 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS5

#define KSZ9477_PORT4_ACL_ACCESS5   0x4605

Definition at line 603 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS6

#define KSZ9477_PORT4_ACL_ACCESS6   0x4606

Definition at line 604 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS7

#define KSZ9477_PORT4_ACL_ACCESS7   0x4607

Definition at line 605 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS8

#define KSZ9477_PORT4_ACL_ACCESS8   0x4608

Definition at line 606 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS9

#define KSZ9477_PORT4_ACL_ACCESS9   0x4609

Definition at line 607 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS_CTRL0

#define KSZ9477_PORT4_ACL_ACCESS_CTRL0   0x4612

Definition at line 616 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_ACCESS_CTRL1

#define KSZ9477_PORT4_ACL_ACCESS_CTRL1   0x4613

Definition at line 617 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_BYTE_EN_LSB

#define KSZ9477_PORT4_ACL_BYTE_EN_LSB   0x4611

Definition at line 615 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_ACL_BYTE_EN_MSB

#define KSZ9477_PORT4_ACL_BYTE_EN_MSB   0x4610

Definition at line 614 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_AUTH_CTRL

#define KSZ9477_PORT4_AUTH_CTRL   0x4803

Definition at line 621 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_CTRL0

#define KSZ9477_PORT4_CTRL0   0x4A00

Definition at line 642 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_CTRL1

#define KSZ9477_PORT4_CTRL1   0x4A04

Definition at line 643 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_CTRL2

#define KSZ9477_PORT4_CTRL2   0x4B00

Definition at line 644 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_DEFAULT_TAG0

#define KSZ9477_PORT4_DEFAULT_TAG0   0x4000

Definition at line 573 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_DEFAULT_TAG1

#define KSZ9477_PORT4_DEFAULT_TAG1   0x4001

Definition at line 574 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_IG_MAC_CTRL

#define KSZ9477_PORT4_IG_MAC_CTRL   0x4802

Definition at line 620 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT4_IG_RATE_LIMIT_CTRL   0x4403

Definition at line 583 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_INT_MASK

#define KSZ9477_PORT4_INT_MASK   0x401F

Definition at line 578 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_INT_STATUS

#define KSZ9477_PORT4_INT_STATUS   0x401B

Definition at line 577 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MAC_CTRL0

#define KSZ9477_PORT4_MAC_CTRL0   0x4400

Definition at line 581 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MAC_CTRL1

#define KSZ9477_PORT4_MAC_CTRL1   0x4401

Definition at line 582 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MASK

#define KSZ9477_PORT4_MASK   0x08

Definition at line 51 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MIB_CTRL_STAT

#define KSZ9477_PORT4_MIB_CTRL_STAT   0x4500

Definition at line 596 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MIB_DATA

#define KSZ9477_PORT4_MIB_DATA   0x4504

Definition at line 597 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MIRRORING_CTRL

#define KSZ9477_PORT4_MIRRORING_CTRL   0x4800

Definition at line 618 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MSTP_PTR

#define KSZ9477_PORT4_MSTP_PTR   0x4B01

Definition at line 645 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_MSTP_STATE

#define KSZ9477_PORT4_MSTP_STATE   0x4B04

Definition at line 646 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_OP_CTRL0

#define KSZ9477_PORT4_OP_CTRL0   0x4020

Definition at line 579 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PME_WOL_EN

#define KSZ9477_PORT4_PME_WOL_EN   0x4017

Definition at line 576 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PME_WOL_EVENT

#define KSZ9477_PORT4_PME_WOL_EVENT   0x4013

Definition at line 575 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_POLICE_CTRL

#define KSZ9477_PORT4_POLICE_CTRL   0x480C

Definition at line 624 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT4_POLICE_QUEUE_BURST_SIZE   0x4824

Definition at line 626 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_POLICE_QUEUE_RATE

#define KSZ9477_PORT4_POLICE_QUEUE_RATE   0x4820

Definition at line 625 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO0_IG_LIMIT_CTRL   0x4410

Definition at line 584 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO1_IG_LIMIT_CTRL   0x4411

Definition at line 585 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO2_IG_LIMIT_CTRL   0x4412

Definition at line 586 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO3_IG_LIMIT_CTRL   0x4413

Definition at line 587 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO4_IG_LIMIT_CTRL   0x4414

Definition at line 588 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO5_IG_LIMIT_CTRL   0x4415

Definition at line 589 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO6_IG_LIMIT_CTRL   0x4416

Definition at line 590 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT4_PRIO7_IG_LIMIT_CTRL   0x4417

Definition at line 591 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO_CTRL

#define KSZ9477_PORT4_PRIO_CTRL   0x4801

Definition at line 619 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT4_PRIO_TO_QUEUE_MAPPING   0x4808

Definition at line 623 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_ASYM_CORRECTION

#define KSZ9477_PORT4_PTP_ASYM_CORRECTION   0x4C04

Definition at line 649 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_LINK_DELAY

#define KSZ9477_PORT4_PTP_LINK_DELAY   0x4C18

Definition at line 658 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT4_PTP_PDLY_RESP_TSH   0x4C10

Definition at line 654 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT4_PTP_PDLY_RESP_TSL   0x4C12

Definition at line 655 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_RX_LATENCY

#define KSZ9477_PORT4_PTP_RX_LATENCY   0x4C00

Definition at line 647 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_SYNC_TSH

#define KSZ9477_PORT4_PTP_SYNC_TSH   0x4C0C

Definition at line 652 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_SYNC_TSL

#define KSZ9477_PORT4_PTP_SYNC_TSL   0x4C0E

Definition at line 653 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_TS_INT_EN

#define KSZ9477_PORT4_PTP_TS_INT_EN   0x4C16

Definition at line 657 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_TS_INT_STAT

#define KSZ9477_PORT4_PTP_TS_INT_STAT   0x4C14

Definition at line 656 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_TX_LATENCY

#define KSZ9477_PORT4_PTP_TX_LATENCY   0x4C02

Definition at line 648 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT4_PTP_XDLY_REQ_TSH   0x4C08

Definition at line 650 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT4_PTP_XDLY_REQ_TSL   0x4C0A

Definition at line 651 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_PTR

#define KSZ9477_PORT4_PTR   0x4804

Definition at line 622 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT4_QUEUE0_EG_LIMIT_CTRL   0x4420

Definition at line 592 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT4_QUEUE1_EG_LIMIT_CTRL   0x4421

Definition at line 593 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT4_QUEUE2_EG_LIMIT_CTRL   0x4422

Definition at line 594 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT4_QUEUE3_EG_LIMIT_CTRL   0x4423

Definition at line 595 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_STATUS

#define KSZ9477_PORT4_STATUS   0x4030

Definition at line 580 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TAS_CTRL

#define KSZ9477_PORT4_TAS_CTRL   0x4920

Definition at line 639 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TAS_EVENT

#define KSZ9477_PORT4_TAS_EVENT   0x4924

Definition at line 641 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TAS_EVENT_INDEX

#define KSZ9477_PORT4_TAS_EVENT_INDEX   0x4923

Definition at line 640 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL0   0x4916

Definition at line 636 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL1   0x4918

Definition at line 637 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT4_TX_CREDIT_SHAPER_CTRL2   0x491A

Definition at line 638 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_QUEUE_CTRL0

#define KSZ9477_PORT4_TX_QUEUE_CTRL0   0x4914

Definition at line 634 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_QUEUE_CTRL1

#define KSZ9477_PORT4_TX_QUEUE_CTRL1   0x4915

Definition at line 635 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_QUEUE_INDEX

#define KSZ9477_PORT4_TX_QUEUE_INDEX   0x4900

Definition at line 632 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_TX_QUEUE_PVID

#define KSZ9477_PORT4_TX_QUEUE_PVID   0x4904

Definition at line 633 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT4_WRED_PKT_MEM_CTRL0   0x4830

Definition at line 627 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT4_WRED_PKT_MEM_CTRL1   0x4834

Definition at line 628 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_WRED_QUEUE_CTRL0

#define KSZ9477_PORT4_WRED_QUEUE_CTRL0   0x4840

Definition at line 629 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_WRED_QUEUE_CTRL1

#define KSZ9477_PORT4_WRED_QUEUE_CTRL1   0x4844

Definition at line 630 of file ksz9477_driver.h.

◆ KSZ9477_PORT4_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT4_WRED_QUEUE_PERF_MON_CTRL   0x4848

Definition at line 631 of file ksz9477_driver.h.

◆ KSZ9477_PORT5

#define KSZ9477_PORT5   5

Definition at line 42 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS0

#define KSZ9477_PORT5_ACL_ACCESS0   0x5600

Definition at line 684 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS1

#define KSZ9477_PORT5_ACL_ACCESS1   0x5601

Definition at line 685 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS10

#define KSZ9477_PORT5_ACL_ACCESS10   0x560A

Definition at line 694 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS11

#define KSZ9477_PORT5_ACL_ACCESS11   0x560B

Definition at line 695 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS12

#define KSZ9477_PORT5_ACL_ACCESS12   0x560C

Definition at line 696 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS13

#define KSZ9477_PORT5_ACL_ACCESS13   0x560D

Definition at line 697 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS14

#define KSZ9477_PORT5_ACL_ACCESS14   0x560E

Definition at line 698 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS15

#define KSZ9477_PORT5_ACL_ACCESS15   0x560F

Definition at line 699 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS2

#define KSZ9477_PORT5_ACL_ACCESS2   0x5602

Definition at line 686 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS3

#define KSZ9477_PORT5_ACL_ACCESS3   0x5603

Definition at line 687 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS4

#define KSZ9477_PORT5_ACL_ACCESS4   0x5604

Definition at line 688 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS5

#define KSZ9477_PORT5_ACL_ACCESS5   0x5605

Definition at line 689 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS6

#define KSZ9477_PORT5_ACL_ACCESS6   0x5606

Definition at line 690 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS7

#define KSZ9477_PORT5_ACL_ACCESS7   0x5607

Definition at line 691 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS8

#define KSZ9477_PORT5_ACL_ACCESS8   0x5608

Definition at line 692 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS9

#define KSZ9477_PORT5_ACL_ACCESS9   0x5609

Definition at line 693 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS_CTRL0

#define KSZ9477_PORT5_ACL_ACCESS_CTRL0   0x5612

Definition at line 702 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_ACCESS_CTRL1

#define KSZ9477_PORT5_ACL_ACCESS_CTRL1   0x5613

Definition at line 703 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_BYTE_EN_LSB

#define KSZ9477_PORT5_ACL_BYTE_EN_LSB   0x5611

Definition at line 701 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_ACL_BYTE_EN_MSB

#define KSZ9477_PORT5_ACL_BYTE_EN_MSB   0x5610

Definition at line 700 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_AUTH_CTRL

#define KSZ9477_PORT5_AUTH_CTRL   0x5803

Definition at line 707 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_CTRL0

#define KSZ9477_PORT5_CTRL0   0x5A00

Definition at line 728 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_CTRL1

#define KSZ9477_PORT5_CTRL1   0x5A04

Definition at line 729 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_CTRL2

#define KSZ9477_PORT5_CTRL2   0x5B00

Definition at line 730 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_DEFAULT_TAG0

#define KSZ9477_PORT5_DEFAULT_TAG0   0x5000

Definition at line 659 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_DEFAULT_TAG1

#define KSZ9477_PORT5_DEFAULT_TAG1   0x5001

Definition at line 660 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_IG_MAC_CTRL

#define KSZ9477_PORT5_IG_MAC_CTRL   0x5802

Definition at line 706 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT5_IG_RATE_LIMIT_CTRL   0x5403

Definition at line 669 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_INT_MASK

#define KSZ9477_PORT5_INT_MASK   0x501F

Definition at line 664 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_INT_STATUS

#define KSZ9477_PORT5_INT_STATUS   0x501B

Definition at line 663 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MAC_CTRL0

#define KSZ9477_PORT5_MAC_CTRL0   0x5400

Definition at line 667 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MAC_CTRL1

#define KSZ9477_PORT5_MAC_CTRL1   0x5401

Definition at line 668 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MASK

#define KSZ9477_PORT5_MASK   0x10

Definition at line 52 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MIB_CTRL_STAT

#define KSZ9477_PORT5_MIB_CTRL_STAT   0x5500

Definition at line 682 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MIB_DATA

#define KSZ9477_PORT5_MIB_DATA   0x5504

Definition at line 683 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MIRRORING_CTRL

#define KSZ9477_PORT5_MIRRORING_CTRL   0x5800

Definition at line 704 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MSTP_PTR

#define KSZ9477_PORT5_MSTP_PTR   0x5B01

Definition at line 731 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_MSTP_STATE

#define KSZ9477_PORT5_MSTP_STATE   0x5B04

Definition at line 732 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_OP_CTRL0

#define KSZ9477_PORT5_OP_CTRL0   0x5020

Definition at line 665 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PME_WOL_EN

#define KSZ9477_PORT5_PME_WOL_EN   0x5017

Definition at line 662 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PME_WOL_EVENT

#define KSZ9477_PORT5_PME_WOL_EVENT   0x5013

Definition at line 661 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_POLICE_CTRL

#define KSZ9477_PORT5_POLICE_CTRL   0x580C

Definition at line 710 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT5_POLICE_QUEUE_BURST_SIZE   0x5824

Definition at line 712 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_POLICE_QUEUE_RATE

#define KSZ9477_PORT5_POLICE_QUEUE_RATE   0x5820

Definition at line 711 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO0_IG_LIMIT_CTRL   0x5410

Definition at line 670 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO1_IG_LIMIT_CTRL   0x5411

Definition at line 671 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO2_IG_LIMIT_CTRL   0x5412

Definition at line 672 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO3_IG_LIMIT_CTRL   0x5413

Definition at line 673 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO4_IG_LIMIT_CTRL   0x5414

Definition at line 674 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO5_IG_LIMIT_CTRL   0x5415

Definition at line 675 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO6_IG_LIMIT_CTRL   0x5416

Definition at line 676 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT5_PRIO7_IG_LIMIT_CTRL   0x5417

Definition at line 677 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO_CTRL

#define KSZ9477_PORT5_PRIO_CTRL   0x5801

Definition at line 705 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT5_PRIO_TO_QUEUE_MAPPING   0x5808

Definition at line 709 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_ASYM_CORRECTION

#define KSZ9477_PORT5_PTP_ASYM_CORRECTION   0x5C04

Definition at line 735 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_LINK_DELAY

#define KSZ9477_PORT5_PTP_LINK_DELAY   0x5C18

Definition at line 744 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT5_PTP_PDLY_RESP_TSH   0x5C10

Definition at line 740 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT5_PTP_PDLY_RESP_TSL   0x5C12

Definition at line 741 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_RX_LATENCY

#define KSZ9477_PORT5_PTP_RX_LATENCY   0x5C00

Definition at line 733 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_SYNC_TSH

#define KSZ9477_PORT5_PTP_SYNC_TSH   0x5C0C

Definition at line 738 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_SYNC_TSL

#define KSZ9477_PORT5_PTP_SYNC_TSL   0x5C0E

Definition at line 739 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_TS_INT_EN

#define KSZ9477_PORT5_PTP_TS_INT_EN   0x5C16

Definition at line 743 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_TS_INT_STAT

#define KSZ9477_PORT5_PTP_TS_INT_STAT   0x5C14

Definition at line 742 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_TX_LATENCY

#define KSZ9477_PORT5_PTP_TX_LATENCY   0x5C02

Definition at line 734 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT5_PTP_XDLY_REQ_TSH   0x5C08

Definition at line 736 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT5_PTP_XDLY_REQ_TSL   0x5C0A

Definition at line 737 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_PTR

#define KSZ9477_PORT5_PTR   0x5804

Definition at line 708 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT5_QUEUE0_EG_LIMIT_CTRL   0x5420

Definition at line 678 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT5_QUEUE1_EG_LIMIT_CTRL   0x5421

Definition at line 679 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT5_QUEUE2_EG_LIMIT_CTRL   0x5422

Definition at line 680 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT5_QUEUE3_EG_LIMIT_CTRL   0x5423

Definition at line 681 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_STATUS

#define KSZ9477_PORT5_STATUS   0x5030

Definition at line 666 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TAS_CTRL

#define KSZ9477_PORT5_TAS_CTRL   0x5920

Definition at line 725 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TAS_EVENT

#define KSZ9477_PORT5_TAS_EVENT   0x5924

Definition at line 727 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TAS_EVENT_INDEX

#define KSZ9477_PORT5_TAS_EVENT_INDEX   0x5923

Definition at line 726 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL0   0x5916

Definition at line 722 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL1   0x5918

Definition at line 723 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT5_TX_CREDIT_SHAPER_CTRL2   0x591A

Definition at line 724 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_QUEUE_CTRL0

#define KSZ9477_PORT5_TX_QUEUE_CTRL0   0x5914

Definition at line 720 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_QUEUE_CTRL1

#define KSZ9477_PORT5_TX_QUEUE_CTRL1   0x5915

Definition at line 721 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_QUEUE_INDEX

#define KSZ9477_PORT5_TX_QUEUE_INDEX   0x5900

Definition at line 718 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_TX_QUEUE_PVID

#define KSZ9477_PORT5_TX_QUEUE_PVID   0x5904

Definition at line 719 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT5_WRED_PKT_MEM_CTRL0   0x5830

Definition at line 713 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT5_WRED_PKT_MEM_CTRL1   0x5834

Definition at line 714 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_WRED_QUEUE_CTRL0

#define KSZ9477_PORT5_WRED_QUEUE_CTRL0   0x5840

Definition at line 715 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_WRED_QUEUE_CTRL1

#define KSZ9477_PORT5_WRED_QUEUE_CTRL1   0x5844

Definition at line 716 of file ksz9477_driver.h.

◆ KSZ9477_PORT5_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT5_WRED_QUEUE_PERF_MON_CTRL   0x5848

Definition at line 717 of file ksz9477_driver.h.

◆ KSZ9477_PORT6

#define KSZ9477_PORT6   6

Definition at line 43 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS0

#define KSZ9477_PORT6_ACL_ACCESS0   0x6600

Definition at line 772 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS1

#define KSZ9477_PORT6_ACL_ACCESS1   0x6601

Definition at line 773 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS10

#define KSZ9477_PORT6_ACL_ACCESS10   0x660A

Definition at line 782 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS11

#define KSZ9477_PORT6_ACL_ACCESS11   0x660B

Definition at line 783 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS12

#define KSZ9477_PORT6_ACL_ACCESS12   0x660C

Definition at line 784 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS13

#define KSZ9477_PORT6_ACL_ACCESS13   0x660D

Definition at line 785 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS14

#define KSZ9477_PORT6_ACL_ACCESS14   0x660E

Definition at line 786 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS15

#define KSZ9477_PORT6_ACL_ACCESS15   0x660F

Definition at line 787 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS2

#define KSZ9477_PORT6_ACL_ACCESS2   0x6602

Definition at line 774 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS3

#define KSZ9477_PORT6_ACL_ACCESS3   0x6603

Definition at line 775 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS4

#define KSZ9477_PORT6_ACL_ACCESS4   0x6604

Definition at line 776 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS5

#define KSZ9477_PORT6_ACL_ACCESS5   0x6605

Definition at line 777 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS6

#define KSZ9477_PORT6_ACL_ACCESS6   0x6606

Definition at line 778 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS7

#define KSZ9477_PORT6_ACL_ACCESS7   0x6607

Definition at line 779 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS8

#define KSZ9477_PORT6_ACL_ACCESS8   0x6608

Definition at line 780 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS9

#define KSZ9477_PORT6_ACL_ACCESS9   0x6609

Definition at line 781 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS_CTRL0

#define KSZ9477_PORT6_ACL_ACCESS_CTRL0   0x6612

Definition at line 790 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_ACCESS_CTRL1

#define KSZ9477_PORT6_ACL_ACCESS_CTRL1   0x6613

Definition at line 791 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_BYTE_EN_LSB

#define KSZ9477_PORT6_ACL_BYTE_EN_LSB   0x6611

Definition at line 789 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_ACL_BYTE_EN_MSB

#define KSZ9477_PORT6_ACL_BYTE_EN_MSB   0x6610

Definition at line 788 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_AUTH_CTRL

#define KSZ9477_PORT6_AUTH_CTRL   0x6803

Definition at line 795 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_CTRL0

#define KSZ9477_PORT6_CTRL0   0x6A00

Definition at line 816 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_CTRL1

#define KSZ9477_PORT6_CTRL1   0x6A04

Definition at line 817 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_CTRL2

#define KSZ9477_PORT6_CTRL2   0x6B00

Definition at line 818 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_DEFAULT_TAG0

#define KSZ9477_PORT6_DEFAULT_TAG0   0x6000

Definition at line 745 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_DEFAULT_TAG1

#define KSZ9477_PORT6_DEFAULT_TAG1   0x6001

Definition at line 746 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_IG_MAC_CTRL

#define KSZ9477_PORT6_IG_MAC_CTRL   0x6802

Definition at line 794 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT6_IG_RATE_LIMIT_CTRL   0x6403

Definition at line 757 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_INT_MASK

#define KSZ9477_PORT6_INT_MASK   0x601F

Definition at line 750 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_INT_STATUS

#define KSZ9477_PORT6_INT_STATUS   0x601B

Definition at line 749 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MAC_CTRL0

#define KSZ9477_PORT6_MAC_CTRL0   0x6400

Definition at line 755 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MAC_CTRL1

#define KSZ9477_PORT6_MAC_CTRL1   0x6401

Definition at line 756 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MASK

#define KSZ9477_PORT6_MASK   0x20

Definition at line 53 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MIB_CTRL_STAT

#define KSZ9477_PORT6_MIB_CTRL_STAT   0x6500

Definition at line 770 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MIB_DATA

#define KSZ9477_PORT6_MIB_DATA   0x6504

Definition at line 771 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MIRRORING_CTRL

#define KSZ9477_PORT6_MIRRORING_CTRL   0x6800

Definition at line 792 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MSTP_PTR

#define KSZ9477_PORT6_MSTP_PTR   0x6B01

Definition at line 819 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_MSTP_STATE

#define KSZ9477_PORT6_MSTP_STATE   0x6B04

Definition at line 820 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_OP_CTRL0

#define KSZ9477_PORT6_OP_CTRL0   0x6020

Definition at line 751 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PME_WOL_EN

#define KSZ9477_PORT6_PME_WOL_EN   0x6017

Definition at line 748 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PME_WOL_EVENT

#define KSZ9477_PORT6_PME_WOL_EVENT   0x6013

Definition at line 747 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_POLICE_CTRL

#define KSZ9477_PORT6_POLICE_CTRL   0x680C

Definition at line 798 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT6_POLICE_QUEUE_BURST_SIZE   0x6824

Definition at line 800 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_POLICE_QUEUE_RATE

#define KSZ9477_PORT6_POLICE_QUEUE_RATE   0x6820

Definition at line 799 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO0_IG_LIMIT_CTRL   0x6410

Definition at line 758 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO1_IG_LIMIT_CTRL   0x6411

Definition at line 759 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO2_IG_LIMIT_CTRL   0x6412

Definition at line 760 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO3_IG_LIMIT_CTRL   0x6413

Definition at line 761 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO4_IG_LIMIT_CTRL   0x6414

Definition at line 762 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO5_IG_LIMIT_CTRL   0x6415

Definition at line 763 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO6_IG_LIMIT_CTRL   0x6416

Definition at line 764 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT6_PRIO7_IG_LIMIT_CTRL   0x6417

Definition at line 765 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO_CTRL

#define KSZ9477_PORT6_PRIO_CTRL   0x6801

Definition at line 793 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT6_PRIO_TO_QUEUE_MAPPING   0x6808

Definition at line 797 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_ASYM_CORRECTION

#define KSZ9477_PORT6_PTP_ASYM_CORRECTION   0x6C04

Definition at line 823 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_LINK_DELAY

#define KSZ9477_PORT6_PTP_LINK_DELAY   0x6C18

Definition at line 832 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT6_PTP_PDLY_RESP_TSH   0x6C10

Definition at line 828 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT6_PTP_PDLY_RESP_TSL   0x6C12

Definition at line 829 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_RX_LATENCY

#define KSZ9477_PORT6_PTP_RX_LATENCY   0x6C00

Definition at line 821 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_SYNC_TSH

#define KSZ9477_PORT6_PTP_SYNC_TSH   0x6C0C

Definition at line 826 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_SYNC_TSL

#define KSZ9477_PORT6_PTP_SYNC_TSL   0x6C0E

Definition at line 827 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_TS_INT_EN

#define KSZ9477_PORT6_PTP_TS_INT_EN   0x6C16

Definition at line 831 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_TS_INT_STAT

#define KSZ9477_PORT6_PTP_TS_INT_STAT   0x6C14

Definition at line 830 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_TX_LATENCY

#define KSZ9477_PORT6_PTP_TX_LATENCY   0x6C02

Definition at line 822 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT6_PTP_XDLY_REQ_TSH   0x6C08

Definition at line 824 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT6_PTP_XDLY_REQ_TSL   0x6C0A

Definition at line 825 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_PTR

#define KSZ9477_PORT6_PTR   0x6804

Definition at line 796 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT6_QUEUE0_EG_LIMIT_CTRL   0x6420

Definition at line 766 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT6_QUEUE1_EG_LIMIT_CTRL   0x6421

Definition at line 767 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT6_QUEUE2_EG_LIMIT_CTRL   0x6422

Definition at line 768 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT6_QUEUE3_EG_LIMIT_CTRL   0x6423

Definition at line 769 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_STATUS

#define KSZ9477_PORT6_STATUS   0x6030

Definition at line 752 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TAS_CTRL

#define KSZ9477_PORT6_TAS_CTRL   0x6920

Definition at line 813 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TAS_EVENT

#define KSZ9477_PORT6_TAS_EVENT   0x6924

Definition at line 815 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TAS_EVENT_INDEX

#define KSZ9477_PORT6_TAS_EVENT_INDEX   0x6923

Definition at line 814 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL0   0x6916

Definition at line 810 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL1   0x6918

Definition at line 811 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT6_TX_CREDIT_SHAPER_CTRL2   0x691A

Definition at line 812 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_QUEUE_CTRL0

#define KSZ9477_PORT6_TX_QUEUE_CTRL0   0x6914

Definition at line 808 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_QUEUE_CTRL1

#define KSZ9477_PORT6_TX_QUEUE_CTRL1   0x6915

Definition at line 809 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_QUEUE_INDEX

#define KSZ9477_PORT6_TX_QUEUE_INDEX   0x6900

Definition at line 806 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_TX_QUEUE_PVID

#define KSZ9477_PORT6_TX_QUEUE_PVID   0x6904

Definition at line 807 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT6_WRED_PKT_MEM_CTRL0   0x6830

Definition at line 801 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT6_WRED_PKT_MEM_CTRL1   0x6834

Definition at line 802 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_WRED_QUEUE_CTRL0

#define KSZ9477_PORT6_WRED_QUEUE_CTRL0   0x6840

Definition at line 803 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_WRED_QUEUE_CTRL1

#define KSZ9477_PORT6_WRED_QUEUE_CTRL1   0x6844

Definition at line 804 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT6_WRED_QUEUE_PERF_MON_CTRL   0x6848

Definition at line 805 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_XMII_CTRL0

#define KSZ9477_PORT6_XMII_CTRL0   0x6300

Definition at line 753 of file ksz9477_driver.h.

◆ KSZ9477_PORT6_XMII_CTRL1

#define KSZ9477_PORT6_XMII_CTRL1   0x6301

Definition at line 754 of file ksz9477_driver.h.

◆ KSZ9477_PORT7

#define KSZ9477_PORT7   7

Definition at line 44 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS0

#define KSZ9477_PORT7_ACL_ACCESS0   0x7600

Definition at line 862 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS1

#define KSZ9477_PORT7_ACL_ACCESS1   0x7601

Definition at line 863 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS10

#define KSZ9477_PORT7_ACL_ACCESS10   0x760A

Definition at line 872 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS11

#define KSZ9477_PORT7_ACL_ACCESS11   0x760B

Definition at line 873 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS12

#define KSZ9477_PORT7_ACL_ACCESS12   0x760C

Definition at line 874 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS13

#define KSZ9477_PORT7_ACL_ACCESS13   0x760D

Definition at line 875 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS14

#define KSZ9477_PORT7_ACL_ACCESS14   0x760E

Definition at line 876 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS15

#define KSZ9477_PORT7_ACL_ACCESS15   0x760F

Definition at line 877 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS2

#define KSZ9477_PORT7_ACL_ACCESS2   0x7602

Definition at line 864 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS3

#define KSZ9477_PORT7_ACL_ACCESS3   0x7603

Definition at line 865 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS4

#define KSZ9477_PORT7_ACL_ACCESS4   0x7604

Definition at line 866 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS5

#define KSZ9477_PORT7_ACL_ACCESS5   0x7605

Definition at line 867 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS6

#define KSZ9477_PORT7_ACL_ACCESS6   0x7606

Definition at line 868 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS7

#define KSZ9477_PORT7_ACL_ACCESS7   0x7607

Definition at line 869 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS8

#define KSZ9477_PORT7_ACL_ACCESS8   0x7608

Definition at line 870 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS9

#define KSZ9477_PORT7_ACL_ACCESS9   0x7609

Definition at line 871 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS_CTRL0

#define KSZ9477_PORT7_ACL_ACCESS_CTRL0   0x7612

Definition at line 880 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_ACCESS_CTRL1

#define KSZ9477_PORT7_ACL_ACCESS_CTRL1   0x7613

Definition at line 881 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_BYTE_EN_LSB

#define KSZ9477_PORT7_ACL_BYTE_EN_LSB   0x7611

Definition at line 879 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_ACL_BYTE_EN_MSB

#define KSZ9477_PORT7_ACL_BYTE_EN_MSB   0x7610

Definition at line 878 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_AUTH_CTRL

#define KSZ9477_PORT7_AUTH_CTRL   0x7803

Definition at line 885 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_CTRL0

#define KSZ9477_PORT7_CTRL0   0x7A00

Definition at line 906 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_CTRL1

#define KSZ9477_PORT7_CTRL1   0x7A04

Definition at line 907 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_CTRL2

#define KSZ9477_PORT7_CTRL2   0x7B00

Definition at line 908 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_DEFAULT_TAG0

#define KSZ9477_PORT7_DEFAULT_TAG0   0x7000

Definition at line 833 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_DEFAULT_TAG1

#define KSZ9477_PORT7_DEFAULT_TAG1   0x7001

Definition at line 834 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_IG_MAC_CTRL

#define KSZ9477_PORT7_IG_MAC_CTRL   0x7802

Definition at line 884 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORT7_IG_RATE_LIMIT_CTRL   0x7403

Definition at line 847 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_INT_MASK

#define KSZ9477_PORT7_INT_MASK   0x701F

Definition at line 838 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_INT_STATUS

#define KSZ9477_PORT7_INT_STATUS   0x701B

Definition at line 837 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MAC_CTRL0

#define KSZ9477_PORT7_MAC_CTRL0   0x7400

Definition at line 845 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MAC_CTRL1

#define KSZ9477_PORT7_MAC_CTRL1   0x7401

Definition at line 846 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MASK

#define KSZ9477_PORT7_MASK   0x40

Definition at line 54 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MIB_CTRL_STAT

#define KSZ9477_PORT7_MIB_CTRL_STAT   0x7500

Definition at line 860 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MIB_DATA

#define KSZ9477_PORT7_MIB_DATA   0x7504

Definition at line 861 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MIRRORING_CTRL

#define KSZ9477_PORT7_MIRRORING_CTRL   0x7800

Definition at line 882 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MSTP_PTR

#define KSZ9477_PORT7_MSTP_PTR   0x7B01

Definition at line 909 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_MSTP_STATE

#define KSZ9477_PORT7_MSTP_STATE   0x7B04

Definition at line 910 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_OP_CTRL0

#define KSZ9477_PORT7_OP_CTRL0   0x7020

Definition at line 839 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PME_WOL_EN

#define KSZ9477_PORT7_PME_WOL_EN   0x7017

Definition at line 836 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PME_WOL_EVENT

#define KSZ9477_PORT7_PME_WOL_EVENT   0x7013

Definition at line 835 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_POLICE_CTRL

#define KSZ9477_PORT7_POLICE_CTRL   0x780C

Definition at line 888 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORT7_POLICE_QUEUE_BURST_SIZE   0x7824

Definition at line 890 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_POLICE_QUEUE_RATE

#define KSZ9477_PORT7_POLICE_QUEUE_RATE   0x7820

Definition at line 889 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO0_IG_LIMIT_CTRL   0x7410

Definition at line 848 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO1_IG_LIMIT_CTRL   0x7411

Definition at line 849 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO2_IG_LIMIT_CTRL   0x7412

Definition at line 850 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO3_IG_LIMIT_CTRL   0x7413

Definition at line 851 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO4_IG_LIMIT_CTRL   0x7414

Definition at line 852 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO5_IG_LIMIT_CTRL   0x7415

Definition at line 853 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO6_IG_LIMIT_CTRL   0x7416

Definition at line 854 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORT7_PRIO7_IG_LIMIT_CTRL   0x7417

Definition at line 855 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO_CTRL

#define KSZ9477_PORT7_PRIO_CTRL   0x7801

Definition at line 883 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORT7_PRIO_TO_QUEUE_MAPPING   0x7808

Definition at line 887 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_ASYM_CORRECTION

#define KSZ9477_PORT7_PTP_ASYM_CORRECTION   0x7C04

Definition at line 913 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_LINK_DELAY

#define KSZ9477_PORT7_PTP_LINK_DELAY   0x7C18

Definition at line 922 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_PDLY_RESP_TSH

#define KSZ9477_PORT7_PTP_PDLY_RESP_TSH   0x7C10

Definition at line 918 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_PDLY_RESP_TSL

#define KSZ9477_PORT7_PTP_PDLY_RESP_TSL   0x7C12

Definition at line 919 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_RX_LATENCY

#define KSZ9477_PORT7_PTP_RX_LATENCY   0x7C00

Definition at line 911 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_SYNC_TSH

#define KSZ9477_PORT7_PTP_SYNC_TSH   0x7C0C

Definition at line 916 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_SYNC_TSL

#define KSZ9477_PORT7_PTP_SYNC_TSL   0x7C0E

Definition at line 917 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_TS_INT_EN

#define KSZ9477_PORT7_PTP_TS_INT_EN   0x7C16

Definition at line 921 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_TS_INT_STAT

#define KSZ9477_PORT7_PTP_TS_INT_STAT   0x7C14

Definition at line 920 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_TX_LATENCY

#define KSZ9477_PORT7_PTP_TX_LATENCY   0x7C02

Definition at line 912 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_XDLY_REQ_TSH

#define KSZ9477_PORT7_PTP_XDLY_REQ_TSH   0x7C08

Definition at line 914 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTP_XDLY_REQ_TSL

#define KSZ9477_PORT7_PTP_XDLY_REQ_TSL   0x7C0A

Definition at line 915 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_PTR

#define KSZ9477_PORT7_PTR   0x7804

Definition at line 886 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORT7_QUEUE0_EG_LIMIT_CTRL   0x7420

Definition at line 856 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORT7_QUEUE1_EG_LIMIT_CTRL   0x7421

Definition at line 857 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORT7_QUEUE2_EG_LIMIT_CTRL   0x7422

Definition at line 858 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORT7_QUEUE3_EG_LIMIT_CTRL   0x7423

Definition at line 859 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_SGMII_ADDR

#define KSZ9477_PORT7_SGMII_ADDR   0x7200

Definition at line 841 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_SGMII_DATA

#define KSZ9477_PORT7_SGMII_DATA   0x7206

Definition at line 842 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_STATUS

#define KSZ9477_PORT7_STATUS   0x7030

Definition at line 840 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TAS_CTRL

#define KSZ9477_PORT7_TAS_CTRL   0x7920

Definition at line 903 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TAS_EVENT

#define KSZ9477_PORT7_TAS_EVENT   0x7924

Definition at line 905 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TAS_EVENT_INDEX

#define KSZ9477_PORT7_TAS_EVENT_INDEX   0x7923

Definition at line 904 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL0   0x7916

Definition at line 900 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL1   0x7918

Definition at line 901 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORT7_TX_CREDIT_SHAPER_CTRL2   0x791A

Definition at line 902 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_QUEUE_CTRL0

#define KSZ9477_PORT7_TX_QUEUE_CTRL0   0x7914

Definition at line 898 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_QUEUE_CTRL1

#define KSZ9477_PORT7_TX_QUEUE_CTRL1   0x7915

Definition at line 899 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_QUEUE_INDEX

#define KSZ9477_PORT7_TX_QUEUE_INDEX   0x7900

Definition at line 896 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_TX_QUEUE_PVID

#define KSZ9477_PORT7_TX_QUEUE_PVID   0x7904

Definition at line 897 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORT7_WRED_PKT_MEM_CTRL0   0x7830

Definition at line 891 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORT7_WRED_PKT_MEM_CTRL1   0x7834

Definition at line 892 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_WRED_QUEUE_CTRL0

#define KSZ9477_PORT7_WRED_QUEUE_CTRL0   0x7840

Definition at line 893 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_WRED_QUEUE_CTRL1

#define KSZ9477_PORT7_WRED_QUEUE_CTRL1   0x7844

Definition at line 894 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORT7_WRED_QUEUE_PERF_MON_CTRL   0x7848

Definition at line 895 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_XMII_CTRL0

#define KSZ9477_PORT7_XMII_CTRL0   0x7300

Definition at line 843 of file ksz9477_driver.h.

◆ KSZ9477_PORT7_XMII_CTRL1

#define KSZ9477_PORT7_XMII_CTRL1   0x7301

Definition at line 844 of file ksz9477_driver.h.

◆ KSZ9477_PORT_MASK

#define KSZ9477_PORT_MASK   0x7F

Definition at line 47 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS0

#define KSZ9477_PORTn_ACL_ACCESS0 (   port)    (0x0600 + ((port) * 0x1000))

Definition at line 952 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS1

#define KSZ9477_PORTn_ACL_ACCESS1 (   port)    (0x0601 + ((port) * 0x1000))

Definition at line 953 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS10

#define KSZ9477_PORTn_ACL_ACCESS10 (   port)    (0x060A + ((port) * 0x1000))

Definition at line 962 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS11

#define KSZ9477_PORTn_ACL_ACCESS11 (   port)    (0x060B + ((port) * 0x1000))

Definition at line 963 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS12

#define KSZ9477_PORTn_ACL_ACCESS12 (   port)    (0x060C + ((port) * 0x1000))

Definition at line 964 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS13

#define KSZ9477_PORTn_ACL_ACCESS13 (   port)    (0x060D + ((port) * 0x1000))

Definition at line 965 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS14

#define KSZ9477_PORTn_ACL_ACCESS14 (   port)    (0x060E + ((port) * 0x1000))

Definition at line 966 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS15

#define KSZ9477_PORTn_ACL_ACCESS15 (   port)    (0x060F + ((port) * 0x1000))

Definition at line 967 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS2

#define KSZ9477_PORTn_ACL_ACCESS2 (   port)    (0x0602 + ((port) * 0x1000))

Definition at line 954 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS3

#define KSZ9477_PORTn_ACL_ACCESS3 (   port)    (0x0603 + ((port) * 0x1000))

Definition at line 955 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS4

#define KSZ9477_PORTn_ACL_ACCESS4 (   port)    (0x0604 + ((port) * 0x1000))

Definition at line 956 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS5

#define KSZ9477_PORTn_ACL_ACCESS5 (   port)    (0x0605 + ((port) * 0x1000))

Definition at line 957 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS6

#define KSZ9477_PORTn_ACL_ACCESS6 (   port)    (0x0606 + ((port) * 0x1000))

Definition at line 958 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS7

#define KSZ9477_PORTn_ACL_ACCESS7 (   port)    (0x0607 + ((port) * 0x1000))

Definition at line 959 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS8

#define KSZ9477_PORTn_ACL_ACCESS8 (   port)    (0x0608 + ((port) * 0x1000))

Definition at line 960 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS9

#define KSZ9477_PORTn_ACL_ACCESS9 (   port)    (0x0609 + ((port) * 0x1000))

Definition at line 961 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL0

#define KSZ9477_PORTn_ACL_ACCESS_CTRL0 (   port)    (0x0612 + ((port) * 0x1000))

Definition at line 970 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL0_ACL_INDEX

#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_ACL_INDEX   0x0F

Definition at line 1915 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL0_READ

#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_READ   0x00

Definition at line 1913 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL0_READ_STATUS

#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_READ_STATUS   0x20

Definition at line 1912 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL0_WRITE

#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_WRITE   0x10

Definition at line 1914 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL0_WRITE_STATUS

#define KSZ9477_PORTn_ACL_ACCESS_CTRL0_WRITE_STATUS   0x40

Definition at line 1911 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL1

#define KSZ9477_PORTn_ACL_ACCESS_CTRL1 (   port)    (0x0613 + ((port) * 0x1000))

Definition at line 971 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_ACCESS_CTRL1_FORCE_DLR_MISS

#define KSZ9477_PORTn_ACL_ACCESS_CTRL1_FORCE_DLR_MISS   0x01

Definition at line 1918 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_BYTE_EN_LSB

#define KSZ9477_PORTn_ACL_BYTE_EN_LSB (   port)    (0x0611 + ((port) * 0x1000))

Definition at line 969 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ACL_BYTE_EN_MSB

#define KSZ9477_PORTn_ACL_BYTE_EN_MSB (   port)    (0x0610 + ((port) * 0x1000))

Definition at line 968 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_AUTH_CTRL

#define KSZ9477_PORTn_AUTH_CTRL (   port)    (0x0803 + ((port) * 0x1000))

Definition at line 975 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_AUTH_CTRL_ACL_EN

#define KSZ9477_PORTn_AUTH_CTRL_ACL_EN   0x04

Definition at line 1926 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE

#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE   0x03

Definition at line 1927 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_BLOCK

#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_BLOCK   0x01

Definition at line 1929 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_PASS

#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_PASS   0x00

Definition at line 1928 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_TRAP

#define KSZ9477_PORTn_AUTH_CTRL_AUTH_MODE_TRAP   0x02

Definition at line 1930 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL0

#define KSZ9477_PORTn_CTRL0 (   port)    (0x0A00 + ((port) * 0x1000))

Definition at line 996 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1

#define KSZ9477_PORTn_CTRL1 (   port)    (0x0A04 + ((port) * 0x1000))

Definition at line 997 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT1_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT1_VLAN_MEMBERSHIP   0x00000001

Definition at line 1944 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT2_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT2_VLAN_MEMBERSHIP   0x00000002

Definition at line 1943 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT3_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT3_VLAN_MEMBERSHIP   0x00000004

Definition at line 1942 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT4_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT4_VLAN_MEMBERSHIP   0x00000008

Definition at line 1941 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT5_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT5_VLAN_MEMBERSHIP   0x00000010

Definition at line 1940 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT6_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT6_VLAN_MEMBERSHIP   0x00000020

Definition at line 1939 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT7_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT7_VLAN_MEMBERSHIP   0x00000040

Definition at line 1938 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL1_PORT_VLAN_MEMBERSHIP

#define KSZ9477_PORTn_CTRL1_PORT_VLAN_MEMBERSHIP   0x0000007F

Definition at line 1937 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL2

#define KSZ9477_PORTn_CTRL2 (   port)    (0x0B00 + ((port) * 0x1000))

Definition at line 998 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL2_802_1X_EN

#define KSZ9477_PORTn_CTRL2_802_1X_EN   0x10

Definition at line 1950 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL2_DISCARD_NON_PVID_PKT

#define KSZ9477_PORTn_CTRL2_DISCARD_NON_PVID_PKT   0x20

Definition at line 1949 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL2_INGRESS_VLAN_FILT

#define KSZ9477_PORTn_CTRL2_INGRESS_VLAN_FILT   0x40

Definition at line 1948 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL2_NULL_VID_LOOKUP_EN

#define KSZ9477_PORTn_CTRL2_NULL_VID_LOOKUP_EN   0x80

Definition at line 1947 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_CTRL2_SELF_ADDR_FILT

#define KSZ9477_PORTn_CTRL2_SELF_ADDR_FILT   0x08

Definition at line 1951 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_DEFAULT_TAG0

#define KSZ9477_PORTn_DEFAULT_TAG0 (   port)    (0x0000 + ((port) * 0x1000))

Definition at line 925 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_DEFAULT_TAG0_DEI

#define KSZ9477_PORTn_DEFAULT_TAG0_DEI   0x10

Definition at line 1844 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_DEFAULT_TAG0_PCP

#define KSZ9477_PORTn_DEFAULT_TAG0_PCP   0xE0

Definition at line 1843 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_DEFAULT_TAG0_VID_MSB

#define KSZ9477_PORTn_DEFAULT_TAG0_VID_MSB   0x0F

Definition at line 1845 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_DEFAULT_TAG1

#define KSZ9477_PORTn_DEFAULT_TAG1 (   port)    (0x0001 + ((port) * 0x1000))

Definition at line 926 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_DEFAULT_TAG1_VID_LSB

#define KSZ9477_PORTn_DEFAULT_TAG1_VID_LSB   0xFF

Definition at line 1848 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_ETH_PHY_REG

#define KSZ9477_PORTn_ETH_PHY_REG (   port,
  addr 
)    (0x0100 + ((port) * 0x1000) + ((addr) * 2))

Definition at line 1013 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_IG_MAC_CTRL

#define KSZ9477_PORTn_IG_MAC_CTRL (   port)    (0x0802 + ((port) * 0x1000))

Definition at line 974 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_IG_RATE_LIMIT_CTRL

#define KSZ9477_PORTn_IG_RATE_LIMIT_CTRL (   port)    (0x0403 + ((port) * 0x1000))

Definition at line 937 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_MASK

#define KSZ9477_PORTn_INT_MASK (   port)    (0x001F + ((port) * 0x1000))

Definition at line 930 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_MASK_ACL

#define KSZ9477_PORTn_INT_MASK_ACL   0x01

Definition at line 1860 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_MASK_PHY

#define KSZ9477_PORTn_INT_MASK_PHY   0x02

Definition at line 1859 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_MASK_PTP

#define KSZ9477_PORTn_INT_MASK_PTP   0x04

Definition at line 1858 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_MASK_SGMII_AN_DONE

#define KSZ9477_PORTn_INT_MASK_SGMII_AN_DONE   0x08

Definition at line 1857 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_STATUS

#define KSZ9477_PORTn_INT_STATUS (   port)    (0x001B + ((port) * 0x1000))

Definition at line 929 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_STATUS_ACL

#define KSZ9477_PORTn_INT_STATUS_ACL   0x01

Definition at line 1854 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_STATUS_PHY

#define KSZ9477_PORTn_INT_STATUS_PHY   0x02

Definition at line 1853 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_STATUS_PTP

#define KSZ9477_PORTn_INT_STATUS_PTP   0x04

Definition at line 1852 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_INT_STATUS_SGMII_AN_DONE

#define KSZ9477_PORTn_INT_STATUS_SGMII_AN_DONE   0x08

Definition at line 1851 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MAC_CTRL0

#define KSZ9477_PORTn_MAC_CTRL0 (   port)    (0x0400 + ((port) * 0x1000))

Definition at line 935 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MAC_CTRL0_BCAST_STORM_PROTECT_EN

#define KSZ9477_PORTn_MAC_CTRL0_BCAST_STORM_PROTECT_EN   0x02

Definition at line 1894 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MAC_CTRL1

#define KSZ9477_PORTn_MAC_CTRL1 (   port)    (0x0401 + ((port) * 0x1000))

Definition at line 936 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MAC_CTRL1_BACK_PRESSURE_EN

#define KSZ9477_PORTn_MAC_CTRL1_BACK_PRESSURE_EN   0x08

Definition at line 1897 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MAC_CTRL1_PASS_ALL_FRAMES

#define KSZ9477_PORTn_MAC_CTRL1_PASS_ALL_FRAMES   0x01

Definition at line 1898 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_CTRL_STAT

#define KSZ9477_PORTn_MIB_CTRL_STAT (   port)    (0x0500 + ((port) * 0x1000))

Definition at line 950 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_CTRL_STAT_MIB_COUNTER_OVERFLOW

#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_COUNTER_OVERFLOW   0x80000000

Definition at line 1901 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_CTRL_STAT_MIB_COUNTER_VALUE_35_32

#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_COUNTER_VALUE_35_32   0x0000000F

Definition at line 1905 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_CTRL_STAT_MIB_FLUSH_FREEZE

#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_FLUSH_FREEZE   0x01000000

Definition at line 1903 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_CTRL_STAT_MIB_INDEX

#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_INDEX   0x00FF0000

Definition at line 1904 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_CTRL_STAT_MIB_READ

#define KSZ9477_PORTn_MIB_CTRL_STAT_MIB_READ   0x02000000

Definition at line 1902 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_DATA

#define KSZ9477_PORTn_MIB_DATA (   port)    (0x0504 + ((port) * 0x1000))

Definition at line 951 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIB_DATA_MIB_COUNTER_VALUE_31_0

#define KSZ9477_PORTn_MIB_DATA_MIB_COUNTER_VALUE_31_0   0xFFFFFFFF

Definition at line 1908 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIRRORING_CTRL

#define KSZ9477_PORTn_MIRRORING_CTRL (   port)    (0x0800 + ((port) * 0x1000))

Definition at line 972 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIRRORING_CTRL_RECEIVE_SNIFF

#define KSZ9477_PORTn_MIRRORING_CTRL_RECEIVE_SNIFF   0x40

Definition at line 1921 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIRRORING_CTRL_SNIFFER_PORT

#define KSZ9477_PORTn_MIRRORING_CTRL_SNIFFER_PORT   0x02

Definition at line 1923 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MIRRORING_CTRL_TRANSMIT_SNIFF

#define KSZ9477_PORTn_MIRRORING_CTRL_TRANSMIT_SNIFF   0x20

Definition at line 1922 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MSTP_PTR

#define KSZ9477_PORTn_MSTP_PTR (   port)    (0x0B01 + ((port) * 0x1000))

Definition at line 999 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MSTP_PTR_MSTP_PTR

#define KSZ9477_PORTn_MSTP_PTR_MSTP_PTR   0x07

Definition at line 1954 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MSTP_STATE

#define KSZ9477_PORTn_MSTP_STATE (   port)    (0x0B04 + ((port) * 0x1000))

Definition at line 1000 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MSTP_STATE_LEARNING_DIS

#define KSZ9477_PORTn_MSTP_STATE_LEARNING_DIS   0x01

Definition at line 1959 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MSTP_STATE_RECEIVE_EN

#define KSZ9477_PORTn_MSTP_STATE_RECEIVE_EN   0x02

Definition at line 1958 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_MSTP_STATE_TRANSMIT_EN

#define KSZ9477_PORTn_MSTP_STATE_TRANSMIT_EN   0x04

Definition at line 1957 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_OP_CTRL0

#define KSZ9477_PORTn_OP_CTRL0 (   port)    (0x0020 + ((port) * 0x1000))

Definition at line 931 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_OP_CTRL0_LOCAL_LOOPBACK

#define KSZ9477_PORTn_OP_CTRL0_LOCAL_LOOPBACK   0x80

Definition at line 1863 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_OP_CTRL0_REMOTE_LOOPBACK

#define KSZ9477_PORTn_OP_CTRL0_REMOTE_LOOPBACK   0x40

Definition at line 1864 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_OP_CTRL0_TAIL_TAG_EN

#define KSZ9477_PORTn_OP_CTRL0_TAIL_TAG_EN   0x04

Definition at line 1865 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_OP_CTRL0_TX_QUEUE_SPLIT_EN

#define KSZ9477_PORTn_OP_CTRL0_TX_QUEUE_SPLIT_EN   0x03

Definition at line 1866 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PME_WOL_EN

#define KSZ9477_PORTn_PME_WOL_EN (   port)    (0x0017 + ((port) * 0x1000))

Definition at line 928 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PME_WOL_EVENT

#define KSZ9477_PORTn_PME_WOL_EVENT (   port)    (0x0013 + ((port) * 0x1000))

Definition at line 927 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_POLICE_CTRL

#define KSZ9477_PORTn_POLICE_CTRL (   port)    (0x080C + ((port) * 0x1000))

Definition at line 978 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_POLICE_QUEUE_BURST_SIZE

#define KSZ9477_PORTn_POLICE_QUEUE_BURST_SIZE (   port)    (0x0824 + ((port) * 0x1000))

Definition at line 980 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_POLICE_QUEUE_RATE

#define KSZ9477_PORTn_POLICE_QUEUE_RATE (   port)    (0x0820 + ((port) * 0x1000))

Definition at line 979 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO0_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO0_IG_LIMIT_CTRL (   port)    (0x0410 + ((port) * 0x1000))

Definition at line 938 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO1_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO1_IG_LIMIT_CTRL (   port)    (0x0411 + ((port) * 0x1000))

Definition at line 939 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO2_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO2_IG_LIMIT_CTRL (   port)    (0x0412 + ((port) * 0x1000))

Definition at line 940 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO3_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO3_IG_LIMIT_CTRL (   port)    (0x0413 + ((port) * 0x1000))

Definition at line 941 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO4_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO4_IG_LIMIT_CTRL (   port)    (0x0414 + ((port) * 0x1000))

Definition at line 942 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO5_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO5_IG_LIMIT_CTRL (   port)    (0x0415 + ((port) * 0x1000))

Definition at line 943 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO6_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO6_IG_LIMIT_CTRL (   port)    (0x0416 + ((port) * 0x1000))

Definition at line 944 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO7_IG_LIMIT_CTRL

#define KSZ9477_PORTn_PRIO7_IG_LIMIT_CTRL (   port)    (0x0417 + ((port) * 0x1000))

Definition at line 945 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO_CTRL

#define KSZ9477_PORTn_PRIO_CTRL (   port)    (0x0801 + ((port) * 0x1000))

Definition at line 973 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PRIO_TO_QUEUE_MAPPING

#define KSZ9477_PORTn_PRIO_TO_QUEUE_MAPPING (   port)    (0x0808 + ((port) * 0x1000))

Definition at line 977 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_ASYM_CORRECTION

#define KSZ9477_PORTn_PTP_ASYM_CORRECTION (   port)    (0x0C04 + ((port) * 0x1000))

Definition at line 1003 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_ASYM_CORRECTION_PTP_ASYM_COR

#define KSZ9477_PORTn_PTP_ASYM_CORRECTION_PTP_ASYM_COR   0x7FFF

Definition at line 1963 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_ASYM_CORRECTION_PTP_ASYM_COR_SIGN

#define KSZ9477_PORTn_PTP_ASYM_CORRECTION_PTP_ASYM_COR_SIGN   0x8000

Definition at line 1962 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_LINK_DELAY

#define KSZ9477_PORTn_PTP_LINK_DELAY (   port)    (0x0C18 + ((port) * 0x1000))

Definition at line 1012 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_PDLY_RESP_TSH

#define KSZ9477_PORTn_PTP_PDLY_RESP_TSH (   port)    (0x0C10 + ((port) * 0x1000))

Definition at line 1008 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_PDLY_RESP_TSL

#define KSZ9477_PORTn_PTP_PDLY_RESP_TSL (   port)    (0x0C12 + ((port) * 0x1000))

Definition at line 1009 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_RX_LATENCY

#define KSZ9477_PORTn_PTP_RX_LATENCY (   port)    (0x0C00 + ((port) * 0x1000))

Definition at line 1001 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_SYNC_TSH

#define KSZ9477_PORTn_PTP_SYNC_TSH (   port)    (0x0C0C + ((port) * 0x1000))

Definition at line 1006 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_SYNC_TSL

#define KSZ9477_PORTn_PTP_SYNC_TSL (   port)    (0x0C0E + ((port) * 0x1000))

Definition at line 1007 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_EN

#define KSZ9477_PORTn_PTP_TS_INT_EN (   port)    (0x0C16 + ((port) * 0x1000))

Definition at line 1011 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_EN_TS_PDLY_REQ_INT_ENB

#define KSZ9477_PORTn_PTP_TS_INT_EN_TS_PDLY_REQ_INT_ENB   0x4000

Definition at line 1972 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_EN_TS_PDLY_RESP_INT_ENB

#define KSZ9477_PORTn_PTP_TS_INT_EN_TS_PDLY_RESP_INT_ENB   0x2000

Definition at line 1973 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_EN_TS_SYNC_INT_ENB

#define KSZ9477_PORTn_PTP_TS_INT_EN_TS_SYNC_INT_ENB   0x8000

Definition at line 1971 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_STAT

#define KSZ9477_PORTn_PTP_TS_INT_STAT (   port)    (0x0C14 + ((port) * 0x1000))

Definition at line 1010 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_STAT_TS_PDLY_REQ_INT_STATUS

#define KSZ9477_PORTn_PTP_TS_INT_STAT_TS_PDLY_REQ_INT_STATUS   0x4000

Definition at line 1967 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_STAT_TS_PDLY_RESP_INT_STATUS

#define KSZ9477_PORTn_PTP_TS_INT_STAT_TS_PDLY_RESP_INT_STATUS   0x2000

Definition at line 1968 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TS_INT_STAT_TS_SYNC_INT_STATUS

#define KSZ9477_PORTn_PTP_TS_INT_STAT_TS_SYNC_INT_STATUS   0x8000

Definition at line 1966 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_TX_LATENCY

#define KSZ9477_PORTn_PTP_TX_LATENCY (   port)    (0x0C02 + ((port) * 0x1000))

Definition at line 1002 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_XDLY_REQ_TSH

#define KSZ9477_PORTn_PTP_XDLY_REQ_TSH (   port)    (0x0C08 + ((port) * 0x1000))

Definition at line 1004 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTP_XDLY_REQ_TSL

#define KSZ9477_PORTn_PTP_XDLY_REQ_TSL (   port)    (0x0C0A + ((port) * 0x1000))

Definition at line 1005 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTR

#define KSZ9477_PORTn_PTR (   port)    (0x0804 + ((port) * 0x1000))

Definition at line 976 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTR_PORT_INDEX

#define KSZ9477_PORTn_PTR_PORT_INDEX   0x00070000

Definition at line 1933 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_PTR_QUEUE_PTR

#define KSZ9477_PORTn_PTR_QUEUE_PTR   0x00000003

Definition at line 1934 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_QUEUE0_EG_LIMIT_CTRL

#define KSZ9477_PORTn_QUEUE0_EG_LIMIT_CTRL (   port)    (0x0420 + ((port) * 0x1000))

Definition at line 946 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_QUEUE1_EG_LIMIT_CTRL

#define KSZ9477_PORTn_QUEUE1_EG_LIMIT_CTRL (   port)    (0x0421 + ((port) * 0x1000))

Definition at line 947 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_QUEUE2_EG_LIMIT_CTRL

#define KSZ9477_PORTn_QUEUE2_EG_LIMIT_CTRL (   port)    (0x0422 + ((port) * 0x1000))

Definition at line 948 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_QUEUE3_EG_LIMIT_CTRL

#define KSZ9477_PORTn_QUEUE3_EG_LIMIT_CTRL (   port)    (0x0423 + ((port) * 0x1000))

Definition at line 949 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS

#define KSZ9477_PORTn_STATUS (   port)    (0x0030 + ((port) * 0x1000))

Definition at line 932 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_DUPLEX

#define KSZ9477_PORTn_STATUS_DUPLEX   0x04

Definition at line 1873 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_RX_FLOW_CTRL_EN

#define KSZ9477_PORTn_STATUS_RX_FLOW_CTRL_EN   0x01

Definition at line 1875 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_SPEED

#define KSZ9477_PORTn_STATUS_SPEED   0x18

Definition at line 1869 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_SPEED_1000MBPS

#define KSZ9477_PORTn_STATUS_SPEED_1000MBPS   0x10

Definition at line 1872 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_SPEED_100MBPS

#define KSZ9477_PORTn_STATUS_SPEED_100MBPS   0x08

Definition at line 1871 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_SPEED_10MBPS

#define KSZ9477_PORTn_STATUS_SPEED_10MBPS   0x00

Definition at line 1870 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_STATUS_TX_FLOW_CTRL_EN

#define KSZ9477_PORTn_STATUS_TX_FLOW_CTRL_EN   0x02

Definition at line 1874 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TAS_CTRL

#define KSZ9477_PORTn_TAS_CTRL (   port)    (0x0920 + ((port) * 0x1000))

Definition at line 993 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TAS_EVENT

#define KSZ9477_PORTn_TAS_EVENT (   port)    (0x0924 + ((port) * 0x1000))

Definition at line 995 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TAS_EVENT_INDEX

#define KSZ9477_PORTn_TAS_EVENT_INDEX (   port)    (0x0923 + ((port) * 0x1000))

Definition at line 994 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL0

#define KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL0 (   port)    (0x0916 + ((port) * 0x1000))

Definition at line 990 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL1

#define KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL1 (   port)    (0x0918 + ((port) * 0x1000))

Definition at line 991 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL2

#define KSZ9477_PORTn_TX_CREDIT_SHAPER_CTRL2 (   port)    (0x091A + ((port) * 0x1000))

Definition at line 992 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_QUEUE_CTRL0

#define KSZ9477_PORTn_TX_QUEUE_CTRL0 (   port)    (0x0914 + ((port) * 0x1000))

Definition at line 988 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_QUEUE_CTRL1

#define KSZ9477_PORTn_TX_QUEUE_CTRL1 (   port)    (0x0915 + ((port) * 0x1000))

Definition at line 989 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_QUEUE_INDEX

#define KSZ9477_PORTn_TX_QUEUE_INDEX (   port)    (0x0900 + ((port) * 0x1000))

Definition at line 986 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_TX_QUEUE_PVID

#define KSZ9477_PORTn_TX_QUEUE_PVID (   port)    (0x0904 + ((port) * 0x1000))

Definition at line 987 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_WRED_PKT_MEM_CTRL0

#define KSZ9477_PORTn_WRED_PKT_MEM_CTRL0 (   port)    (0x0830 + ((port) * 0x1000))

Definition at line 981 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_WRED_PKT_MEM_CTRL1

#define KSZ9477_PORTn_WRED_PKT_MEM_CTRL1 (   port)    (0x0834 + ((port) * 0x1000))

Definition at line 982 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_WRED_QUEUE_CTRL0

#define KSZ9477_PORTn_WRED_QUEUE_CTRL0 (   port)    (0x0840 + ((port) * 0x1000))

Definition at line 983 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_WRED_QUEUE_CTRL1

#define KSZ9477_PORTn_WRED_QUEUE_CTRL1 (   port)    (0x0844 + ((port) * 0x1000))

Definition at line 984 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_WRED_QUEUE_PERF_MON_CTRL

#define KSZ9477_PORTn_WRED_QUEUE_PERF_MON_CTRL (   port)    (0x0848 + ((port) * 0x1000))

Definition at line 985 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL0

#define KSZ9477_PORTn_XMII_CTRL0 (   port)    (0x0300 + ((port) * 0x1000))

Definition at line 933 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL0_DUPLEX

#define KSZ9477_PORTn_XMII_CTRL0_DUPLEX   0x40

Definition at line 1878 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL0_RX_FLOW_CTRL_EN

#define KSZ9477_PORTn_XMII_CTRL0_RX_FLOW_CTRL_EN   0x08

Definition at line 1881 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL0_SPEED_10_100

#define KSZ9477_PORTn_XMII_CTRL0_SPEED_10_100   0x10

Definition at line 1880 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL0_TX_FLOW_CTRL_EN

#define KSZ9477_PORTn_XMII_CTRL0_TX_FLOW_CTRL_EN   0x20

Definition at line 1879 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1

#define KSZ9477_PORTn_XMII_CTRL1 (   port)    (0x0301 + ((port) * 0x1000))

Definition at line 934 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_IF_TYPE

#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE   0x03

Definition at line 1888 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_MII

#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_MII   0x03

Definition at line 1891 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_RGMII

#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_RGMII   0x00

Definition at line 1889 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_RMII

#define KSZ9477_PORTn_XMII_CTRL1_IF_TYPE_RMII   0x01

Definition at line 1890 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_MII_RMII_MODE

#define KSZ9477_PORTn_XMII_CTRL1_MII_RMII_MODE   0x04

Definition at line 1887 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_RGMII_ID_EG

#define KSZ9477_PORTn_XMII_CTRL1_RGMII_ID_EG   0x08

Definition at line 1886 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_RGMII_ID_IG

#define KSZ9477_PORTn_XMII_CTRL1_RGMII_ID_IG   0x10

Definition at line 1885 of file ksz9477_driver.h.

◆ KSZ9477_PORTn_XMII_CTRL1_SPEED_1000

#define KSZ9477_PORTn_XMII_CTRL1_SPEED_1000   0x40

Definition at line 1884 of file ksz9477_driver.h.

◆ KSZ9477_PTP_EVENT_MSG_PRIO

#define KSZ9477_PTP_EVENT_MSG_PRIO   0x037C

Definition at line 217 of file ksz9477_driver.h.

◆ KSZ9477_PTP_EVENT_MSG_PRIO_OVERRIDE

#define KSZ9477_PTP_EVENT_MSG_PRIO_OVERRIDE   0x80

Definition at line 1501 of file ksz9477_driver.h.

◆ KSZ9477_PTP_EVENT_MSG_PRIO_PRIORITY

#define KSZ9477_PTP_EVENT_MSG_PRIO_PRIORITY   0x0F

Definition at line 1502 of file ksz9477_driver.h.

◆ KSZ9477_PTP_NON_EVENT_MSG_PRIO

#define KSZ9477_PTP_NON_EVENT_MSG_PRIO   0x037D

Definition at line 218 of file ksz9477_driver.h.

◆ KSZ9477_PTP_NON_EVENT_MSG_PRIO_OVERRIDE

#define KSZ9477_PTP_NON_EVENT_MSG_PRIO_OVERRIDE   0x80

Definition at line 1505 of file ksz9477_driver.h.

◆ KSZ9477_PTP_NON_EVENT_MSG_PRIO_PRIORITY

#define KSZ9477_PTP_NON_EVENT_MSG_PRIO_PRIORITY   0x0F

Definition at line 1506 of file ksz9477_driver.h.

◆ KSZ9477_PWR_DOWN_CTRL0

#define KSZ9477_PWR_DOWN_CTRL0   0x0201

Definition at line 146 of file ksz9477_driver.h.

◆ KSZ9477_PWR_DOWN_CTRL0_PLL_PWR_DOWN

#define KSZ9477_PWR_DOWN_CTRL0_PLL_PWR_DOWN   0x20

Definition at line 1326 of file ksz9477_driver.h.

◆ KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE

#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE   0x18

Definition at line 1327 of file ksz9477_driver.h.

◆ KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_EDPD

#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_EDPD   0x08

Definition at line 1329 of file ksz9477_driver.h.

◆ KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_NORMAL

#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_NORMAL   0x00

Definition at line 1328 of file ksz9477_driver.h.

◆ KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_SOFT_PWR_DOWN

#define KSZ9477_PWR_DOWN_CTRL0_PWR_MGMT_MODE_SOFT_PWR_DOWN   0x10

Definition at line 1330 of file ksz9477_driver.h.

◆ KSZ9477_QUEUE_MGMT_CTRL0

#define KSZ9477_QUEUE_MGMT_CTRL0   0x0390

Definition at line 219 of file ksz9477_driver.h.

◆ KSZ9477_QUEUE_MGMT_CTRL0_PRIORITY_2Q

#define KSZ9477_QUEUE_MGMT_CTRL0_PRIORITY_2Q   0x000000C0

Definition at line 1509 of file ksz9477_driver.h.

◆ KSZ9477_QUEUE_MGMT_CTRL0_UNICAST_PORT_VLAN_DISCARD

#define KSZ9477_QUEUE_MGMT_CTRL0_UNICAST_PORT_VLAN_DISCARD   0x00000002

Definition at line 1510 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2

#define KSZ9477_RES_MCAST_TABLE_ENTRY2   0x0424

Definition at line 233 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT1_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT1_FORWARD   0x00000001

Definition at line 1637 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT2_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT2_FORWARD   0x00000002

Definition at line 1636 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT3_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT3_FORWARD   0x00000004

Definition at line 1635 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT4_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT4_FORWARD   0x00000008

Definition at line 1634 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT5_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT5_FORWARD   0x00000010

Definition at line 1633 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT6_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT6_FORWARD   0x00000020

Definition at line 1632 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT7_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT7_FORWARD   0x00000040

Definition at line 1631 of file ksz9477_driver.h.

◆ KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT_FORWARD

#define KSZ9477_RES_MCAST_TABLE_ENTRY2_PORT_FORWARD   0x0000007F

Definition at line 1630 of file ksz9477_driver.h.

◆ KSZ9477_RLB

#define KSZ9477_RLB   0x11

Definition at line 96 of file ksz9477_driver.h.

◆ KSZ9477_RLB_REMOTE_LOOPBACK

#define KSZ9477_RLB_REMOTE_LOOPBACK   0x0100

Definition at line 1127 of file ksz9477_driver.h.

◆ KSZ9477_RXERCTR

#define KSZ9477_RXERCTR   0x15

Definition at line 99 of file ksz9477_driver.h.

◆ KSZ9477_SERIAL_IO_CTRL

#define KSZ9477_SERIAL_IO_CTRL   0x0100

Definition at line 138 of file ksz9477_driver.h.

◆ KSZ9477_SERIAL_IO_CTRL_AUTO_SPI_DATA_OUT_EDGE_SEL

#define KSZ9477_SERIAL_IO_CTRL_AUTO_SPI_DATA_OUT_EDGE_SEL   0x02

Definition at line 1244 of file ksz9477_driver.h.

◆ KSZ9477_SERIAL_IO_CTRL_MIIM_PREAMBLE_SUPPR

#define KSZ9477_SERIAL_IO_CTRL_MIIM_PREAMBLE_SUPPR   0x04

Definition at line 1243 of file ksz9477_driver.h.

◆ KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL

#define KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL   0x01

Definition at line 1245 of file ksz9477_driver.h.

◆ KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL_FALLING

#define KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL_FALLING   0x00

Definition at line 1246 of file ksz9477_driver.h.

◆ KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL_RISING

#define KSZ9477_SERIAL_IO_CTRL_SPI_DATA_OUT_EDGE_SEL_RISING   0x01

Definition at line 1247 of file ksz9477_driver.h.

◆ KSZ9477_SPI_CMD_ADDR

#define KSZ9477_SPI_CMD_ADDR   0x001FFFE0

Definition at line 59 of file ksz9477_driver.h.

◆ KSZ9477_SPI_CMD_READ

#define KSZ9477_SPI_CMD_READ   0x60000000

Definition at line 58 of file ksz9477_driver.h.

◆ KSZ9477_SPI_CMD_WRITE

#define KSZ9477_SPI_CMD_WRITE   0x40000000

Definition at line 57 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MAC_TABLE_SIZE

#define KSZ9477_STATIC_MAC_TABLE_SIZE   16

Definition at line 62 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL

#define KSZ9477_STATIC_MCAST_TABLE_CTRL   0x041C

Definition at line 228 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION

#define KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION   0x00000001

Definition at line 1573 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION_READ

#define KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION_READ   0x00000000

Definition at line 1574 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION_WRITE

#define KSZ9477_STATIC_MCAST_TABLE_CTRL_ACTION_WRITE   0x00000001

Definition at line 1575 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL_START_FINISH

#define KSZ9477_STATIC_MCAST_TABLE_CTRL_START_FINISH   0x00000080

Definition at line 1571 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL_TABLE_INDEX

#define KSZ9477_STATIC_MCAST_TABLE_CTRL_TABLE_INDEX   0x003F0000

Definition at line 1570 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_MCAST_TABLE_CTRL_TABLE_SELECT

#define KSZ9477_STATIC_MCAST_TABLE_CTRL_TABLE_SELECT   0x00000002

Definition at line 1572 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY1

#define KSZ9477_STATIC_TABLE_ENTRY1   0x0420

Definition at line 230 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY1_DES_FILTER

#define KSZ9477_STATIC_TABLE_ENTRY1_DES_FILTER   0x20000000

Definition at line 1606 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY1_MSTP

#define KSZ9477_STATIC_TABLE_ENTRY1_MSTP   0x00000007

Definition at line 1608 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY1_PRIORITY

#define KSZ9477_STATIC_TABLE_ENTRY1_PRIORITY   0x1C000000

Definition at line 1607 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY1_SRC_FILTER

#define KSZ9477_STATIC_TABLE_ENTRY1_SRC_FILTER   0x40000000

Definition at line 1605 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY1_VALID

#define KSZ9477_STATIC_TABLE_ENTRY1_VALID   0x80000000

Definition at line 1604 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2

#define KSZ9477_STATIC_TABLE_ENTRY2   0x0424

Definition at line 232 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_OVERRIDE

#define KSZ9477_STATIC_TABLE_ENTRY2_OVERRIDE   0x80000000

Definition at line 1611 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT1_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT1_FORWARD   0x00000001

Definition at line 1620 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT2_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT2_FORWARD   0x00000002

Definition at line 1619 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT3_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT3_FORWARD   0x00000004

Definition at line 1618 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT4_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT4_FORWARD   0x00000008

Definition at line 1617 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT5_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT5_FORWARD   0x00000010

Definition at line 1616 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT6_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT6_FORWARD   0x00000020

Definition at line 1615 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT7_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT7_FORWARD   0x00000040

Definition at line 1614 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_PORT_FORWARD

#define KSZ9477_STATIC_TABLE_ENTRY2_PORT_FORWARD   0x0000007F

Definition at line 1613 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY2_USE_FID

#define KSZ9477_STATIC_TABLE_ENTRY2_USE_FID   0x40000000

Definition at line 1612 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY3

#define KSZ9477_STATIC_TABLE_ENTRY3   0x0428

Definition at line 235 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY3_FID

#define KSZ9477_STATIC_TABLE_ENTRY3_FID   0x007F0000

Definition at line 1623 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY3_MAC_ADDR_MSB

#define KSZ9477_STATIC_TABLE_ENTRY3_MAC_ADDR_MSB   0x0000FFFF

Definition at line 1624 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY4

#define KSZ9477_STATIC_TABLE_ENTRY4   0x042C

Definition at line 237 of file ksz9477_driver.h.

◆ KSZ9477_STATIC_TABLE_ENTRY4_MAC_ADDR_LSB

#define KSZ9477_STATIC_TABLE_ENTRY4_MAC_ADDR_LSB   0xFFFFFFFF

Definition at line 1627 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_HSR_TPID

#define KSZ9477_SWITCH_HSR_TPID   0x030C

Definition at line 157 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_ISP_TPID

#define KSZ9477_SWITCH_ISP_TPID   0x030A

Definition at line 156 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_ISP_TPID_ISP_TAG_TPID

#define KSZ9477_SWITCH_ISP_TPID_ISP_TAG_TPID   0xFFFF

Definition at line 1355 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0

#define KSZ9477_SWITCH_LUE_CTRL0   0x0310

Definition at line 159 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_AGE_COUNT

#define KSZ9477_SWITCH_LUE_CTRL0_AGE_COUNT   0x38

Definition at line 1364 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_AGE_COUNT_DEFAULT

#define KSZ9477_SWITCH_LUE_CTRL0_AGE_COUNT_DEFAULT   0x20

Definition at line 1365 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_DROP_INVALID_VID

#define KSZ9477_SWITCH_LUE_CTRL0_DROP_INVALID_VID   0x40

Definition at line 1363 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION

#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION   0x03

Definition at line 1367 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_CRC

#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_CRC   0x01

Definition at line 1369 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_NONE

#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_NONE   0x00

Definition at line 1368 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_XOR

#define KSZ9477_SWITCH_LUE_CTRL0_HASH_OPTION_XOR   0x02

Definition at line 1370 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_RESERVED_MCAST_LOOKUP_EN

#define KSZ9477_SWITCH_LUE_CTRL0_RESERVED_MCAST_LOOKUP_EN   0x04

Definition at line 1366 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL0_VLAN_EN

#define KSZ9477_SWITCH_LUE_CTRL0_VLAN_EN   0x80

Definition at line 1362 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1

#define KSZ9477_SWITCH_LUE_CTRL1   0x0311

Definition at line 160 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_AGING_EN

#define KSZ9477_SWITCH_LUE_CTRL1_AGING_EN   0x04

Definition at line 1378 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_FAST_AGING

#define KSZ9477_SWITCH_LUE_CTRL1_FAST_AGING   0x02

Definition at line 1379 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_FLUSH_ALU_TABLE

#define KSZ9477_SWITCH_LUE_CTRL1_FLUSH_ALU_TABLE   0x20

Definition at line 1375 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_FLUSH_MSTP_ENTRIES

#define KSZ9477_SWITCH_LUE_CTRL1_FLUSH_MSTP_ENTRIES   0x10

Definition at line 1376 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_LINK_DOWN_FLUSH

#define KSZ9477_SWITCH_LUE_CTRL1_LINK_DOWN_FLUSH   0x01

Definition at line 1380 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_MCAST_SRC_ADDR_FILT

#define KSZ9477_SWITCH_LUE_CTRL1_MCAST_SRC_ADDR_FILT   0x08

Definition at line 1377 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_SELF_ADDR_FILT

#define KSZ9477_SWITCH_LUE_CTRL1_SELF_ADDR_FILT   0x40

Definition at line 1374 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL1_UNICAST_LEARNING_DIS

#define KSZ9477_SWITCH_LUE_CTRL1_UNICAST_LEARNING_DIS   0x80

Definition at line 1373 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2

#define KSZ9477_SWITCH_LUE_CTRL2   0x0312

Definition at line 161 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_DOUBLE_TAG_MCAST_TRAP

#define KSZ9477_SWITCH_LUE_CTRL2_DOUBLE_TAG_MCAST_TRAP   0x40

Definition at line 1383 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_DYNAMIC_ENTRY_EG_VLAN_FILT

#define KSZ9477_SWITCH_LUE_CTRL2_DYNAMIC_ENTRY_EG_VLAN_FILT   0x20

Definition at line 1384 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION

#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION   0x0C

Definition at line 1386 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_BOTH

#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_BOTH   0x0C

Definition at line 1390 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_DYNAMIC

#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_DYNAMIC   0x04

Definition at line 1388 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_NONE

#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_NONE   0x00

Definition at line 1387 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_STATIC

#define KSZ9477_SWITCH_LUE_CTRL2_FLUSH_OPTION_STATIC   0x08

Definition at line 1389 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_MAC_ADDR_PRIORITY

#define KSZ9477_SWITCH_LUE_CTRL2_MAC_ADDR_PRIORITY   0x03

Definition at line 1391 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL2_STATIC_ENTRY_EG_VLAN_FILT

#define KSZ9477_SWITCH_LUE_CTRL2_STATIC_ENTRY_EG_VLAN_FILT   0x10

Definition at line 1385 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL3

#define KSZ9477_SWITCH_LUE_CTRL3   0x0313

Definition at line 162 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL3_AGE_PERIOD

#define KSZ9477_SWITCH_LUE_CTRL3_AGE_PERIOD   0xFF

Definition at line 1394 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_LUE_CTRL3_AGE_PERIOD_DEFAULT

#define KSZ9477_SWITCH_LUE_CTRL3_AGE_PERIOD_DEFAULT   0x4B

Definition at line 1395 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_ADDR0

#define KSZ9477_SWITCH_MAC_ADDR0   0x0302

Definition at line 149 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_ADDR1

#define KSZ9477_SWITCH_MAC_ADDR1   0x0303

Definition at line 150 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_ADDR2

#define KSZ9477_SWITCH_MAC_ADDR2   0x0304

Definition at line 151 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_ADDR3

#define KSZ9477_SWITCH_MAC_ADDR3   0x0305

Definition at line 152 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_ADDR4

#define KSZ9477_SWITCH_MAC_ADDR4   0x0306

Definition at line 153 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_ADDR5

#define KSZ9477_SWITCH_MAC_ADDR5   0x0307

Definition at line 154 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL0

#define KSZ9477_SWITCH_MAC_CTRL0   0x0330

Definition at line 171 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL0_AGGRESSIVE_BACK_OFF_EN

#define KSZ9477_SWITCH_MAC_CTRL0_AGGRESSIVE_BACK_OFF_EN   0x01

Definition at line 1457 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL0_ALT_BACK_OFF_MODE

#define KSZ9477_SWITCH_MAC_CTRL0_ALT_BACK_OFF_MODE   0x80

Definition at line 1454 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL0_FLOW_CTRL_PKT_DROP_MODE

#define KSZ9477_SWITCH_MAC_CTRL0_FLOW_CTRL_PKT_DROP_MODE   0x02

Definition at line 1456 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL0_FRAME_LEN_CHECK_EN

#define KSZ9477_SWITCH_MAC_CTRL0_FRAME_LEN_CHECK_EN   0x08

Definition at line 1455 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1

#define KSZ9477_SWITCH_MAC_CTRL1   0x0331

Definition at line 172 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_BACK_PRESSURE_MODE

#define KSZ9477_SWITCH_MAC_CTRL1_BACK_PRESSURE_MODE   0x20

Definition at line 1461 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_FLOW_CTRL_FAIR_MODE

#define KSZ9477_SWITCH_MAC_CTRL1_FLOW_CTRL_FAIR_MODE   0x10

Definition at line 1462 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_JUMBO_PKT_SUPPORT

#define KSZ9477_SWITCH_MAC_CTRL1_JUMBO_PKT_SUPPORT   0x04

Definition at line 1464 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_MAX_PKT_SIZE_CHECK_DIS

#define KSZ9477_SWITCH_MAC_CTRL1_MAX_PKT_SIZE_CHECK_DIS   0x02

Definition at line 1465 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_MCAST_STORM_PROTECT_DIS

#define KSZ9477_SWITCH_MAC_CTRL1_MCAST_STORM_PROTECT_DIS   0x40

Definition at line 1460 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_NO_EXCESSIVE_COL_DROP

#define KSZ9477_SWITCH_MAC_CTRL1_NO_EXCESSIVE_COL_DROP   0x08

Definition at line 1463 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL1_PASS_SHORT_PKT

#define KSZ9477_SWITCH_MAC_CTRL1_PASS_SHORT_PKT   0x01

Definition at line 1466 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL2

#define KSZ9477_SWITCH_MAC_CTRL2   0x0332

Definition at line 173 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL2_BCAST_STORM_PROTECT_RATE_MSB

#define KSZ9477_SWITCH_MAC_CTRL2_BCAST_STORM_PROTECT_RATE_MSB   0x07

Definition at line 1470 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL2_NULL_VID_REPLACEMENT

#define KSZ9477_SWITCH_MAC_CTRL2_NULL_VID_REPLACEMENT   0x08

Definition at line 1469 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL3

#define KSZ9477_SWITCH_MAC_CTRL3   0x0333

Definition at line 174 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL3_BCAST_STORM_PROTECT_RATE_LSB

#define KSZ9477_SWITCH_MAC_CTRL3_BCAST_STORM_PROTECT_RATE_LSB   0xFF

Definition at line 1473 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL4

#define KSZ9477_SWITCH_MAC_CTRL4   0x0334

Definition at line 175 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL4_PASS_FLOW_CTRL_PKT

#define KSZ9477_SWITCH_MAC_CTRL4_PASS_FLOW_CTRL_PKT   0x01

Definition at line 1476 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL5

#define KSZ9477_SWITCH_MAC_CTRL5   0x0335

Definition at line 176 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD

#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD   0x30

Definition at line 1479 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_16MS

#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_16MS   0x00

Definition at line 1480 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_256MS

#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_256MS   0x20

Definition at line 1482 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_64MS

#define KSZ9477_SWITCH_MAC_CTRL5_IG_RATE_LIMIT_PERIOD_64MS   0x10

Definition at line 1481 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MAC_CTRL5_QUEUE_BASED_EG_RATE_LIMITE_EN

#define KSZ9477_SWITCH_MAC_CTRL5_QUEUE_BASED_EG_RATE_LIMITE_EN   0x08

Definition at line 1483 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MIB_CTRL

#define KSZ9477_SWITCH_MIB_CTRL   0x0336

Definition at line 177 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MIB_CTRL_FLUSH

#define KSZ9477_SWITCH_MIB_CTRL_FLUSH   0x80

Definition at line 1486 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MIB_CTRL_FREEZE

#define KSZ9477_SWITCH_MIB_CTRL_FREEZE   0x40

Definition at line 1487 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MTU

#define KSZ9477_SWITCH_MTU   0x0308

Definition at line 155 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MTU_MTU

#define KSZ9477_SWITCH_MTU_MTU   0x3FFF

Definition at line 1351 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_MTU_MTU_DEFAULT

#define KSZ9477_SWITCH_MTU_MTU_DEFAULT   0x07D0

Definition at line 1352 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_OP

#define KSZ9477_SWITCH_OP   0x0300

Definition at line 148 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_OP_DOUBLE_TAG_EN

#define KSZ9477_SWITCH_OP_DOUBLE_TAG_EN   0x80

Definition at line 1346 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_OP_SOFT_HARD_RESET

#define KSZ9477_SWITCH_OP_SOFT_HARD_RESET   0x02

Definition at line 1347 of file ksz9477_driver.h.

◆ KSZ9477_SWITCH_OP_START_SWITCH

#define KSZ9477_SWITCH_OP_START_SWITCH   0x01

Definition at line 1348 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT1

#define KSZ9477_TAIL_TAG_DEST_PORT1   0x0001

Definition at line 75 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT2

#define KSZ9477_TAIL_TAG_DEST_PORT2   0x0002

Definition at line 74 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT3

#define KSZ9477_TAIL_TAG_DEST_PORT3   0x0004

Definition at line 73 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT4

#define KSZ9477_TAIL_TAG_DEST_PORT4   0x0008

Definition at line 72 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT5

#define KSZ9477_TAIL_TAG_DEST_PORT5   0x0010

Definition at line 71 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT6

#define KSZ9477_TAIL_TAG_DEST_PORT6   0x0020

Definition at line 70 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_DEST_PORT7

#define KSZ9477_TAIL_TAG_DEST_PORT7   0x0040

Definition at line 69 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_NORMAL_ADDR_LOOKUP

#define KSZ9477_TAIL_TAG_NORMAL_ADDR_LOOKUP   0x0400

Definition at line 66 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_PORT_BLOCKING_OVERRIDE

#define KSZ9477_TAIL_TAG_PORT_BLOCKING_OVERRIDE   0x0200

Definition at line 67 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_PRIORITY

#define KSZ9477_TAIL_TAG_PRIORITY   0x0180

Definition at line 68 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_PTP_MSG

#define KSZ9477_TAIL_TAG_PTP_MSG   0x80

Definition at line 78 of file ksz9477_driver.h.

◆ KSZ9477_TAIL_TAG_SRC_PORT

#define KSZ9477_TAIL_TAG_SRC_PORT   0x07

Definition at line 79 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1

#define KSZ9477_TOU_CTRL1   0x0538

Definition at line 267 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_CASCADE_MODE_DONE

#define KSZ9477_TOU_CTRL1_CASCADE_MODE_DONE   0x0C000000

Definition at line 1725 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_CASCADE_MODE_ENB

#define KSZ9477_TOU_CTRL1_CASCADE_MODE_ENB   0x80000000

Definition at line 1723 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_CASCADE_MODE_TAIL

#define KSZ9477_TOU_CTRL1_CASCADE_MODE_TAIL   0x40000000

Definition at line 1724 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_EDGE

#define KSZ9477_TOU_CTRL1_TRIGGER_EDGE   0x00800000

Definition at line 1728 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_NOTIFY

#define KSZ9477_TOU_CTRL1_TRIGGER_NOTIFY   0x01000000

Definition at line 1727 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_NOW

#define KSZ9477_TOU_CTRL1_TRIGGER_NOW   0x02000000

Definition at line 1726 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN   0x00700000

Definition at line 1729 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_ITERATION

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_ITERATION   0x0000FFFF

Definition at line 1737 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_CYCLE

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_CYCLE   0x00400000

Definition at line 1734 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_EDGE

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_EDGE   0x00000000

Definition at line 1730 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_PULSE

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_NEG_PULSE   0x00200000

Definition at line 1732 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_CYCLE

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_CYCLE   0x00500000

Definition at line 1735 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_EDGE

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_EDGE   0x00100000

Definition at line 1731 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_PULSE

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_POS_PULSE   0x00300000

Definition at line 1733 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_REG_OUTPUT

#define KSZ9477_TOU_CTRL1_TRIGGER_PATTERN_REG_OUTPUT   0x00600000

Definition at line 1736 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL2

#define KSZ9477_TOU_CTRL2   0x053C

Definition at line 268 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL2_TRIGGER_CYCLE_WIDTH

#define KSZ9477_TOU_CTRL2_TRIGGER_CYCLE_WIDTH   0xFFFFFFFF

Definition at line 1740 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL3

#define KSZ9477_TOU_CTRL3   0x0540

Definition at line 269 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL3_TRIGGER_BIT_PATTERN

#define KSZ9477_TOU_CTRL3_TRIGGER_BIT_PATTERN   0x0000FFFF

Definition at line 1744 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL3_TRIGGER_CYCLE

#define KSZ9477_TOU_CTRL3_TRIGGER_CYCLE   0xFFFF0000

Definition at line 1743 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL4

#define KSZ9477_TOU_CTRL4   0x0544

Definition at line 270 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL4_CASCADE_INTERATION_CYCLE_TIME

#define KSZ9477_TOU_CTRL4_CASCADE_INTERATION_CYCLE_TIME   0xFFFFFFFF

Definition at line 1747 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL5

#define KSZ9477_TOU_CTRL5   0x0548

Definition at line 271 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL5_PPS_PULSE_WIDTH

#define KSZ9477_TOU_CTRL5_PPS_PULSE_WIDTH   0x00FF0000

Definition at line 1750 of file ksz9477_driver.h.

◆ KSZ9477_TOU_CTRL5_TRIGGER_PULSE_WIDTH

#define KSZ9477_TOU_CTRL5_TRIGGER_PULSE_WIDTH   0x0000FFFF

Definition at line 1751 of file ksz9477_driver.h.

◆ KSZ9477_TOU_TARGET_TIME_NS

#define KSZ9477_TOU_TARGET_TIME_NS   0x0530

Definition at line 265 of file ksz9477_driver.h.

◆ KSZ9477_TOU_TARGET_TIME_NS_TRIGGER_TARGET_TIME_NS

#define KSZ9477_TOU_TARGET_TIME_NS_TRIGGER_TARGET_TIME_NS   0x3FFFFFFF

Definition at line 1717 of file ksz9477_driver.h.

◆ KSZ9477_TOU_TARGET_TIME_S

#define KSZ9477_TOU_TARGET_TIME_S   0x0534

Definition at line 266 of file ksz9477_driver.h.

◆ KSZ9477_TOU_TARGET_TIME_S_TRIGGER_TARGET_TIME_S

#define KSZ9477_TOU_TARGET_TIME_S_TRIGGER_TARGET_TIME_S   0xFFFFFFFF

Definition at line 1720 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT

#define KSZ9477_TS_CTRL_STAT   0x052C

Definition at line 264 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_GPIO_IN

#define KSZ9477_TS_CTRL_STAT_GPIO_IN   0x00000080

Definition at line 1707 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_GPIO_OEN

#define KSZ9477_TS_CTRL_STAT_GPIO_OEN   0x00000040

Definition at line 1708 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_GPIO_OUT_SEL

#define KSZ9477_TS_CTRL_STAT_GPIO_OUT_SEL   0x00000100

Definition at line 1706 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_TRIGGER_ACTIVE

#define KSZ9477_TS_CTRL_STAT_TRIGGER_ACTIVE   0x00000010

Definition at line 1710 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_TRIGGER_EN

#define KSZ9477_TS_CTRL_STAT_TRIGGER_EN   0x00000008

Definition at line 1711 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_TRIGGER_SW_RESET

#define KSZ9477_TS_CTRL_STAT_TRIGGER_SW_RESET   0x00000004

Definition at line 1712 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_TS_ENB

#define KSZ9477_TS_CTRL_STAT_TS_ENB   0x00000002

Definition at line 1713 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_TS_INT_ENB

#define KSZ9477_TS_CTRL_STAT_TS_INT_ENB   0x00000020

Definition at line 1709 of file ksz9477_driver.h.

◆ KSZ9477_TS_CTRL_STAT_TS_SW_RESET

#define KSZ9477_TS_CTRL_STAT_TS_SW_RESET   0x00000001

Definition at line 1714 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_NS

#define KSZ9477_TS_SAMPLE1_TIME_NS   0x0554

Definition at line 273 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_NS_TS_SAMPLE_EDGE_1ST

#define KSZ9477_TS_SAMPLE1_TIME_NS_TS_SAMPLE_EDGE_1ST   0x40000000

Definition at line 1763 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_NS_TS_SAMPLE_TIME_NS_1ST

#define KSZ9477_TS_SAMPLE1_TIME_NS_TS_SAMPLE_TIME_NS_1ST   0x3FFFFFFF

Definition at line 1764 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_PHASE

#define KSZ9477_TS_SAMPLE1_TIME_PHASE   0x055C

Definition at line 275 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_1ST

#define KSZ9477_TS_SAMPLE1_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_1ST   0x00000007

Definition at line 1770 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_S

#define KSZ9477_TS_SAMPLE1_TIME_S   0x0558

Definition at line 274 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE1_TIME_S_TS_SAMPLE_TIME_S_1ST

#define KSZ9477_TS_SAMPLE1_TIME_S_TS_SAMPLE_TIME_S_1ST   0xFFFFFFFF

Definition at line 1767 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_NS

#define KSZ9477_TS_SAMPLE2_TIME_NS   0x0560

Definition at line 276 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_NS_TS_SAMPLE_EDGE_2ND

#define KSZ9477_TS_SAMPLE2_TIME_NS_TS_SAMPLE_EDGE_2ND   0x40000000

Definition at line 1773 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_NS_TS_SAMPLE_TIME_NS_2ND

#define KSZ9477_TS_SAMPLE2_TIME_NS_TS_SAMPLE_TIME_NS_2ND   0x3FFFFFFF

Definition at line 1774 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_PHASE

#define KSZ9477_TS_SAMPLE2_TIME_PHASE   0x0568

Definition at line 278 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_2ND

#define KSZ9477_TS_SAMPLE2_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_2ND   0x00000007

Definition at line 1780 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_S

#define KSZ9477_TS_SAMPLE2_TIME_S   0x0564

Definition at line 277 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE2_TIME_S_TS_SAMPLE_TIME_S_2ND

#define KSZ9477_TS_SAMPLE2_TIME_S_TS_SAMPLE_TIME_S_2ND   0xFFFFFFFF

Definition at line 1777 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_NS

#define KSZ9477_TS_SAMPLE3_TIME_NS   0x056C

Definition at line 279 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_NS_TS_SAMPLE_EDGE_3RD

#define KSZ9477_TS_SAMPLE3_TIME_NS_TS_SAMPLE_EDGE_3RD   0x40000000

Definition at line 1783 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_NS_TS_SAMPLE_TIME_NS_3RD

#define KSZ9477_TS_SAMPLE3_TIME_NS_TS_SAMPLE_TIME_NS_3RD   0x3FFFFFFF

Definition at line 1784 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_PHASE

#define KSZ9477_TS_SAMPLE3_TIME_PHASE   0x0574

Definition at line 281 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_3RD

#define KSZ9477_TS_SAMPLE3_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_3RD   0x00000007

Definition at line 1790 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_S

#define KSZ9477_TS_SAMPLE3_TIME_S   0x0570

Definition at line 280 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE3_TIME_S_TS_SAMPLE_TIME_S_3RD

#define KSZ9477_TS_SAMPLE3_TIME_S_TS_SAMPLE_TIME_S_3RD   0xFFFFFFFF

Definition at line 1787 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_NS

#define KSZ9477_TS_SAMPLE4_TIME_NS   0x0578

Definition at line 282 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_NS_TS_SAMPLE_EDGE_4TH

#define KSZ9477_TS_SAMPLE4_TIME_NS_TS_SAMPLE_EDGE_4TH   0x40000000

Definition at line 1793 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_NS_TS_SAMPLE_TIME_NS_4TH

#define KSZ9477_TS_SAMPLE4_TIME_NS_TS_SAMPLE_TIME_NS_4TH   0x3FFFFFFF

Definition at line 1794 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_PHASE

#define KSZ9477_TS_SAMPLE4_TIME_PHASE   0x0580

Definition at line 284 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_4TH

#define KSZ9477_TS_SAMPLE4_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_4TH   0x00000007

Definition at line 1800 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_S

#define KSZ9477_TS_SAMPLE4_TIME_S   0x057C

Definition at line 283 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE4_TIME_S_TS_SAMPLE_TIME_S_4TH

#define KSZ9477_TS_SAMPLE4_TIME_S_TS_SAMPLE_TIME_S_4TH   0xFFFFFFFF

Definition at line 1797 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_NS

#define KSZ9477_TS_SAMPLE5_TIME_NS   0x0584

Definition at line 285 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_NS_TS_SAMPLE_EDGE_5TH

#define KSZ9477_TS_SAMPLE5_TIME_NS_TS_SAMPLE_EDGE_5TH   0x40000000

Definition at line 1803 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_NS_TS_SAMPLE_TIME_NS_5TH

#define KSZ9477_TS_SAMPLE5_TIME_NS_TS_SAMPLE_TIME_NS_5TH   0x3FFFFFFF

Definition at line 1804 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_PHASE

#define KSZ9477_TS_SAMPLE5_TIME_PHASE   0x058C

Definition at line 287 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_5TH

#define KSZ9477_TS_SAMPLE5_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_5TH   0x00000007

Definition at line 1810 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_S

#define KSZ9477_TS_SAMPLE5_TIME_S   0x0588

Definition at line 286 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE5_TIME_S_TS_SAMPLE_TIME_S_5TH

#define KSZ9477_TS_SAMPLE5_TIME_S_TS_SAMPLE_TIME_S_5TH   0xFFFFFFFF

Definition at line 1807 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_NS

#define KSZ9477_TS_SAMPLE6_TIME_NS   0x0590

Definition at line 288 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_NS_TS_SAMPLE_EDGE_6TH

#define KSZ9477_TS_SAMPLE6_TIME_NS_TS_SAMPLE_EDGE_6TH   0x40000000

Definition at line 1813 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_NS_TS_SAMPLE_TIME_NS_6TH

#define KSZ9477_TS_SAMPLE6_TIME_NS_TS_SAMPLE_TIME_NS_6TH   0x3FFFFFFF

Definition at line 1814 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_PHASE

#define KSZ9477_TS_SAMPLE6_TIME_PHASE   0x0598

Definition at line 290 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_6TH

#define KSZ9477_TS_SAMPLE6_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_6TH   0x00000007

Definition at line 1820 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_S

#define KSZ9477_TS_SAMPLE6_TIME_S   0x0594

Definition at line 289 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE6_TIME_S_TS_SAMPLE_TIME_S_6TH

#define KSZ9477_TS_SAMPLE6_TIME_S_TS_SAMPLE_TIME_S_6TH   0xFFFFFFFF

Definition at line 1817 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_NS

#define KSZ9477_TS_SAMPLE7_TIME_NS   0x059C

Definition at line 291 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_NS_TS_SAMPLE_EDGE_7TH

#define KSZ9477_TS_SAMPLE7_TIME_NS_TS_SAMPLE_EDGE_7TH   0x40000000

Definition at line 1823 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_NS_TS_SAMPLE_TIME_NS_7TH

#define KSZ9477_TS_SAMPLE7_TIME_NS_TS_SAMPLE_TIME_NS_7TH   0x3FFFFFFF

Definition at line 1824 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_PHASE

#define KSZ9477_TS_SAMPLE7_TIME_PHASE   0x05A4

Definition at line 293 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_7TH

#define KSZ9477_TS_SAMPLE7_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_7TH   0x00000007

Definition at line 1830 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_S

#define KSZ9477_TS_SAMPLE7_TIME_S   0x05A0

Definition at line 292 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE7_TIME_S_TS_SAMPLE_TIME_S_7TH

#define KSZ9477_TS_SAMPLE7_TIME_S_TS_SAMPLE_TIME_S_7TH   0xFFFFFFFF

Definition at line 1827 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_NS

#define KSZ9477_TS_SAMPLE8_TIME_NS   0x05A8

Definition at line 294 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_NS_TS_SAMPLE_EDGE_8TH

#define KSZ9477_TS_SAMPLE8_TIME_NS_TS_SAMPLE_EDGE_8TH   0x40000000

Definition at line 1833 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_NS_TS_SAMPLE_TIME_NS_8TH

#define KSZ9477_TS_SAMPLE8_TIME_NS_TS_SAMPLE_TIME_NS_8TH   0x3FFFFFFF

Definition at line 1834 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_PHASE

#define KSZ9477_TS_SAMPLE8_TIME_PHASE   0x05B0

Definition at line 296 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_8TH

#define KSZ9477_TS_SAMPLE8_TIME_PHASE_TS_SAMPLE_TIME_SUB_8NS_8TH   0x00000007

Definition at line 1840 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_S

#define KSZ9477_TS_SAMPLE8_TIME_S   0x05AC

Definition at line 295 of file ksz9477_driver.h.

◆ KSZ9477_TS_SAMPLE8_TIME_S_TS_SAMPLE_TIME_S_8TH

#define KSZ9477_TS_SAMPLE8_TIME_S_TS_SAMPLE_TIME_S_8TH   0xFFFFFFFF

Definition at line 1837 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL

#define KSZ9477_TS_STAT_CTRL   0x0550

Definition at line 272 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_CASCADE_MODE_ENB

#define KSZ9477_TS_STAT_CTRL_TS_CASCADE_MODE_ENB   0x00000001

Definition at line 1760 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_CASCADE_MODE_TAIL

#define KSZ9477_TS_STAT_CTRL_TS_CASCADE_MODE_TAIL   0x00000020

Definition at line 1758 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_DET_EVENT_CNT_OVERFLOW

#define KSZ9477_TS_STAT_CTRL_TS_DET_EVENT_CNT_OVERFLOW   0x00010000

Definition at line 1755 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_EVENT_DET_CNT

#define KSZ9477_TS_STAT_CTRL_TS_EVENT_DET_CNT   0x001E0000

Definition at line 1754 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_FALLING_EDGE_ENB

#define KSZ9477_TS_STAT_CTRL_TS_FALLING_EDGE_ENB   0x00000040

Definition at line 1757 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_RISING_EDGE_ENB

#define KSZ9477_TS_STAT_CTRL_TS_RISING_EDGE_ENB   0x00000080

Definition at line 1756 of file ksz9477_driver.h.

◆ KSZ9477_TS_STAT_CTRL_TS_UPSTREAM_CASCADE_MODE_SEL

#define KSZ9477_TS_STAT_CTRL_TS_UPSTREAM_CASCADE_MODE_SEL   0x00000002

Definition at line 1759 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL

#define KSZ9477_UNKNOWN_UNICAST_CTRL   0x0320

Definition at line 168 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD   0x80000000

Definition at line 1418 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP   0x0000007F

Definition at line 1419 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_ALL

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_ALL   0x0000007F

Definition at line 1427 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT1

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT1   0x00000001

Definition at line 1420 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT2

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT2   0x00000002

Definition at line 1421 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT3

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT3   0x00000004

Definition at line 1422 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT4

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT4   0x00000008

Definition at line 1423 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT5

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT5   0x00000010

Definition at line 1424 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT6

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT6   0x00000020

Definition at line 1425 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT7

#define KSZ9477_UNKNOWN_UNICAST_CTRL_FWD_MAP_PORT7   0x00000040

Definition at line 1426 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL   0x0328

Definition at line 170 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD   0x80000000

Definition at line 1442 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP   0x0000007F

Definition at line 1443 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_ALL

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_ALL   0x0000007F

Definition at line 1451 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT1

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT1   0x00000001

Definition at line 1444 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT2

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT2   0x00000002

Definition at line 1445 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT3

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT3   0x00000004

Definition at line 1446 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT4

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT4   0x00000008

Definition at line 1447 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT5

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT5   0x00000010

Definition at line 1448 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT6

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT6   0x00000020

Definition at line 1449 of file ksz9477_driver.h.

◆ KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT7

#define KSZ9477_UNKNOWN_VLAN_ID_CTRL_FWD_MAP_PORT7   0x00000040

Definition at line 1450 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL

#define KSZ9477_UNKONWN_MULTICAST_CTRL   0x0324

Definition at line 169 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD   0x80000000

Definition at line 1430 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP   0x0000007F

Definition at line 1431 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_ALL

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_ALL   0x0000007F

Definition at line 1439 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT1

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT1   0x00000001

Definition at line 1432 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT2

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT2   0x00000002

Definition at line 1433 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT3

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT3   0x00000004

Definition at line 1434 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT4

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT4   0x00000008

Definition at line 1435 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT5

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT5   0x00000010

Definition at line 1436 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT6

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT6   0x00000020

Definition at line 1437 of file ksz9477_driver.h.

◆ KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT7

#define KSZ9477_UNKONWN_MULTICAST_CTRL_FWD_MAP_PORT7   0x00000040

Definition at line 1438 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL   0x040E

Definition at line 224 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION   0x03

Definition at line 1544 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_CLEAR

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_CLEAR   0x03

Definition at line 1548 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_NOP

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_NOP   0x00

Definition at line 1545 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_READ

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_READ   0x02

Definition at line 1547 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_WRITE

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_ACTION_WRITE   0x01

Definition at line 1546 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ACCESS_CTRL_START_FINISH

#define KSZ9477_VLAN_TABLE_ACCESS_CTRL_START_FINISH   0x80

Definition at line 1543 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY0

#define KSZ9477_VLAN_TABLE_ENTRY0   0x0400

Definition at line 220 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY0_FID

#define KSZ9477_VLAN_TABLE_ENTRY0_FID   0x0000007F

Definition at line 1517 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY0_FORWARD_OPTION

#define KSZ9477_VLAN_TABLE_ENTRY0_FORWARD_OPTION   0x08000000

Definition at line 1514 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY0_MSTP_INDEX

#define KSZ9477_VLAN_TABLE_ENTRY0_MSTP_INDEX   0x00007000

Definition at line 1516 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY0_PRIORITY

#define KSZ9477_VLAN_TABLE_ENTRY0_PRIORITY   0x07000000

Definition at line 1515 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY0_VALID

#define KSZ9477_VLAN_TABLE_ENTRY0_VALID   0x80000000

Definition at line 1513 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1

#define KSZ9477_VLAN_TABLE_ENTRY1   0x0404

Definition at line 221 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT1_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT1_UNTAG   0x00000001

Definition at line 1527 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT2_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT2_UNTAG   0x00000002

Definition at line 1526 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT3_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT3_UNTAG   0x00000004

Definition at line 1525 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT4_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT4_UNTAG   0x00000008

Definition at line 1524 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT5_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT5_UNTAG   0x00000010

Definition at line 1523 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT6_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT6_UNTAG   0x00000020

Definition at line 1522 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT7_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT7_UNTAG   0x00000040

Definition at line 1521 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY1_PORT_UNTAG

#define KSZ9477_VLAN_TABLE_ENTRY1_PORT_UNTAG   0x0000007F

Definition at line 1520 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2

#define KSZ9477_VLAN_TABLE_ENTRY2   0x0408

Definition at line 222 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT1_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT1_FORWARD   0x00000001

Definition at line 1537 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT2_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT2_FORWARD   0x00000002

Definition at line 1536 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT3_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT3_FORWARD   0x00000004

Definition at line 1535 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT4_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT4_FORWARD   0x00000008

Definition at line 1534 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT5_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT5_FORWARD   0x00000010

Definition at line 1533 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT6_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT6_FORWARD   0x00000020

Definition at line 1532 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT7_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT7_FORWARD   0x00000040

Definition at line 1531 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_ENTRY2_PORT_FORWARD

#define KSZ9477_VLAN_TABLE_ENTRY2_PORT_FORWARD   0x0000007F

Definition at line 1530 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_INDEX

#define KSZ9477_VLAN_TABLE_INDEX   0x040C

Definition at line 223 of file ksz9477_driver.h.

◆ KSZ9477_VLAN_TABLE_INDEX_VLAN_INDEX

#define KSZ9477_VLAN_TABLE_INDEX_VLAN_INDEX   0x0FFF

Definition at line 1540 of file ksz9477_driver.h.

◆ KSZ9477_WRED_DIFFSERV_COLOR_MAPPING

#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING   0x0378

Definition at line 216 of file ksz9477_driver.h.

◆ KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_GREEN

#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_GREEN   0x03

Definition at line 1498 of file ksz9477_driver.h.

◆ KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_RED

#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_RED   0x30

Definition at line 1496 of file ksz9477_driver.h.

◆ KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_YELLOW

#define KSZ9477_WRED_DIFFSERV_COLOR_MAPPING_YELLOW   0x0C

Definition at line 1497 of file ksz9477_driver.h.

Function Documentation

◆ ksz9477AddStaticFdbEntry()

error_t ksz9477AddStaticFdbEntry ( NetInterface interface,
const SwitchFdbEntry entry 
)

Add a new entry to the static MAC table.

Parameters
[in]interfaceUnderlying network interface
[in]entryPointer to the forwarding database entry
Returns
Error code

Definition at line 1006 of file ksz9477_driver.c.

◆ ksz9477DeleteStaticFdbEntry()

error_t ksz9477DeleteStaticFdbEntry ( NetInterface interface,
const SwitchFdbEntry entry 
)

Remove an entry from the static MAC table.

Parameters
[in]interfaceUnderlying network interface
[in]entryForwarding database entry to remove from the table
Returns
Error code

Definition at line 1128 of file ksz9477_driver.c.

◆ ksz9477DisableIrq()

void ksz9477DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 338 of file ksz9477_driver.c.

◆ ksz9477DumpPhyReg()

void ksz9477DumpPhyReg ( NetInterface interface,
uint8_t  port 
)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number

Definition at line 1623 of file ksz9477_driver.c.

◆ ksz9477EnableIgmpSnooping()

void ksz9477EnableIgmpSnooping ( NetInterface interface,
bool_t  enable 
)

Enable IGMP snooping.

Parameters
[in]interfaceUnderlying network interface
[in]enableEnable or disable IGMP snooping

Definition at line 917 of file ksz9477_driver.c.

◆ ksz9477EnableIrq()

void ksz9477EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 328 of file ksz9477_driver.c.

◆ ksz9477EnableMldSnooping()

void ksz9477EnableMldSnooping ( NetInterface interface,
bool_t  enable 
)

Enable MLD snooping.

Parameters
[in]interfaceUnderlying network interface
[in]enableEnable or disable MLD snooping

Definition at line 947 of file ksz9477_driver.c.

◆ ksz9477EnableRsvdMcastTable()

void ksz9477EnableRsvdMcastTable ( NetInterface interface,
bool_t  enable 
)

Enable reserved multicast table.

Parameters
[in]interfaceUnderlying network interface
[in]enableEnable or disable reserved group addresses

Definition at line 977 of file ksz9477_driver.c.

◆ ksz9477EventHandler()

void ksz9477EventHandler ( NetInterface interface)

KSZ9477 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 348 of file ksz9477_driver.c.

◆ ksz9477FlushDynamicFdbTable()

void ksz9477FlushDynamicFdbTable ( NetInterface interface,
uint8_t  port 
)

Flush dynamic MAC table.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number

Definition at line 1461 of file ksz9477_driver.c.

◆ ksz9477FlushStaticFdbTable()

void ksz9477FlushStaticFdbTable ( NetInterface interface)

Flush static MAC table.

Parameters
[in]interfaceUnderlying network interface

Definition at line 1305 of file ksz9477_driver.c.

◆ ksz9477GetDuplexMode()

NicDuplexMode ksz9477GetDuplexMode ( NetInterface interface,
uint8_t  port 
)

Get duplex mode.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
Returns
Duplex mode

Definition at line 713 of file ksz9477_driver.c.

◆ ksz9477GetDynamicFdbEntry()

error_t ksz9477GetDynamicFdbEntry ( NetInterface interface,
uint_t  index,
SwitchFdbEntry entry 
)

Read an entry from the dynamic MAC table.

Parameters
[in]interfaceUnderlying network interface
[in]indexZero-based index of the entry to read
[out]entryPointer to the forwarding database entry
Returns
Error code

Definition at line 1354 of file ksz9477_driver.c.

◆ ksz9477GetLinkSpeed()

uint32_t ksz9477GetLinkSpeed ( NetInterface interface,
uint8_t  port 
)

Get link speed.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
Returns
Link speed

Definition at line 618 of file ksz9477_driver.c.

◆ ksz9477GetLinkState()

bool_t ksz9477GetLinkState ( NetInterface interface,
uint8_t  port 
)

Get link state.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
Returns
Link state

Definition at line 584 of file ksz9477_driver.c.

◆ ksz9477GetPortState()

SwitchPortState ksz9477GetPortState ( NetInterface interface,
uint8_t  port 
)

Get port state.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
Returns
Port state

Definition at line 833 of file ksz9477_driver.c.

◆ ksz9477GetStaticFdbEntry()

error_t ksz9477GetStaticFdbEntry ( NetInterface interface,
uint_t  index,
SwitchFdbEntry entry 
)

Read an entry from the static MAC table.

Parameters
[in]interfaceUnderlying network interface
[in]indexZero-based index of the entry to read
[out]entryPointer to the forwarding database entry
Returns
Error code

Definition at line 1208 of file ksz9477_driver.c.

◆ ksz9477Init()

error_t ksz9477Init ( NetInterface interface)

KSZ9477 Ethernet switch initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 94 of file ksz9477_driver.c.

◆ ksz9477InitHook()

void ksz9477InitHook ( NetInterface interface)

KSZ9477 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 248 of file ksz9477_driver.c.

◆ ksz9477ReadMmdReg()

uint16_t ksz9477ReadMmdReg ( NetInterface interface,
uint8_t  port,
uint8_t  devAddr,
uint16_t  regAddr 
)

Read MMD register.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
[in]devAddrDevice address
[in]regAddrRegister address
Returns
Register value

Definition at line 1677 of file ksz9477_driver.c.

◆ ksz9477ReadPhyReg()

uint16_t ksz9477ReadPhyReg ( NetInterface interface,
uint8_t  port,
uint8_t  address 
)

Read PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
[in]addressPHY register address
Returns
Register value

Definition at line 1587 of file ksz9477_driver.c.

◆ ksz9477ReadSwitchReg16()

uint16_t ksz9477ReadSwitchReg16 ( NetInterface interface,
uint16_t  address 
)

Read switch register (16 bits)

Parameters
[in]interfaceUnderlying network interface
[in]addressSwitch register address
Returns
Register value

Definition at line 1837 of file ksz9477_driver.c.

◆ ksz9477ReadSwitchReg32()

uint32_t ksz9477ReadSwitchReg32 ( NetInterface interface,
uint16_t  address 
)

Read switch register (32 bits)

Parameters
[in]interfaceUnderlying network interface
[in]addressSwitch register address
Returns
Register value

Definition at line 1931 of file ksz9477_driver.c.

◆ ksz9477ReadSwitchReg8()

uint8_t ksz9477ReadSwitchReg8 ( NetInterface interface,
uint16_t  address 
)

Read switch register (8 bits)

Parameters
[in]interfaceUnderlying network interface
[in]addressSwitch register address
Returns
Register value

Definition at line 1746 of file ksz9477_driver.c.

◆ ksz9477SetAgingTime()

void ksz9477SetAgingTime ( NetInterface interface,
uint32_t  agingTime 
)

Set aging time for dynamic filtering entries.

Parameters
[in]interfaceUnderlying network interface
[in]agingTimeAging time, in seconds

Definition at line 896 of file ksz9477_driver.c.

◆ ksz9477SetPortState()

void ksz9477SetPortState ( NetInterface interface,
uint8_t  port,
SwitchPortState  state 
)

Set port state.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
[in]statePort state

Definition at line 777 of file ksz9477_driver.c.

◆ ksz9477SetUnknownMcastFwdPorts()

void ksz9477SetUnknownMcastFwdPorts ( NetInterface interface,
bool_t  enable,
uint32_t  forwardPorts 
)

Set forward ports for unknown multicast packets.

Parameters
[in]interfaceUnderlying network interface
[in]enableEnable or disable forwarding of unknown multicast packets
[in]forwardPortsPort map

Definition at line 1508 of file ksz9477_driver.c.

◆ ksz9477TagFrame()

error_t ksz9477TagFrame ( NetInterface interface,
NetBuffer buffer,
size_t *  offset,
NetTxAncillary ancillary 
)

Add tail tag to Ethernet frame.

Parameters
[in]interfaceUnderlying network interface
[in]bufferMulti-part buffer containing the payload
[in,out]offsetOffset to the first payload byte
[in]ancillaryAdditional options passed to the stack along with the packet
Returns
Error code

Definition at line 473 of file ksz9477_driver.c.

◆ ksz9477Tick()

void ksz9477Tick ( NetInterface interface)

KSZ9477 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 258 of file ksz9477_driver.c.

◆ ksz9477UntagFrame()

error_t ksz9477UntagFrame ( NetInterface interface,
uint8_t **  frame,
size_t *  length,
NetRxAncillary ancillary 
)

Decode tail tag from incoming Ethernet frame.

Parameters
[in]interfaceUnderlying network interface
[in,out]framePointer to the received Ethernet frame
[in,out]lengthLength of the frame, in bytes
[in,out]ancillaryAdditional options passed to the stack along with the packet
Returns
Error code

Definition at line 532 of file ksz9477_driver.c.

◆ ksz9477WriteMmdReg()

void ksz9477WriteMmdReg ( NetInterface interface,
uint8_t  port,
uint8_t  devAddr,
uint16_t  regAddr,
uint16_t  data 
)

Write MMD register.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
[in]devAddrDevice address
[in]regAddrRegister address
[in]dataRegister value

Definition at line 1649 of file ksz9477_driver.c.

◆ ksz9477WritePhyReg()

void ksz9477WritePhyReg ( NetInterface interface,
uint8_t  port,
uint8_t  address,
uint16_t  data 
)

Write PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]portPort number
[in]addressPHY register address
[in]dataRegister value

Definition at line 1553 of file ksz9477_driver.c.

◆ ksz9477WriteSwitchReg16()

void ksz9477WriteSwitchReg16 ( NetInterface interface,
uint16_t  address,
uint16_t  data 
)

Write switch register (16 bits)

Parameters
[in]interfaceUnderlying network interface
[in]addressSwitch register address
[in]dataRegister value

Definition at line 1793 of file ksz9477_driver.c.

◆ ksz9477WriteSwitchReg32()

void ksz9477WriteSwitchReg32 ( NetInterface interface,
uint16_t  address,
uint32_t  data 
)

Write switch register (32 bits)

Parameters
[in]interfaceUnderlying network interface
[in]addressSwitch register address
[in]dataRegister value

Definition at line 1885 of file ksz9477_driver.c.

◆ ksz9477WriteSwitchReg8()

void ksz9477WriteSwitchReg8 ( NetInterface interface,
uint16_t  address,
uint8_t  data 
)

Write switch register (8 bits)

Parameters
[in]interfaceUnderlying network interface
[in]addressSwitch register address
[in]dataRegister value

Definition at line 1703 of file ksz9477_driver.c.

Variable Documentation

◆ ksz9477SwitchDriver

const SwitchDriver ksz9477SwitchDriver
extern

KSZ9477 Ethernet switch driver.

Definition at line 45 of file ksz9477_driver.c.