summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h')
-rw-r--r--ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h b/ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h
deleted file mode 100644
index 0838c2e8..00000000
--- a/ANDROID_3.4.5/sound/pci/ctxfi/ctresource.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- * 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.
- *
- * @File ctresource.h
- *
- * @Brief
- * This file contains the definition of generic hardware resources for
- * resource management.
- *
- * @Author Liu Chun
- * @Date May 13 2008
- *
- */
-
-#ifndef CTRESOURCE_H
-#define CTRESOURCE_H
-
-#include <linux/types.h>
-
-enum RSCTYP {
- SRC,
- SRCIMP,
- AMIXER,
- SUM,
- DAIO,
- NUM_RSCTYP /* This must be the last one and less than 16 */
-};
-
-struct rsc_ops;
-
-struct rsc {
- u32 idx:12; /* The index of a resource */
- u32 type:4; /* The type (RSCTYP) of a resource */
- u32 conj:12; /* Current conjugate index */
- u32 msr:4; /* The Master Sample Rate a resource working on */
- void *ctrl_blk; /* Chip specific control info block for a resource */
- void *hw; /* Chip specific object for hardware access means */
- struct rsc_ops *ops; /* Generic resource operations */
-};
-
-struct rsc_ops {
- int (*master)(struct rsc *rsc); /* Move to master resource */
- int (*next_conj)(struct rsc *rsc); /* Move to next conjugate resource */
- int (*index)(const struct rsc *rsc); /* Return the index of resource */
- /* Return the output slot number */
- int (*output_slot)(const struct rsc *rsc);
-};
-
-int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw);
-int rsc_uninit(struct rsc *rsc);
-
-struct rsc_mgr {
- enum RSCTYP type; /* The type (RSCTYP) of resource to manage */
- unsigned int amount; /* The total amount of a kind of resource */
- unsigned int avail; /* The amount of currently available resources */
- unsigned char *rscs; /* The bit-map for resource allocation */
- void *ctrl_blk; /* Chip specific control info block */
- void *hw; /* Chip specific object for hardware access */
-};
-
-/* Resource management is based on bit-map mechanism */
-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);
-
-#endif /* CTRESOURCE_H */