]>
Commit | Line | Data |
---|---|---|
c609719b WD |
1 | /* |
2 | * (C) Copyright 2001 | |
3 | * Denis Peter, MPL AG Switzerland, [email protected] | |
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 | #ifndef _PCI_PARTS_H_ | |
25 | #define _PCI_PARTS_H_ | |
26 | ||
27 | ||
28 | /* Board specific file containing: | |
29 | * - PCI Memory Mapping | |
30 | * - PCI IO Mapping | |
31 | * - PCI Interrupt Mapping | |
32 | */ | |
33 | ||
34 | /* PIP405 PCI INT Routing: | |
35 | * IRQ0 VECTOR | |
36 | * PIXX4 IDSEL = AD16 INTA# 28 (Function 2 USB is INTD# = 31) | |
37 | * VGA IDSEL = AD17 INTB# 29 | |
38 | * SCSI IDSEL = AD18 INTC# 30 | |
39 | * PC104 IDSEL0 = AD20 INTA# 28 | |
40 | * PC104 IDSEL1 = AD21 INTB# 29 | |
41 | * PC104 IDSEL2 = AD22 INTC# 30 | |
42 | * PC104 IDSEL3 = AD23 INTD# 31 | |
43 | * | |
44 | * busdevfunc = EXXX XXXX BBBB BBBB DDDD DFFF RRRR RR00 | |
45 | * ^ ^ ^ ^ ^ | |
46 | * 31 23 15 10 7 | |
47 | * E = Enabled | |
48 | * B = Bussnumber | |
49 | * D = Devicenumber (Device0 = AD10) | |
50 | * F = Functionnumber | |
51 | * R = Registernumber | |
52 | * | |
53 | * Device = (busdevfunc>>11) + 10 | |
54 | * Vector = devicenumber % 4 + 28 | |
55 | * | |
56 | */ | |
57 | #define PCI_HIGHEST_ON_BOARD_ID 19 | |
58 | /*#define PCI_DEV_NUMBER(x) (((x>>11) & 0x1f) + 10) */ | |
59 | #define PCI_IRQ_VECTOR(x) ((PCI_DEV(x) + 10) % 4) + 28 | |
60 | ||
61 | ||
c609719b WD |
62 | /* PCI Device List for PIP405 */ |
63 | ||
64 | /* Mapping: | |
65 | * +-------------+------------+------------+--------------------------------+ | |
66 |