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