VirtualBox

Changeset 101618 in vbox


Ignore:
Timestamp:
Oct 27, 2023 12:47:55 PM (11 months ago)
Author:
vboxsync
Message:

Devices/Gpio: Add virtual GPIO button driver to simulate button presses using GPIO, for passing power/sleep button requests to the guest, bugref:10538

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdrv.h

    r100779 r101618  
    349349/** Generic raw PCI device driver. */
    350350#define PDM_DRVREG_CLASS_PCIRAW         RT_BIT(16)
     351/** GPIO driver. */
     352#define PDM_DRVREG_CLASS_GPIO           RT_BIT(16)
    351353/** @} */
    352354
  • trunk/src/VBox/Devices/Makefile.kmk

    r101616 r101618  
    930930        EFI/DevEFI-armv8.cpp \
    931931        Gpio/DevPL061.cpp \
     932        Gpio/DrvGpioButton.cpp \
    932933        Misc/DevFlashCFI.cpp \
    933934        Misc/DevPL031.cpp \
  • trunk/src/VBox/Devices/build/VBoxDD.cpp

    r101616 r101618  
    492492#endif
    493493
     494#ifdef VBOX_WITH_VIRT_ARMV8
     495    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvGpioButton);
     496    if (RT_FAILURE(rc))
     497        return rc;
     498#endif
    494499    return VINF_SUCCESS;
    495500}
  • trunk/src/VBox/Devices/build/VBoxDD.h

    r101616 r101618  
    243243extern const PDMDEVREG g_DevicePciGenericEcamBridge;
    244244extern const PDMDEVREG g_DevicePlatform;
     245
     246extern const PDMDRVREG g_DrvGpioButton;
    245247#endif
    246248
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