|
RTEMS
5.1
|
65 #ifndef __PCMCIA_IDE_h 66 #define __PCMCIA_IDE_h 70 #define GPIOPCR_ATA_CS_4_5 (1 << 24) 73 #define GET_UP_BYTE_OF_MPC5200_ATA_DRIVE_REG(val32) ((uint16_t)((val32) >> 24)) 74 #define SET_UP_BYTE_OF_MPC5200_ATA_DRIVE_REG(val8) ((uint32_t)((val8) << 24)) 75 #define GET_UP_WORD_OF_MPC5200_ATA_DRIVE_REG(val32) ((uint16_t)((val32) >> 16)) 76 #define SET_UP_WORD_OF_MPC5200_ATA_DRIVE_REG(val16) ((uint32_t)((val16) << 16)) 78 #define ATA_HCFG_SMR (1 << 31) 79 #define ATA_HCFG_FR (1 << 30) 80 #define ATA_HCFG_IORDY (1 << 24) 81 #define ATA_HCFG_IE (1 << 25) 83 #define COUNT_VAL(nsec) (((nsec) * (IPB_CLOCK / 1000000) + 999) / 1000) 95 #define ATA_PIO_TIMING_1(t0,t2_8,t2_16) (((COUNT_VAL(t0)) << 24) | ((COUNT_VAL(t2_8)) << 16) | ((COUNT_VAL(t2_16)) << 8)) 96 #define ATA_PIO_TIMING_2(t4,t1,ta) (((COUNT_VAL(t4)) << 24) | ((COUNT_VAL(t1)) << 16) | ((COUNT_VAL(ta)) << 8))