Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/src/linux-headers-4.4.0-87/arch/arm/mach-mmp/include/mach/ |
Upload File : |
#ifndef __MACH_DEVICE_H #define __MACH_DEVICE_H #include <linux/types.h> #define MAX_RESOURCE_DMA 2 /* structure for describing the on-chip devices */ struct pxa_device_desc { const char *dev_name; const char *drv_name; int id; int irq; unsigned long start; unsigned long size; int dma[MAX_RESOURCE_DMA]; }; #define PXA168_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \ struct pxa_device_desc pxa168_device_##_name __initdata = { \ .dev_name = "pxa168-" #_name, \ .drv_name = _drv, \ .id = _id, \ .irq = IRQ_PXA168_##_irq, \ .start = _start, \ .size = _size, \ .dma = { _dma }, \ }; #define PXA910_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \ struct pxa_device_desc pxa910_device_##_name __initdata = { \ .dev_name = "pxa910-" #_name, \ .drv_name = _drv, \ .id = _id, \ .irq = IRQ_PXA910_##_irq, \ .start = _start, \ .size = _size, \ .dma = { _dma }, \ }; #define MMP2_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \ struct pxa_device_desc mmp2_device_##_name __initdata = { \ .dev_name = "mmp2-" #_name, \ .drv_name = _drv, \ .id = _id, \ .irq = IRQ_MMP2_##_irq, \ .start = _start, \ .size = _size, \ .dma = { _dma }, \ } extern int pxa_register_device(struct pxa_device_desc *, void *, size_t); extern int pxa_usb_phy_init(void __iomem *phy_reg); extern void pxa_usb_phy_deinit(void __iomem *phy_reg); #endif /* __MACH_DEVICE_H */