Home | History | Annotate | Download | only in inc
      1 /*
      2  *  Copyright 2001-2008 Texas Instruments - http://www.ti.com/
      3  *
      4  *  Licensed under the Apache License, Version 2.0 (the "License");
      5  *  you may not use this file except in compliance with the License.
      6  *  You may obtain a copy of the License at
      7  *
      8  *     http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  *  Unless required by applicable law or agreed to in writing, software
     11  *  distributed under the License is distributed on an "AS IS" BASIS,
     12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  *  See the License for the specific language governing permissions and
     14  *  limitations under the License.
     15  */
     16 
     17 /*
     18  * qosti_dspdecl.h
     19  *
     20  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
     21  */
     22 
     23 #ifndef _QOSTI_DSPDECL_H
     24 
     25 #define _QOSTI_DSPDECL_H
     26 
     27 // The QOS command codes (to match the DSP side equivalents).
     28 
     29 /*
     30 
     31  *  ======== QOS_TI_Msg ========
     32 
     33  *  The enumeration defines the control command selector for *cmd*
     34 
     35  *  for the QOS_TI layer messages.
     36 
     37  */
     38 
     39 typedef enum QOS_TI_Msg {
     40 
     41 	QOS_TI_ERROR,
     42 
     43 	QOS_TI_GETCPULOAD,
     44 
     45 	QOS_TI_GETMEMSTAT,
     46 
     47 	QOS_TI_GETSHAREDSCRATCH,
     48 
     49 } QOS_TI_Msg;
     50 
     51 /*
     52 
     53  *  ======== QOS_TI_MsgArg1 ========
     54 
     55  *  The enumeration defines the control command selector for *arg1*
     56 
     57  *  of the QOS_TI_GETMEMSTAT message.
     58 
     59  */
     60 
     61 typedef enum QOS_TI_GetMemStatArg1 {
     62 
     63 	/* Arg1: Range 0-0x100 used for HEAPID of a BIOS MEM Segment with Heap */
     64 
     65 	ALLHEAPS = 0x100,	/* Get aggregate mem-stat info combining all heaps. */
     66 
     67 	NUMHEAPS		/* Get number BIOS MEM segments with Heaps */
     68 } QOS_TI_GetMemStatArg1;
     69 
     70 /*
     71 
     72  *  ======== QOS_TI_GetMemStatArg2 ========
     73 
     74  *  The enumeration defines the control command selector for *arg2*
     75 
     76  *  of the QOS_TI_GETMEMSTAT message.
     77 
     78  */
     79 
     80 typedef enum QOS_TI_GetMemStatArg2 {
     81 
     82 	USED_HEAPSIZE = 0x100,
     83 
     84 	LARGEST_FREE_BLOCKSIZE
     85 } QOS_TI_GetMemStatArg2;
     86 
     87 /*
     88 
     89  *  ======== QOS_TI_GetSharedScratchMsgArg2 ========
     90 
     91  *  The enumeration defines the control command selector for *arg2*
     92 
     93  *  of the QOS_TI_GETSHAREDSCRATCH message.
     94 
     95  */
     96 
     97 typedef enum QOS_TI_GetSharedScratchMsgArg2 {
     98 
     99 	/*
    100 
    101 	 * If Arg2 is NOT set to ALL_SCRATCHGROUPS then  the assigned value
    102 
    103 	 * taken as the Scratch Group/Mutex Id
    104 
    105 	 */
    106 
    107 	ALL_SCRATCHGROUPS
    108 } QOS_TI_GetSharedScratchMsgArg2;
    109 
    110 #endif
    111 
    112