changed types to use <stdint.h>
This commit is contained in:
@@ -24,69 +24,69 @@
|
||||
*********************************************************************/
|
||||
|
||||
/* Register read/write macros */
|
||||
#define MCF_DMA_TASKBAR (*(vuint32*)(&__MBAR[0x8000]))
|
||||
#define MCF_DMA_CP (*(vuint32*)(&__MBAR[0x8004]))
|
||||
#define MCF_DMA_EP (*(vuint32*)(&__MBAR[0x8008]))
|
||||
#define MCF_DMA_VP (*(vuint32*)(&__MBAR[0x800C]))
|
||||
#define MCF_DMA_PTD (*(vuint32*)(&__MBAR[0x8010]))
|
||||
#define MCF_DMA_DIPR (*(vuint32*)(&__MBAR[0x8014]))
|
||||
#define MCF_DMA_DIMR (*(vuint32*)(&__MBAR[0x8018]))
|
||||
#define MCF_DMA_TCR0 (*(vuint16*)(&__MBAR[0x801C]))
|
||||
#define MCF_DMA_TCR1 (*(vuint16*)(&__MBAR[0x801E]))
|
||||
#define MCF_DMA_TCR2 (*(vuint16*)(&__MBAR[0x8020]))
|
||||
#define MCF_DMA_TCR3 (*(vuint16*)(&__MBAR[0x8022]))
|
||||
#define MCF_DMA_TCR4 (*(vuint16*)(&__MBAR[0x8024]))
|
||||
#define MCF_DMA_TCR5 (*(vuint16*)(&__MBAR[0x8026]))
|
||||
#define MCF_DMA_TCR6 (*(vuint16*)(&__MBAR[0x8028]))
|
||||
#define MCF_DMA_TCR7 (*(vuint16*)(&__MBAR[0x802A]))
|
||||
#define MCF_DMA_TCR8 (*(vuint16*)(&__MBAR[0x802C]))
|
||||
#define MCF_DMA_TCR9 (*(vuint16*)(&__MBAR[0x802E]))
|
||||
#define MCF_DMA_TCR10 (*(vuint16*)(&__MBAR[0x8030]))
|
||||
#define MCF_DMA_TCR11 (*(vuint16*)(&__MBAR[0x8032]))
|
||||
#define MCF_DMA_TCR12 (*(vuint16*)(&__MBAR[0x8034]))
|
||||
#define MCF_DMA_TCR13 (*(vuint16*)(&__MBAR[0x8036]))
|
||||
#define MCF_DMA_TCR14 (*(vuint16*)(&__MBAR[0x8038]))
|
||||
#define MCF_DMA_TCR15 (*(vuint16*)(&__MBAR[0x803A]))
|
||||
#define MCF_DMA_PRIOR0 (*(vuint8 *)(&__MBAR[0x803C]))
|
||||
#define MCF_DMA_PRIOR1 (*(vuint8 *)(&__MBAR[0x803D]))
|
||||
#define MCF_DMA_PRIOR2 (*(vuint8 *)(&__MBAR[0x803E]))
|
||||
#define MCF_DMA_PRIOR3 (*(vuint8 *)(&__MBAR[0x803F]))
|
||||
#define MCF_DMA_PRIOR4 (*(vuint8 *)(&__MBAR[0x8040]))
|
||||
#define MCF_DMA_PRIOR5 (*(vuint8 *)(&__MBAR[0x8041]))
|
||||
#define MCF_DMA_PRIOR6 (*(vuint8 *)(&__MBAR[0x8042]))
|
||||
#define MCF_DMA_PRIOR7 (*(vuint8 *)(&__MBAR[0x8043]))
|
||||
#define MCF_DMA_PRIOR8 (*(vuint8 *)(&__MBAR[0x8044]))
|
||||
#define MCF_DMA_PRIOR9 (*(vuint8 *)(&__MBAR[0x8045]))
|
||||
#define MCF_DMA_PRIOR10 (*(vuint8 *)(&__MBAR[0x8046]))
|
||||
#define MCF_DMA_PRIOR11 (*(vuint8 *)(&__MBAR[0x8047]))
|
||||
#define MCF_DMA_PRIOR12 (*(vuint8 *)(&__MBAR[0x8048]))
|
||||
#define MCF_DMA_PRIOR13 (*(vuint8 *)(&__MBAR[0x8049]))
|
||||
#define MCF_DMA_PRIOR14 (*(vuint8 *)(&__MBAR[0x804A]))
|
||||
#define MCF_DMA_PRIOR15 (*(vuint8 *)(&__MBAR[0x804B]))
|
||||
#define MCF_DMA_PRIOR16 (*(vuint8 *)(&__MBAR[0x804C]))
|
||||
#define MCF_DMA_PRIOR17 (*(vuint8 *)(&__MBAR[0x804D]))
|
||||
#define MCF_DMA_PRIOR18 (*(vuint8 *)(&__MBAR[0x804E]))
|
||||
#define MCF_DMA_PRIOR19 (*(vuint8 *)(&__MBAR[0x804F]))
|
||||
#define MCF_DMA_PRIOR20 (*(vuint8 *)(&__MBAR[0x8050]))
|
||||
#define MCF_DMA_PRIOR21 (*(vuint8 *)(&__MBAR[0x8051]))
|
||||
#define MCF_DMA_PRIOR22 (*(vuint8 *)(&__MBAR[0x8052]))
|
||||
#define MCF_DMA_PRIOR23 (*(vuint8 *)(&__MBAR[0x8053]))
|
||||
#define MCF_DMA_PRIOR24 (*(vuint8 *)(&__MBAR[0x8054]))
|
||||
#define MCF_DMA_PRIOR25 (*(vuint8 *)(&__MBAR[0x8055]))
|
||||
#define MCF_DMA_PRIOR26 (*(vuint8 *)(&__MBAR[0x8056]))
|
||||
#define MCF_DMA_PRIOR27 (*(vuint8 *)(&__MBAR[0x8057]))
|
||||
#define MCF_DMA_PRIOR28 (*(vuint8 *)(&__MBAR[0x8058]))
|
||||
#define MCF_DMA_PRIOR29 (*(vuint8 *)(&__MBAR[0x8059]))
|
||||
#define MCF_DMA_PRIOR30 (*(vuint8 *)(&__MBAR[0x805A]))
|
||||
#define MCF_DMA_PRIOR31 (*(vuint8 *)(&__MBAR[0x805B]))
|
||||
#define MCF_DMA_IMCR (*(vuint32*)(&__MBAR[0x805C]))
|
||||
#define MCF_DMA_TSKSZ0 (*(vuint32*)(&__MBAR[0x8060]))
|
||||
#define MCF_DMA_TSKSZ1 (*(vuint32*)(&__MBAR[0x8064]))
|
||||
#define MCF_DMA_DBGCOMP0 (*(vuint32*)(&__MBAR[0x8070]))
|
||||
#define MCF_DMA_DBGCOMP2 (*(vuint32*)(&__MBAR[0x8074]))
|
||||
#define MCF_DMA_DBGCTL (*(vuint32*)(&__MBAR[0x8078]))
|
||||
#define MCF_DMA_TCR(x) (*(vuint16*)(&__MBAR[0x801C + ((x)*0x2)]))
|
||||
#define MCF_DMA_PRIOR(x) (*(vuint8 *)(&__MBAR[0x803C + ((x)*0x1)]))
|
||||
#define MCF_DMA_TASKBAR (*(volatile uint32_t*)(&__MBAR[0x8000]))
|
||||
#define MCF_DMA_CP (*(volatile uint32_t*)(&__MBAR[0x8004]))
|
||||
#define MCF_DMA_EP (*(volatile uint32_t*)(&__MBAR[0x8008]))
|
||||
#define MCF_DMA_VP (*(volatile uint32_t*)(&__MBAR[0x800C]))
|
||||
#define MCF_DMA_PTD (*(volatile uint32_t*)(&__MBAR[0x8010]))
|
||||
#define MCF_DMA_DIPR (*(volatile uint32_t*)(&__MBAR[0x8014]))
|
||||
#define MCF_DMA_DIMR (*(volatile uint32_t*)(&__MBAR[0x8018]))
|
||||
#define MCF_DMA_TCR0 (*(volatile uint16_t*)(&__MBAR[0x801C]))
|
||||
#define MCF_DMA_TCR1 (*(volatile uint16_t*)(&__MBAR[0x801E]))
|
||||
#define MCF_DMA_TCR2 (*(volatile uint16_t*)(&__MBAR[0x8020]))
|
||||
#define MCF_DMA_TCR3 (*(volatile uint16_t*)(&__MBAR[0x8022]))
|
||||
#define MCF_DMA_TCR4 (*(volatile uint16_t*)(&__MBAR[0x8024]))
|
||||
#define MCF_DMA_TCR5 (*(volatile uint16_t*)(&__MBAR[0x8026]))
|
||||
#define MCF_DMA_TCR6 (*(volatile uint16_t*)(&__MBAR[0x8028]))
|
||||
#define MCF_DMA_TCR7 (*(volatile uint16_t*)(&__MBAR[0x802A]))
|
||||
#define MCF_DMA_TCR8 (*(volatile uint16_t*)(&__MBAR[0x802C]))
|
||||
#define MCF_DMA_TCR9 (*(volatile uint16_t*)(&__MBAR[0x802E]))
|
||||
#define MCF_DMA_TCR10 (*(volatile uint16_t*)(&__MBAR[0x8030]))
|
||||
#define MCF_DMA_TCR11 (*(volatile uint16_t*)(&__MBAR[0x8032]))
|
||||
#define MCF_DMA_TCR12 (*(volatile uint16_t*)(&__MBAR[0x8034]))
|
||||
#define MCF_DMA_TCR13 (*(volatile uint16_t*)(&__MBAR[0x8036]))
|
||||
#define MCF_DMA_TCR14 (*(volatile uint16_t*)(&__MBAR[0x8038]))
|
||||
#define MCF_DMA_TCR15 (*(volatile uint16_t*)(&__MBAR[0x803A]))
|
||||
#define MCF_DMA_PRIOR0 (*(volatile uint8_t *)(&__MBAR[0x803C]))
|
||||
#define MCF_DMA_PRIOR1 (*(volatile uint8_t *)(&__MBAR[0x803D]))
|
||||
#define MCF_DMA_PRIOR2 (*(volatile uint8_t *)(&__MBAR[0x803E]))
|
||||
#define MCF_DMA_PRIOR3 (*(volatile uint8_t *)(&__MBAR[0x803F]))
|
||||
#define MCF_DMA_PRIOR4 (*(volatile uint8_t *)(&__MBAR[0x8040]))
|
||||
#define MCF_DMA_PRIOR5 (*(volatile uint8_t *)(&__MBAR[0x8041]))
|
||||
#define MCF_DMA_PRIOR6 (*(volatile uint8_t *)(&__MBAR[0x8042]))
|
||||
#define MCF_DMA_PRIOR7 (*(volatile uint8_t *)(&__MBAR[0x8043]))
|
||||
#define MCF_DMA_PRIOR8 (*(volatile uint8_t *)(&__MBAR[0x8044]))
|
||||
#define MCF_DMA_PRIOR9 (*(volatile uint8_t *)(&__MBAR[0x8045]))
|
||||
#define MCF_DMA_PRIOR10 (*(volatile uint8_t *)(&__MBAR[0x8046]))
|
||||
#define MCF_DMA_PRIOR11 (*(volatile uint8_t *)(&__MBAR[0x8047]))
|
||||
#define MCF_DMA_PRIOR12 (*(volatile uint8_t *)(&__MBAR[0x8048]))
|
||||
#define MCF_DMA_PRIOR13 (*(volatile uint8_t *)(&__MBAR[0x8049]))
|
||||
#define MCF_DMA_PRIOR14 (*(volatile uint8_t *)(&__MBAR[0x804A]))
|
||||
#define MCF_DMA_PRIOR15 (*(volatile uint8_t *)(&__MBAR[0x804B]))
|
||||
#define MCF_DMA_PRIOR16 (*(volatile uint8_t *)(&__MBAR[0x804C]))
|
||||
#define MCF_DMA_PRIOR17 (*(volatile uint8_t *)(&__MBAR[0x804D]))
|
||||
#define MCF_DMA_PRIOR18 (*(volatile uint8_t *)(&__MBAR[0x804E]))
|
||||
#define MCF_DMA_PRIOR19 (*(volatile uint8_t *)(&__MBAR[0x804F]))
|
||||
#define MCF_DMA_PRIOR20 (*(volatile uint8_t *)(&__MBAR[0x8050]))
|
||||
#define MCF_DMA_PRIOR21 (*(volatile uint8_t *)(&__MBAR[0x8051]))
|
||||
#define MCF_DMA_PRIOR22 (*(volatile uint8_t *)(&__MBAR[0x8052]))
|
||||
#define MCF_DMA_PRIOR23 (*(volatile uint8_t *)(&__MBAR[0x8053]))
|
||||
#define MCF_DMA_PRIOR24 (*(volatile uint8_t *)(&__MBAR[0x8054]))
|
||||
#define MCF_DMA_PRIOR25 (*(volatile uint8_t *)(&__MBAR[0x8055]))
|
||||
#define MCF_DMA_PRIOR26 (*(volatile uint8_t *)(&__MBAR[0x8056]))
|
||||
#define MCF_DMA_PRIOR27 (*(volatile uint8_t *)(&__MBAR[0x8057]))
|
||||
#define MCF_DMA_PRIOR28 (*(volatile uint8_t *)(&__MBAR[0x8058]))
|
||||
#define MCF_DMA_PRIOR29 (*(volatile uint8_t *)(&__MBAR[0x8059]))
|
||||
#define MCF_DMA_PRIOR30 (*(volatile uint8_t *)(&__MBAR[0x805A]))
|
||||
#define MCF_DMA_PRIOR31 (*(volatile uint8_t *)(&__MBAR[0x805B]))
|
||||
#define MCF_DMA_IMCR (*(volatile uint32_t*)(&__MBAR[0x805C]))
|
||||
#define MCF_DMA_TSKSZ0 (*(volatile uint32_t*)(&__MBAR[0x8060]))
|
||||
#define MCF_DMA_TSKSZ1 (*(volatile uint32_t*)(&__MBAR[0x8064]))
|
||||
#define MCF_DMA_DBGCOMP0 (*(volatile uint32_t*)(&__MBAR[0x8070]))
|
||||
#define MCF_DMA_DBGCOMP2 (*(volatile uint32_t*)(&__MBAR[0x8074]))
|
||||
#define MCF_DMA_DBGCTL (*(volatile uint32_t*)(&__MBAR[0x8078]))
|
||||
#define MCF_DMA_TCR(x) (*(volatile uint16_t*)(&__MBAR[0x801C + ((x)*0x2)]))
|
||||
#define MCF_DMA_PRIOR(x) (*(volatile uint8_t *)(&__MBAR[0x803C + ((x)*0x1)]))
|
||||
|
||||
|
||||
/* Bit definitions and macros for MCF_DMA_TASKBAR */
|
||||
|
||||
Reference in New Issue
Block a user