7#ifndef ZEPHYR_INCLUDE_DRIVERS_I3C_IBI_H_
8#define ZEPHYR_INCLUDE_DRIVERS_I3C_IBI_H_
23#ifndef CONFIG_I3C_IBI_MAX_PAYLOAD_SIZE
24#define CONFIG_I3C_IBI_MAX_PAYLOAD_SIZE 0
int i3c_ibi_work_enqueue_cb(const struct device *dev, k_work_handler_t work_cb)
Queue a generic callback for future processing.
#define CONFIG_I3C_IBI_MAX_PAYLOAD_SIZE
Definition ibi.h:24
int i3c_ibi_work_enqueue_target_irq(struct i3c_device_desc *target, uint8_t *payload, size_t payload_len)
Queue a target interrupt IBI for future processing.
int(* i3c_target_ibi_cb_t)(struct i3c_device_desc *target, struct i3c_ibi_payload *payload)
Function called when In-Band Interrupt received from target device.
Definition ibi.h:146
int i3c_ibi_work_enqueue(struct i3c_ibi_work *ibi_work)
Queue an IBI work item for future processing.
int i3c_ibi_work_enqueue_hotjoin(const struct device *dev)
Queue a hot join IBI for future processing.
i3c_ibi_type
IBI Types.
Definition ibi.h:36
@ I3C_IBI_CONTROLLER_ROLE_REQUEST
Controller Role Request.
Definition ibi.h:41
@ I3C_IBI_TARGET_INTR
Target interrupt.
Definition ibi.h:38
@ I3C_IBI_WORKQUEUE_CB
Not an actual IBI type, but simply used by the IBI workq for generic callbacks.
Definition ibi.h:52
@ I3C_IBI_HOTJOIN
Hot Join Request.
Definition ibi.h:44
@ I3C_IBI_TYPE_MAX
Definition ibi.h:46
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
void(* k_work_handler_t)(struct k_work *work)
The signature for a work item handler function.
Definition kernel.h:3356
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:412
Structure describing a I3C target device.
Definition i3c.h:915
Structure of payload buffer for IBI.
Definition ibi.h:74
uint8_t payload_len
Length of available data in the payload buffer.
Definition ibi.h:78
uint8_t payload[0]
Pointer to byte array as payload buffer.
Definition ibi.h:83
Node about a queued IBI.
Definition ibi.h:89
const struct device * controller
Use for.
Definition ibi.h:106
enum i3c_ibi_type type
IBI type.
Definition ibi.h:100
struct k_work work
k_work struct.
Definition ibi.h:95
sys_snode_t node
Definition ibi.h:90
k_work_handler_t work_cb
Generic workqueue callback when type is I3C_IBI_WORKQUEUE_CB.
Definition ibi.h:125
struct i3c_device_desc * target
Use for.
Definition ibi.h:112
Struct for IBI request.
Definition ibi.h:58
uint8_t * payload
Pointer to payload of IBI.
Definition ibi.h:63
enum i3c_ibi_type ibi_type
Type of IBI.
Definition ibi.h:60
uint8_t payload_len
Length in bytes of the IBI payload.
Definition ibi.h:66
A structure used to submit work.
Definition kernel.h:3957