Changeset 70047 in vbox
- Timestamp:
- Dec 9, 2017 1:39:16 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-netbsd.c
r70046 r70047 85 85 device_t sc_dev; 86 86 pci_chipset_tag_t sc_pc; 87 bus_space_tag_t io_tag; 88 bus_space_handle_t io_handle; 89 bus_addr_t uIOPortBase; 90 bus_size_t io_regsize; 87 88 bus_space_tag_t sc_iot; 89 bus_space_handle_t sc_ioh; 90 bus_addr_t sc_iobase; 91 bus_size_t sc_iosize; 92 91 93 bus_space_tag_t iVMMDevMemResId; 92 94 bus_space_handle_t VMMDevMemHandle; … … 278 280 */ 279 281 ioh_valid = (pci_mapreg_map(pa, PCI_MAPREG_START, PCI_MAPREG_TYPE_IO, 0, 280 &sc-> io_tag, &sc->io_handle,281 &sc-> uIOPortBase, &sc->io_regsize) == 0);282 &sc->sc_iot, &sc->sc_ioh, 283 &sc->sc_iobase, &sc->sc_iosize) == 0); 282 284 283 285 if (ioh_valid) … … 295 297 * Call the common device extension initializer. 296 298 */ 297 rc = VGDrvCommonInitDevExt(&g_DevExt, sc-> uIOPortBase,299 rc = VGDrvCommonInitDevExt(&g_DevExt, sc->sc_iobase, 298 300 bus_space_vaddr(sc->iVMMDevMemResId, 299 301 sc->VMMDevMemHandle), … … 331 333 aprint_error_dev(sc->sc_dev, "MMIO mapping failed\n"); 332 334 } 333 bus_space_unmap(sc-> io_tag, sc->io_handle, sc->io_regsize);335 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_iosize); 334 336 } 335 337 else … … 449 451 450 452 bus_space_unmap(sc->iVMMDevMemResId, sc->VMMDevMemHandle, sc->VMMDevMemSize); 451 bus_space_unmap(sc-> io_tag, sc->io_handle, sc->io_regsize);453 bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_iosize); 452 454 453 455 RTR0Term();
Note:
See TracChangeset
for help on using the changeset viewer.