diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-12 02:20:03 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-12 02:20:03 +0000 |
commit | 1fe5c30a807d29b9e76a8fd7d4c6a4b87dc6cdea (patch) | |
tree | 720a9cfb086c058f2f7b9a07aa2ebbf1abd2f948 | |
parent | ce4e2549d36e85f6ae036cf3e0772172c742b0a7 (diff) | |
download | nuttx-1fe5c30a807d29b9e76a8fd7d4c6a4b87dc6cdea.tar.gz nuttx-1fe5c30a807d29b9e76a8fd7d4c6a4b87dc6cdea.tar.bz2 nuttx-1fe5c30a807d29b9e76a8fd7d4c6a4b87dc6cdea.zip |
Add MDC clock divisors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1446 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/arch/z80/src/ez80/ez80f91_emac.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80f91_emac.h b/nuttx/arch/z80/src/ez80/ez80f91_emac.h index be8d08e9f..4684b7801 100644 --- a/nuttx/arch/z80/src/ez80/ez80f91_emac.h +++ b/nuttx/arch/z80/src/ez80/ez80f91_emac.h @@ -90,6 +90,13 @@ /* EMAC MII management register bit settings ****************************************/ #define EMAC_MIIMGMT_CLKMASK 0x07 /* Bits 0-2: Divisor that produces MDC from SCLK */ +# define EMAC_MDC_DIV4 0x01 /* MDC = SCLK / 4 */ +# define EMAC_MDC_DIV6 0x02 /* MDC = SCLK / 6 */ +# define EMAC_MDC_DIV8 0x03 /* MDC = SCLK / 8 */ +# define EMAC_MDC_DIV10 0x04 /* MDC = SCLK / 10 */ +# define EMAC_MDC_DIV14 0x05 /* MDC = SCLK / 14 */ +# define EMAC_MDC_DIV20 0x06 /* MDC = SCLK / 20 */ +# define EMAC_MDC_DIV28 0x07 /* MDC = SCLK / 28 */ #define EMAC_MIIMGMT_SPRE 0x08 /* Bit 3: 1=Suppress MDO preamble */ #define EMAC_MIIMGMT_SCAN 0x10 /* Bit 4: 1=Perform continus read cycles */ #define EMAC_MIIMGMT_SCINC 0x20 /* Bit 5: 1=Increment PHY address on scan cycle */ @@ -240,7 +247,7 @@ /* EMAC descriptor structure (7 bytes) */ #ifndef __ASSEMBLY__ -struct emac_desc_s +struct ez80emac_desc_s { uint24 np; /* Pointer to the start of the next packet */ uint16 pktsize; /* Number of bytes in the packet, including the 4 CRC |