VirtualBox

Changeset 70047 in vbox


Ignore:
Timestamp:
Dec 9, 2017 1:39:16 AM (7 years ago)
Author:
vboxsync
Message:

VBoxGuest-netbsd.c: give io bus space members their usual names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-netbsd.c

    r70046 r70047  
    8585    device_t sc_dev;
    8686    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
    9193    bus_space_tag_t iVMMDevMemResId;
    9294    bus_space_handle_t VMMDevMemHandle;
     
    278280     */
    279281    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);
    282284
    283285    if (ioh_valid)
     
    295297             * Call the common device extension initializer.
    296298             */
    297             rc = VGDrvCommonInitDevExt(&g_DevExt, sc->uIOPortBase,
     299            rc = VGDrvCommonInitDevExt(&g_DevExt, sc->sc_iobase,
    298300                                       bus_space_vaddr(sc->iVMMDevMemResId,
    299301                                                       sc->VMMDevMemHandle),
     
    331333            aprint_error_dev(sc->sc_dev, "MMIO mapping failed\n");
    332334        }
    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);
    334336    }
    335337    else
     
    449451
    450452    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);
    452454
    453455    RTR0Term();
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