linux/sound/isa/es1688/es1688.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Driver for generic ESS AudioDrive ESx688 soundcards
 *  Copyright (c) by Jaroslav Kysela <[email protected]>
 */

#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/isapnp.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/module.h>
#include <asm/dma.h>
#include <sound/core.h>
#include <sound/es1688.h>
#include <sound/mpu401.h>
#include <sound/opl3.h>
#define SNDRV_LEGACY_FIND_FREE_IRQ
#define SNDRV_LEGACY_FIND_FREE_DMA
#include <sound/initval.h>

#define CRD_NAME
#define DEV_NAME

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_ALIAS();

static int index[SNDRV_CARDS] =;	/* Index 0-MAX */
static char *id[SNDRV_CARDS] =;	/* ID for this card */
#ifdef CONFIG_PNP
static bool isapnp[SNDRV_CARDS] =;
#endif
static bool enable[SNDRV_CARDS] =;	/* Enable this card */
static long port[SNDRV_CARDS] =;	/* 0x220,0x240,0x260 */
static long fm_port[SNDRV_CARDS] =;	/* Usually 0x388 */
static long mpu_port[SNDRV_CARDS] =;
static int irq[SNDRV_CARDS] =;	/* 5,7,9,10 */
static int mpu_irq[SNDRV_CARDS] =;	/* 5,7,9,10 */
static int dma8[SNDRV_CARDS] =;	/* 0,1,3 */

module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();
module_param_array();
#ifdef CONFIG_PNP
module_param_array();
MODULE_PARM_DESC();
#endif
MODULE_PARM_DESC();
module_param_hw_array(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_param_hw_array(fm_port, long, ioport, NULL, 0444);
MODULE_PARM_DESC();
MODULE_PARM_DESC();
module_param_hw_array(mpu_irq, int, irq, NULL, 0444);
MODULE_PARM_DESC();
module_param_hw_array(dma8, int, dma, NULL, 0444);
MODULE_PARM_DESC();

#ifdef CONFIG_PNP
#define is_isapnp_selected(dev)
#else
#define is_isapnp_selected
#endif

static int snd_es1688_match(struct device *dev, unsigned int n)
{}

static int snd_es1688_legacy_create(struct snd_card *card,
				    struct device *dev, unsigned int n)
{}

static int snd_es1688_probe(struct snd_card *card, unsigned int n)
{}

static int snd_es1688_isa_probe(struct device *dev, unsigned int n)
{}

static struct isa_driver snd_es1688_driver =;

static int snd_es968_pnp_is_probed;

#ifdef CONFIG_PNP
static int snd_card_es968_pnp(struct snd_card *card, unsigned int n,
			      struct pnp_card_link *pcard,
			      const struct pnp_card_device_id *pid)
{}

static int snd_es968_pnp_detect(struct pnp_card_link *pcard,
				const struct pnp_card_device_id *pid)
{}

static void snd_es968_pnp_remove(struct pnp_card_link *pcard)
{}

#ifdef CONFIG_PM
static int snd_es968_pnp_suspend(struct pnp_card_link *pcard,
				 pm_message_t state)
{}

static int snd_es968_pnp_resume(struct pnp_card_link *pcard)
{}
#endif

static const struct pnp_card_device_id snd_es968_pnpids[] =;

MODULE_DEVICE_TABLE(pnp_card, snd_es968_pnpids);

static struct pnp_card_driver es968_pnpc_driver =;
#endif

static int __init alsa_card_es1688_init(void)
{}

static void __exit alsa_card_es1688_exit(void)
{}

module_init();
module_exit(alsa_card_es1688_exit);