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

Go to the source code of this file.

Data Structures

struct  rsc
 
struct  rsc_ops
 
struct  rsc_mgr
 

Enumerations

enum  RSCTYP {
  SRC, SRCIMP, AMIXER, SUM,
  DAIO, NUM_RSCTYP
}
 

Functions

int rsc_init (struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw)
 
int rsc_uninit (struct rsc *rsc)
 
int rsc_mgr_init (struct rsc_mgr *mgr, enum RSCTYP type, unsigned int amount, void *hw)
 
int rsc_mgr_uninit (struct rsc_mgr *mgr)
 
int mgr_get_resource (struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx)
 
int mgr_put_resource (struct rsc_mgr *mgr, unsigned int n, unsigned int idx)
 

Enumeration Type Documentation

enum RSCTYP

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.

ctresource.h

This file contains the definition of generic hardware resources for resource management.

Liu Chun May 13 2008

Enumerator:
SRC 
SRCIMP 
AMIXER 
SUM 
DAIO 
NUM_RSCTYP 

Definition at line 24 of file ctresource.h.

Function Documentation

int mgr_get_resource ( struct rsc_mgr mgr,
unsigned int  n,
unsigned int ridx 
)

Definition at line 77 of file ctresource.c.

int mgr_put_resource ( struct rsc_mgr mgr,
unsigned int  n,
unsigned int  idx 
)

Definition at line 91 of file ctresource.c.

int rsc_init ( struct rsc rsc,
u32  idx,
enum RSCTYP  type,
u32  msr,
void hw 
)

Definition at line 137 of file ctresource.c.

int rsc_mgr_init ( struct rsc_mgr mgr,
enum RSCTYP  type,
unsigned int  amount,
void hw 
)

Definition at line 210 of file ctresource.c.

int rsc_mgr_uninit ( struct rsc_mgr mgr)

Definition at line 261 of file ctresource.c.

int rsc_uninit ( struct rsc rsc)

Definition at line 179 of file ctresource.c.