diff options
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index ac4a92e08c09..0a0483ce21d2 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -1025,6 +1025,10 @@ struct gfar_priv_grp { | |||
1025 | char int_name_er[GFAR_INT_NAME_MAX]; | 1025 | char int_name_er[GFAR_INT_NAME_MAX]; |
1026 | }; | 1026 | }; |
1027 | 1027 | ||
1028 | enum gfar_errata { | ||
1029 | GFAR_ERRATA_74 = 0x01, | ||
1030 | }; | ||
1031 | |||
1028 | /* Struct stolen almost completely (and shamelessly) from the FCC enet source | 1032 | /* Struct stolen almost completely (and shamelessly) from the FCC enet source |
1029 | * (Ok, that's not so true anymore, but there is a family resemblence) | 1033 | * (Ok, that's not so true anymore, but there is a family resemblence) |
1030 | * The GFAR buffer descriptors track the ring buffers. The rx_bd_base | 1034 | * The GFAR buffer descriptors track the ring buffers. The rx_bd_base |
@@ -1049,6 +1053,7 @@ struct gfar_private { | |||
1049 | struct device_node *node; | 1053 | struct device_node *node; |
1050 | struct net_device *ndev; | 1054 | struct net_device *ndev; |
1051 | struct of_device *ofdev; | 1055 | struct of_device *ofdev; |
1056 | enum gfar_errata errata; | ||
1052 | 1057 | ||
1053 | struct gfar_priv_grp gfargrp[MAXGROUPS]; | 1058 | struct gfar_priv_grp gfargrp[MAXGROUPS]; |
1054 | struct gfar_priv_tx_q *tx_queue[MAX_TX_QS]; | 1059 | struct gfar_priv_tx_q *tx_queue[MAX_TX_QS]; |
@@ -1111,6 +1116,12 @@ struct gfar_private { | |||
1111 | extern unsigned int ftp_rqfpr[MAX_FILER_IDX + 1]; | 1116 | extern unsigned int ftp_rqfpr[MAX_FILER_IDX + 1]; |
1112 | extern unsigned int ftp_rqfcr[MAX_FILER_IDX + 1]; | 1117 | extern unsigned int ftp_rqfcr[MAX_FILER_IDX + 1]; |
1113 | 1118 | ||
1119 | static inline int gfar_has_errata(struct gfar_private *priv, | ||
1120 | enum gfar_errata err) | ||
1121 | { | ||
1122 | return priv->errata & err; | ||
1123 | } | ||
1124 | |||
1114 | static inline u32 gfar_read(volatile unsigned __iomem *addr) | 1125 | static inline u32 gfar_read(volatile unsigned __iomem *addr) |
1115 | { | 1126 | { |
1116 | u32 val; | 1127 | u32 val; |