| 1 | /* |
| 2 | * Nitro Heartbeat device |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #ifndef HW_MISC_NITRO_HEARTBEAT_H |
| 8 | #define HW_MISC_NITRO_HEARTBEAT_H |
| 9 | |
| 10 | #include "hw/nitro/nitro-vsock-bus.h" |
| 11 | #include "chardev/char-fe.h" |
| 12 | #include "qom/object.h" |
| 13 | |
| 14 | #define TYPE_NITRO_HEARTBEAT "nitro-heartbeat" |
| 15 | OBJECT_DECLARE_SIMPLE_TYPE(NitroHeartbeatState, NITRO_HEARTBEAT) |
| 16 | |
| 17 | struct NitroHeartbeatState { |
| 18 | NitroVsockDevice parent_obj; |
| 19 | |
| 20 | CharFrontend vsock; /* vsock server chardev for heartbeat */ |
| 21 | bool done; |
| 22 | }; |
| 23 | |
| 24 | #endif /* HW_MISC_NITRO_HEARTBEAT_H */ |