linux/sound/pci/oxygen/oxygen_lib.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * C-Media CMI8788 driver - main driver module
 *
 * Copyright (c) Clemens Ladisch <[email protected]>
 */

#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/ac97_codec.h>
#include <sound/asoundef.h>
#include <sound/core.h>
#include <sound/info.h>
#include <sound/mpu401.h>
#include <sound/pcm.h>
#include "oxygen.h"
#include "cm9780.h"

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

#define DRIVER

static inline int oxygen_uart_input_ready(struct oxygen *chip)
{}

static void oxygen_read_uart(struct oxygen *chip)
{}

static irqreturn_t oxygen_interrupt(int dummy, void *dev_id)
{}

static void oxygen_spdif_input_bits_changed(struct work_struct *work)
{}

static void oxygen_gpio_changed(struct work_struct *work)
{}

static void oxygen_proc_read(struct snd_info_entry *entry,
			     struct snd_info_buffer *buffer)
{}

static void oxygen_proc_init(struct oxygen *chip)
{}

static const struct pci_device_id *
oxygen_search_pci_id(struct oxygen *chip, const struct pci_device_id ids[])
{}

static void oxygen_restore_eeprom(struct oxygen *chip,
				  const struct pci_device_id *id)
{}

static void configure_pcie_bridge(struct pci_dev *pci)
{}

static void oxygen_init(struct oxygen *chip)
{}

static void oxygen_shutdown(struct oxygen *chip)
{}

static void oxygen_card_free(struct snd_card *card)
{}

static int __oxygen_pci_probe(struct pci_dev *pci, int index, char *id,
		     struct module *owner,
		     const struct pci_device_id *ids,
		     int (*get_model)(struct oxygen *chip,
				      const struct pci_device_id *id
				     )
		    )
{}

int oxygen_pci_probe(struct pci_dev *pci, int index, char *id,
		     struct module *owner,
		     const struct pci_device_id *ids,
		     int (*get_model)(struct oxygen *chip,
				      const struct pci_device_id *id))
{}
EXPORT_SYMBOL();

#ifdef CONFIG_PM_SLEEP
static int oxygen_pci_suspend(struct device *dev)
{}

static const u32 registers_to_restore[OXYGEN_IO_SIZE / 32] =;
static const u32 ac97_registers_to_restore[2][0x40 / 32] =;

static inline int is_bit_set(const u32 *bitmap, unsigned int bit)
{}

static void oxygen_restore_ac97(struct oxygen *chip, unsigned int codec)
{}

static int oxygen_pci_resume(struct device *dev)
{}

SIMPLE_DEV_PM_OPS(oxygen_pci_pm, oxygen_pci_suspend, oxygen_pci_resume);
EXPORT_SYMBOL();
#endif /* CONFIG_PM_SLEEP */

void oxygen_pci_shutdown(struct pci_dev *pci)
{}
EXPORT_SYMBOL();