scftrace.h revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006
*/
#ifndef _SCFTRACE_H
#define _SCFTRACE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define TC_INFO_SIZE 8
/* SCF driver trace table */
typedef struct scf_trctbl {
} scf_trctbl_t;
#define SCF_DBGFLAG_REG 0x00000001
#define SCF_DBGFLAG_IOCTL 0x00000010
#define SCF_DBGFLAG_SYS 0x00000020
#define SCF_DBGFLAG_DSCP 0x00000040
#define SCF_DBGFLAG_SRV 0x00000080
#define SCF_DBGFLAG_IOMP 0x00000100
#define SCF_DBGFLAG_KSTAT 0x00000200
#define SCF_DBGFLAG_FOCK 0x00000400
#define SCF_DBGFLAG_DDI 0x00001000
#define SCF_DBGFLAG_OPCLS 0x00002000
#define SCF_DBGFLAG_TIMER 0x00004000
#define SCF_DBGFLAG_SNAP 0x00010000
#define SCF_DBGFLAG_TRACE 0x00020000
#define SCF_DBGFLAG_DBG 0x00080000
#define SCF_DBGFLAG_ALL 0xffffffff
/*
* trace code define
*/
#define TC_ERR 0x8000
#define TC_ERRCD 0x4000
#define TC_MSG 0x2000
#define TC_R_REG 0x1000
#define TC_W_REG 0x0800
#define TC_TIMER 0x0400
#define TC_OUT 0x0200
#define TC_IN 0x0100
/* scfconf.c */
#define TC_PROBE 0x0001
#define TC_ATTACH 0x0002
#define TC_DETACH 0x0003
#define TC_GETINFO 0x0004
/* scfopt.c */
#define TC_OPEN 0x0011
#define TC_CLOSE 0x0012
#define TC_IOCTL 0x0013
#define TC_CHPOLL 0x0014
/* scfhandler.c */
#define TC_INTR 0x0021
#define TC_DSENS 0x0022
#define TC_SHUTDOWN 0x0023
/* scfreg.c scfhandler.c */
#define TC_SEND 0x0031
#define TC_RSTS 0x0032
/* kernel function code */
#define TC_SIGNAL 0x0041
#define TC_W_SIG 0x0042
#define TC_T_WAIT 0x0043
#define TC_KILL 0x004f
/* DSCP function code */
#define TC_MB_INIT 0x0081
#define TC_MB_FINI 0x0082
#define TC_MB_PUTMSG 0x0083
#define TC_MB_CANGET 0x0084
#define TC_MB_GETMSG 0x0085
#define TC_MB_FLUSH 0x0086
#define TC_MB_CTRL 0x0087
#define TC_MB_INTR 0x0088
#define TC_MB_CALLBACK 0x0089
#define TC_TxREQ 0x00a1
#define TC_RxACK 0x00a5
#define TC_RxEND 0x00a6
#define TC_RxREQ 0x00a4
#define TC_TxACK 0x00a2
#define TC_TxEND 0x00a3
/* OS to SCF function code */
#define TC_S_PUTINFO 0x0091
#define TC_S_GETINFO 0x0092
/*
* SCF driver trace flag
*/
extern ushort_t scf_trace_flag;
/*
* SCF driver trace debug flag
*/
/*
* External function
*/
#ifdef __cplusplus
}
#endif
#endif /* _SCFTRACE_H */