Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / qemu-palcode / sys-sx164.h
1 /* Declarations for the SX164 system emulation.
2
3    Copyright (C) 2011 Richard Henderson
4
5    This file is part of QEMU PALcode.
6
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.
11
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.
16
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/>.  */
20
21 #ifndef SYS_SX164_H
22 #define SYS_SX164_H 1
23
24 #include "core_cia.h"
25
26 #ifdef __ASSEMBLER__
27
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
34
35 .macro  SYS_DEV_VECTOR  ret
36         FIXME
37 .endm
38
39 #endif /* ASSEMBLER */
40
41 #define SYS_TYPE        ST_DEC_EB164
42 #define SYS_VARIATION   (15 << 10)
43 #define SYS_REVISION    0
44
45 #endif /* SYS_SX164_H */