[PATCH][PPC32] Adds mcc cpm commands

morten.banzon at axxessit.no morten.banzon at axxessit.no
Mon Feb 14 23:56:07 EST 2005


This patch adds mcc cpm commands to the cpm2.h file in the 2.6.10 kernel

Signed-off-by:  Morten Banzon  <morten.banzon at axxessit.no>


diff -Nru linux-2.6.10.orig/include/asm-ppc/cpm2.h 
linux-2.6.10/include/asm-ppc/cpm2.h
--- linux-2.6.10.orig/include/asm-ppc/cpm2.h    2004-12-24 
22:34:44.000000000 +0100
+++ linux-2.6.10/include/asm-ppc/cpm2.h 2005-02-14 12:22:22.000000000 
+0100
@@ -41,6 +41,7 @@
 #define CPM_CR_IDMA3_SBLOCK    (0x16)
 #define CPM_CR_IDMA4_SBLOCK    (0x17)
 #define CPM_CR_MCC1_SBLOCK     (0x1c)
+#define CPM_CR_MCC2_SBLOCK     (0x1d)
 
 #define CPM_CR_SCC1_PAGE       (0x00)
 #define CPM_CR_SCC2_PAGE       (0x01)
@@ -68,10 +69,15 @@
 #define CPM_CR_INIT_RX         ((ushort)0x0001)
 #define CPM_CR_INIT_TX         ((ushort)0x0002)
 #define CPM_CR_HUNT_MODE       ((ushort)0x0003)
+#define CPM_CR_INIT_MCC_TRX    ((ushort)0x0003)
 #define CPM_CR_STOP_TX         ((ushort)0x0004)
+#define CPM_CR_INIT_MCC_TX     ((ushort)0x0005)
+#define CPM_CR_INIT_MCC_RX     ((ushort)0x0006)
 #define CPM_CR_RESTART_TX      ((ushort)0x0006)
+#define CPM_CR_MCC_RESET       ((ushort)0x0007)
 #define CPM_CR_SET_GADDR       ((ushort)0x0008)
 #define CPM_CR_START_IDMA      ((ushort)0x0009)
+#define CPM_CR_STOP_RX         ((ushort)0x0009)
 #define CPM_CR_STOP_IDMA       ((ushort)0x000b)
 
 #define mk_cr_cmd(PG, SBC, MCN, OP) \



More information about the Linuxppc-embedded mailing list