Add Cserve_Get_VM_Time
[qemu-palcode.git] / sys-sx164.h
blob2cf6a9b97edeb603b9cd5a80e16479d383431d51
1 /* Declarations for the SX164 system emulation.
3 Copyright (C) 2011 Richard Henderson
5 This file is part of QEMU PALcode.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the text
15 of the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifndef SYS_SX164_H
22 #define SYS_SX164_H 1
24 #include "core_cia.h"
26 #ifdef __ASSEMBLER__
28 .macro SYS_ACK_CLK t0, t1, t2
29 LOAD_KSEG_PCI_IO \t0 // Set RTCADD (0x70) to index reg 0xC
30 mov 0xc, \t1
31 stb \t1, 0x70(\t0)
32 ldbu \t1, 0x71(\t0) // Read RTCDAT to clear interrupt
33 .endm
35 .macro SYS_DEV_VECTOR ret
36 FIXME
37 .endm
39 #endif /* ASSEMBLER */
41 #define SYS_TYPE ST_DEC_EB164
42 #define SYS_VARIATION (15 << 10)
43 #define SYS_REVISION 0
45 #endif /* SYS_SX164_H */