Revision 87ecb68b hw/smbus.c
b/hw/smbus.c | ||
---|---|---|
9 | 9 |
|
10 | 10 |
/* TODO: Implement PEC. */ |
11 | 11 |
|
12 |
#include "vl.h" |
|
12 |
#include "hw.h" |
|
13 |
#include "i2c.h" |
|
14 |
#include "smbus.h" |
|
13 | 15 |
|
14 | 16 |
//#define DEBUG_SMBUS 1 |
15 | 17 |
|
... | ... | |
194 | 196 |
SMBusDevice *dev; |
195 | 197 |
|
196 | 198 |
if (size < sizeof(SMBusDevice)) |
197 |
cpu_abort(cpu_single_env, "SMBus struct too small");
|
|
199 |
hw_error("SMBus struct too small");
|
|
198 | 200 |
|
199 | 201 |
dev = (SMBusDevice *)i2c_slave_init(bus, address, size); |
200 | 202 |
dev->i2c.event = smbus_i2c_event; |
Also available in: Unified diff