sgfru_priv.h revision 03831d35f7499c87d51205817c93e9a8d42c4bae
/*
* 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
*/
/*
* Copyright 2000 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SGFRU_PRIV_H
#define _SGFRU_PRIV_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/ddi_impldefs.h>
#define SGFRU_DRV_NAME "sgfru"
#ifdef DEBUG
extern uint_t sgfru_debug;
#define SGFRU_DBG_STATE 0x00000001
#define SGFRU_DBG_HANDLE 0x00000002
#define SGFRU_DBG_NODE 0x00000004
#define SGFRU_DBG_SECTION 0x00000008
#define SGFRU_DBG_SEGMENT 0x00000010
#define SGFRU_DBG_PACKET 0x00000020
#define SGFRU_DBG_PAYLOAD 0x00000040
#define SGFRU_DBG_MBOX 0x00000080
#define SGFRU_DBG_ALL 0x000000FF
#else /* DEBUG */
#define PR_SECTION PR_ALL
#define PR_SEGMENT PR_ALL
#define PR_PAYLOAD PR_ALL
#endif /* DEBUG */
#define MAX_HANDLES 100
#define MAX_SECTIONS 8
#define MAX_SEGMENTS 200
#define MAX_PACKETS 200
typedef struct sgfru_soft_state {
int instance;
typedef struct {
int cmd;
int mode;
/*
* Prototypes
*/
/*
* functions local to this driver.
*/
append_info_t *app);
const fru_info_t *fru);
#ifdef __cplusplus
}
#endif
#endif /* _SGFRU_PRIV_H */