#include <linux/module.h>
#include <linux/delay.h>
#include <linux/isa.h>
#include <linux/io.h>
#include <asm/dma.h>
#include <sound/core.h>
#include <sound/wss.h>
#include <sound/opl3.h>
#include <sound/mpu401.h>
#include <sound/control.h>
#define SNDRV_LEGACY_FIND_FREE_IRQ
#define SNDRV_LEGACY_FIND_FREE_DMA
#include <sound/initval.h>
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static int index[SNDRV_CARDS] = …;
static char *id[SNDRV_CARDS] = …;
static bool enable[SNDRV_CARDS] = …;
static long port[SNDRV_CARDS] = …;
static int irq[SNDRV_CARDS] = …;
static long mss_port[SNDRV_CARDS] = …;
static long mpu_port[SNDRV_CARDS] = …;
static int mpu_irq[SNDRV_CARDS] = …;
static int dma[SNDRV_CARDS] = …;
static bool joystick[SNDRV_CARDS] = …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_hw_array(port, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(mss_port, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(mpu_port, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(irq, int, irq, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(mpu_irq, int, irq, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(dma, int, dma, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
#define WRITE_MDIRQ_CFG …
#define COMMAND_52 …
#define READ_HARD_CFG …
#define COMMAND_5C …
#define COMMAND_60 …
#define COMMAND_66 …
#define COMMAND_6C …
#define COMMAND_6E …
#define COMMAND_88 …
#define DSP_INIT_MSS …
#define COMMAND_C5 …
#define GET_DSP_VERSION …
#define GET_DSP_COPYRIGHT …
#define DSP_RESET …
#define DSP_READ …
#define DSP_WRITE …
#define DSP_COMMAND …
#define DSP_STATUS …
#define DSP_DATAVAIL …
#define PFX …
#define DRV_NAME …
static unsigned char sc6000_irq_to_softcfg(int irq)
{ … }
static unsigned char sc6000_dma_to_softcfg(int dma)
{ … }
static unsigned char sc6000_mpu_irq_to_softcfg(int mpu_irq)
{ … }
static int sc6000_wait_data(char __iomem *vport)
{ … }
static int sc6000_read(char __iomem *vport)
{ … }
static int sc6000_write(char __iomem *vport, int cmd)
{ … }
static int sc6000_dsp_get_answer(char __iomem *vport, int command,
char *data, int data_len)
{ … }
static int sc6000_dsp_reset(char __iomem *vport)
{ … }
static int sc6000_hw_cfg_write(char __iomem *vport, const int *cfg)
{ … }
static int sc6000_cfg_write(char __iomem *vport, unsigned char softcfg)
{ … }
static int sc6000_setup_board(char __iomem *vport, int config)
{ … }
static int sc6000_init_mss(char __iomem *vport, int config,
char __iomem *vmss_port, int mss_config)
{ … }
static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg,
long xport, long xmpu,
long xmss_port, int joystick)
{ … }
static int sc6000_init_board(char __iomem *vport,
char __iomem *vmss_port, int dev)
{ … }
static int snd_sc6000_mixer(struct snd_wss *chip)
{ … }
static int snd_sc6000_match(struct device *devptr, unsigned int dev)
{ … }
static void snd_sc6000_free(struct snd_card *card)
{ … }
static int __snd_sc6000_probe(struct device *devptr, unsigned int dev)
{ … }
static int snd_sc6000_probe(struct device *devptr, unsigned int dev)
{ … }
static struct isa_driver snd_sc6000_driver = …;
module_isa_driver(snd_sc6000_driver, SNDRV_CARDS);