VirtualBox

vbox的更動 11223 路徑 trunk/src/VBox/Devices/PC


忽略:
時間撮記:
2008-8-7 下午06:12:47 (16 年 以前)
作者:
vboxsync
訊息:

DevAPIC: cosmetics.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r11222 r11223  
    364364PDMBOTHCBDECL(void) apicSetBase(PPDMDEVINS pDevIns, uint64_t val)
    365365{
    366     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     366    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    367367    Log(("cpu_set_apic_base: %016RX64\n", val));
    368368
     
    446446PDMBOTHCBDECL(uint64_t) apicGetBase(PPDMDEVINS pDevIns)
    447447{
    448     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     448    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    449449    Log(("apicGetBase: %016llx\n", (uint64_t)s->apicbase));
    450450    return s->apicbase;
     
    453453PDMBOTHCBDECL(void) apicSetTPR(PPDMDEVINS pDevIns, uint8_t val)
    454454{
    455     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     455    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    456456    LogFlow(("apicSetTPR: val=%#x (trp %#x -> %#x)\n", val, s->tpr, (val & 0x0f) << 4));
    457457    apic_update_tpr(s, (val & 0x0f) << 4);
     
    460460PDMBOTHCBDECL(uint8_t) apicGetTPR(PPDMDEVINS pDevIns)
    461461{
    462     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     462    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    463463    Log2(("apicGetTPR: returns %#x\n", s->tpr >> 4));
    464464    return s->tpr >> 4;
     
    473473                                           uint8_t u8TriggerMode)
    474474{
    475     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     475    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    476476    LogFlow(("apicBusDeliverCallback: s=%p pDevIns=%p u8Dest=%#x u8DestMode=%#x u8DeliveryMode=%#x iVector=%#x u8Polarity=%#x u8TriggerMode=%#x\n",
    477477             s, pDevIns, u8Dest, u8DestMode, u8DeliveryMode, iVector, u8Polarity, u8TriggerMode));
     
    565565    int irrv, ppr;
    566566
    567     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     567    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    568568    if (!s)
    569569        return false;
     
    767767PDMBOTHCBDECL(int) apicGetInterrupt(PPDMDEVINS pDevIns)
    768768{
    769     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     769    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    770770#endif /* VBOX */
    771771    int intno;
     
    861861static DECLCALLBACK(void) apicTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer)
    862862{
    863     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     863    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    864864    s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    865865#endif /* VBOX */
     
    15411541PDMBOTHCBDECL(int) apicMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    15421542{
    1543     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     1543    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    15441544
    15451545    STAM_COUNTER_INC(&CTXSUFF(s->StatMMIORead));
     
    15871587PDMBOTHCBDECL(int) apicMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    15881588{
    1589     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     1589    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    15901590
    15911591    STAM_COUNTER_INC(&CTXSUFF(s->StatMMIOWrite));
     
    16201620static DECLCALLBACK(int) apicSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle)
    16211621{
    1622     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     1622    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    16231623    apic_save(pSSMHandle, s);
    16241624    return TMR3TimerSave(s->CTX_SUFF(pTimer), pSSMHandle);
     
    16301630static DECLCALLBACK(int) apicLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version)
    16311631{
    1632     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     1632    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    16331633    if (apic_load(pSSMHandle, s, u32Version)) {
    16341634        AssertFailed();
     
    16431643static DECLCALLBACK(void) apicReset(PPDMDEVINS pDevIns)
    16441644{
    1645     APICState *s = PDMINS2DATA(pDevIns, APICState *);
     1645    APICState *s = PDMINS_2_DATA(pDevIns, APICState *);
    16461646    s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    16471647    apic_reset(s);
     
    16561656static DECLCALLBACK(void) apicRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    16571657{
    1658     APICState *pData = PDMINS2DATA(pDevIns, APICState *);
     1658    APICState *pData = PDMINS_2_DATA(pDevIns, APICState *);
    16591659    pData->pDevInsRC  = PDMDEVINS_2_RCPTR(pDevIns);
    16601660    pData->pApicHlpRC = pData->pApicHlpR3->pfnGetRCHelpers(pDevIns);
     
    16671667static DECLCALLBACK(int) apicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle)
    16681668{
    1669     APICState      *pData = PDMINS2DATA(pDevIns, APICState *);
     1669    APICState      *pData = PDMINS_2_DATA(pDevIns, APICState *);
    16701670    PDMAPICREG      ApicReg;
    16711671    int             rc;
     
    18981898PDMBOTHCBDECL(int) ioapicMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    18991899{
    1900     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     1900    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    19011901    IOAPIC_LOCK(s, VINF_IOM_HC_MMIO_READ);
    19021902
     
    19271927PDMBOTHCBDECL(int) ioapicMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    19281928{
    1929     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     1929    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    19301930
    19311931    STAM_COUNTER_INC(&CTXSUFF(s->StatMMIOWrite));
     
    19491949PDMBOTHCBDECL(void) ioapicSetIrq(PPDMDEVINS pDevIns, int iIrq, int iLevel)
    19501950{
    1951     IOAPICState *pThis = PDMINS2DATA(pDevIns, IOAPICState *);
     1951    IOAPICState *pThis = PDMINS_2_DATA(pDevIns, IOAPICState *);
    19521952    STAM_COUNTER_INC(&pThis->CTXSUFF(StatSetIrq));
    19531953    LogFlow(("ioapicSetIrq: iIrq=%d iLevel=%d\n", iIrq, iLevel));
     
    19631963static DECLCALLBACK(int) ioapicSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle)
    19641964{
    1965     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     1965    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    19661966    ioapic_save(pSSMHandle, s);
    19671967    return VINF_SUCCESS;
     
    19731973static DECLCALLBACK(int) ioapicLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version)
    19741974{
    1975     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     1975    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    19761976
    19771977    if (ioapic_load(pSSMHandle, s, u32Version)) {
     
    19881988static DECLCALLBACK(void) ioapicReset(PPDMDEVINS pDevIns)
    19891989{
    1990     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     1990    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    19911991    s->pIoApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    19921992    ioapic_reset(s);
     
    19991999static DECLCALLBACK(void) ioapicRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    20002000{
    2001     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     2001    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    20022002    s->pDevInsRC    = PDMDEVINS_2_RCPTR(pDevIns);
    20032003    s->pIoApicHlpRC = s->pIoApicHlpR3->pfnGetRCHelpers(pDevIns);
     
    20092009static DECLCALLBACK(int) ioapicConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle)
    20102010{
    2011     IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
     2011    IOAPICState *s = PDMINS_2_DATA(pDevIns, IOAPICState *);
    20122012    PDMIOAPICREG IoApicReg;
    20132013    bool         fGCEnabled;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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