Changeset 101597 in vbox for trunk/include/VBox/vmm/pdmifs.h
- Timestamp:
- Oct 26, 2023 9:09:48 AM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 159681
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmifs.h
r99739 r101597 1412 1412 { 1413 1413 /** 1414 * Send an ACPI power off event.1415 *1416 * @returns VBox status code1417 * @param pInterface Pointer to the interface structure containing the called function pointer.1418 */1419 DECLR3CALLBACKMEMBER(int, pfnPowerButtonPress,(PPDMIACPIPORT pInterface));1420 1421 /**1422 * Send an ACPI sleep button event.1423 *1424 * @returns VBox status code1425 * @param pInterface Pointer to the interface structure containing the called function pointer.1426 */1427 DECLR3CALLBACKMEMBER(int, pfnSleepButtonPress,(PPDMIACPIPORT pInterface));1428 1429 /**1430 * Check if the last power button event was handled by the guest.1431 *1432 * @returns VBox status code1433 * @param pInterface Pointer to the interface structure containing the called function pointer.1434 * @param pfHandled Is set to true if the last power button event was handled, false otherwise.1435 */1436 DECLR3CALLBACKMEMBER(int, pfnGetPowerButtonHandled,(PPDMIACPIPORT pInterface, bool *pfHandled));1437 1438 /**1439 1414 * Check if the guest entered the ACPI mode. 1440 1415 * … … 1509 1484 /** PDMIACPICONNECTOR interface ID. */ 1510 1485 #define PDMIACPICONNECTOR_IID "5f14bf8d-1edf-4e3a-a1e1-cca9fd08e359" 1486 1487 1488 /** Pointer to an event button port interface. */ 1489 typedef struct PDMIEVENTBUTTONPORT *PPDMIEVENTBUTTONPORT; 1490 /** 1491 * Event button port interface (down). Used by both the ACPI/GPIO driver and (grumble) main. 1492 * Pair with PDMIEVENTBUTTONCONNECTOR. 1493 */ 1494 typedef struct PDMIEVENTBUTTONPORT 1495 { 1496 /** 1497 * Check if the guest is able to handle button events. 1498 * 1499 * @returns VBox status code 1500 * @param pInterface Pointer to the interface structure containing the called function pointer. 1501 * @param pfCanHandleButtonEvents Is set to true if the guest is able to handle button events, false otherwise. 1502 */ 1503 DECLR3CALLBACKMEMBER(int, pfnQueryGuestCanHandleButtonEvents,(PPDMIEVENTBUTTONPORT pInterface, bool *pfCanHandleButtonEvents)); 1504 1505 /** 1506 * Send an power off button event. 1507 * 1508 * @returns VBox status code 1509 * @param pInterface Pointer to the interface structure containing the called function pointer. 1510 */ 1511 DECLR3CALLBACKMEMBER(int, pfnPowerButtonPress,(PPDMIEVENTBUTTONPORT pInterface)); 1512 1513 /** 1514 * Send an sleep button event. 1515 * 1516 * @returns VBox status code 1517 * @param pInterface Pointer to the interface structure containing the called function pointer. 1518 */ 1519 DECLR3CALLBACKMEMBER(int, pfnSleepButtonPress,(PPDMIEVENTBUTTONPORT pInterface)); 1520 1521 /** 1522 * Check if the last power button event was handled by the guest. 1523 * 1524 * @returns VBox status code 1525 * @param pInterface Pointer to the interface structure containing the called function pointer. 1526 * @param pfHandled Is set to true if the last power button event was handled, false otherwise. 1527 */ 1528 DECLR3CALLBACKMEMBER(int, pfnQueryPowerButtonHandled,(PPDMIEVENTBUTTONPORT pInterface, bool *pfHandled)); 1529 1530 } PDMIEVENTBUTTONPORT; 1531 /** PDMIEVENTBUTTONPORT interface ID. */ 1532 #define PDMIEVENTBUTTONPORT_IID "7aa5ada2-35c7-45be-a757-0398427af7aa" 1533 1534 1535 /** Pointer to an event button connector interface. */ 1536 typedef struct PDMIEVENTBUTTONCONNECTOR *PPDMIEVENTBUTTONCONNECTOR; 1537 /** 1538 * Event button connector interface (up). 1539 * Pair with PDMIEVENTBUTTONPORT. 1540 */ 1541 typedef struct PDMIEVENTBUTTONCONNECTOR 1542 { 1543 /** Currently empty, so just a dummy value. */ 1544 uint32_t uDummy; 1545 1546 } PDMIEVENTBUTTONCONNECTOR; 1547 /** PDMIACPICONNECTOR interface ID. */ 1548 #define PDMIEVENTBUTTONCONNECTOR_IID "46774d25-a55e-4e63-b70b-8946bcedd4a7" 1549 1511 1550 1512 1551 struct VMMDevDisplayDef;
Note:
See TracChangeset
for help on using the changeset viewer.