#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/module.h>
#include <asm/dma.h>
#include <sound/core.h>
#include <sound/gus.h>
#include <sound/wss.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 int dma1[SNDRV_CARDS] = …;
static int dma2[SNDRV_CARDS] = …;
static int joystick_dac[SNDRV_CARDS] = …;
static int channels[SNDRV_CARDS] = …;
static int pcm_channels[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(irq, int, irq, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(dma1, int, dma, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(dma2, int, dma, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
struct snd_gusmax { … };
#define PFX …
static int snd_gusmax_detect(struct snd_gus_card *gus)
{ … }
static irqreturn_t snd_gusmax_interrupt(int irq, void *dev_id)
{ … }
static void snd_gusmax_init(int dev, struct snd_card *card,
struct snd_gus_card *gus)
{ … }
static int snd_gusmax_mixer(struct snd_wss *chip)
{ … }
static int snd_gusmax_match(struct device *pdev, unsigned int dev)
{ … }
static int snd_gusmax_probe(struct device *pdev, unsigned int dev)
{ … }
#define DEV_NAME …
static struct isa_driver snd_gusmax_driver = …;
module_isa_driver(snd_gusmax_driver, SNDRV_CARDS);