Changeset 26601 in vbox
- Timestamp:
- Feb 17, 2010 11:25:00 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r26591 r26601 1022 1022 "DmiOEMVBoxRev\0" 1023 1023 #endif 1024 "DmiUseHostInfo\0" 1024 1025 "64BitEntry\0" 1025 1026 "BootArgs\0" -
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r26173 r26601 36 36 #include <iprt/string.h> 37 37 #include <iprt/uuid.h> 38 #include <iprt/system.h> 38 39 39 40 #include "../Builtins.h" … … 58 59 static const char *s_szDefDmiBIOSReleaseDate = "12/01/2006"; 59 60 static const char *s_szDefDmiSystemVendor = "innotek GmbH"; 60 static const char *s_szDefDmiSystemProduct= "VirtualBox";61 static const char *s_szDefDmiSystemVersion= "1.2";61 static char s_szDefDmiSystemProduct[13] = "VirtualBox"; 62 static char s_szDefDmiSystemVersion[4] = "1.2"; 62 63 static const char *s_szDefDmiSystemSerial = "0"; 63 64 static const char *s_szDefDmiSystemFamily = "Virtual Machine"; … … 296 297 } 297 298 298 static bool sharedfwChecksumOk(const uint8_t * const au8Data, uint32_t u32Length)299 static bool fwCommonChecksumOk(const uint8_t * const au8Data, uint32_t u32Length) 299 300 { 300 301 uint8_t u8Sum = 0; … … 303 304 return (u8Sum == 0); 304 305 } 305 306 /* 307 * Macmini2,1 - matches Mac Mini 308 */ 309 static void fwCommonUseHostDMIStrings(void) 310 { 311 int rc; 312 313 rc = RTSystemQueryDmiString(RTSYSDMISTR_PRODUCT_NAME, 314 s_szDefDmiSystemProduct, 315 sizeof s_szDefDmiSystemProduct); 316 if (RT_FAILURE(rc)) 317 { 318 // ignore rc? 319 } 320 321 rc = RTSystemQueryDmiString(RTSYSDMISTR_PRODUCT_VERSION, 322 s_szDefDmiSystemVersion, 323 sizeof s_szDefDmiSystemVersion); 324 if (RT_FAILURE(rc)) 325 { 326 // ignore rc? 327 } 328 } 306 329 307 330 /** … … 407 430 #endif 408 431 432 uint8_t fDmiUseHostInfo; 433 int rc = CFGMR3QueryU8Def(pCfg, "DmiUseHostInfo", &fDmiUseHostInfo, 1); 434 if (RT_FAILURE (rc)) 435 return PDMDEV_SET_ERROR(pDevIns, rc, 436 N_("Configuration error: Failed to read \"DmiUseHostInfo\"")); 437 438 /* Sync up with host default DMI values */ 439 if (fDmiUseHostInfo) 440 fwCommonUseHostDMIStrings(); 441 409 442 for (;; fForceDefault = true, fHideErrors = false) 410 443 { 411 444 int iStrNr; 412 int rc;413 445 char szBuf[256]; 414 446 char *pszStr = (char *)pTable; -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r26173 r26601 925 925 "DmiOEMVBoxRev\0" 926 926 #endif 927 "DmiUseHostInfo\0" 927 928 )) 928 929 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES,
Note:
See TracChangeset
for help on using the changeset viewer.