1 #ifndef __MACH_DEVICE_H
2 #define __MACH_DEVICE_H
4 #include <linux/types.h>
6 #define MAX_RESOURCE_DMA 2
8 /* structure for describing the on-chip devices */
9 struct pxa_device_desc
{
16 int dma
[MAX_RESOURCE_DMA
];
19 #define PXA168_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
20 struct pxa_device_desc pxa168_device_##_name __initdata = { \
21 .dev_name = "pxa168-" #_name, \
24 .irq = IRQ_PXA168_##_irq, \
30 #define PXA910_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
31 struct pxa_device_desc pxa910_device_##_name __initdata = { \
32 .dev_name = "pxa910-" #_name, \
35 .irq = IRQ_PXA910_##_irq, \
41 #define MMP2_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \
42 struct pxa_device_desc mmp2_device_##_name __initdata = { \
43 .dev_name = "mmp2-" #_name, \
46 .irq = IRQ_MMP2_##_irq, \
52 extern int pxa_register_device(struct pxa_device_desc
*, void *, size_t);
53 #endif /* __MACH_DEVICE_H */