#include <linux/slab.h>
#include <linux/init.h>
#include <sound/core.h>
#include <sound/emu10k1.h>
#include "p16v.h"
static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu,
struct snd_info_buffer *buffer,
char *title,
int status_reg,
int rate_reg)
{ … }
static void snd_emu10k1_proc_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu10k1_proc_spdif_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu10k1_proc_rates_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
struct emu10k1_reg_entry { … };
static const struct emu10k1_reg_entry sblive_reg_entries[] = …;
static const struct emu10k1_reg_entry audigy_reg_entries[] = …;
static const char * const emu10k1_const_entries[] = …;
static int disasm_emu10k1_reg(char *buffer,
const struct emu10k1_reg_entry *entries,
unsigned reg, const char *pfx)
{ … }
static int disasm_sblive_reg(char *buffer, unsigned reg, const char *pfx)
{ … }
static int disasm_audigy_reg(char *buffer, unsigned reg, const char *pfx)
{ … }
static void snd_emu10k1_proc_acode_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
#define TOTAL_SIZE_GPR …
#define A_TOTAL_SIZE_GPR …
#define TOTAL_SIZE_TANKMEM_DATA …
#define TOTAL_SIZE_TANKMEM_ADDR …
#define A_TOTAL_SIZE_TANKMEM_DATA …
#define A_TOTAL_SIZE_TANKMEM_ADDR …
#define TOTAL_SIZE_CODE …
#define A_TOTAL_SIZE_CODE …
static ssize_t snd_emu10k1_fx8010_read(struct snd_info_entry *entry,
void *file_private_data,
struct file *file, char __user *buf,
size_t count, loff_t pos)
{ … }
static void snd_emu10k1_proc_voices_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
#ifdef CONFIG_SND_DEBUG
static void snd_emu_proc_emu1010_link_read(struct snd_emu10k1 *emu,
struct snd_info_buffer *buffer,
u32 dst)
{ … }
static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_io_reg_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_io_reg_write(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static unsigned int snd_ptr_read(struct snd_emu10k1 * emu,
unsigned int iobase,
unsigned int reg,
unsigned int chn)
{ … }
static void snd_ptr_write(struct snd_emu10k1 *emu,
unsigned int iobase,
unsigned int reg,
unsigned int chn,
unsigned int data)
{ … }
static void snd_emu_proc_ptr_reg_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer, int iobase, int offset, int length, int voices)
{ … }
static void snd_emu_proc_ptr_reg_write(struct snd_info_entry *entry,
struct snd_info_buffer *buffer,
int iobase, int length, int voices)
{ … }
static void snd_emu_proc_ptr_reg_write00(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_ptr_reg_write20(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_ptr_reg_read00a(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_ptr_reg_read00b(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_ptr_reg_read20a(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_ptr_reg_read20b(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{ … }
static void snd_emu_proc_ptr_reg_read20c(struct snd_info_entry *entry,
struct snd_info_buffer * buffer)
{ … }
#endif
static const struct snd_info_entry_ops snd_emu10k1_proc_ops_fx8010 = …;
int snd_emu10k1_proc_init(struct snd_emu10k1 *emu)
{ … }