Changeset 29439 in vbox
- Timestamp:
- May 13, 2010 12:32:18 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r29435 r29439 2579 2579 #endif 2580 2580 } 2581 2581 2582 /* Adjust receive buffer size */ 2582 if (GET_BITS(RCTL, BSIZE) != GET_BITS_V(value, RCTL, BSIZE)) 2583 { 2584 pState->u16RxBSize = 2048 >> GET_BITS(RCTL, BSIZE); 2585 if (RCTL & RCTL_BSEX) 2586 pState->u16RxBSize *= 16; 2587 E1kLog2(("%s e1kRegWriteRCTL: Setting receive buffer size to %d\n", 2588 INSTANCE(pState), pState->u16RxBSize)); 2589 } 2583 unsigned cbRxBuf = 2048 >> GET_BITS_V(value, RCTL, BSIZE); 2584 if (value & RCTL_BSEX) 2585 cbRxBuf *= 16; 2586 if (cbRxBuf != pState->u16RxBSize) 2587 E1kLog2(("%s e1kRegWriteRCTL: Setting receive buffer size to %d (old %d)\n", 2588 INSTANCE(pState), cbRxBuf, pState->u16RxBSize)); 2589 pState->u16RxBSize = cbRxBuf; 2590 2591 /* Update the register */ 2590 2592 e1kRegWriteDefault(pState, offset, index, value); 2591 2593
Note:
See TracChangeset
for help on using the changeset viewer.