xref: /titanic_50/usr/src/uts/sun4u/montecarlo/sys/hsc.h (revision 2a8d6eba033e4713ab12b61178f0513f1f075482)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef _MONTECARLO_SYS_HSC_H
28 #define	_MONTECARLO_SYS_HSC_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * These functions serve as the interface between the SCSB and the HSC
38  */
39 int	hsc_slot_occupancy(int, boolean_t, int, int);
40 int	hsc_board_healthy(int slot_number, boolean_t healthy);
41 int	hsc_init();
42 int	hsc_fini();
43 void	hsc_ac_op();
44 int	scsb_hsc_attach(dev_info_t *, void *, int);
45 int	scsb_hsc_detach(dev_info_t *, void *, int);
46 int	scsb_get_slot_state();
47 int	scsb_reset_slot();
48 int	scsb_connect_slot();
49 int	scsb_disconnect_slot();
50 int	scsb_hsc_ac_op();
51 int	scsb_hsc_freeze(dev_info_t *);
52 int	scsb_hsc_restore(dev_info_t *);
53 int	scsb_hsc_freeze_check(dev_info_t *);
54 
55 
56 #ifdef	__cplusplus
57 }
58 #endif
59 
60 #endif	/* _MONTECARLO_SYS_HSC_H */
61