- Timestamp:
- Jan 19, 2009 8:50:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r16005 r16033 145 145 #define BAT_TECH_SECONDARY 2 146 146 147 #define STA_DEVICE_PRESENT_MASK RT_BIT(0) 148 #define STA_DEVICE_ENABLED_MASK RT_BIT(1) 149 #define STA_DEVICE_SHOW_IN_UI_MASK RT_BIT(2) 150 #define STA_DEVICE_FUNCTIONING_PROPERLY_MASK RT_BIT(3) 151 #define STA_BATTERY_PRESENT_MASK RT_BIT(4) 147 #define STA_DEVICE_PRESENT_MASK RT_BIT(0) /**< present */ 148 #define STA_DEVICE_ENABLED_MASK RT_BIT(1) /**< enabled and decodes its resources */ 149 #define STA_DEVICE_SHOW_IN_UI_MASK RT_BIT(2) /**< should be shown in UI */ 150 #define STA_DEVICE_FUNCTIONING_PROPERLY_MASK RT_BIT(3) /**< functioning properly */ 151 #define STA_BATTERY_PRESENT_MASK RT_BIT(4) /**< the battery is present */ 152 152 153 153 struct ACPIState … … 1309 1309 1310 1310 case SYSTEM_INFO_INDEX_HPET_STATUS: 1311 *pu32 = s->u8UseHpet ? 0xf : 0; 1311 *pu32 = s->u8UseHpet ? ( STA_DEVICE_PRESENT_MASK 1312 | STA_DEVICE_ENABLED_MASK 1313 | STA_DEVICE_SHOW_IN_UI_MASK 1314 | STA_DEVICE_FUNCTIONING_PROPERLY_MASK) 1315 : 0; 1312 1316 break; 1313 1317 1314 1318 case SYSTEM_INFO_INDEX_SMC_STATUS: 1315 *pu32 = s->u8UseSmc ? 0xb : 0; /* No need to show in UI */ 1319 *pu32 = s->u8UseSmc ? ( STA_DEVICE_PRESENT_MASK 1320 | STA_DEVICE_ENABLED_MASK 1321 /* no need to show this device in the UI */ 1322 | STA_DEVICE_FUNCTIONING_PROPERLY_MASK) 1323 : 0; 1316 1324 break; 1317 1325 1318 1326 case SYSTEM_INFO_INDEX_FDC_STATUS: 1319 *pu32 = s->u8UseFdc ? 0xf : 0; 1327 *pu32 = s->u8UseFdc ? ( STA_DEVICE_PRESENT_MASK 1328 | STA_DEVICE_ENABLED_MASK 1329 | STA_DEVICE_SHOW_IN_UI_MASK 1330 | STA_DEVICE_FUNCTIONING_PROPERLY_MASK) 1331 : 0; 1320 1332 break; 1321 1333 … … 1892 1904 1893 1905 dev = &s->dev; 1894 dev->config[0x00] = 0x86; 1895 dev->config[0x01] = 0x80; 1896 1897 dev->config[0x02] = 0x13; 1898 dev->config[0x03] = 0x71; 1899 1900 dev->config[0x04] = 0x01; 1906 PCIDevSetVendorId(dev, 0x8086); /* Intel */ 1907 PCIDevSetDeviceId(dev, 0x7113); /* 82371AB */ 1908 1909 dev->config[0x04] = 0x01; /* command */ 1901 1910 dev->config[0x05] = 0x00; 1902 1911 1903 dev->config[0x06] = 0x80; 1912 dev->config[0x06] = 0x80; /* status */ 1904 1913 dev->config[0x07] = 0x02; 1905 1914 dev->config[0x08] = 0x08;
Note:
See TracChangeset
for help on using the changeset viewer.