#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/pnp.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/wss.h>
#include <sound/mpu401.h>
#include <sound/opl3.h>
#include <sound/initval.h>
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;
#define IDENT …
#define DEV_NAME …
static int index[SNDRV_CARDS] = …;
static char *id[SNDRV_CARDS] = …;
static bool enable[SNDRV_CARDS] = …;
#ifdef CONFIG_PNP
static bool isapnp[SNDRV_CARDS] = …;
#endif
static long port[SNDRV_CARDS] = …;
static long cport[SNDRV_CARDS] = …;
static long mpu_port[SNDRV_CARDS] = …;
static long fm_port[SNDRV_CARDS] = …;
static long sb_port[SNDRV_CARDS] = …;
static int irq[SNDRV_CARDS] = …;
static int mpu_irq[SNDRV_CARDS] = …;
static int dma1[SNDRV_CARDS] = …;
static int dma2[SNDRV_CARDS] = …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
module_param_array(…);
MODULE_PARM_DESC(…) …;
#ifdef CONFIG_PNP
module_param_array(…);
MODULE_PARM_DESC(…) …;
#endif
module_param_hw_array(port, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(cport, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(mpu_port, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(fm_port, long, ioport, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(sb_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(dma1, int, dma, NULL, 0444);
MODULE_PARM_DESC(…) …;
module_param_hw_array(dma2, int, dma, NULL, 0444);
MODULE_PARM_DESC(…) …;
#ifdef CONFIG_PNP
static int isa_registered;
static int pnpc_registered;
static int pnp_registered;
#endif
struct snd_card_cs4236 { … };
#ifdef CONFIG_PNP
static const struct pnp_device_id snd_cs423x_pnpbiosids[] = …;
MODULE_DEVICE_TABLE(pnp, snd_cs423x_pnpbiosids);
#define CS423X_ISAPNP_DRIVER …
static const struct pnp_card_device_id snd_cs423x_pnpids[] = …;
MODULE_DEVICE_TABLE(pnp_card, snd_cs423x_pnpids);
static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev)
{ … }
static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev)
{ … }
static int snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev)
{ … }
static int snd_card_cs423x_pnp(int dev, struct snd_card_cs4236 *acard,
struct pnp_dev *pdev,
struct pnp_dev *cdev)
{ … }
static int snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard,
struct pnp_card_link *card,
const struct pnp_card_device_id *id)
{ … }
#endif
#ifdef CONFIG_PNP
#define is_isapnp_selected(dev) …
#else
#define is_isapnp_selected …
#endif
static int snd_cs423x_card_new(struct device *pdev, int dev,
struct snd_card **cardp)
{ … }
static int snd_cs423x_probe(struct snd_card *card, int dev)
{ … }
static int snd_cs423x_isa_match(struct device *pdev,
unsigned int dev)
{ … }
static int snd_cs423x_isa_probe(struct device *pdev,
unsigned int dev)
{ … }
#ifdef CONFIG_PM
static int snd_cs423x_suspend(struct snd_card *card)
{ … }
static int snd_cs423x_resume(struct snd_card *card)
{ … }
static int snd_cs423x_isa_suspend(struct device *dev, unsigned int n,
pm_message_t state)
{ … }
static int snd_cs423x_isa_resume(struct device *dev, unsigned int n)
{ … }
#endif
static struct isa_driver cs423x_isa_driver = …;
#ifdef CONFIG_PNP
static int snd_cs423x_pnpbios_detect(struct pnp_dev *pdev,
const struct pnp_device_id *id)
{ … }
#ifdef CONFIG_PM
static int snd_cs423x_pnp_suspend(struct pnp_dev *pdev, pm_message_t state)
{ … }
static int snd_cs423x_pnp_resume(struct pnp_dev *pdev)
{ … }
#endif
static struct pnp_driver cs423x_pnp_driver = …;
static int snd_cs423x_pnpc_detect(struct pnp_card_link *pcard,
const struct pnp_card_device_id *pid)
{ … }
#ifdef CONFIG_PM
static int snd_cs423x_pnpc_suspend(struct pnp_card_link *pcard, pm_message_t state)
{ … }
static int snd_cs423x_pnpc_resume(struct pnp_card_link *pcard)
{ … }
#endif
static struct pnp_card_driver cs423x_pnpc_driver = …;
#endif
static int __init alsa_card_cs423x_init(void)
{ … }
static void __exit alsa_card_cs423x_exit(void)
{ … }
module_init(…) …
module_exit(…)