⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mcf548x_fec.h

📁 freescale MCF5485EVB开发板上中断操作示例
💻 H
📖 第 1 页 / 共 3 页
字号:
#define MCF_FEC_MMFR_ST(x)             (((x)&0x00000003)<<30)
#define MCF_FEC_MMFR_ST_01             (0x40000000)
#define MCF_FEC_MMFR_OP_READ           (0x20000000)
#define MCF_FEC_MMFR_OP_WRITE          (0x10000000)
#define MCF_FEC_MMFR_TA_10             (0x00020000)

/* Bit definitions and macros for MCF_FEC_MSCR */
#define MCF_FEC_MSCR_MII_SPEED(x)      (((x)&0x0000003F)<<1)
#define MCF_FEC_MSCR_DIS_PREAMBLE      (0x00000080)
#define MCF_FEC_MSCR_MII_SPEED_133     (0x1B<<1)
#define MCF_FEC_MSCR_MII_SPEED_120     (0x18<<1)
#define MCF_FEC_MSCR_MII_SPEED_66      (0xE<<1)
#define MCF_FEC_MSCR_MII_SPEED_60      (0xC<<1)

/* Bit definitions and macros for MCF_FEC_MIBC */
#define MCF_FEC_MIBC_MIB_IDLE          (0x40000000)
#define MCF_FEC_MIBC_MIB_DISABLE       (0x80000000)

/* Bit definitions and macros for MCF_FEC_RCR */
#define MCF_FEC_RCR_LOOP               (0x00000001)
#define MCF_FEC_RCR_DRT                (0x00000002)
#define MCF_FEC_RCR_MII_MODE           (0x00000004)
#define MCF_FEC_RCR_PROM               (0x00000008)
#define MCF_FEC_RCR_BC_REJ             (0x00000010)
#define MCF_FEC_RCR_FCE                (0x00000020)
#define MCF_FEC_RCR_MAX_FL(x)          (((x)&0x000007FF)<<16)

/* Bit definitions and macros for MCF_FEC_R_HASH */
#define MCF_FEC_R_HASH_HASH(x)         (((x)&0x0000003F)<<24)
#define MCF_FEC_R_HASH_MULTCAST        (0x40000000)
#define MCF_FEC_R_HASH_FCE_DC          (0x80000000)

/* Bit definitions and macros for MCF_FEC_TCR */
#define MCF_FEC_TCR_GTS                (0x00000001)
#define MCF_FEC_TCR_HBC                (0x00000002)
#define MCF_FEC_TCR_FDEN               (0x00000004)
#define MCF_FEC_TCR_TFC_PAUSE          (0x00000008)
#define MCF_FEC_TCR_RFC_PAUSE          (0x00000010)

/* Bit definitions and macros for MCF_FEC_PAUR */
#define MCF_FEC_PAUR_TYPE(x)           (((x)&0x0000FFFF)<<0)
#define MCF_FEC_PAUR_PADDR2(x)         (((x)&0x0000FFFF)<<16)

/* Bit definitions and macros for MCF_FEC_OPD */
#define MCF_FEC_OPD_OP_PAUSE(x)        (((x)&0x0000FFFF)<<0)
#define MCF_FEC_OPD_OPCODE(x)          (((x)&0x0000FFFF)<<16)

/* Bit definitions and macros for MCF_FEC_FECTFWR */
#define MCF_FEC_FECTFWR_X_WMRK(x)      (((x)&0x0000000F)<<0)
#define MCF_FEC_FECTFWR_X_WMRK_64      (0x00000000)
#define MCF_FEC_FECTFWR_X_WMRK_128     (0x00000001)
#define MCF_FEC_FECTFWR_X_WMRK_192     (0x00000002)
#define MCF_FEC_FECTFWR_X_WMRK_256     (0x00000003)
#define MCF_FEC_FECTFWR_X_WMRK_320     (0x00000004)
#define MCF_FEC_FECTFWR_X_WMRK_384     (0x00000005)
#define MCF_FEC_FECTFWR_X_WMRK_448     (0x00000006)
#define MCF_FEC_FECTFWR_X_WMRK_512     (0x00000007)
#define MCF_FEC_FECTFWR_X_WMRK_576     (0x00000008)
#define MCF_FEC_FECTFWR_X_WMRK_640     (0x00000009)
#define MCF_FEC_FECTFWR_X_WMRK_704     (0x0000000A)
#define MCF_FEC_FECTFWR_X_WMRK_768     (0x0000000B)
#define MCF_FEC_FECTFWR_X_WMRK_832     (0x0000000C)
#define MCF_FEC_FECTFWR_X_WMRK_896     (0x0000000D)
#define MCF_FEC_FECTFWR_X_WMRK_960     (0x0000000E)
#define MCF_FEC_FECTFWR_X_WMRK_1024    (0x0000000F)

