util: rename qemu_open() to qemu_open_old()
[qemu/ar7.git] / include / hw / misc / mps2-scc.h
blob445e268b1fdabc11d373f4a2df0867dbd7cbc43e
1 /*
2 * ARM MPS2 SCC emulation
4 * Copyright (c) 2017 Linaro Limited
5 * Written by Peter Maydell
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 or
9 * (at your option) any later version.
12 #ifndef MPS2_SCC_H
13 #define MPS2_SCC_H
15 #include "hw/sysbus.h"
16 #include "qom/object.h"
18 #define TYPE_MPS2_SCC "mps2-scc"
19 typedef struct MPS2SCC MPS2SCC;
20 DECLARE_INSTANCE_CHECKER(MPS2SCC, MPS2_SCC,
21 TYPE_MPS2_SCC)
23 #define NUM_OSCCLK 3
25 struct MPS2SCC {
26 /*< private >*/
27 SysBusDevice parent_obj;
29 /*< public >*/
30 MemoryRegion iomem;
32 uint32_t cfg0;
33 uint32_t cfg1;
34 uint32_t cfg4;
35 uint32_t cfgdata_rtn;
36 uint32_t cfgdata_out;
37 uint32_t cfgctrl;
38 uint32_t cfgstat;
39 uint32_t dll;
40 uint32_t aid;
41 uint32_t id;
42 uint32_t oscclk[NUM_OSCCLK];
43 uint32_t oscclk_reset[NUM_OSCCLK];
46 #endif