Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91582
b: refs/heads/master
c: e24e788
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart authored and Kumar Gala committed Apr 17, 2008
1 parent a5efbc9 commit 30b56bc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 872a15deed2f6c2dc14353a6109adde99cfee690
refs/heads/master: e24e788abe0def81341fd23efae43e813678f7b1
14 changes: 14 additions & 0 deletions trunk/include/asm-powerpc/cpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
#include <linux/compiler.h>
#include <linux/types.h>

/* Opcodes common to CPM1 and CPM2
*/
#define CPM_CR_INIT_TRX ((ushort)0x0000)
#define CPM_CR_INIT_RX ((ushort)0x0001)
#define CPM_CR_INIT_TX ((ushort)0x0002)
#define CPM_CR_HUNT_MODE ((ushort)0x0003)
#define CPM_CR_STOP_TX ((ushort)0x0004)
#define CPM_CR_GRA_STOP_TX ((ushort)0x0005)
#define CPM_CR_RESTART_TX ((ushort)0x0006)
#define CPM_CR_CLOSE_RX_BD ((ushort)0x0007)
#define CPM_CR_SET_GADDR ((ushort)0x0008)
#define CPM_CR_SET_TIMER ((ushort)0x0008)
#define CPM_CR_STOP_IDMA ((ushort)0x000b)

/* Buffer descriptors used by many of the CPM protocols. */
typedef struct cpm_buf_desc {
ushort cbd_sc; /* Status and Control */
Expand Down
13 changes: 0 additions & 13 deletions trunk/include/asm-powerpc/cpm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@
#define CPM_CR_CHAN ((ushort)0x00f0)
#define CPM_CR_FLG ((ushort)0x0001)

/* Some commands (there are more...later)
*/
#define CPM_CR_INIT_TRX ((ushort)0x0000)
#define CPM_CR_INIT_RX ((ushort)0x0001)
#define CPM_CR_INIT_TX ((ushort)0x0002)
#define CPM_CR_HUNT_MODE ((ushort)0x0003)
#define CPM_CR_STOP_TX ((ushort)0x0004)
#define CPM_CR_GRA_STOP_TX ((ushort)0x0005)
#define CPM_CR_RESTART_TX ((ushort)0x0006)
#define CPM_CR_CLOSE_RX_BD ((ushort)0x0007)
#define CPM_CR_SET_GADDR ((ushort)0x0008)
#define CPM_CR_SET_TIMER CPM_CR_SET_GADDR

/* Channel numbers.
*/
#define CPM_CR_CH_SCC1 ((ushort)0x0000)
Expand Down
11 changes: 1 addition & 10 deletions trunk/include/asm-powerpc/cpm2.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,9 @@

#define CPM_CR_FCC_PAGE(x) (x + 0x04)

/* Some opcodes (there are more...later)
/* CPM2-specific opcodes (see cpm.h for common opcodes)
*/
#define CPM_CR_INIT_TRX ((ushort)0x0000)
#define CPM_CR_INIT_RX ((ushort)0x0001)
#define CPM_CR_INIT_TX ((ushort)0x0002)
#define CPM_CR_HUNT_MODE ((ushort)0x0003)
#define CPM_CR_STOP_TX ((ushort)0x0004)
#define CPM_CR_GRA_STOP_TX ((ushort)0x0005)
#define CPM_CR_RESTART_TX ((ushort)0x0006)
#define CPM_CR_SET_GADDR ((ushort)0x0008)
#define CPM_CR_START_IDMA ((ushort)0x0009)
#define CPM_CR_STOP_IDMA ((ushort)0x000b)

#define mk_cr_cmd(PG, SBC, MCN, OP) \
((PG << 26) | (SBC << 21) | (MCN << 6) | OP)
Expand Down

0 comments on commit 30b56bc

Please sign in to comment.