/* Bit definitions and macros for MCF_FEC_FECRFSR */
#define MCF_FEC_FECRFSR_EMT            (0x00010000)
#define MCF_FEC_FECRFSR_ALARM          (0x00020000)
#define MCF_FEC_FECRFSR_FU             (0x00040000)
#define MCF_FEC_FECRFSR_FR             (0x00080000)
#define MCF_FEC_FECRFSR_OF             (0x00100000)
#define MCF_FEC_FECRFSR_UF             (0x00200000)
#define MCF_FEC_FECRFSR_RXW            (0x00400000)
#define MCF_FEC_FECRFSR_FAE            (0x00800000)
#define MCF_FEC_FECRFSR_FRM(x)         (((x)&0x0000000F)<<24)
#define MCF_FEC_FECRFSR_IP             (0x80000000)

/* Bit definitions and macros for MCF_FEC_FECRFCR */
#define MCF_FEC_FECRFCR_COUNTER(x)     (((x)&0x0000FFFF)<<0)
#define MCF_FEC_FECRFCR_OF_MSK         (0x00080000)
#define MCF_FEC_FECRFCR_UF_MSK         (0x00100000)
#define MCF_FEC_FECRFCR_RXW_MSK        (0x00200000)
#define MCF_FEC_FECRFCR_FAE_MSK        (0x00400000)
#define MCF_FEC_FECRFCR_IP_MSK         (0x00800000)
#define MCF_FEC_FECRFCR_GR(x)          (((x)&0x00000007)<<24)
#define MCF_FEC_FECRFCR_FRM            (0x08000000)
#define MCF_FEC_FECRFCR_TIMER          (0x10000000)
#define MCF_FEC_FECRFCR_WFR            (0x20000000)
#define MCF_FEC_FECRFCR_WCTL           (0x40000000)

/* Bit definitions and macros for MCF_FEC_FECRLRFP */
#define MCF_FEC_FECRLRFP_LRFP(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECRLWFP */
#define MCF_FEC_FECRLWFP_LWFP(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECRFAR */
#define MCF_FEC_FECRFAR_ALARM(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECRFRP */
#define MCF_FEC_FECRFRP_READ(x)        (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECRFWP */
#define MCF_FEC_FECRFWP_WRITE(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECTFDR */
#define MCF_FEC_FECTFDR_TFCW_TC        (0x04000000)
#define MCF_FEC_FECTFDR_TFCW_ABC       (0x02000000)

/* Bit definitions and macros for MCF_FEC_FECTFSR */
#define MCF_FEC_FECTFSR_EMT            (0x00010000)
#define MCF_FEC_FECTFSR_ALARM          (0x00020000)
#define MCF_FEC_FECTFSR_FU             (0x00040000)
#define MCF_FEC_FECTFSR_FR             (0x00080000)
#define MCF_FEC_FECTFSR_OF             (0x00100000)
#define MCF_FEC_FECTFSR_UP             (0x00200000)
#define MCF_FEC_FECTFSR_FAE            (0x00800000)
#define MCF_FEC_FECTFSR_FRM(x)         (((x)&0x0000000F)<<24)
#define MCF_FEC_FECTFSR_IP             (0x80000000)

/* Bit definitions and macros for MCF_FEC_FECTFCR */
#define MCF_FEC_FECTFCR_RESERVED       (0x00200000)
#define MCF_FEC_FECTFCR_COUNTER(x)     (((x)&0x0000FFFF)<<0|0x00200000)
#define MCF_FEC_FECTFCR_OF_MSK         (0x00280000)
#define MCF_FEC_FECTFCR_UF_MSK         (0x00300000)
#define MCF_FEC_FECTFCR_FAE_MSK        (0x00600000)
#define MCF_FEC_FECTFCR_IP_MSK         (0x00A00000)
#define MCF_FEC_FECTFCR_GR(x)          (((x)&0x00000007)<<24|0x00200000)
#define MCF_FEC_FECTFCR_FRM            (0x08200000)
#define MCF_FEC_FECTFCR_TIMER          (0x10200000)
#define MCF_FEC_FECTFCR_WFR            (0x20200000)
#define MCF_FEC_FECTFCR_WCTL           (0x40200000)

/* Bit definitions and macros for MCF_FEC_FECTLRFP */
#define MCF_FEC_FECTLRFP_LRFP(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECTLWFP */
#define MCF_FEC_FECTLWFP_LWFP(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECTFAR */
#define MCF_FEC_FECTFAR_ALARM(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECTFRP */
#define MCF_FEC_FECTFRP_READ(x)        (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FECTFWP */
#define MCF_FEC_FECTFWP_WRITE(x)       (((x)&0x00000FFF)<<0)

/* Bit definitions and macros for MCF_FEC_FRST */
#define MCF_FEC_FRST_RST_CTL           (0x01000000)
#define MCF_FEC_FRST_SW_RST            (0x02000000)

/* Bit definitions and macros for MCF_FEC_CTCWR */
#define MCF_FEC_CTCWR_TFCW             (0x01000000)
#define MCF_FEC_CTCWR_CRC              (0x02000000)

/********************************************************************/

#endif /* __MCF548X_FEC_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -