summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/cpm2.h
diff options
context:
space:
mode:
authorHeiko Schocher2008-08-26 03:20:53 +0200
committerJeff Garzik2008-08-27 11:16:38 +0200
commitf4f62301c6f42127b7462274abfcbc278f84d59a (patch)
treea14dae94a6cbcdaf244e610725fe52aee74fa9ca /arch/powerpc/include/asm/cpm2.h
parentigb: fix setting the number of tx queues (diff)
downloadkernel-qcow2-linux-f4f62301c6f42127b7462274abfcbc278f84d59a.tar.gz
kernel-qcow2-linux-f4f62301c6f42127b7462274abfcbc278f84d59a.tar.xz
kernel-qcow2-linux-f4f62301c6f42127b7462274abfcbc278f84d59a.zip
fs_enet: Fix SCC Ethernet on CPM2, and crash in fs_enet_rx_napi()
Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'arch/powerpc/include/asm/cpm2.h')
-rw-r--r--arch/powerpc/include/asm/cpm2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/cpm2.h b/arch/powerpc/include/asm/cpm2.h
index 2a6fa0183ac9..0f5e8ff59a85 100644
--- a/arch/powerpc/include/asm/cpm2.h
+++ b/arch/powerpc/include/asm/cpm2.h
@@ -337,6 +337,11 @@ typedef struct scc_param {
uint scc_tcrc; /* Internal */
} sccp_t;
+/* Function code bits.
+*/
+#define SCC_EB ((u_char) 0x10) /* Set big endian byte order */
+#define SCC_GBL ((u_char) 0x20) /* Snooping enabled */
+
/* CPM Ethernet through SCC1.
*/
typedef struct scc_enet {