ether79c970: set mbps for proper queue sizes, assume gigabit ethernet for vmware
This commit is contained in:
parent
b506c6489b
commit
311a99e23b
1 changed files with 12 additions and 0 deletions
|
@ -571,7 +571,10 @@ reset(Ether* ether)
|
||||||
switch(x&0xFFFFFFF){
|
switch(x&0xFFFFFFF){
|
||||||
case 0x2420003: /* PCnet/PCI 79C970 */
|
case 0x2420003: /* PCnet/PCI 79C970 */
|
||||||
case 0x2621003: /* PCnet/PCI II 79C970A */
|
case 0x2621003: /* PCnet/PCI II 79C970A */
|
||||||
|
ether->mbps = 10;
|
||||||
|
break;
|
||||||
case 0x2625003: /* PCnet-FAST III 79C973 */
|
case 0x2625003: /* PCnet-FAST III 79C973 */
|
||||||
|
ether->mbps = 100;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
print("#l%d: unknown PCnet card version 0x%.7ux\n",
|
print("#l%d: unknown PCnet card version 0x%.7ux\n",
|
||||||
|
@ -614,6 +617,15 @@ reset(Ether* ether)
|
||||||
ether->ea[5] = x>>8;
|
ether->ea[5] = x>>8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* VMware */
|
||||||
|
x = ether->ea[0]<<16 | ether->ea[1]<<8 | ether->ea[2];
|
||||||
|
switch(x){
|
||||||
|
case 0x0569:
|
||||||
|
case 0x0C29:
|
||||||
|
case 0x5056:
|
||||||
|
ether->mbps = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Start to fill in the initialisation block
|
* Start to fill in the initialisation block
|
||||||
* (must be DWORD aligned).
|
* (must be DWORD aligned).
|
||||||
|
|
Loading…
Reference in a new issue