Commit 5e3f1dba authored by Tim Lin's avatar Tim Lin Committed by Benjamin Cabé
Browse files

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: default avatarTim Lin <tim2.lin@ite.corp-partner.google.com>
parent ea1245eb
Loading
Loading
Loading
Loading
+9 −0
Changes for include/zephyr/drivers/espi.h: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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
 */