vbox的更動 7774 路徑 trunk/src/VBox/Devices/Graphics
- 時間撮記:
- 2008-4-7 下午03:07:29 (17 年 以前)
- 位置:
- trunk/src/VBox/Devices/Graphics
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r7760 r7774 93 93 #include <VBox/VBoxGuest.h> 94 94 #include <VBox/VBoxVideo.h> 95 #include <VBox/bioslogo.h> 95 96 96 97 #if defined(VBE_NEW_DYN_LIST) && defined(IN_RING3) && !defined(VBOX_DEVICE_STRUCT_TESTCASE) … … 108 109 *******************************************************************************/ 109 110 /* "Press F12 to select boot device." bitmap. */ 110 static const uint8_t g_abLogoF12BootText[] = 111 static const uint8_t g_abLogoF12BootText[] = 111 112 { 112 113 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, … … 5381 5382 * Register I/O Port for the BIOS Logo. 5382 5383 */ 5383 rc = PDMDevHlpIOPortRegister(pDevIns, VBE_LOGO_PORT, 1, NULL, vbeIOPortWriteCMDLogo, vbeIOPortReadCMDLogo, NULL, NULL, "BIOS Logo");5384 rc = PDMDevHlpIOPortRegister(pDevIns, LOGO_IO_PORT, 1, NULL, vbeIOPortWriteCMDLogo, vbeIOPortReadCMDLogo, NULL, NULL, "BIOS Logo"); 5384 5385 if (VBOX_FAILURE(rc)) 5385 5386 return rc; … … 5388 5389 * Construct the logo header. 5389 5390 */ 5390 LOGOHDR LogoHdr = { LOGO_HDR_MAGIC, 0, 0, 0, 0, 0 };5391 5392 rc = CFGMR3QueryU8(pCfgHandle, "FadeIn", &LogoHdr. u8FadeIn);5391 LOGOHDR LogoHdr = { LOGO_HDR_MAGIC, 0, 0, 0, 0, 0, 0 }; 5392 5393 rc = CFGMR3QueryU8(pCfgHandle, "FadeIn", &LogoHdr.fu8FadeIn); 5393 5394 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5394 LogoHdr. u8FadeIn = 1;5395 LogoHdr.fu8FadeIn = 1; 5395 5396 else if (VBOX_FAILURE(rc)) 5396 5397 return PDMDEV_SET_ERROR(pDevIns, rc, 5397 5398 N_("Configuration error: Querying \"FadeIn\" as integer failed")); 5398 5399 5399 rc = CFGMR3QueryU8(pCfgHandle, "FadeOut", &LogoHdr. u8FadeOut);5400 rc = CFGMR3QueryU8(pCfgHandle, "FadeOut", &LogoHdr.fu8FadeOut); 5400 5401 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5401 LogoHdr. u8FadeOut = 1;5402 LogoHdr.fu8FadeOut = 1; 5402 5403 else if (VBOX_FAILURE(rc)) 5403 5404 return PDMDEV_SET_ERROR(pDevIns, rc, … … 5411 5412 N_("Configuration error: Querying \"LogoTime\" as integer failed")); 5412 5413 5413 rc = CFGMR3QueryU8(pCfgHandle, "ShowBootMenu", &LogoHdr. u8ShowBootMenu);5414 rc = CFGMR3QueryU8(pCfgHandle, "ShowBootMenu", &LogoHdr.fu8ShowBootMenu); 5414 5415 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5415 LogoHdr. u8ShowBootMenu = 0;5416 LogoHdr.fu8ShowBootMenu = 0; 5416 5417 else if (VBOX_FAILURE(rc)) 5417 5418 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r7760 r7774 385 385 #endif /* VBE_NEW_DYN_LIST */ 386 386 387 /** The extra port which is used to show the BIOS logo.388 * @remark duplicated in logo.c. */389 #define VBE_LOGO_PORT 0x3b8390 391 /** The BIOS logo fade in/fade out steps.392 * @remark duplicated in logo.c. */393 #define LOGO_SHOW_STEPS 64394 395 /** The BIOS boot menu text position. */396 #define LOGO_F12TEXT_X 340397 #define LOGO_F12TEXT_Y 455398 399 /** Width and height of the "Press F12 to select boot device." bitmap.400 Anything that exceeds the limit of F12BootText below is filled with401 background. */402 #define LOGO_F12TEXT_WIDTH 286403 #define LOGO_F12TEXT_HEIGHT 12404 405 /** The BIOS logo commands.406 * @remark duplicated in logo.c. */407 #define LOGO_IMAGE_DEFAULT 0408 #define LOGO_IMAGE_EXTERNAL 1409 410 #define LOGO_MAX_WIDTH 640411 #define LOGO_MAX_HEIGHT 480412 413 #define LOGO_CMD_NOP 0414 #define LOGO_CMD_SET_OFFSET 0x100415 #define LOGO_CMD_SET_X 0x200416 #define LOGO_CMD_SET_Y 0x300417 #define LOGO_CMD_SET_WIDTH 0x400418 #define LOGO_CMD_SET_HEIGHT 0x500419 #define LOGO_CMD_SET_DEPTH 0x600420 #define LOGO_CMD_SET_PALSIZE 0x700421 #define LOGO_CMD_SET_DEFAULT 0x800422 #define LOGO_CMD_SET_PAL 0x900423 #define LOGO_CMD_SHOW_BMP 0xA00424 #define LOGO_CMD_SHOW_TEXT 0xB00425 #define LOGO_CMD_CLS 0xC00426 427 /**428 * PC Bios logo data structure.429 */430 #pragma pack(2) /* pack(2) is important! (seems that bios compiled with pack(2)...) */ /** @todo r=bird: add 3 uint8_t's before cbLogo and it'll be just fine. */431 typedef struct LOGOHDR432 {433 /** Signature (LOGO_HDR_MAGIC/0x66BB). */434 uint16_t u16Signature;435 /** Fade in - boolean. */436 uint8_t u8FadeIn;437 /** Fade out - boolean. */438 uint8_t u8FadeOut;439 /** Logo time (msec). */440 uint16_t u16LogoMillies;441 /** Show setup - boolean. */442 uint8_t u8ShowBootMenu;443 /** Logo file size. */444 uint32_t cbLogo;445 } LOGOHDR, *PLOGOHDR;446 #pragma pack()447 448 /** The value of the LOGOHDR::u16Signature field. */449 #define LOGO_HDR_MAGIC 0x66BB450 451 /** The value which will switch you the default logo. */452 #define LOGO_DEFAULT_LOGO 0xFFFF453 454 387 #if !defined(VBOX) || defined(IN_RING3) 455 388 static inline int c6_to_8(int v)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器