VirtualBox

忽略:
時間撮記:
2019-10-30 下午02:14:10 (5 年 以前)
作者:
vboxsync
訊息:

Devices: Use PDMDEVINS_2_DATA and PDMDEVINS_2_DATA. bugref:9218

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Serial/DevOxPcie958.cpp

    r81514 r81591  
    216216{
    217217    RT_NOREF(pUart);
    218     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     218    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    219219
    220220    if (iLvl)
     
    238238PDMBOTHCBDECL(int) ox958MmioRead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    239239{
    240     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     240    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    241241    uint32_t  offReg = (GCPhysAddr - pThis->GCPhysMMIO);
    242242    int       rc = VINF_SUCCESS;
     
    308308PDMBOTHCBDECL(int) ox958MmioWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void const *pv, unsigned cb)
    309309{
    310     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     310    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    311311    uint32_t  offReg = (GCPhysAddr - pThis->GCPhysMMIO);
    312312    int       rc = VINF_SUCCESS;
     
    367367                                    RTGCPHYS GCPhysAddress, RTGCPHYS cb, PCIADDRESSSPACE enmType)
    368368{
    369     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     369    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    370370    int       rc    = VINF_SUCCESS;
    371371    RT_NOREF(pPciDev, enmType);
     
    409409static DECLCALLBACK(void) ox958R3Detach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags)
    410410{
    411     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     411    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    412412    AssertReturnVoid(iLUN >= pThis->cUarts);
    413413
     
    421421static DECLCALLBACK(int) ox958R3Attach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags)
    422422{
    423     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     423    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    424424
    425425    RT_NOREF(fFlags);
     
    435435static DECLCALLBACK(void) ox958R3Reset(PPDMDEVINS pDevIns)
    436436{
    437     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     437    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    438438
    439439    pThis->u32RegIrqStsGlob = 0x00;
     
    449449static DECLCALLBACK(void) ox958R3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    450450{
    451     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     451    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    452452    RT_NOREF(offDelta);
    453453
     
    461461static DECLCALLBACK(int) ox958R3Destruct(PPDMDEVINS pDevIns)
    462462{
    463     PDEVOX958 pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     463    PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    464464    PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns);
    465465
     
    475475{
    476476    RT_NOREF(iInstance);
    477     PDEVOX958   pThis = PDMINS_2_DATA(pDevIns, PDEVOX958);
     477    PDEVOX958   pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958);
    478478    bool        fRCEnabled = true;
    479479    bool        fR0Enabled = true;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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