linux/sound/pci/mixart/mixart_hwdep.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Driver for Digigram miXart soundcards
 *
 * DSP firmware management
 *
 * Copyright (c) 2003 by Digigram <[email protected]>
 */

#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/firmware.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/io.h>
#include <sound/core.h>
#include "mixart.h"
#include "mixart_mixer.h"
#include "mixart_core.h"
#include "mixart_hwdep.h"


/**
 * mixart_wait_nice_for_register_value - wait for a value on a peudo register,
 * exit with a timeout
 *
 * @mgr: pointer to miXart manager structure
 * @offset: unsigned pseudo_register base + offset of value
 * @is_egal: wait for the equal value
 * @value: value
 * @timeout: timeout in centisenconds
 */
static int mixart_wait_nice_for_register_value(struct mixart_mgr *mgr,
					       u32 offset, int is_egal,
					       u32 value, unsigned long timeout)
{}


/*
  structures needed to upload elf code packets 
 */
struct snd_mixart_elf32_ehdr {};

struct snd_mixart_elf32_phdr {};

static int mixart_load_elf(struct mixart_mgr *mgr, const struct firmware *dsp )
{}

/*
 * get basic information and init miXart
 */

/* audio IDs for request to the board */
#define MIXART_FIRST_ANA_AUDIO_ID
#define MIXART_FIRST_DIG_AUDIO_ID

static int mixart_enum_connectors(struct mixart_mgr *mgr)
{}

static int mixart_enum_physio(struct mixart_mgr *mgr)
{}


static int mixart_first_init(struct mixart_mgr *mgr)
{}


/* firmware base addresses (when hard coded) */
#define MIXART_MOTHERBOARD_XLX_BASE_ADDRESS

static int mixart_dsp_load(struct mixart_mgr* mgr, int index, const struct firmware *dsp)
{}


int snd_mixart_setup_firmware(struct mixart_mgr *mgr)
{}

MODULE_FIRMWARE();
MODULE_FIRMWARE();
MODULE_FIRMWARE();