6 #define TYPE_WDT_DIAG288 "diag288"
8 OBJECT_CHECK(DIAG288State, (obj), TYPE_WDT_DIAG288)
9 #define DIAG288_CLASS(klass) \
10 OBJECT_CLASS_CHECK(DIAG288Class, (klass), TYPE_WDT_DIAG288)
11 #define DIAG288_GET_CLASS(obj) \
12 OBJECT_GET_CLASS(DIAG288Class, (obj), TYPE_WDT_DIAG288)
14 #define WDT_DIAG288_INIT 0
15 #define WDT_DIAG288_CHANGE 1
16 #define WDT_DIAG288_CANCEL 2
18 typedef struct DIAG288State
{
20 DeviceState parent_obj
;
27 typedef struct DIAG288Class
{
29 DeviceClass parent_class
;
32 int (*handle_timer
)(DIAG288State
*dev
,
33 uint64_t func
, uint64_t timeout
);
36 #endif /* WDT_DIAG288_H */