Changeset 7098 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Feb 22, 2008 1:41:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r7094 r7098 1425 1425 static void pcnetStart(PCNetState *pData) 1426 1426 { 1427 Log((" %#d pcnetStart:\n", PCNETSTATE_2_DEVINS(pData)->iInstance));1427 Log(("#%d pcnetStart:\n", PCNETSTATE_2_DEVINS(pData)->iInstance)); 1428 1428 if (!CSR_DTX(pData)) 1429 1429 pData->aCSR[0] |= 0x0010; /* set TXON */ … … 2340 2340 #ifdef LOG_ENABLED 2341 2341 TMD dummy; 2342 Log2(("#%d pcnetPollTimer time=%#010x TDMD=%d TXON=%d POLL=%d TDTE=%d TDRA=%#x\n", 2343 PCNETSTATE_2_DEVINS(pData)->iInstance, RTTimeMilliTS(), CSR_TDMD(pData), CSR_TXON(pData), 2344 !CSR_DPOLL(pData), pcnetTdtePoll(pData, &dummy), pData->GCTDRA)); 2342 if (CSR_STOP(pData) || CSR_SPND(pData)) 2343 Log2(("#%d pcnetPollTimer time=%#010llx CSR_STOP=%d CSR_SPND=%d\n", 2344 PCNETSTATE_2_DEVINS(pData)->iInstance, RTTimeMilliTS(), CSR_STOP(pData), CSR_SPND(pData))); 2345 else 2346 Log2(("#%d pcnetPollTimer time=%#010llx TDMD=%d TXON=%d POLL=%d TDTE=%d TDRA=%#x\n", 2347 PCNETSTATE_2_DEVINS(pData)->iInstance, RTTimeMilliTS(), CSR_TDMD(pData), CSR_TXON(pData), 2348 !CSR_DPOLL(pData), pcnetTdtePoll(pData, &dummy), pData->GCTDRA)); 2345 2349 Log2(("#%d pcnetPollTimer: CSR_CXDA=%#x CSR_XMTRL=%d CSR_XMTRC=%d\n", 2346 2350 PCNETSTATE_2_DEVINS(pData)->iInstance, CSR_CXDA(pData), CSR_XMTRL(pData), CSR_XMTRC(pData))); … … 2409 2413 val &= ~3; 2410 2414 2415 Log(("#%d pcnetWriteCSR0: %#06x => %#06x\n", pData->aCSR[0], csr0)); 2416 2411 2417 #ifndef IN_RING3 2412 2418 if (!(csr0 & 0x0001/*init*/) && (val & 1)) … … 2435 2441 pcnetTransmit(pData); 2436 2442 2437 return rc;2438 }2439 case 7:2440 {2441 uint16_t csr7 = pData->aCSR[7];2442 csr7 &= ~0x0400 ;2443 csr7 &= ~(val & 0x0800);2444 csr7 |= (val & 0x0400);2445 pData->aCSR[7] = csr7;2446 2443 return rc; 2447 2444 } … … 2507 2504 val |= pData->aCSR[5] & 0x0a90; 2508 2505 break; 2506 case 7: /* Extended Control and Interrupt 2 */ 2507 { 2508 uint16_t csr7 = pData->aCSR[7]; 2509 csr7 &= ~0x0400 ; 2510 csr7 &= ~(val & 0x0800); 2511 csr7 |= (val & 0x0400); 2512 pData->aCSR[7] = csr7; 2513 return rc; 2514 } 2509 2515 case 15: /* Mode */ 2510 2516 if ((pData->aCSR[15] & 0x8000) != (val & 0x8000) && pData->pDrv)
Note:
See TracChangeset
for help on using the changeset viewer.