aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-28 18:03:10 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-01 03:58:26 -0500
commit196719ecec0c526de273dcb902f0be956a193232 (patch)
treefc134667f844daf2a4015621d0f881e887e99d54 /drivers/net/fec.h
parentccdc4f198193eb4956b8dbc00745270525c4cd6e (diff)
fec: Add support for Freescale MX27
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fec.h')
-rw-r--r--drivers/net/fec.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/fec.h b/drivers/net/fec.h
index 292719dacef..76c64c92e19 100644
--- a/drivers/net/fec.h
+++ b/drivers/net/fec.h
@@ -14,7 +14,7 @@
14/****************************************************************************/ 14/****************************************************************************/
15 15
16#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ 16#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
17 defined(CONFIG_M520x) || defined(CONFIG_M532x) 17 defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARCH_MXC)
18/* 18/*
19 * Just figures, Motorola would have to change the offsets for 19 * Just figures, Motorola would have to change the offsets for
20 * registers in the same peripheral device on different models 20 * registers in the same peripheral device on different models
@@ -103,12 +103,19 @@ typedef struct fec {
103/* 103/*
104 * Define the buffer descriptor structure. 104 * Define the buffer descriptor structure.
105 */ 105 */
106#ifdef CONFIG_ARCH_MXC
107typedef struct bufdesc {
108 unsigned short cbd_datlen; /* Data length */
109 unsigned short cbd_sc; /* Control and status info */
110 unsigned long cbd_bufaddr; /* Buffer address */
111} cbd_t;
112#else
106typedef struct bufdesc { 113typedef struct bufdesc {
107 unsigned short cbd_sc; /* Control and status info */ 114 unsigned short cbd_sc; /* Control and status info */
108 unsigned short cbd_datlen; /* Data length */ 115 unsigned short cbd_datlen; /* Data length */
109 unsigned long cbd_bufaddr; /* Buffer address */ 116 unsigned long cbd_bufaddr; /* Buffer address */
110} cbd_t; 117} cbd_t;
111 118#endif
112 119
113/* 120/*
114 * The following definitions courtesy of commproc.h, which where 121 * The following definitions courtesy of commproc.h, which where