linux/sound/isa/cs423x/cs4236.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Driver for generic CS4232/CS4235/CS4236/CS4236B/CS4237B/CS4238B/CS4239 chips
 *  Copyright (c) by Jaroslav Kysela <[email protected]>
 */

#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] =;	/* Index 0-MAX */
static char *id[SNDRV_CARDS] =;	/* ID for this card */
static bool enable[SNDRV_CARDS] =; /* Enable this card */
#ifdef CONFIG_PNP
static bool isapnp[SNDRV_CARDS] =;
#endif
static long port[SNDRV_CARDS] =;	/* PnP setup */
static long cport[SNDRV_CARDS] =;	/* PnP setup */
static long mpu_port[SNDRV_CARDS] =;/* PnP setup */
static long fm_port[SNDRV_CARDS] =;	/* PnP setup */
static long sb_port[SNDRV_CARDS] =;	/* PnP setup */
static int irq[SNDRV_CARDS] =;	/* 5,7,9,11,12,15 */
static int mpu_irq[SNDRV_CARDS] =;	/* 9,11,12,15 */
static int dma1[SNDRV_CARDS] =;	/* 0,1,3,5,6,7 */
static int dma2[SNDRV_CARDS] =;	/* 0,1,3,5,6,7 */

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 /* CONFIG_PNP */

struct snd_card_cs4236 {};

#ifdef CONFIG_PNP

/*
 * PNP BIOS
 */
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);

/* WSS initialization */
static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev)
{}

/* CTRL initialization */
static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev)
{}

/* MPU initialization */
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 /* CONFIG_PNP */

#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 /* CONFIG_PNP */

static int __init alsa_card_cs423x_init(void)
{}

static void __exit alsa_card_cs423x_exit(void)
{}

module_init()
module_exit()