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

Go to the source code of this file.

Macros

#define AUDIO_SLOT_BLOCK_NUM   256
 

Functions

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)
 
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_obj)
 
int rsc_mgr_uninit (struct rsc_mgr *mgr)
 

Macro Definition Documentation

#define AUDIO_SLOT_BLOCK_NUM   256

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.c

This file contains the implementation of some generic helper functions.

Liu Chun May 15 2008

Definition at line 23 of file ctresource.c.

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_obj 
)

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.