/*static char *SCCSID = "@(#) perfcall.h 1.0 96/01/11";*/


/***
 *
 * GENERAL functions:
 * ------------------
 *
 **/

#define   CMD_PERF_GET          (0x40)
#define   CMD_PERF_INFO         (0x41)
#define   CMD_PERF_ALLOC        (0x42)
#define   CMD_PERF_FREE         (0x43)
#define   CMD_PERF_DOSSTIME       (0x50)
#define   CMD_PERF_GETSSTIME    (0x51)
#define   CMD_PERF_GETHEADERS   (0x52)
#define   CMD_PERF_DOCPURATING  (0x53)					// F153289
#define   CMD_PERF_GETCPURATING (0x54)					// F153289


/***
 *
 * ICTRACE functions:
 * -----------------
 *
 **/

#define   CMD_ICTRACE_ON        (0x1)          /* 148959 */
#define   CMD_ICTRACE_OFF       (0x2)          /* 148959 */
#define   CMD_ICTRACE_RESET     (0x3)          /* 148959 */

/***
 *
 * SOFTTRACE functions:
 * --------------------
 *
 **/

#define   CMD_SOFTTRACE_ON      (0x10)
#define   CMD_SOFTTRACE_OFF     (0x11)
#define   CMD_SOFTTRACE_RESET   (0x12)
#define   CMD_SOFTTRACE_GET     (0x13)
#define   CMD_SOFTTRACE_LOG     (0x14)
#define   CMD_SOFTTRACE_QUERY   (0x15)
#define   CMD_SOFTTRACE_ALLOC   (0x16)
#define   CMD_SOFTTRACE_FREE    (0x17)

/***                                                            F151122
 *                                                              F151122
 * Kernel Idleness measurement functions:                       F151122
 * --------------------                                         F151122
 *                                                              F151122
 **/                                                            /* F151122 */
                                                                /* F151122 */
#define   CMD_KI_ENABLE         (0x60)                          /* F151122 */
#define   CMD_KI_DISABLE        (0x61)                          /* F151122 */
#define   CMD_KI_LATCH          (0x62)                          /* F151122 */
#define   CMD_KI_RDCNT          (0x63)                          /* F151122 */
#define   CMD_KI_RDPCNT         (0x64)                          /* F151122 */

/***
 *
 * THISBIG functions:
 * ------------------
 *
 **/

#define CMD_THISBIG_ON          (0X80)
#define CMD_THISBIG_OFF         (0X81)
#define CMD_THISBIG_RESET       (0X82)
#define CMD_THISBIG_RESUME      (0X83)
#define CMD_THISBIG_SUM         (0X84)
#define CMD_PERFGMTE            (0X85)         /* 153147 */


extern long cProcessors;
#define   PERFSIZE           (512)
struct _PerfBuf                                /* 153289 */
{
    unsigned long buffer_next;
    unsigned long buffer_hts_start;
    unsigned long buffer_lts_start;
    unsigned long buffer_hts_end;
    unsigned long buffer_lts_end;
    unsigned long buffer_size;
    unsigned long buffer_end;
    unsigned long buffer_start;
    unsigned long buffer_current;
    unsigned long buffer_gdtbase;

    unsigned char buffer_flag1;
    unsigned char buffer_flag2;
    unsigned short buffer_cpunum;
    unsigned long ulCPURating;                 /*  153289   */
};

