Changeset 13454 for src/linux/brcm/linux-2.6.23/brcm/shared/bcmrobo.c
- Timestamp:
- 12/14/09 16:58:00 (3 years ago)
- File:
-
- 1 edited
-
src/linux/brcm/linux-2.6.23/brcm/shared/bcmrobo.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/brcm/linux-2.6.23/brcm/shared/bcmrobo.c
r12698 r13454 1111 1111 robo->ops->write_reg(robo, PAGE_VLAN, REG_VLAN_PMAP, &val32, sizeof(val32)); 1112 1112 } 1113 1113 1114 if (robo->devid == DEVID53115) { 1115 /* Configure the priority system to use to determine the TC of 1116 * ingress frames. Use DiffServ TC mapping, otherwise 802.1p 1117 * TC mapping, otherwise MAC based TC mapping. 1118 */ 1119 val8 = ((0 << 6) | /* Disable port based QoS */ 1120 (2 << 2)); /* QoS priority selection */ 1121 robo->ops->write_reg(robo, 0x30, 0, &val8, sizeof(val8)); 1122 1123 /* Configure tx queues scheduling mechanism */ 1124 val8 = (3 << 0); /* Strict priority */ 1125 robo->ops->write_reg(robo, 0x30, 0x80, &val8, sizeof(val8)); 1126 1127 /* Enable 802.1p Priority to TC mapping for individual ports */ 1128 val16 = 0x11f; 1129 robo->ops->write_reg(robo, 0x30, 0x4, &val16, sizeof(val16)); 1130 1131 /* Configure the TC to COS mapping. This determines the egress 1132 * transmit queue. 1133 */ 1134 val16 = ((1 << 0) | /* Pri 0 mapped to TXQ 1 */ 1135 (0 << 2) | /* Pri 1 mapped to TXQ 0 */ 1136 (0 << 4) | /* Pri 2 mapped to TXQ 0 */ 1137 (1 << 6) | /* Pri 3 mapped to TXQ 1 */ 1138 (2 << 8) | /* Pri 4 mapped to TXQ 2 */ 1139 (2 << 10) | /* Pri 5 mapped to TXQ 2 */ 1140 (3 << 12) | /* Pri 6 mapped to TXQ 3 */ 1141 (3 << 14)); /* Pri 7 mapped to TXQ 3 */ 1142 robo->ops->write_reg(robo, 0x30, 0x62, &val16, sizeof(val16)); 1143 } 1114 1144 1115 1145 /* Disable management interface access */
Note: See TracChangeset
for help on using the changeset viewer.
