rklogcodes.h 4.76 KB
/*
 * rklogcodes.h
 *
 * Copyright 1994, Silicon Graphics, Inc.
 * All Rights Reserved.
 *
 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
 * the contents of this file may not be disclosed to third parties, copied or
 * duplicated in any form, in whole or in part, without the prior written
 * permission of Silicon Graphics, Inc.
 *
 * RESTRICTED RIGHTS LEGEND:
 * Use, duplication or disclosure by the Government is subject to restrictions
 * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
 * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
 * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
 * rights reserved under the Copyright Laws of the United States.
 */

/* 
 * DO NOT INCLUDE OTHER HEADER FILES!
 *
 * This file is used with CC -E to generate a .ul file for the logger.
 * This works fine as long as this file consists only of #define macros for 
 * the .ul codes.  If you include another header file here, you will 
 * break that process.
 */

/*
 * Kernel data codes to use with the tvLogKernData routines.
 * The log routines with collect data corresponding to these codes in the
 * kernel.  Only codes defined here are accepted by the tvLogKernData routines.
 * The data table in dbg_logtab.c must be modified to support additional codes.
 */
#define TV_LOG_IP_INOCTETS	0	/* ip total bytes received */
#define TV_LOG_IP_OUTOCTETS	1	/* ip total bytes sened */
#define TV_LOG_KERN_DATA_CODES	2	/* must be last */

/*
 * Messages 3780-3799 are reserved for the rk PROM.
 */
#define RK_PROM_START           3780    /* prom started */
#define RK_PROM_INITDONE        3781    /* Prom init done */
#define RK_PROM_LOADOPEN        3782    /* About to open load device */
#define RK_PROM_LOADGET         3783    /* About to get load file */
#define RK_PROM_LOADRELOC       3784    /* About to relocate load file */
#define RK_PROM_LOADEXEC        3785    /* About execute loaded file */
#define RK_PROM_RFTUNED         3790    /* all rf pre-tuning done */
#define RK_PROM_RFBOOTP         3791    /* found my bootparams */
#define RK_PROM_RFBOOTK         3792    /* recvd broadcast kernel */
#define RK_PROM_RFKHASH         3793    /* kernel integrity hash done */
#define RK_PROM_LAST            3793

/*
 * Messages 2850-2999 are reserved for the Risc kernel.  
 * These are defined below.
 */
#define RK_SCHED_NEW_THREAD	2850
#define RK_CALL_INTR_HDLR	2851
#define RK_EXIT_INTR_HDLR	2852
#define RK_5MIN_CLOCK		2853
#define RK_LIO0_INTR		2854
#define RK_LIO1_INTR		2855
#define RK_LIO2_INTR		2856
#define RK_SLEEP_ATM_MAIN	2857
#define RK_SLEEP_ATM_SLEEP	2858
#define RK_SLEEP_WRITE_CENT	2859
#define RK_SLEEP_HAL_TRANSFER	2860
#define RK_SLEEP_GRAPHICS_DMA	2861
#define RK_SLEEP_SATX_WAIT1	2862
#define RK_SLEEP_SATX_WAIT2	2863
#define RK_SLEEP_SATX_WAIT3	2864
#define RK_SLEEP_SERIAL_FLUSH	2865
#define RK_SLEEP_SERIAL_WRITE	2866
#define RK_SLEEP_MBUF_GET	2867
#define RK_SLEEP_SOCKET		2868
#define RK_SLEEP_MSG_SEND	2869
#define RK_S35_RESET		2870
#define RK_S35_REFERR		2871

/*
 * Codes 2901-2908 are reserved for Early Kernel Events
 */

/*
 * Codes 2920-2969 are reserved for SA driver Events
 */
#define	RK_SA_SND_BYTE		2920
#define	RK_SA_RCV_BYTE		2921
#define	RK_SA_SND_INTR		2922
#define	RK_SA_RCV_INTR		2923
#define	RK_SA_HDL_RSP		2924
#define	RK_SA_HDL_MSG		2925
#define	RK_SA_MSG_STS		2926
#define	RK_SA_MSG_DLP		2927
#define	RK_SA_MSG_PLCP		2928
#define	RK_SA_MSG_CC		2929
#define	RK_SA_MSG_TO_SA		2930
#define	RK_SA_BTSC_TO_ATV	2931
#define	RK_SA_CC_TO_ATV		2932
#define	RK_SA_RX_NOT_SLEEPING	2933
#define	RK_SA_RX_THREAD_DEAD	2934
#define	RK_SA_WAKE_RX		2935
#define	RK_SA_TX_DEAD		2936
#define	RK_WAKE_TX		2937
#define	RK_SA_WAIT_TX		2938
#define	RK_SA_WAIT_TX_DONE	2939
#define	RK_SA_CMD_HAS_NO_RSP	2940
#define	RK_SA_WAIT_RSP		2941
#define	RK_SA_GOT_RSP		2942
#define	RK_SA_WAKE_NEXT		2943
#define	RK_SA_TX_QUE_EMPTY	2944

/*
 * Codes 2970-2999 are reserved for ATM Events
 */
#define RK_ATM_DEQ_CG		2970
#define RK_ATM_OAM_LVL_SEND	2971
#define RK_ATM_OAM_LVL_RECV	2972
#define RK_ATM_OPEN_VCC		2973
#define RK_ATM_OPEN_FAIL	2974
#define RK_ATM_CLOSE_VCC	2975
#define RK_ATM_START_VCC	2976
#define RK_ATM_STOP_VCC		2977
#define RK_ATM_DELAYED_CLOSE	2978
#define RK_ATM_DELAY_CLOSE	2979
#define RK_ATM_RECV_DROP	2980

/*
 * Codes 5800-5849 are reserved for catatrophic SA driver events
 */
#define	RK_SA_STRAY_VIC_INTR	5800
#define	RK_SA_MOD_VIC_INTR	5801
#define	RK_SA_SND_FIFO_ERR	5802
#define	RK_SA_BAD_RSP		5803
#define	RK_SA_WRONG_LEN		5804
#define	RK_SA_CHKSUM_ERR	5805
#define	RK_SA_RCV_BUF_FULL	5806

/*
 * Codes 5870-6099 are reserved for UnExpected Kernel Errors
 */
#define RK_ATM_LEN_ERR		5870
#define RK_ATM_CRC_ERR		5871
#define RK_MCF_NO_CGS		5872
#define RK_MCF_MAX_ATMQ		5873
#define RK_MCF_RESTART		5874
#define RK_MCF_ABORT		5875