cvc.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CVC_H
#define _CVC_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define cvc_username "ssp"
#define CVCD_SERVICE "cvc_hostd"
#define CVC_CONN_SERVICE "cvc"
#define MAX_CVC_CONN 100
#define MAXPKTSZ 4096
#define TRUE 1
#define FALSE 0
/*
* Network Redirection driver ioctl to jump into debugger.
*/
#define CVC 'N'
#define CVCREDIR_DEV "/devices/pseudo/cvcredir@0:cvcredir"
/*
* Layout of BBSRAM input and output buffers:
*
*
* |---------------|
* 0x1f400 | control msg | Receive buffer is reduced by two bytes to
* | 1 byte | accomodate a control msg area in which
* |---------------| information is sent from obp_helper to the
* | send buffer | cvc driver (e.g. break to obp) when
* | | communication is over BBSRAM.
* | 1020 bytes |
* |---------------|
* | send count |
* 0x1f7fe | 2 bytes |
* |---------------|
* | receive buffer|
* | |
* | 1022 bytes |
* |---------------|
* | output count |
* 0x1fbfe | 2 bytes |
* |---------------|
*
*/
#define BBSRAM_COUNT_SIZE sizeof (short)
#define CVC_IN_SIZE 256
#define CVC_OUT_SIZE 1024
/*
* Control msgs sent across BBSRAM from obp_helper to cvc driver
*/
#define CVC_BBSRAM_BREAK 1
#define CVC_BBSRAM_DISCONNECT 2
#define CVC_BBSRAM_VIA_NET 3
#define CVC_BBSRAM_VIA_BBSRAM 4
#define CVC_BBSRAM_CLOSE_NET 5
#ifdef _KERNEL
extern void cvc_assign_iocpu(int cpu_id);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _CVC_H */