source: SVN/rincon/u-boot/board/MAI/AmigaOneG3SE/i8259.h @ 55

Last change on this file since 55 was 55, checked in by Tim Harvey, 2 years ago

rincon: added latest u-boot source

restored form server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 1.9 KB
Line 
1/*
2 * (C) Copyright 2002
3 * John W. Linville, linville@tuxdriver.com
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24#define ICW1_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW1
25#define ICW1_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW1
26#define ICW2_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW2
27#define ICW2_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW2
28#define ICW3_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW3
29#define ICW3_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW3
30#define ICW4_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW4
31#define ICW4_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW4
32#define OCW1_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW1
33#define OCW1_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW1
34#define OCW2_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW2
35#define OCW2_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW2
36#define OCW3_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW3
37#define OCW3_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW3
38
39#define IMR_1   OCW1_1
40#define IMR_2   OCW1_2
41
42#define ISR_1   ICW1_1
43#define ISR_2   ICW1_2
44
45#define IPL_1   ICW1_1
46#define IPL_2   ICW1_2
47
48extern void i8259_init(void);
49
50extern int i8259_get_irq(struct pt_regs *regs);
51
52extern void i8259_mask_and_ack(int irq);
53
54extern void i8259_mask_irq(int irq);
55
56extern void i8259_unmask_irq(int irq);
Note: See TracBrowser for help on using the repository browser.