Changeset 7324 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Mar 6, 2008 2:35:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r7207 r7324 3121 3121 */ 3122 3122 PPDMIBASE pBase; 3123 int vrc = PDMR3QueryDeviceLun (mpVM, "pcnet", (unsigned) ulInstance, 3124 0, &pBase); 3123 const char *cszAdapterName = "pcnet"; 3124 #ifdef VBOX_WITH_E1000 3125 /* 3126 * Perharps it would be much wiser to wrap both 'pcnet' and 'e1000' 3127 * into generic 'net' device. 3128 */ 3129 NetworkAdapterType_T adapterType; 3130 rc = aNetworkAdapter->COMGETTER(AdapterType)(&adapterType); 3131 AssertComRC(rc); 3132 if (adapterType == NetworkAdapterType::I82540EM) 3133 cszAdapterName = "e1000"; 3134 #endif 3135 int vrc = PDMR3QueryDeviceLun (mpVM, cszAdapterName, 3136 (unsigned) ulInstance, 0, &pBase); 3125 3137 ComAssertRC (vrc); 3126 3138 if (VBOX_SUCCESS (vrc))
Note:
See TracChangeset
for help on using the changeset viewer.