From 1c42de6d020629af774dd9e9fc81be3f3ed9398e Mon Sep 17 00:00:00 2001 From: gd78059 Date: Mon, 30 Apr 2007 10:50:04 -0700 Subject: 6393470 move driver bscbus to usr/src 6393471 move driver bscv to usr/src 6393472 move driver gptwo_cpu to usr/src 6393474 move driver gptwocfg to usr/src 6393478 move driver todstarcat to usr/src 6393479 move driver i2bsc to usr/src 6393481 move driver todm5819p_rmc to usr/src --- usr/src/uts/common/sys/bscbus.h | 63 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 usr/src/uts/common/sys/bscbus.h (limited to 'usr/src/uts/common/sys/bscbus.h') diff --git a/usr/src/uts/common/sys/bscbus.h b/usr/src/uts/common/sys/bscbus.h new file mode 100644 index 0000000000..0c57cb93f3 --- /dev/null +++ b/usr/src/uts/common/sys/bscbus.h @@ -0,0 +1,63 @@ +/* + * 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 + * or http://www.opensolaris.org/os/licensing. + * 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 2001-2003 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#ifndef _SYS_BSCBUS_H +#define _SYS_BSCBUS_H + +#pragma ident "%Z%%M% %I% %E% SMI" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * The bscbus nexus driver provides the same client interface as the lombus + * nexus driver. + */ +#include + +/* + * Register spaces (as lombus.h but spaces now have a channel + * value encoded in it too) + * + * Space* Size Range Meaning + * (bits) + * + * xx00 8 [0 .. 16383] LOM virtual registers + * xx01 8 [0] Watchdog pat (on write) + * xx02 16 [0] Async event info (read only) + * All 32 [-4 .. -12] Access handle fault info + * * xx is the channel number. + */ + +#define LOMBUS_SPACE_TO_REGSET(rsp) ((rsp) & 0xff) +#define LOMBUS_SPACE_TO_CHANNEL(rsp) (((rsp) & 0xff00) >> 8) +#define LOMBUS_SPACE(regset, channel) ((regset) | ((channel) << 8)) + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS_BSCBUS_H */ -- cgit v1.2.3