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