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