5 * This file describes the memery mapping of the MC6821 PIA.
6 * The unions describe overlayed registers. Which of them is used is
7 * determined by bit 2 of the corresponding control register.
8 * this files expects the PIA_REG_PADWIDTH to be defined the numeric
9 * value of the register spacing.
11 * Data came from MFC-31-Developer Kit (from Ralph Seidel,
12 * zodiac@darkness.gun.de) and Motorola Data Sheet (from
13 * Richard Hirst, srh@gpt.co.uk)
15 * 6.11.95 copyright Joerg Dorchain (dorchain@mpi-sb.mpg.de)
19 #ifndef PIA_REG_PADWIDTH
20 #define PIA_REG_PADWIDTH 255
28 u_char pad1
[PIA_REG_PADWIDTH
];
30 u_char pad2
[PIA_REG_PADWIDTH
];
35 u_char pad3
[PIA_REG_PADWIDTH
];
37 u_char pad4
[PIA_REG_PADWIDTH
];
45 #define PIA_C1_ENABLE_IRQ (1<<0)
46 #define PIA_C1_LOW_TO_HIGH (1<<1)
47 #define PIA_DDR (1<<2)
48 #define PIA_IRQ2 (1<<6)
49 #define PIA_IRQ1 (1<<7)
This page took 0.030705 seconds and 5 git commands to generate.