diff options
author | Jake Moilanen <moilanen@austin.ibm.com> | 2006-06-07 17:15:10 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-15 05:31:25 -0400 |
commit | 204face4fb3ba2ca09a4073e7debc595e14c2388 (patch) | |
tree | c98c1b576d249b392669a0d534598718af40478d /include/asm-powerpc | |
parent | bb53bb3dcb12d79efdee3d82bff46a204af377f3 (diff) |
[POWERPC] MSI abstraction
Instead of trying to make PPC64 MSI fit in a Intel-centric MSI layer, a
simple short-term solution is to hook the pci_{en/dis}able_msi() calls
and make a machdep call.
The rest of the MSI functions are superfluous for what is needed at this
time. Many of which can have machdep calls added as needed.
Ben and Michael Ellerman are looking into rewrite the MSI layer to be
more generic. However, in the meantime this works as a interim
solution.
Signed-off-by: Jake Moilanen <moilanen@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/machdep.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h index 0f9254c18914..fc984bd11d8f 100644 --- a/include/asm-powerpc/machdep.h +++ b/include/asm-powerpc/machdep.h | |||
@@ -238,6 +238,11 @@ struct machdep_calls { | |||
238 | */ | 238 | */ |
239 | void (*machine_kexec)(struct kimage *image); | 239 | void (*machine_kexec)(struct kimage *image); |
240 | #endif /* CONFIG_KEXEC */ | 240 | #endif /* CONFIG_KEXEC */ |
241 | |||
242 | #ifdef CONFIG_PCI_MSI | ||
243 | int (*enable_msi)(struct pci_dev *pdev); | ||
244 | void (*disable_msi)(struct pci_dev *pdev); | ||
245 | #endif /* CONFIG_PCI_MSI */ | ||
241 | }; | 246 | }; |
242 | 247 | ||
243 | extern void power4_idle(void); | 248 | extern void power4_idle(void); |