| #include "hw/i2c/smbus_master.h" |
| #define PM_SMBUS_MAX_MSG_SIZE 32 |
| uint8_t smb_data[PM_SMBUS_MAX_MSG_SIZE]; |
| void (*reset)(struct PMSMBus *s); |
| void (*set_irq)(struct PMSMBus *s, bool enabled); |
| /* Internally used by pm_smbus. */ |
| /* Set on block transfers after the last byte has been read, so the |
| INTR bit can be set at the right time. */ |
| /* Set during an I2C block read, so we know how to handle data. */ |
| /* Used to work around a bug in AMIBIOS, see smb_transaction_start() */ |
| bool start_transaction_on_status_read; |
| void pm_smbus_init(DeviceState *parent, PMSMBus *smb, bool force_aux_blk); |
| * For backwards compatibility on migration, older versions don't have |
| * working migration for pm_smbus, this lets us ignore the migrations |
| * for older machine versions. |
| bool pm_smbus_vmstate_needed(void); |
| extern const VMStateDescription pmsmb_vmstate; |