VirtualBox

Changeset 14886 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 2, 2008 9:55:46 AM (16 years ago)
Author:
vboxsync
Message:

Also added a command to dump DAC registers.

File:
1 edited

Legend:

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

    r14879 r14886  
    44174417}
    44184418
     4419/**
     4420 * Info handler, device version. Dumps VGA DAC registers.
     4421 *
     4422 * @param   pDevIns     Device instance which registered the info.
     4423 * @param   pHlp        Callback functions for doing output.
     4424 * @param   pszArgs     Argument string. Optional and specific to the handler.
     4425 */
     4426static DECLCALLBACK(void) vgaInfoDAC(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
     4427{
     4428    PVGASTATE   s = PDMINS_2_DATA(pDevIns, PVGASTATE);
     4429    unsigned    i;
     4430
     4431    pHlp->pfnPrintf(pHlp, "VGA DAC contents:\n");
     4432    for (i = 0; i < 0x100; ++i)
     4433    {
     4434        pHlp->pfnPrintf(pHlp, " %02X: %02X %02X %02X\n",
     4435                        i, s->palette[i*3+0], s->palette[i*3+1], s->palette[i*3+2]);
     4436    }
     4437}
     4438
    44194439
    44204440/* -=-=-=-=-=- Ring 3: IBase -=-=-=-=-=- */
     
    58705890    PDMDevHlpDBGFInfoRegister(pDevIns, "vgasr", "Dump VGA Sequencer registers.", vgaInfoSR);
    58715891    PDMDevHlpDBGFInfoRegister(pDevIns, "vgaar", "Dump VGA Attribute Controller registers.", vgaInfoAR);
     5892    PDMDevHlpDBGFInfoRegister(pDevIns, "vgadac", "Dump VGA DAC registers.", vgaInfoDAC);
    58725893
    58735894    /*
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