Clean up decorations and whitespace around header guards
[qemu/armbru.git] / include / hw / misc / imx2_wdt.h
blobb91b002528f856dd5228ceb723348ed47cdfe49d
1 /*
2 * Copyright (c) 2017, Impinj, Inc.
4 * i.MX2 Watchdog IP block
6 * Author: Andrey Smirnov <andrew.smirnov@gmail.com>
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #ifndef IMX2_WDT_H
13 #define IMX2_WDT_H
15 #include "hw/sysbus.h"
17 #define TYPE_IMX2_WDT "imx2.wdt"
18 #define IMX2_WDT(obj) OBJECT_CHECK(IMX2WdtState, (obj), TYPE_IMX2_WDT)
20 enum IMX2WdtRegisters {
21 IMX2_WDT_WCR = 0x0000,
22 IMX2_WDT_REG_NUM = 0x0008 / sizeof(uint16_t) + 1,
26 typedef struct IMX2WdtState {
27 /* <private> */
28 SysBusDevice parent_obj;
30 MemoryRegion mmio;
31 } IMX2WdtState;
33 #endif /* IMX2_WDT_H */