linux/include/asm-generic
David Woodhouse 8cdf92a98f Fix Maple PATA IRQ assignment.
On the Maple board, the AMD8111 IDE is in legacy mode... except that it
appears on IRQ 20 instead of IRQ 15. For drivers/ide this was handled by
the architecture's "pci_get_legacy_ide_irq()" function, but in libata we
just hard-code the numbers 14 and 15.

This patch provides asm-powerpc/libata-portmap.h which maps the IRQ as
appropriate, having added a pci_dev argument to the
ATA_{PRIM,SECOND}ARY_IRQ macros.

There's probably a better way to do this -- especially if we observe
that the _only_ case in which this seemingly-generic
"pci_get_legacy_ide_irq()" function returns anything other than 14 and
15 for primary and secondary respectively is the case of the AMD8111 on
the Maple board -- couldn't we handle that with a special case in the
pata_amd driver, or perhaps with a PCI quirk for Maple to switch it into
native mode during early boot and assign resources properly?

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-01-26 17:27:40 -05:00
..
bitops [PATCH] sched: likely profiling 2006-10-11 11:14:22 -07:00
4level-fixup.h [PATCH] Standardize pxx_page macros 2006-09-26 08:48:51 -07:00
Kbuild [PATCH] cleanup include/asm-generic/atomic.h 2006-12-07 08:39:45 -08:00
Kbuild.asm [PATCH] cleanup asm/setup.h userspace visibility 2006-12-07 08:39:46 -08:00
atomic.h [PATCH] cleanup include/asm-generic/atomic.h 2006-12-07 08:39:45 -08:00
audit_change_attr.h
audit_dir_write.h
audit_read.h
audit_write.h
bitops.h
bug.h [PATCH] change WARN_ON back to "BUG: at ..." 2006-12-30 10:55:54 -08:00
cputime.h
device.h Driver core: add dev_archdata to struct device 2006-12-01 14:52:01 -08:00
div64.h
dma-mapping-broken.h
dma-mapping.h [PATCH] Pass struct dev pointer to dma_cache_sync() 2006-12-07 08:39:41 -08:00
emergency-restart.h
errno-base.h
errno.h
fcntl.h
futex.h [PATCH] mm: pagefault_{disable,enable}() 2006-12-07 08:39:21 -08:00
ide_iops.h
ioctl.h
iomap.h
ipc.h
irq_regs.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
libata-portmap.h Fix Maple PATA IRQ assignment. 2007-01-26 17:27:40 -05:00
local.h
memory_model.h
mman.h
mutex-dec.h fix file specification in comments 2006-10-03 23:01:26 +02:00
mutex-null.h fix file specification in comments 2006-10-03 23:01:26 +02:00
mutex-xchg.h fix file specification in comments 2006-10-03 23:01:26 +02:00
page.h [PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant 2006-12-08 08:28:51 -08:00
pci-dma-compat.h
pci.h
percpu.h [PATCH] Fix typo in "syntax error if percpu macros are incorrectly used" patch 2006-10-06 08:53:41 -07:00
pgtable-nopmd.h [PATCH] Standardize pxx_page macros 2006-09-26 08:48:51 -07:00
pgtable-nopud.h [PATCH] Standardize pxx_page macros 2006-09-26 08:48:51 -07:00
pgtable.h [PATCH] paravirt: remove set pte atomic 2006-10-01 00:39:34 -07:00
resource.h
rtc.h fix file specification in comments 2006-10-03 23:01:26 +02:00
sections.h
siginfo.h
signal.h
statfs.h
termios.h [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
tlb.h fix file specification in comments 2006-10-03 23:01:26 +02:00
topology.h
uaccess.h
unaligned.h
vmlinux.lds.h PCI: Fix multiple problems with VIA hardware 2006-12-20 10:54:43 -08:00
xor.h