drivers/espi: Add structure for evt_data in peripheral PVT events

Introduce a new bit field structure "espi_evt_data_pvt" to represent
the evt_data field in PVT IO related eSPI peripheral events.

With this change, callback functions handling eSPI events can extract
both the data and its associated type from evt_data.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
Tim Lin
2025-07-18 13:11:52 +08:00
committed by Benjamin Cabé
parent ea1245eb92
commit 5e3f1dbaa6

View File

@@ -343,6 +343,15 @@ struct espi_evt_data_acpi {
uint32_t reserved:16;
};
/**
* @brief Bit field definition of evt_data in struct espi_event for PVT.
*/
struct espi_evt_data_pvt {
uint32_t type: 8;
uint32_t data: 8;
uint32_t reserved: 16;
};
/**
* @brief eSPI event
*/