aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-11-20 21:14:12 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-20 21:14:12 -0800
commit5cdcb6b7acc78139a3054cad543423249dfd4e00 (patch)
tree0b6a914c1dc29d8105795fa1a3a09f717b14c66c /sound
parent6b9fba51129841e04eb6e4a0dc504da3226ca232 (diff)
downloadhistory-5cdcb6b7acc78139a3054cad543423249dfd4e00.tar.gz
[PATCH] sound/oss iomem annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/oss/btaudio.c2
-rw-r--r--sound/oss/cs4281/cs4281m.c3
-rw-r--r--sound/oss/cs46xx.c14
-rw-r--r--sound/oss/i810_audio.c4
-rw-r--r--sound/oss/kahlua.c2
-rw-r--r--sound/oss/nm256.h10
-rw-r--r--sound/oss/nm256_audio.c2
-rw-r--r--sound/oss/rme96xx.c2
-rw-r--r--sound/oss/ymfpci.h2
9 files changed, 21 insertions, 20 deletions
diff --git a/sound/oss/btaudio.c b/sound/oss/btaudio.c
index 0d76e7889202d2..67f8652d018fc7 100644
--- a/sound/oss/btaudio.c
+++ b/sound/oss/btaudio.c
@@ -104,7 +104,7 @@ struct btaudio {
struct pci_dev *pci;
unsigned int irq;
unsigned long mem;
- unsigned long *mmio;
+ unsigned long __iomem *mmio;
/* locking */
int users;
diff --git a/sound/oss/cs4281/cs4281m.c b/sound/oss/cs4281/cs4281m.c
index dca843bba94b65..947e5f9ee15cd2 100644
--- a/sound/oss/cs4281/cs4281m.c
+++ b/sound/oss/cs4281/cs4281m.c
@@ -221,7 +221,8 @@ struct cs4281_state {
// hardware resources
unsigned int pBA0phys, pBA1phys;
- char *pBA0, *pBA1;
+ char __iomem *pBA0;
+ char __iomem *pBA1;
unsigned int irq;
// mixer registers
diff --git a/sound/oss/cs46xx.c b/sound/oss/cs46xx.c
index 0d8f799bf73ccf..a4141e3c02b01c 100644
--- a/sound/oss/cs46xx.c
+++ b/sound/oss/cs46xx.c
@@ -346,17 +346,17 @@ struct cs_card {
u32 irq;
/* mappings */
- void *ba0;
+ void __iomem *ba0;
union
{
struct
{
- u8 *data0;
- u8 *data1;
- u8 *pmem;
- u8 *reg;
+ u8 __iomem *data0;
+ u8 __iomem *data1;
+ u8 __iomem *pmem;
+ u8 __iomem *reg;
} name;
- u8 *idx[4];
+ u8 __iomem *idx[4];
} ba1;
/* Function support */
@@ -4309,7 +4309,7 @@ static int __init cs_ac97_init(struct cs_card *card)
static void cs461x_download_image(struct cs_card *card)
{
unsigned i, j, temp1, temp2, offset, count;
- unsigned char *pBA1 = ioremap(card->ba1_addr, 0x40000);
+ unsigned char __iomem *pBA1 = ioremap(card->ba1_addr, 0x40000);
for( i=0; i < CLEAR__COUNT; i++)
{
offset = ClrStat[i].BA1__DestByteOffset;
diff --git a/sound/oss/i810_audio.c b/sound/oss/i810_audio.c
index f49a80b8b337a4..07f575d9053dac 100644
--- a/sound/oss/i810_audio.c
+++ b/sound/oss/i810_audio.c
@@ -429,8 +429,8 @@ struct i810_card {
unsigned long ac97base_mmio_phys;
unsigned long iobase_mmio_phys;
- u_int8_t *ac97base_mmio;
- u_int8_t *iobase_mmio;
+ u_int8_t __iomem *ac97base_mmio;
+ u_int8_t __iomem *iobase_mmio;
int use_mmio;
diff --git a/sound/oss/kahlua.c b/sound/oss/kahlua.c
index 3d1d6368043b37..808c5ef969be02 100644
--- a/sound/oss/kahlua.c
+++ b/sound/oss/kahlua.c
@@ -56,7 +56,7 @@ static int __devinit probe_one(struct pci_dev *pdev, const struct pci_device_id
{
struct address_info *hw_config;
unsigned long base;
- void *mem;
+ void __iomem *mem;
unsigned long io;
u16 map;
u8 irq, dma8, dma16;
diff --git a/sound/oss/nm256.h b/sound/oss/nm256.h
index 583004ef0aa173..eae7d99d682630 100644
--- a/sound/oss/nm256.h
+++ b/sound/oss/nm256.h
@@ -60,7 +60,7 @@ struct nm256_info
/* Physical address of the port. */
u32 physaddr;
/* Our mapped-in pointer. */
- char *ptr;
+ char __iomem *ptr;
/* PTR's offset within the physical port. */
u32 start_offset;
/* And the offset of the end of the buffer. */
@@ -233,14 +233,14 @@ extern int nm256_debug;
static inline int nm256_writePort##X (struct nm256_info *card,\
int port, int offset, int value)\
{\
- u##X *addr;\
+ u##X __iomem *addr;\
\
if (nm256_debug > 1)\
printk (KERN_DEBUG "Writing 0x%x to %d:0x%x\n", value, port, offset);\
\
NM_FIX_PORT;\
\
- addr = (u##X *)(card->port[port - 1].ptr + offset);\
+ addr = (u##X __iomem *)(card->port[port - 1].ptr + offset);\
func (value, addr);\
return 0;\
}
@@ -253,11 +253,11 @@ DEFwritePortX (32, writel)
static inline u##X nm256_readPort##X (struct nm256_info *card,\
int port, int offset)\
{\
- u##X *addr;\
+ u##X __iomem *addr;\
\
NM_FIX_PORT\
\
- addr = (u##X *)(card->port[port - 1].ptr + offset);\
+ addr = (u##X __iomem *)(card->port[port - 1].ptr + offset);\
return func(addr);\
}
diff --git a/sound/oss/nm256_audio.c b/sound/oss/nm256_audio.c
index ca763f8e71b773..228ce6a00bc825 100644
--- a/sound/oss/nm256_audio.c
+++ b/sound/oss/nm256_audio.c
@@ -1011,7 +1011,7 @@ nm256_peek_for_sig (struct nm256_info *card)
u32 port1offset
= card->port[0].physaddr + card->port[0].end_offset - 0x0400;
/* The signature is located 1K below the end of video RAM. */
- char *temp = ioremap_nocache (port1offset, 16);
+ char __iomem *temp = ioremap_nocache (port1offset, 16);
/* Default buffer end is 5120 bytes below the top of RAM. */
u32 default_value = card->port[0].end_offset - 0x1400;
u32 sig;
diff --git a/sound/oss/rme96xx.c b/sound/oss/rme96xx.c
index 1bb31b4d7c4277..96cc75acffffa2 100644
--- a/sound/oss/rme96xx.c
+++ b/sound/oss/rme96xx.c
@@ -273,7 +273,7 @@ typedef struct _rme96xx_info {
/* hardware settings */
int magic;
struct pci_dev * pcidev; /* pci_dev structure */
- unsigned long *iobase;
+ unsigned long __iomem *iobase;
unsigned int irq;
/* list of rme96xx devices */
diff --git a/sound/oss/ymfpci.h b/sound/oss/ymfpci.h
index 87a24f066a62df..f810a100c64145 100644
--- a/sound/oss/ymfpci.h
+++ b/sound/oss/ymfpci.h
@@ -239,7 +239,7 @@ struct ymf_capture {
struct ymf_unit {
u8 rev; /* PCI revision */
- void *reg_area_virt;
+ void __iomem *reg_area_virt;
void *dma_area_va;
dma_addr_t dma_area_ba;
unsigned int dma_area_size;