Changeset 40280 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Feb 28, 2012 7:47:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r40148 r40280 76 76 AssertMsgReturn((off) < (pThis)->vram_size, ("%RX32 !< %RX32\n", (uint32_t)(off), (pThis)->vram_size), VINF_SUCCESS); \ 77 77 Log2(("%Rfn[%d]: %RX32 -> R3\n", __PRETTY_FUNCTION__, __LINE__, (off))); \ 78 return VINF_IOM_ HC_MMIO_WRITE; \78 return VINF_IOM_R3_MMIO_WRITE; \ 79 79 } \ 80 80 } while (0) … … 92 92 AssertMsgReturn((off) < (pThis)->vram_size, ("%RX32 !< %RX32\n", (uint32_t)(off), (pThis)->vram_size), 0xff); \ 93 93 Log2(("%Rfn[%d]: %RX32 -> R3\n", __PRETTY_FUNCTION__, __LINE__, (off))); \ 94 (rcVar) = VINF_IOM_ HC_MMIO_READ; \94 (rcVar) = VINF_IOM_R3_MMIO_READ; \ 95 95 return 0; \ 96 96 } \ … … 1035 1035 case VBE_DISPI_INDEX_ENABLE: 1036 1036 #ifndef IN_RING3 1037 return VINF_IOM_ HC_IOPORT_WRITE;1037 return VINF_IOM_R3_IOPORT_WRITE; 1038 1038 #else 1039 1039 if ((val & VBE_DISPI_ENABLED) && … … 1147 1147 case VBE_DISPI_INDEX_VBOX_VIDEO: 1148 1148 #ifndef IN_RING3 1149 return VINF_IOM_ HC_IOPORT_WRITE;1149 return VINF_IOM_R3_IOPORT_WRITE; 1150 1150 #else 1151 1151 /* Changes in the VGA device are minimal. The device is bypassed. The driver does all work. */ … … 2536 2536 VGAState *s = PDMINS_2_DATA(pDevIns, PVGASTATE); 2537 2537 2538 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_ HC_IOPORT_WRITE);2538 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_R3_IOPORT_WRITE); 2539 2539 if (rc != VINF_SUCCESS) 2540 2540 return rc; … … 2569 2569 NOREF(pvUser); 2570 2570 2571 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_ HC_IOPORT_READ);2571 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_R3_IOPORT_READ); 2572 2572 if (rc != VINF_SUCCESS) 2573 2573 return rc; … … 2605 2605 VGAState *s = PDMINS_2_DATA(pDevIns, PVGASTATE); 2606 2606 2607 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_ HC_IOPORT_WRITE);2607 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_R3_IOPORT_WRITE); 2608 2608 if (rc != VINF_SUCCESS) 2609 2609 return rc; … … 2620 2620 Log(("vgaIOPortWriteVBEData: VBE_DISPI_INDEX_ENABLE - Switching to host...\n")); 2621 2621 PDMCritSectLeave(&s->lock); 2622 return VINF_IOM_ HC_IOPORT_WRITE;2622 return VINF_IOM_R3_IOPORT_WRITE; 2623 2623 } 2624 2624 #endif … … 2664 2664 // { 2665 2665 // Log(("vgaIOPortWriteVBEData: VBE_DISPI_INDEX_ENABLE & VBE_DISPI_ENABLED - Switching to host...\n")); 2666 // return VINF_IOM_ HC_IOPORT_WRITE;2666 // return VINF_IOM_R3_IOPORT_WRITE; 2667 2667 // } 2668 2668 //#endif … … 2695 2695 VGAState *s = PDMINS_2_DATA(pDevIns, PVGASTATE); 2696 2696 2697 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_ HC_IOPORT_WRITE);2697 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_R3_IOPORT_WRITE); 2698 2698 if (rc != VINF_SUCCESS) 2699 2699 return rc; … … 2744 2744 VGAState *s = PDMINS_2_DATA(pDevIns, PVGASTATE); 2745 2745 2746 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_ HC_IOPORT_READ);2746 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_R3_IOPORT_READ); 2747 2747 if (rc != VINF_SUCCESS) 2748 2748 return rc; … … 2803 2803 VGAState *s = PDMINS_2_DATA(pDevIns, PVGASTATE); 2804 2804 2805 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_ HC_IOPORT_READ);2805 int rc = PDMCritSectEnter(&s->lock, VINF_IOM_R3_IOPORT_READ); 2806 2806 if (rc != VINF_SUCCESS) 2807 2807 return rc; … … 3191 3191 PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE); 3192 3192 3193 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_ HC_MMIO_WRITE);3193 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_R3_MMIO_WRITE); 3194 3194 if (rc != VINF_SUCCESS) 3195 3195 return rc; … … 3218 3218 NOREF(pvUser); 3219 3219 3220 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_ HC_MMIO_READ);3220 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_R3_MMIO_READ); 3221 3221 if (rc != VINF_SUCCESS) 3222 3222 return rc; … … 3281 3281 STAM_PROFILE_START(&pThis->CTX_MID_Z(Stat,MemoryWrite), a); 3282 3282 3283 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_ HC_MMIO_WRITE);3283 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_R3_MMIO_WRITE); 3284 3284 if (rc != VINF_SUCCESS) 3285 3285 return rc; … … 3514 3514 NOREF(pvUser); 3515 3515 3516 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_ HC_IOPORT_WRITE);3516 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_R3_IOPORT_WRITE); 3517 3517 if (rc != VINF_SUCCESS) 3518 3518 return rc; … … 3575 3575 NOREF(Port); 3576 3576 3577 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_ HC_IOPORT_WRITE);3577 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_R3_IOPORT_WRITE); 3578 3578 if (rc != VINF_SUCCESS) 3579 3579 return rc; … … 3609 3609 NOREF(Port); 3610 3610 3611 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_ HC_IOPORT_READ);3611 int rc = PDMCritSectEnter(&pThis->lock, VINF_IOM_R3_IOPORT_READ); 3612 3612 if (rc != VINF_SUCCESS) 3613 3613 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.