VirtualBox

Changeset 41406 in vbox


Ignore:
Timestamp:
May 22, 2012 5:34:25 PM (13 years ago)
Author:
vboxsync
Message:

VGA: Print planar graphics related info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r41256 r41406  
    41154115    h   = val;
    41164116    pHlp->pfnPrintf(pHlp, "vdisp : %d px\n", val);
     4117    val = ((s->cr[9] & 0x40) << 3) + ((s->cr[7] & 0x10) << 4) + s->cr[0x18];
     4118    pHlp->pfnPrintf(pHlp, "split : %d ln\n", val);
    41174119    val = (s->cr[0xc] << 8) + s->cr[0xd];
    41184120    pHlp->pfnPrintf(pHlp, "start : %#x\n", val);
     
    44734475    pHlp->pfnPrintf(pHlp, " Linear display start : 0x%04x\n", s->vbe_start_addr);
    44744476    pHlp->pfnPrintf(pHlp, " Selected bank: 0x%04x\n", s->vbe_regs[VBE_DISPI_INDEX_BANK]);
     4477}
     4478
     4479
     4480/**
     4481 * Info handler, device version. Dumps register state relevant
     4482 * to 16-color planar graphics modes (GR/SR) in human-readable form.
     4483 *
     4484 * @param   pDevIns     Device instance which registered the info.
     4485 * @param   pHlp        Callback functions for doing output.
     4486 * @param   pszArgs     Argument string. Optional and specific to the handler.
     4487 */
     4488static DECLCALLBACK(void) vgaInfoPlanar(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
     4489{
     4490    PVGASTATE       s = PDMINS_2_DATA(pDevIns, PVGASTATE);
     4491    int             val1, val2;
     4492    NOREF(pszArgs);
     4493
     4494    val1 = (s->gr[5] >> 3) & 1;
     4495    val2 = s->gr[5] & 3;
     4496    pHlp->pfnPrintf(pHlp, "read mode     : %d     write mode: %d\n", val1, val2);
     4497    val1 = s->gr[0];
     4498    val2 = s->gr[1];
     4499    pHlp->pfnPrintf(pHlp, "set/reset data: %02X    S/R enable: %02X\n", val1, val2);
     4500    val1 = s->gr[2];
     4501    val2 = s->gr[4] & 3;
     4502    pHlp->pfnPrintf(pHlp, "color compare : %02X    read map  : %d\n", val1, val2);
     4503    val1 = s->gr[3] & 7;
     4504    val2 = (s->gr[3] >> 3) & 3;
     4505    pHlp->pfnPrintf(pHlp, "rotate        : %d     function  : %d\n", val1, val2);
     4506    val1 = s->gr[7];
     4507    val2 = s->gr[8];
     4508    pHlp->pfnPrintf(pHlp, "don't care    : %02X    bit mask  : %02X\n", val1, val2);
     4509    val1 = s->sr[2];
     4510    val2 = s->sr[4] & 8;
     4511    pHlp->pfnPrintf(pHlp, "seq plane mask: %02X    chain-4   : %s\n", val1, val2 ? "on" : "off");
    44754512}
    44764513
     
    64006437    PDMDevHlpDBGFInfoRegister(pDevIns, "vgasr", "Dump VGA Sequencer registers.", vgaInfoSR);
    64016438    PDMDevHlpDBGFInfoRegister(pDevIns, "vgaar", "Dump VGA Attribute Controller registers.", vgaInfoAR);
     6439    PDMDevHlpDBGFInfoRegister(pDevIns, "vgapl", "Dump planar graphics state.", vgaInfoPlanar);
    64026440    PDMDevHlpDBGFInfoRegister(pDevIns, "vgadac", "Dump VGA DAC registers.", vgaInfoDAC);
    64036441    PDMDevHlpDBGFInfoRegister(pDevIns, "vbe", "Dump VGA VBE registers.", vgaInfoVBE);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette