patch-2.1.29 linux/drivers/sbus/audio/amd7930.h
Next file: linux/drivers/sbus/audio/audio.c
Previous file: linux/drivers/sbus/audio/amd7930.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Wed Mar 5 17:04:32 1997
- Orig file:
v2.1.28/linux/drivers/sbus/audio/amd7930.h
- Orig date:
Thu Dec 19 01:03:35 1996
diff -u --recursive --new-file v2.1.28/linux/drivers/sbus/audio/amd7930.h linux/drivers/sbus/audio/amd7930.h
@@ -16,7 +16,6 @@
#include <linux/types.h>
/* Register interface presented to the CPU by the amd7930. */
-
struct amd7930
{
__volatile__ __u8 cr; /* Command Register (W) */
@@ -33,6 +32,22 @@
__volatile__ __u8 dsr2; /* D-channel Status Register 2 (R) */
};
+
+/* Indirect registers in the Main Audio Processor. */
+struct amd7930_map {
+ __u16 x[8];
+ __u16 r[8];
+ __u16 gx;
+ __u16 gr;
+ __u16 ger;
+ __u16 stgr;
+ __u16 ftgr;
+ __u16 atgr;
+ __u8 mmr1;
+ __u8 mmr2;
+};
+
+
/* The amd7930 has "indirect registers" which are accessed by writing
* the register number into the Command Register and then reading or
* writing values from the Data Register as appropriate. We define the
@@ -84,7 +99,7 @@
#define AMR_MAP_GX 0x63
#define AMR_MAP_GR 0x64
#define AMR_MAP_GER 0x65
-#define AMR_MAP_STG 0x66
+#define AMR_MAP_STGR 0x66
#define AMR_MAP_FTGR_1_2 0x67
#define AMR_MAP_ATGR_1_2 0x68
#define AMR_MAP_MMR1 0x69
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov