diff options
Diffstat (limited to 'sound/aoa/soundbus/i2sbus/i2sbus.h')
-rw-r--r-- | sound/aoa/soundbus/i2sbus/i2sbus.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus.h b/sound/aoa/soundbus/i2sbus/i2sbus.h index cfa5162e3b0f..0c69d209be50 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus.h +++ b/sound/aoa/soundbus/i2sbus/i2sbus.h | |||
@@ -7,20 +7,22 @@ | |||
7 | */ | 7 | */ |
8 | #ifndef __I2SBUS_H | 8 | #ifndef __I2SBUS_H |
9 | #define __I2SBUS_H | 9 | #define __I2SBUS_H |
10 | #include <asm/dbdma.h> | ||
11 | #include <linux/interrupt.h> | 10 | #include <linux/interrupt.h> |
12 | #include <sound/pcm.h> | ||
13 | #include <linux/spinlock.h> | 11 | #include <linux/spinlock.h> |
14 | #include <linux/mutex.h> | 12 | #include <linux/mutex.h> |
13 | |||
14 | #include <sound/pcm.h> | ||
15 | |||
15 | #include <asm/prom.h> | 16 | #include <asm/prom.h> |
17 | #include <asm/pmac_feature.h> | ||
18 | #include <asm/dbdma.h> | ||
19 | |||
16 | #include "i2sbus-interface.h" | 20 | #include "i2sbus-interface.h" |
17 | #include "i2sbus-control.h" | ||
18 | #include "../soundbus.h" | 21 | #include "../soundbus.h" |
19 | 22 | ||
20 | struct i2sbus_control { | 23 | struct i2sbus_control { |
21 | volatile struct i2s_control_regs __iomem *controlregs; | ||
22 | struct resource rsrc; | ||
23 | struct list_head list; | 24 | struct list_head list; |
25 | struct macio_chip *macio; | ||
24 | }; | 26 | }; |
25 | 27 | ||
26 | #define MAX_DBDMA_COMMANDS 32 | 28 | #define MAX_DBDMA_COMMANDS 32 |
@@ -45,6 +47,12 @@ struct pcm_info { | |||
45 | volatile struct dbdma_regs __iomem *dbdma; | 47 | volatile struct dbdma_regs __iomem *dbdma; |
46 | }; | 48 | }; |
47 | 49 | ||
50 | enum { | ||
51 | aoa_resource_i2smmio = 0, | ||
52 | aoa_resource_txdbdma, | ||
53 | aoa_resource_rxdbdma, | ||
54 | }; | ||
55 | |||
48 | struct i2sbus_dev { | 56 | struct i2sbus_dev { |
49 | struct soundbus_dev sound; | 57 | struct soundbus_dev sound; |
50 | struct macio_dev *macio; | 58 | struct macio_dev *macio; |