2015-02-05 11:28:32 +01:00
|
|
|
#ifndef WDT_DIAG288_H
|
|
|
|
#define WDT_DIAG288_H
|
|
|
|
|
2019-08-12 07:23:51 +02:00
|
|
|
#include "hw/qdev-core.h"
|
2020-09-03 22:43:22 +02:00
|
|
|
#include "qom/object.h"
|
2015-02-05 11:28:32 +01:00
|
|
|
|
|
|
|
#define TYPE_WDT_DIAG288 "diag288"
|
2020-09-03 22:43:22 +02:00
|
|
|
typedef struct DIAG288Class DIAG288Class;
|
|
|
|
typedef struct DIAG288State DIAG288State;
|
2020-08-31 23:07:33 +02:00
|
|
|
DECLARE_OBJ_CHECKERS(DIAG288State, DIAG288Class,
|
|
|
|
DIAG288, TYPE_WDT_DIAG288)
|
2015-02-05 11:28:32 +01:00
|
|
|
|
|
|
|
#define WDT_DIAG288_INIT 0
|
|
|
|
#define WDT_DIAG288_CHANGE 1
|
|
|
|
#define WDT_DIAG288_CANCEL 2
|
|
|
|
|
2020-09-03 22:43:22 +02:00
|
|
|
struct DIAG288State {
|
2015-02-05 11:28:32 +01:00
|
|
|
/*< private >*/
|
|
|
|
DeviceState parent_obj;
|
|
|
|
QEMUTimer *timer;
|
|
|
|
bool enabled;
|
|
|
|
|
|
|
|
/*< public >*/
|
2020-09-03 22:43:22 +02:00
|
|
|
};
|
2015-02-05 11:28:32 +01:00
|
|
|
|
2020-09-03 22:43:22 +02:00
|
|
|
struct DIAG288Class {
|
2015-02-05 11:28:32 +01:00
|
|
|
/*< private >*/
|
|
|
|
DeviceClass parent_class;
|
|
|
|
|
|
|
|
/*< public >*/
|
|
|
|
int (*handle_timer)(DIAG288State *dev,
|
|
|
|
uint64_t func, uint64_t timeout);
|
2020-09-03 22:43:22 +02:00
|
|
|
};
|
2015-02-05 11:28:32 +01:00
|
|
|
|
2016-06-29 15:29:06 +02:00
|
|
|
#endif /* WDT_DIAG288_H */
|