mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 15:41:58 +00:00
80128ff79d
Adds support for PowerQuicc on-chip PCMCIA. The driver is implemented as of_device, so only arch/powerpc stuff is capable to use it, which now implies only mpc885ads reference board. To cope with the code that should be hooked inside driver, but is really board specific (like set_voltage), global structure mpc8xx_pcmcia_ops holds necessary function pointers that are filled in the BSP code. [akpm@linux-foundation.org: whitespace diddles] Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Olof Johansson <olof@lixom.net> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
20 lines
401 B
C
20 lines
401 B
C
#ifndef _PPC_KERNEL_MPC8xx_H
|
|
#define _PPC_KERNEL_MPC8xx_H
|
|
|
|
#include <linux/irq.h>
|
|
#include <linux/interrupt.h>
|
|
|
|
int mpc8xx_pic_init(void);
|
|
unsigned int mpc8xx_get_irq(void);
|
|
|
|
/*
|
|
* Some internal interrupt registers use an 8-bit mask for the interrupt
|
|
* level instead of a number.
|
|
*/
|
|
static inline uint mk_int_int_mask(uint mask)
|
|
{
|
|
return (1 << (7 - (mask/2)));
|
|
}
|
|
|
|
#endif /* _PPC_KERNEL_PPC8xx_H */
|