linux/sound/isa/galaxy/galaxy.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Aztech AZT1605/AZT2316 Driver
 * Copyright (C) 2007,2010  Rene Herman
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/isa.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <asm/processor.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/wss.h>
#include <sound/mpu401.h>
#include <sound/opl3.h>

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

static int index[SNDRV_CARDS] =;
static char *id[SNDRV_CARDS] =;
static bool enable[SNDRV_CARDS] =;

module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();

static long port[SNDRV_CARDS] =;
static long wss_port[SNDRV_CARDS] =;
static long mpu_port[SNDRV_CARDS] =;
static long fm_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_hw_array(port, long, ioport, NULL, 0444);
MODULE_PARM_DESC();
module_param_hw_array(wss_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(fm_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();

/*
 * Generic SB DSP support routines
 */

#define DSP_PORT_RESET
#define DSP_PORT_READ
#define DSP_PORT_COMMAND
#define DSP_PORT_STATUS
#define DSP_PORT_DATA_AVAIL

#define DSP_SIGNATURE

#define DSP_COMMAND_GET_VERSION

static int dsp_get_byte(void __iomem *port, u8 *val)
{}

static int dsp_reset(void __iomem *port)
{}

static int dsp_command(void __iomem *port, u8 cmd)
{}

static int dsp_get_version(void __iomem *port, u8 *major, u8 *minor)
{}

/*
 * Generic WSS support routines
 */

#define WSS_CONFIG_DMA_0
#define WSS_CONFIG_DMA_1
#define WSS_CONFIG_DMA_3
#define WSS_CONFIG_DUPLEX
#define WSS_CONFIG_IRQ_7
#define WSS_CONFIG_IRQ_9
#define WSS_CONFIG_IRQ_10
#define WSS_CONFIG_IRQ_11

#define WSS_PORT_CONFIG
#define WSS_PORT_SIGNATURE

#define WSS_SIGNATURE

static int wss_detect(void __iomem *wss_port)
{}

static void wss_set_config(void __iomem *wss_port, u8 wss_config)
{}

/*
 * Aztech Sound Galaxy specifics
 */

#define GALAXY_PORT_CONFIG
#define CONFIG_PORT_SET

#define DSP_COMMAND_GALAXY_8
#define GALAXY_COMMAND_GET_TYPE

#define DSP_COMMAND_GALAXY_9
#define GALAXY_COMMAND_WSSMODE
#define GALAXY_COMMAND_SB8MODE

#define GALAXY_MODE_WSS
#define GALAXY_MODE_SB8

struct snd_galaxy {};

static u32 config[SNDRV_CARDS];
static u8 wss_config[SNDRV_CARDS];

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

static int galaxy_init(struct snd_galaxy *galaxy, u8 *type)
{}

static int galaxy_set_mode(struct snd_galaxy *galaxy, u8 mode)
{}

static void galaxy_set_config(struct snd_galaxy *galaxy, u32 config)
{}

static void galaxy_config(struct snd_galaxy *galaxy, u32 config)
{}

static int galaxy_wss_config(struct snd_galaxy *galaxy, u8 wss_config)
{}

static void snd_galaxy_free(struct snd_card *card)
{}

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

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

static struct isa_driver snd_galaxy_driver =;

module_isa_driver(snd_galaxy_driver, SNDRV_CARDS);