VirtualBox

Ignore:
Timestamp:
Oct 24, 2016 2:42:05 PM (8 years ago)
Author:
vboxsync
Message:

PDMPCIDEV: s/config/abConfig/ everywhere, removing the legacy alias.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevLPC.cpp

    r64387 r64393  
    190190    LogFlow(("lpcInfo: \n"));
    191191
    192     if (pThis->dev.config[0xde] == 0xbe && pThis->dev.config[0xad] == 0xef)
     192    if (pThis->dev.abConfig[0xde] == 0xbe && pThis->dev.abConfig[0xad] == 0xef)
    193193        pHlp->pfnPrintf(pHlp, "APIC backdoor activated\n");
    194194    else
    195195        pHlp->pfnPrintf(pHlp, "APIC backdoor closed: %02x %02x\n",
    196                         pThis->dev.config[0xde], pThis->dev.config[0xad]);
     196                        pThis->dev.abConfig[0xde], pThis->dev.abConfig[0xad]);
    197197
    198198
     
    246246
    247247    /* 40h - 43h PMBASE 40-43 ACPI Base Address */
    248     pThis->dev.config[0x40] = 0x01; /* IO space */
    249     pThis->dev.config[0x41] = 0x80; /* base address / 128, see DevACPI.cpp */
     248    pThis->dev.abConfig[0x40] = 0x01; /* IO space */
     249    pThis->dev.abConfig[0x41] = 0x80; /* base address / 128, see DevACPI.cpp */
    250250
    251251    /* 44h       ACPI_CNTL    ACPI Control */
    252     pThis->dev.config[0x44] = 0x00 | (1<<7); /* SCI is IRQ9, ACPI enabled */
     252    pThis->dev.abConfig[0x44] = 0x00 | (1<<7); /* SCI is IRQ9, ACPI enabled */
    253253    /* 48h–4Bh   GPIOBASE     GPIO Base Address */
    254254
    255255    /* 4C        GC           GPIO Control */
    256     pThis->dev.config[0x4c] = 0x4d;
     256    pThis->dev.abConfig[0x4c] = 0x4d;
    257257    /* ???? */
    258     pThis->dev.config[0x4e] = 0x03;
    259     pThis->dev.config[0x4f] = 0x00;
     258    pThis->dev.abConfig[0x4e] = 0x03;
     259    pThis->dev.abConfig[0x4f] = 0x00;
    260260
    261261    /* 60h-63h PIRQ[n]_ROUT PIRQ[A-D] Routing Control */
    262     pThis->dev.config[0x60] = 0x0b; /* PCI A -> IRQ 11 */
    263     pThis->dev.config[0x61] = 0x09; /* PCI B -> IRQ 9  */
    264     pThis->dev.config[0x62] = 0x0b; /* PCI C -> IRQ 11 */
    265     pThis->dev.config[0x63] = 0x09; /* PCI D -> IRQ 9  */
     262    pThis->dev.abConfig[0x60] = 0x0b; /* PCI A -> IRQ 11 */
     263    pThis->dev.abConfig[0x61] = 0x09; /* PCI B -> IRQ 9  */
     264    pThis->dev.abConfig[0x62] = 0x0b; /* PCI C -> IRQ 11 */
     265    pThis->dev.abConfig[0x63] = 0x09; /* PCI D -> IRQ 9  */
    266266
    267267    /* 64h SIRQ_CNTL Serial IRQ Control 10h R/W, RO */
    268     pThis->dev.config[0x64] = 0x10;
     268    pThis->dev.abConfig[0x64] = 0x10;
    269269
    270270    /* 68h-6Bh PIRQ[n]_ROUT PIRQ[E-H] Routing Control  */
    271     pThis->dev.config[0x68] = 0x80;
    272     pThis->dev.config[0x69] = 0x80;
    273     pThis->dev.config[0x6A] = 0x80;
    274     pThis->dev.config[0x6B] = 0x80;
     271    pThis->dev.abConfig[0x68] = 0x80;
     272    pThis->dev.abConfig[0x69] = 0x80;
     273    pThis->dev.abConfig[0x6A] = 0x80;
     274    pThis->dev.abConfig[0x6B] = 0x80;
    275275
    276276    /* 6C-6Dh     LPC_IBDF  IOxAPIC Bus:Device:Function   00F8h     R/W */
    277     pThis->dev.config[0x70] = 0x80;
    278     pThis->dev.config[0x76] = 0x0c;
    279     pThis->dev.config[0x77] = 0x0c;
    280     pThis->dev.config[0x78] = 0x02;
    281     pThis->dev.config[0x79] = 0x00;
     277    pThis->dev.abConfig[0x70] = 0x80;
     278    pThis->dev.abConfig[0x76] = 0x0c;
     279    pThis->dev.abConfig[0x77] = 0x0c;
     280    pThis->dev.abConfig[0x78] = 0x02;
     281    pThis->dev.abConfig[0x79] = 0x00;
    282282    /* 80h        LPC_I/O_DEC I/O Decode Ranges           0000h     R/W */
    283283    /* 82h-83h    LPC_EN   LPC I/F Enables                0000h     R/W */
     
    288288
    289289    /* A0h-CFh    Power Management */
    290     pThis->dev.config[0xa0] = 0x08;
    291     pThis->dev.config[0xa2] = 0x00;
    292     pThis->dev.config[0xa3] = 0x00;
    293     pThis->dev.config[0xa4] = 0x00;
    294     pThis->dev.config[0xa5] = 0x00;
    295     pThis->dev.config[0xa6] = 0x00;
    296     pThis->dev.config[0xa7] = 0x00;
    297     pThis->dev.config[0xa8] = 0x0f;
    298     pThis->dev.config[0xaa] = 0x00;
    299     pThis->dev.config[0xab] = 0x00;
    300     pThis->dev.config[0xac] = 0x00;
    301     pThis->dev.config[0xae] = 0x00;
     290    pThis->dev.abConfig[0xa0] = 0x08;
     291    pThis->dev.abConfig[0xa2] = 0x00;
     292    pThis->dev.abConfig[0xa3] = 0x00;
     293    pThis->dev.abConfig[0xa4] = 0x00;
     294    pThis->dev.abConfig[0xa5] = 0x00;
     295    pThis->dev.abConfig[0xa6] = 0x00;
     296    pThis->dev.abConfig[0xa7] = 0x00;
     297    pThis->dev.abConfig[0xa8] = 0x0f;
     298    pThis->dev.abConfig[0xaa] = 0x00;
     299    pThis->dev.abConfig[0xab] = 0x00;
     300    pThis->dev.abConfig[0xac] = 0x00;
     301    pThis->dev.abConfig[0xae] = 0x00;
    302302
    303303    /* D0h-D3h   FWH_SEL1  Firmware Hub Select 1  */
     
    311311
    312312    /* F0h-F3h RCBA Root Complex Base Address */
    313     pThis->dev.config[0xf0] = RT_BYTE1(RCBA_BASE | 1); /* enabled */
    314     pThis->dev.config[0xf1] = RT_BYTE2(RCBA_BASE);
    315     pThis->dev.config[0xf2] = RT_BYTE3(RCBA_BASE);
    316     pThis->dev.config[0xf3] = RT_BYTE4(RCBA_BASE);
     313    pThis->dev.abConfig[0xf0] = RT_BYTE1(RCBA_BASE | 1); /* enabled */
     314    pThis->dev.abConfig[0xf1] = RT_BYTE2(RCBA_BASE);
     315    pThis->dev.abConfig[0xf2] = RT_BYTE3(RCBA_BASE);
     316    pThis->dev.abConfig[0xf3] = RT_BYTE4(RCBA_BASE);
    317317
    318318    rc = PDMDevHlpPCIRegisterEx(pDevIns, &pThis->dev, PDMPCIDEVREG_CFG_PRIMARY, PDMPCIDEVREG_F_NOT_MANDATORY_NO,
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