22 #include <linux/time.h>
32 unsigned int size1, size2;
33 char buffer[256], *pbuffer;
36 size1 = size >
sizeof(
buffer) ?
sizeof(buffer) : size;
44 spin_unlock_irqrestore(&gus->
reg_lock, flags);
60 unsigned int address,
unsigned int size)
62 return snd_gus_dram_poke(gus, buffer, address, size);
65 static int snd_gus_dram_peek(
struct snd_gus_card *gus,
char __user *_buffer,
66 unsigned int address,
unsigned int size,
70 unsigned int size1, size2;
71 char buffer[256], *pbuffer;
74 size1 = size >
sizeof(
buffer) ?
sizeof(buffer) : size;
81 spin_unlock_irqrestore(&gus->
reg_lock, flags);
98 unsigned int address,
unsigned int size,
101 return snd_gus_dram_peek(gus, buffer, address, size, rom);