Ignore:
Timestamp:
12/14/09 16:58:00 (3 years ago)
Author:
eko
Message:

latest bcmrobo update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux-2.6.23/brcm/shared/bcmrobo.c

    r12698 r13454  
    11111111                robo->ops->write_reg(robo, PAGE_VLAN, REG_VLAN_PMAP, &val32, sizeof(val32)); 
    11121112        } 
    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        } 
    11141144 
    11151145        /* Disable management interface access */ 
Note: See TracChangeset for help on using the changeset viewer.