Changeset 71147 in vbox
- Timestamp:
- Feb 28, 2018 9:58:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
r71146 r71147 66 66 DECLHIDDEN(bool) VBoxVGACfgAvailable(void) 67 67 { 68 uint16_t DispiId; 68 69 VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ID); 69 70 VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_DATA, VBE_DISPI_ID_CFG); 70 const uint16_tDispiId = VBVO_PORT_READ_U16(VBE_DISPI_IOPORT_DATA);71 DispiId = VBVO_PORT_READ_U16(VBE_DISPI_IOPORT_DATA); 71 72 return (DispiId == VBE_DISPI_ID_CFG); 72 73 } … … 83 84 DECLHIDDEN(bool) VBoxVGACfgQuery(uint16_t u16Id, uint32_t *pu32Value) 84 85 { 86 uint32_t u32; 85 87 VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_CFG); 86 88 VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_DATA, VBE_DISPI_CFG_MASK_SUPPORT | u16Id); 87 const uint32_tu32 = VBVO_PORT_READ_U32(VBE_DISPI_IOPORT_DATA);89 u32 = VBVO_PORT_READ_U32(VBE_DISPI_IOPORT_DATA); 88 90 if (u32) 89 91 {
Note:
See TracChangeset
for help on using the changeset viewer.