xref: /onnv-gate/usr/src/uts/sun4u/montecarlo/sys/scsb_cbi.h (revision 1708:ea74d8598a3a)
1*1708Sstevel /*
2*1708Sstevel  * CDDL HEADER START
3*1708Sstevel  *
4*1708Sstevel  * The contents of this file are subject to the terms of the
5*1708Sstevel  * Common Development and Distribution License (the "License").
6*1708Sstevel  * You may not use this file except in compliance with the License.
7*1708Sstevel  *
8*1708Sstevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1708Sstevel  * or http://www.opensolaris.org/os/licensing.
10*1708Sstevel  * See the License for the specific language governing permissions
11*1708Sstevel  * and limitations under the License.
12*1708Sstevel  *
13*1708Sstevel  * When distributing Covered Code, include this CDDL HEADER in each
14*1708Sstevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1708Sstevel  * If applicable, add the following below this CDDL HEADER, with the
16*1708Sstevel  * fields enclosed by brackets "[]" replaced with your own identifying
17*1708Sstevel  * information: Portions Copyright [yyyy] [name of copyright owner]
18*1708Sstevel  *
19*1708Sstevel  * CDDL HEADER END
20*1708Sstevel  */
21*1708Sstevel 
22*1708Sstevel /*
23*1708Sstevel  * Copyright 2000 Sun Microsystems, Inc.  All rights reserved.
24*1708Sstevel  * Use is subject to license terms.
25*1708Sstevel  */
26*1708Sstevel 
27*1708Sstevel #ifndef	_MONTECARLO_SYS_SCSB_CBI_H
28*1708Sstevel #define	_MONTECARLO_SYS_SCSB_CBI_H
29*1708Sstevel 
30*1708Sstevel #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*1708Sstevel 
32*1708Sstevel #ifdef	_KERNEL
33*1708Sstevel 
34*1708Sstevel /*
35*1708Sstevel  * scsb_cbi.h
36*1708Sstevel  * scsb callback interface for some the MonteCarlo/Tonga I2C FRU drivers
37*1708Sstevel  */
38*1708Sstevel 
39*1708Sstevel #ifdef	__cplusplus
40*1708Sstevel extern "C" {
41*1708Sstevel #endif
42*1708Sstevel 
43*1708Sstevel typedef enum scsb_fru_event {
44*1708Sstevel 	FRU_INTR_EVENT,
45*1708Sstevel 	FRU_CMD_EVENT
46*1708Sstevel } scsb_fru_event_t;
47*1708Sstevel 
48*1708Sstevel scsb_fru_status_t scsb_fru_register(void (*cb_func)(void *,
49*1708Sstevel 						scsb_fru_event_t,
50*1708Sstevel 						scsb_fru_status_t),
51*1708Sstevel 					void *softstate_ptr,
52*1708Sstevel 					fru_id_t fru_id);
53*1708Sstevel void scsb_fru_unregister(void *soft_ptr, fru_id_t fru_id);
54*1708Sstevel scsb_fru_status_t scsb_fru_status(fru_id_t fru_id);
55*1708Sstevel 
56*1708Sstevel #ifdef	__cplusplus
57*1708Sstevel }
58*1708Sstevel #endif
59*1708Sstevel #endif	/* _KERNEL */
60*1708Sstevel 
61*1708Sstevel #endif	/* _MONTECARLO_SYS_SCSB_CBI_H */
62