hw/misc/mps2-scc: Add "QEMU interface" comment
[qemu/ar7.git] / include / hw / misc / mps2-scc.h
blobea261ea30d6f75a4750de80ef92ac9c4a105122e
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.
13 * This is a model of the Serial Communication Controller (SCC)
14 * block found in most MPS FPGA images.
16 * QEMU interface:
17 * + sysbus MMIO region 0: the register bank
18 * + QOM property "scc-cfg4": value of the read-only CFG4 register
19 * + QOM property "scc-aid": value of the read-only SCC_AID register
20 * + QOM property "scc-id": value of the read-only SCC_ID register
21 * + QOM property array "oscclk": reset values of the OSCCLK registers
22 * (which are accessed via the SYS_CFG channel provided by this device)
24 #ifndef MPS2_SCC_H
25 #define MPS2_SCC_H
27 #include "hw/sysbus.h"
28 #include "hw/misc/led.h"
29 #include "qom/object.h"
31 #define TYPE_MPS2_SCC "mps2-scc"
32 OBJECT_DECLARE_SIMPLE_TYPE(MPS2SCC, MPS2_SCC)
34 struct MPS2SCC {
35 /*< private >*/
36 SysBusDevice parent_obj;
38 /*< public >*/
39 MemoryRegion iomem;
40 LEDState *led[8];
42 uint32_t cfg0;
43 uint32_t cfg1;
44 uint32_t cfg2;
45 uint32_t cfg4;
46 uint32_t cfg5;
47 uint32_t cfg6;
48 uint32_t cfgdata_rtn;
49 uint32_t cfgdata_out;
50 uint32_t cfgctrl;
51 uint32_t cfgstat;
52 uint32_t dll;
53 uint32_t aid;
54 uint32_t id;
55 uint32_t num_oscclk;
56 uint32_t *oscclk;
57 uint32_t *oscclk_reset;
60 #endif