blob: 2c897ffabccb7cc81a92661caf630cfe73d94a2a [file] [log] [blame]
developer09726272024-03-28 10:27:24 +08001diff --git a/switch_fun.c b/switch_fun.c
2index 9e9f4fe..2082ba1 100644
3--- a/switch_fun.c
4+++ b/switch_fun.c
5@@ -1435,6 +1435,24 @@ static void table_dump_internal(int type)
developer5dfa8b72022-11-03 11:33:07 +08006 printf("%03x: ", (value >> 16) & 0xfff);
7 reg_read(REG_ATRD_ADDR, &value2);
developer09726272024-03-28 10:27:24 +08008 j = (value2 >> 4) & 0xff; //r_port_map
9+
developer5dfa8b72022-11-03 11:33:07 +080010+ if(j & 0x01)
11+ printf("0");
12+ else if (j & 0x02)
developer09726272024-03-28 10:27:24 +080013+ printf("1");
developer5dfa8b72022-11-03 11:33:07 +080014+ else if (j & 0x04)
developer09726272024-03-28 10:27:24 +080015+ printf("2");
developer5dfa8b72022-11-03 11:33:07 +080016+ else if (j & 0x08)
17+ printf("3");
18+ else if (j & 0x10)
19+ printf("4");
20+ else if (j & 0x20)
21+ printf("5");
22+ else if (j & 0x40)
23+ printf("6");
24+ else if (j & 0x80)
25+ printf("7");
developer09726272024-03-28 10:27:24 +080026+ /*
developer5dfa8b72022-11-03 11:33:07 +080027 printf("%c", (j & 0x01) ? '1' : '-');
28 printf("%c", (j & 0x02) ? '1' : '-');
29 printf("%c", (j & 0x04) ? '1' : '-');
developer09726272024-03-28 10:27:24 +080030@@ -1443,7 +1461,8 @@ static void table_dump_internal(int type)
developer5dfa8b72022-11-03 11:33:07 +080031 printf("%c", (j & 0x20) ? '1' : '-');
32 printf("%c", (j & 0x40) ? '1' : '-');
33 printf("%c", (j & 0x80) ? '1' : '-');
34-
35+ */
36+ printf(" ");
37 reg_read(REG_TSRA2_ADDR, &mac2);
38
developer09726272024-03-28 10:27:24 +080039 printf(" %2d", (mac2 >> 12) & 0x7); //FID
40diff --git a/switch_ioctl.h b/switch_ioctl.h
41index dffe9c7..72cbee6 100644
42--- a/switch_ioctl.h
43+++ b/switch_ioctl.h
44@@ -5,8 +5,8 @@
45 #ifndef SWITCH_IOCTL_H
46 #define SWITCH_IOCTL_H
47
48-#define ETH_DEVNAME "eth0"
49-#define BR_DEVNAME "br-lan"
50+#define ETH_DEVNAME "eth1"
51+#define BR_DEVNAME "brlan0"
52
53 #define RAETH_MII_READ 0x89F3
54 #define RAETH_MII_WRITE 0x89F4