- Timestamp:
- Mar 31, 2010 8:22:22 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r27799 r27851 163 163 SYSTEM_INFO_INDEX_CPU_EVENT_TYPE = 13, /**< Type of the CPU hot-plug event */ 164 164 SYSTEM_INFO_INDEX_CPU_EVENT = 14, /**< The CPU id the event is for */ 165 SYSTEM_INFO_INDEX_NIC_STATUS = 15, /**< If show NIC in ACPI */ 166 SYSTEM_INFO_INDEX_END = 16, 165 SYSTEM_INFO_INDEX_END = 15, 167 166 SYSTEM_INFO_INDEX_INVALID = 0x80, 168 167 SYSTEM_INFO_INDEX_VALID = 0x200 … … 257 256 /** Flag whether CPU hot plugging is enabled */ 258 257 bool fCpuHotPlug; 259 /** If NIC ACPI object to be shown */260 bool fShowNic;261 258 /** Aligning IBase. */ 262 bool afAlignment[ 3];259 bool afAlignment[4]; 263 260 264 261 /** ACPI port base interface. */ … … 1507 1504 break; 1508 1505 1509 case SYSTEM_INFO_INDEX_NIC_STATUS:1510 *pu32 = s->fShowNic ? ( STA_DEVICE_PRESENT_MASK1511 | STA_DEVICE_ENABLED_MASK1512 | STA_DEVICE_SHOW_IN_UI_MASK1513 | STA_DEVICE_FUNCTIONING_PROPERLY_MASK)1514 : 0;1515 break;1516 1517 1506 /* This is only for compatability with older saved states that 1518 1507 may include ACPI code that read these values. Legacy is … … 2359 2348 "ShowRtc\0" 2360 2349 "ShowCpu\0" 2361 "ShowNic\0"2362 2350 "CpuHotPlug\0" 2363 2351 "AmlFilePath\0" … … 2407 2395 return PDMDEV_SET_ERROR(pDevIns, rc, 2408 2396 N_("Configuration error: Failed to read \"ShowCpu\"")); 2409 2410 /* query whether we are supposed to present NIC object */2411 rc = CFGMR3QueryBoolDef(pCfg, "ShowNic", &s->fShowNic, false);2412 if (RT_FAILURE(rc))2413 return PDMDEV_SET_ERROR(pDevIns, rc,2414 N_("Configuration error: Failed to read \"ShowNic\""));2415 2397 2416 2398 /* query whether we are allow CPU hot plugging */ -
trunk/src/VBox/Devices/PC/vbox.dsl
r27799 r27851 148 148 CPET, 32, 149 149 CPEV, 32, 150 UNIC, 32,151 150 Offset (0x80), 152 151 ININ, 32, … … 761 760 } 762 761 } 763 764 // NIC 765 Device (GIGE) 766 { 767 /* 768 * Address is slot 0x3, function 0 - must be consistent with where NIC really is. 769 * This code assumes E1K NIC of type != I82545EM, as latter goes to slot 0x11. 770 * Device is important, as otherwise OSX refuses to accept NIC as internal, 771 * which may lead to inability to use NIC for kernel debugging and high level 772 * applications malfunctioning. 773 */ 774 Name (_ADR, 0x00030000) 775 776 Name (_PRW, Package (0x02) 777 { 778 0x09, 779 0x03 780 }) 781 782 Method (EWOL, 1, NotSerialized) 783 { 784 Return (0x00) 785 } 786 Method (_STA, 0, NotSerialized) 787 { 788 Return (UNIC) 789 } 790 } 791 762 792 763 // Control method battery 793 764 Device (BAT0)
Note:
See TracChangeset
for help on using the changeset viewer.