1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright (c) 1999,2001 by Sun Microsystems, Inc. 24*0Sstevel@tonic-gate * All rights reserved. 25*0Sstevel@tonic-gate */ 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate #ifndef _CIS_PROTOS_H 28*0Sstevel@tonic-gate #define _CIS_PROTOS_H 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate #ifdef __cplusplus 33*0Sstevel@tonic-gate extern "C" { 34*0Sstevel@tonic-gate #endif 35*0Sstevel@tonic-gate 36*0Sstevel@tonic-gate /* 37*0Sstevel@tonic-gate * This file contains all of the function prototypes for functions 38*0Sstevel@tonic-gate * used by the CIS interpreter. 39*0Sstevel@tonic-gate * 40*0Sstevel@tonic-gate * Prototypes for general functions 41*0Sstevel@tonic-gate */ 42*0Sstevel@tonic-gate uint32_t cis_list_create(cistpl_callout_t *, cs_socket_t *); 43*0Sstevel@tonic-gate uint32_t cis_list_destroy(cs_socket_t *); 44*0Sstevel@tonic-gate uint32_t cis_list_lcreate(cistpl_callout_t *, cisptr_t *, 45*0Sstevel@tonic-gate cis_info_t *, cisparse_t *, cs_socket_t *); 46*0Sstevel@tonic-gate uint32_t cis_list_ldestroy(cistpl_t **); 47*0Sstevel@tonic-gate cistpl_t *cis_get_ltuple(cistpl_t *, cisdata_t, uint32_t); 48*0Sstevel@tonic-gate uint32_t cistpl_devspeed(cistpl_t *, cisdata_t, uint32_t); 49*0Sstevel@tonic-gate uint32_t cistpl_expd_parse(cistpl_t *, uint32_t *); 50*0Sstevel@tonic-gate uint32_t cis_convert_devspeed(convert_speed_t *); 51*0Sstevel@tonic-gate uint32_t cis_convert_devsize(convert_size_t *); 52*0Sstevel@tonic-gate uint32_t cis_validate_longlink_acm(cisptr_t *); 53*0Sstevel@tonic-gate 54*0Sstevel@tonic-gate /* 55*0Sstevel@tonic-gate * Prototypes for the tuple handlers 56*0Sstevel@tonic-gate */ 57*0Sstevel@tonic-gate uint32_t cis_tuple_handler(cistpl_callout_t *, cistpl_t *, uint32_t, 58*0Sstevel@tonic-gate void *, cisdata_t); 59*0Sstevel@tonic-gate uint32_t cis_no_tuple_handler(cistpl_callout_t *, cistpl_t *, 60*0Sstevel@tonic-gate uint32_t, void *); 61*0Sstevel@tonic-gate uint32_t cis_unknown_tuple_handler(cistpl_callout_t *, cistpl_t *, 62*0Sstevel@tonic-gate uint32_t, void *); 63*0Sstevel@tonic-gate uint32_t cistpl_vers_1_handler(cistpl_callout_t *, cistpl_t *, 64*0Sstevel@tonic-gate uint32_t, void *); 65*0Sstevel@tonic-gate uint32_t cistpl_config_handler(cistpl_callout_t *, cistpl_t *, 66*0Sstevel@tonic-gate uint32_t, void *); 67*0Sstevel@tonic-gate uint32_t cistpl_device_handler(cistpl_callout_t *, cistpl_t *, 68*0Sstevel@tonic-gate uint32_t, void *); 69*0Sstevel@tonic-gate uint32_t cistpl_cftable_handler(cistpl_callout_t *, cistpl_t *, 70*0Sstevel@tonic-gate uint32_t, void *); 71*0Sstevel@tonic-gate uint32_t cistpl_jedec_handler(cistpl_callout_t *, cistpl_t *, 72*0Sstevel@tonic-gate uint32_t, void *); 73*0Sstevel@tonic-gate uint32_t cistpl_vers_2_handler(cistpl_callout_t *, cistpl_t *, 74*0Sstevel@tonic-gate uint32_t, void *); 75*0Sstevel@tonic-gate uint32_t cistpl_format_handler(cistpl_callout_t *, cistpl_t *, 76*0Sstevel@tonic-gate uint32_t, void *); 77*0Sstevel@tonic-gate uint32_t cistpl_geometry_handler(cistpl_callout_t *, cistpl_t *, 78*0Sstevel@tonic-gate uint32_t, void *); 79*0Sstevel@tonic-gate uint32_t cistpl_byteorder_handler(cistpl_callout_t *, 80*0Sstevel@tonic-gate cistpl_t *, uint32_t, void *); 81*0Sstevel@tonic-gate uint32_t cistpl_date_handler(cistpl_callout_t *, cistpl_t *, 82*0Sstevel@tonic-gate uint32_t, void *); 83*0Sstevel@tonic-gate uint32_t cistpl_battery_handler(cistpl_callout_t *, cistpl_t *, 84*0Sstevel@tonic-gate uint32_t, void *); 85*0Sstevel@tonic-gate uint32_t cistpl_org_handler(cistpl_callout_t *, cistpl_t *, 86*0Sstevel@tonic-gate uint32_t, void *); 87*0Sstevel@tonic-gate uint32_t cistpl_funcid_handler(cistpl_callout_t *, cistpl_t *, 88*0Sstevel@tonic-gate uint32_t, void *); 89*0Sstevel@tonic-gate uint32_t cistpl_funce_serial_handler(cistpl_callout_t *, cistpl_t *, 90*0Sstevel@tonic-gate uint32_t, void *); 91*0Sstevel@tonic-gate uint32_t cistpl_funce_lan_handler(cistpl_callout_t *, 92*0Sstevel@tonic-gate cistpl_t *, uint32_t, void *); 93*0Sstevel@tonic-gate uint32_t cistpl_manfid_handler(cistpl_callout_t *, cistpl_t *, 94*0Sstevel@tonic-gate uint32_t, void *); 95*0Sstevel@tonic-gate uint32_t cistpl_linktarget_handler(cistpl_callout_t *, 96*0Sstevel@tonic-gate cistpl_t *, uint32_t, void *); 97*0Sstevel@tonic-gate uint32_t cistpl_longlink_ac_handler(cistpl_callout_t *, 98*0Sstevel@tonic-gate cistpl_t *, uint32_t, void *); 99*0Sstevel@tonic-gate uint32_t cistpl_longlink_mfc_handler(cistpl_callout_t *, 100*0Sstevel@tonic-gate cistpl_t *, uint32_t, void *); 101*0Sstevel@tonic-gate 102*0Sstevel@tonic-gate char *cis_getstr(cistpl_t *); 103*0Sstevel@tonic-gate 104*0Sstevel@tonic-gate #ifdef _KERNEL 105*0Sstevel@tonic-gate caddr_t cis_malloc(size_t); 106*0Sstevel@tonic-gate void cis_free(caddr_t); 107*0Sstevel@tonic-gate #endif /* _KERNEL */ 108*0Sstevel@tonic-gate 109*0Sstevel@tonic-gate #ifdef __cplusplus 110*0Sstevel@tonic-gate } 111*0Sstevel@tonic-gate #endif 112*0Sstevel@tonic-gate 113*0Sstevel@tonic-gate #endif /* _CIS_PROTOS_H */ 114