#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/sb.h>
#include <sound/opl3.h>
#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 dma8[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(dma8, int, dma, NULL, 0444);
MODULE_PARM_DESC(…) …;
struct snd_sb8 { … };
static irqreturn_t snd_sb8_interrupt(int irq, void *dev_id)
{ … }
static int snd_sb8_match(struct device *pdev, unsigned int dev)
{ … }
static int snd_sb8_probe(struct device *pdev, unsigned int dev)
{ … }
#ifdef CONFIG_PM
static int snd_sb8_suspend(struct device *dev, unsigned int n,
pm_message_t state)
{ … }
static int snd_sb8_resume(struct device *dev, unsigned int n)
{ … }
#endif
#define DEV_NAME …
static struct isa_driver snd_sb8_driver = …;
module_isa_driver(snd_sb8_driver, SNDRV_CARDS);