aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2008-07-11 19:04:45 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-07-16 18:57:47 -0400
commitd87eb12785c14de1586e3bad86ca2c0991300339 (patch)
tree9caa5a958d88910049a03bbfbd1a8a3367b6332b /drivers/net/gianfar.h
parent7e1cc9c55a2a4af62f30fade62fb612a243def39 (diff)
gianfar: Add magic packet and suspend/resume support.
Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r--drivers/net/gianfar.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h
index 27f37c81e52c..5ee518a8782b 100644
--- a/drivers/net/gianfar.h
+++ b/drivers/net/gianfar.h
@@ -168,6 +168,7 @@ extern const char gfar_driver_version[];
168#define MACCFG2_GMII 0x00000200 168#define MACCFG2_GMII 0x00000200
169#define MACCFG2_HUGEFRAME 0x00000020 169#define MACCFG2_HUGEFRAME 0x00000020
170#define MACCFG2_LENGTHCHECK 0x00000010 170#define MACCFG2_LENGTHCHECK 0x00000010
171#define MACCFG2_MPEN 0x00000008
171 172
172#define ECNTRL_INIT_SETTINGS 0x00001000 173#define ECNTRL_INIT_SETTINGS 0x00001000
173#define ECNTRL_TBI_MODE 0x00000020 174#define ECNTRL_TBI_MODE 0x00000020
@@ -240,6 +241,7 @@ extern const char gfar_driver_version[];
240#define IEVENT_CRL 0x00020000 241#define IEVENT_CRL 0x00020000
241#define IEVENT_XFUN 0x00010000 242#define IEVENT_XFUN 0x00010000
242#define IEVENT_RXB0 0x00008000 243#define IEVENT_RXB0 0x00008000
244#define IEVENT_MAG 0x00000800
243#define IEVENT_GRSC 0x00000100 245#define IEVENT_GRSC 0x00000100
244#define IEVENT_RXF0 0x00000080 246#define IEVENT_RXF0 0x00000080
245#define IEVENT_FIR 0x00000008 247#define IEVENT_FIR 0x00000008
@@ -252,7 +254,8 @@ extern const char gfar_driver_version[];
252#define IEVENT_ERR_MASK \ 254#define IEVENT_ERR_MASK \
253(IEVENT_RXC | IEVENT_BSY | IEVENT_EBERR | IEVENT_MSRO | \ 255(IEVENT_RXC | IEVENT_BSY | IEVENT_EBERR | IEVENT_MSRO | \
254 IEVENT_BABT | IEVENT_TXC | IEVENT_TXE | IEVENT_LC \ 256 IEVENT_BABT | IEVENT_TXC | IEVENT_TXE | IEVENT_LC \
255 | IEVENT_CRL | IEVENT_XFUN | IEVENT_DPE | IEVENT_PERR) 257 | IEVENT_CRL | IEVENT_XFUN | IEVENT_DPE | IEVENT_PERR \
258 | IEVENT_MAG)
256 259
257#define IMASK_INIT_CLEAR 0x00000000 260#define IMASK_INIT_CLEAR 0x00000000
258#define IMASK_BABR 0x80000000 261#define IMASK_BABR 0x80000000
@@ -270,6 +273,7 @@ extern const char gfar_driver_version[];
270#define IMASK_CRL 0x00020000 273#define IMASK_CRL 0x00020000
271#define IMASK_XFUN 0x00010000 274#define IMASK_XFUN 0x00010000
272#define IMASK_RXB0 0x00008000 275#define IMASK_RXB0 0x00008000
276#define IMASK_MAG 0x00000800
273#define IMASK_GTSC 0x00000100 277#define IMASK_GTSC 0x00000100
274#define IMASK_RXFEN0 0x00000080 278#define IMASK_RXFEN0 0x00000080
275#define IMASK_FIR 0x00000008 279#define IMASK_FIR 0x00000008
@@ -737,10 +741,14 @@ struct gfar_private {
737 unsigned int fifo_starve; 741 unsigned int fifo_starve;
738 unsigned int fifo_starve_off; 742 unsigned int fifo_starve_off;
739 743
744 /* Bitfield update lock */
745 spinlock_t bflock;
746
740 unsigned char vlan_enable:1, 747 unsigned char vlan_enable:1,
741 rx_csum_enable:1, 748 rx_csum_enable:1,
742 extended_hash:1, 749 extended_hash:1,
743 bd_stash_en:1; 750 bd_stash_en:1,
751 wol_en:1; /* Wake-on-LAN enabled */
744 unsigned short padding; 752 unsigned short padding;
745 753
746 unsigned int interruptTransmit; 754 unsigned int interruptTransmit;