Skip to content

Commit 5e3f1db

Browse files
GTLin08kartben
authored andcommitted
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 <[email protected]>
1 parent ea1245e commit 5e3f1db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/zephyr/drivers/espi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,15 @@ struct espi_evt_data_acpi {
343343
uint32_t reserved:16;
344344
};
345345

346+
/**
347+
* @brief Bit field definition of evt_data in struct espi_event for PVT.
348+
*/
349+
struct espi_evt_data_pvt {
350+
uint32_t type: 8;
351+
uint32_t data: 8;
352+
uint32_t reserved: 16;
353+
};
354+
346355
/**
347356
* @brief eSPI event
348357
*/

0 commit comments

Comments
 (0)