|
5 | 5 | * |
6 | 6 | * Copyright (C) 2000, 2001, 04 Keith M Wesolowski |
7 | 7 | */ |
8 | | -#include <linux/kernel.h> |
9 | 8 | #include <linux/init.h> |
| 9 | +#include <linux/kernel.h> |
10 | 10 | #include <linux/pci.h> |
11 | 11 | #include <linux/types.h> |
| 12 | + |
12 | 13 | #include <asm/bootinfo.h> |
13 | | -#include <asm/lasat/lasatint.h> |
| 14 | + |
| 15 | +#include <irq.h> |
14 | 16 |
|
15 | 17 | extern struct pci_ops nile4_pci_ops; |
16 | 18 | extern struct pci_ops gt64xxx_pci0_ops; |
@@ -55,29 +57,29 @@ static int __init lasat_pci_setup(void) |
55 | 57 |
|
56 | 58 | arch_initcall(lasat_pci_setup); |
57 | 59 |
|
58 | | -#define LASATINT_ETH1 (LASATINT_BASE + 0) |
59 | | -#define LASATINT_ETH0 (LASATINT_BASE + 1) |
60 | | -#define LASATINT_HDC (LASATINT_BASE + 2) |
61 | | -#define LASATINT_COMP (LASATINT_BASE + 3) |
62 | | -#define LASATINT_HDLC (LASATINT_BASE + 4) |
63 | | -#define LASATINT_PCIA (LASATINT_BASE + 5) |
64 | | -#define LASATINT_PCIB (LASATINT_BASE + 6) |
65 | | -#define LASATINT_PCIC (LASATINT_BASE + 7) |
66 | | -#define LASATINT_PCID (LASATINT_BASE + 8) |
| 60 | +#define LASAT_IRQ_ETH1 (LASAT_IRQ_BASE + 0) |
| 61 | +#define LASAT_IRQ_ETH0 (LASAT_IRQ_BASE + 1) |
| 62 | +#define LASAT_IRQ_HDC (LASAT_IRQ_BASE + 2) |
| 63 | +#define LASAT_IRQ_COMP (LASAT_IRQ_BASE + 3) |
| 64 | +#define LASAT_IRQ_HDLC (LASAT_IRQ_BASE + 4) |
| 65 | +#define LASAT_IRQ_PCIA (LASAT_IRQ_BASE + 5) |
| 66 | +#define LASAT_IRQ_PCIB (LASAT_IRQ_BASE + 6) |
| 67 | +#define LASAT_IRQ_PCIC (LASAT_IRQ_BASE + 7) |
| 68 | +#define LASAT_IRQ_PCID (LASAT_IRQ_BASE + 8) |
67 | 69 |
|
68 | 70 | int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
69 | 71 | { |
70 | 72 | switch (slot) { |
71 | 73 | case 1: |
72 | 74 | case 2: |
73 | 75 | case 3: |
74 | | - return LASATINT_PCIA + (((slot-1) + (pin-1)) % 4); |
| 76 | + return LASAT_IRQ_PCIA + (((slot-1) + (pin-1)) % 4); |
75 | 77 | case 4: |
76 | | - return LASATINT_ETH1; /* Ethernet 1 (LAN 2) */ |
| 78 | + return LASAT_IRQ_ETH1; /* Ethernet 1 (LAN 2) */ |
77 | 79 | case 5: |
78 | | - return LASATINT_ETH0; /* Ethernet 0 (LAN 1) */ |
| 80 | + return LASAT_IRQ_ETH0; /* Ethernet 0 (LAN 1) */ |
79 | 81 | case 6: |
80 | | - return LASATINT_HDC; /* IDE controller */ |
| 82 | + return LASAT_IRQ_HDC; /* IDE controller */ |
81 | 83 | default: |
82 | 84 | return 0xff; /* Illegal */ |
83 | 85 | } |
|
0 commit comments