revert between 56095 -> 55830 in arch
[AROS.git] / compiler / include / hardware / cia.h
blobf155bcfd7ee9364cb29edb518143b37c7e66cad7
1 #ifndef HARDWARE_CIA_H
2 #define HARDWARE_CIA_H
4 /*
5 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Amiga CIA chips
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
16 struct CIA
18 UBYTE ciapra;
19 UBYTE ciapad0[255];
20 UBYTE ciaprb;
21 UBYTE ciapad1[255];
22 UBYTE ciaddra;
23 UBYTE ciapad2[255];
24 UBYTE ciaddrb;
25 UBYTE ciapad3[255];
26 UBYTE ciatalo;
27 UBYTE ciapad4[255];
28 UBYTE ciatahi;
29 UBYTE ciapad5[255];
30 UBYTE ciatblo;
31 UBYTE ciapad6[255];
32 UBYTE ciatbhi;
33 UBYTE ciapad7[255];
34 UBYTE ciatodlow;
35 UBYTE ciapad8[255];
36 UBYTE ciatodmid;
37 UBYTE ciapad9[255];
38 UBYTE ciatodhi;
39 UBYTE ciapad10[255];
40 UBYTE unusedreg;
41 UBYTE ciapad11[255];
42 UBYTE ciasdr;
43 UBYTE ciapad12[255];
44 UBYTE ciaicr;
45 UBYTE ciapad13[255];
46 UBYTE ciacra;
47 UBYTE ciapad14[255];
48 UBYTE ciacrb;
51 /* Used in rom/exec/execstrap_init.c */
52 /* Still has to be completed */
53 #define CIAF_GAMEPORT0 (1L<<6)
55 /* iCR bit definitions */
56 #define CIAICRB_TA 0
57 #define CIAICRB_TB 1
59 /* iCR bit definitions for Timer A */
60 #define CIACRAB_START 0
61 #define CIACRAB_PBON 1
62 #define CIACRAB_OUTMODE 2
63 #define CIACRAB_RUNMODE 3
64 #define CIACRAB_SPMODE 6
65 #define CIACRAB_TODIN 7
67 /* iCR Flags for Timer A */
68 #define CIACRAF_START (1 << CIACRAB_START)
69 #define CIACRAF_PBON (1 << CIACRAB_PBON)
70 #define CIACRAF_RUNMODE (1 << CIACRAB_RUNMODE)
71 #define CIACRAF_OUTMODE (1 << CIACRAB_OUTMODE)
72 #define CIACRAF_SPMODE (1 << CIACRAB_SPMODE)
73 #define CIACRAF_TODIN (1 << CIACRAB_TODIN)
75 /* iCR bit definitions for Timer B */
76 #define CIACRBB_START 0
77 #define CIACRBB_PBON 1
78 #define CIACRBB_OUTMODE 2
79 #define CIACRBB_RUNMODE 3
80 #define CIACRBB_ALARM 7
82 /* iCR Flags for Timer B */
83 #define CIACRBF_START (1 << CIACRBB_START)
84 #define CIACRBF_PBON (1 << CIACRBB_PBON)
85 #define CIACRBF_RUNMODE (1 << CIACRBB_RUNMODE)
86 #define CIACRBF_OUTMODE (1 << CIACRBB_OUTMODE)
87 #define CIACRBF_ALARM (1 << CIACRBB_ALARM)
89 #endif /* HARDWARE_CIA_H */