blob: e4436610a6cc7597cded54a4d9b478b99a3c1fa6 [file] [log] [blame]
developer5dfa8b72022-11-03 11:33:07 +08001--- ../switch_ioctl.h.bak 2022-11-02 19:27:43.197665700 +0800
2+++ ../switch_ioctl.h 2022-11-02 19:30:58.210080614 +0800
3@@ -5,8 +5,8 @@
4 #ifndef SWITCH_IOCTL_H
5 #define SWITCH_IOCTL_H
6
7-#define ETH_DEVNAME "eth0"
8-#define BR_DEVNAME "br-lan"
9+#define ETH_DEVNAME "eth1"
10+#define BR_DEVNAME "brlan0"
11
12 #define RAETH_MII_READ 0x89F3
13 #define RAETH_MII_WRITE 0x89F4
14
15
16--- ../switch_fun.c.bak 2022-10-11 16:07:00.560664900 +0800
17+++ ../switch_fun.c 2022-11-03 09:44:01.559470656 +0800
18@@ -1334,6 +1334,23 @@
19 printf("%03x: ", (value >> 16) & 0xfff);
20 reg_read(REG_ATRD_ADDR, &value2);
21 j = (value2 >> 4) & 0xff; //r_port_map
22+ if(j & 0x01)
23+ printf("0");
24+ else if (j & 0x02)
25+ printf("1");
26+ else if (j & 0x04)
27+ printf("2");
28+ else if (j & 0x08)
29+ printf("3");
30+ else if (j & 0x10)
31+ printf("4");
32+ else if (j & 0x20)
33+ printf("5");
34+ else if (j & 0x40)
35+ printf("6");
36+ else if (j & 0x80)
37+ printf("7");
38+ /*
39 printf("%c", (j & 0x01) ? '1' : '-');
40 printf("%c", (j & 0x02) ? '1' : '-');
41 printf("%c", (j & 0x04) ? '1' : '-');
42@@ -1342,7 +1359,8 @@
43 printf("%c", (j & 0x20) ? '1' : '-');
44 printf("%c", (j & 0x40) ? '1' : '-');
45 printf("%c", (j & 0x80) ? '1' : '-');
46-
47+ */
48+ printf(" ");
49 reg_read(REG_TSRA2_ADDR, &mac2);
50
51 printf(" %2d", (mac2 >> 12) & 0x7); //FID