4 #define PM_SMBUS_MAX_MSG_SIZE 32
6 typedef struct PMSMBus
{
16 uint8_t smb_data
[PM_SMBUS_MAX_MSG_SIZE
];
21 /* Set by pm_smbus.c */
22 void (*reset
)(struct PMSMBus
*s
);
24 /* Set by the user. */
26 void (*set_irq
)(struct PMSMBus
*s
, bool enabled
);
29 /* Internally used by pm_smbus. */
31 /* Set on block transfers after the last byte has been read, so the
32 INTR bit can be set at the right time. */
36 void pm_smbus_init(DeviceState
*parent
, PMSMBus
*smb
, bool force_aux_blk
);
38 #endif /* PM_SMBUS_H */