Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cthardware.h File Reference
#include <linux/types.h>
#include <linux/pci.h>

Go to the source code of this file.

Data Structures

struct  card_conf
 
struct  capabilities
 
struct  hw
 

Macros

#define PLL_INT   (1 << 10) /* PLL input-clock out-of-range */
 
#define FI_INT   (1 << 9) /* forced interrupt */
 
#define IT_INT   (1 << 8) /* timer interrupt */
 
#define PCI_INT   (1 << 7) /* PCI bus error pending */
 
#define URT_INT   (1 << 6) /* UART Tx/Rx */
 
#define GPI_INT   (1 << 5) /* GPI pin */
 
#define MIX_INT   (1 << 4) /* mixer parameter segment FIFO channels */
 
#define DAI_INT   (1 << 3) /* DAI (SR-tracker or SPDIF-receiver) */
 
#define TP_INT   (1 << 2) /* transport priority queue */
 
#define DSP_INT   (1 << 1) /* DSP */
 
#define SRC_INT   (1 << 0) /* SRC channels */
 

Enumerations

enum  CHIPTYP { ATC20K1, ATC20K2, ATCNONE }
 
enum  CTCARDS {
  CTSB055X, CT20K1_MODEL_FIRST = CTSB055X, CTSB073X, CTUAA,
  CT20K1_UNKNOWN, CTSB0760, CT20K2_MODEL_FIRST = CTSB0760, CTHENDRIX,
  CTSB0880, CTSB1270, CT20K2_UNKNOWN, NUM_CTCARDS
}
 
enum  ADCSRC {
  ADC_MICIN, ADC_LINEIN, ADC_VIDEO, ADC_AUX,
  ADC_NONE
}
 

Functions

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)
 

Macro Definition Documentation

#define DAI_INT   (1 << 3) /* DAI (SR-tracker or SPDIF-receiver) */

Definition at line 210 of file cthardware.h.

#define DSP_INT   (1 << 1) /* DSP */

Definition at line 212 of file cthardware.h.

#define FI_INT   (1 << 9) /* forced interrupt */

Definition at line 204 of file cthardware.h.

#define GPI_INT   (1 << 5) /* GPI pin */

Definition at line 208 of file cthardware.h.

#define IT_INT   (1 << 8) /* timer interrupt */

Definition at line 205 of file cthardware.h.

#define MIX_INT   (1 << 4) /* mixer parameter segment FIFO channels */

Definition at line 209 of file cthardware.h.

#define PCI_INT   (1 << 7) /* PCI bus error pending */

Definition at line 206 of file cthardware.h.

#define PLL_INT   (1 << 10) /* PLL input-clock out-of-range */

Definition at line 203 of file cthardware.h.

#define SRC_INT   (1 << 0) /* SRC channels */

Definition at line 213 of file cthardware.h.

#define TP_INT   (1 << 2) /* transport priority queue */

Definition at line 211 of file cthardware.h.

#define URT_INT   (1 << 6) /* UART Tx/Rx */

Definition at line 207 of file cthardware.h.

Enumeration Type Documentation

enum ADCSRC
Enumerator:
ADC_MICIN 
ADC_LINEIN 
ADC_VIDEO 
ADC_AUX 
ADC_NONE 

Definition at line 48 of file cthardware.h.

enum CHIPTYP

Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.

This source file is released under GPL v2 license (no other versions). See the COPYING file included in the main directory of this source distribution for the license terms and conditions.

cthardware.h

This file contains the definition of hardware access methord.

Liu Chun May 13 2008

Enumerator:
ATC20K1 
ATC20K2 
ATCNONE 

Definition at line 24 of file cthardware.h.

enum CTCARDS
Enumerator:
CTSB055X 
CT20K1_MODEL_FIRST 
CTSB073X 
CTUAA 
CT20K1_UNKNOWN 
CTSB0760 
CT20K2_MODEL_FIRST 
CTHENDRIX 
CTSB0880 
CTSB1270 
CT20K2_UNKNOWN 
NUM_CTCARDS 

Definition at line 30 of file cthardware.h.

Function Documentation

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

Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.

This source file is released under GPL v2 license (no other versions). See the COPYING file included in the main directory of this source distribution for the license terms and conditions.

cthardware.c

This file contains the implementation of hardware access methord.

Liu Chun Jun 26 2008

Definition at line 23 of file cthardware.c.

int destroy_hw_obj ( struct hw hw)

Definition at line 49 of file cthardware.c.

unsigned int get_field ( unsigned int  data,
unsigned int  field 
)

Definition at line 68 of file cthardware.c.

void set_field ( unsigned int data,
unsigned int  field,
unsigned int  value 
)

Definition at line 80 of file cthardware.c.