linux/sound/pci/ctxfi/cthardware.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
 *
 * @File	cthardware.h
 *
 * @Brief
 * This file contains the definition of hardware access methord.
 *
 * @Author	Liu Chun
 * @Date 	May 13 2008
 */

#ifndef CTHARDWARE_H
#define CTHARDWARE_H

#include <linux/types.h>
#include <linux/pci.h>
#include <sound/core.h>

enum CHIPTYP {};

enum CTCARDS {};

/* Type of input source for ADC */
enum ADCSRC{};

struct card_conf {};

struct capabilities {};

struct hw {};

int create_hw_obj(struct pci_dev *pci, enum CHIPTYP chip_type,
		  enum CTCARDS model, struct hw **rhw);
int destroy_hw_obj(struct hw *hw);

unsigned int get_field(unsigned int data, unsigned int field);
void set_field(unsigned int *data, unsigned int field, unsigned int value);

/* IRQ bits */
#define PLL_INT
#define FI_INT
#define IT_INT
#define PCI_INT
#define URT_INT
#define GPI_INT
#define MIX_INT
#define DAI_INT
#define TP_INT
#define DSP_INT
#define SRC_INT

#endif /* CTHARDWARE_H */