xref: /titanic_41/usr/src/uts/common/io/cardbus/cardbus_hp.h (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
1*3db86aabSstevel /*
2*3db86aabSstevel  * CDDL HEADER START
3*3db86aabSstevel  *
4*3db86aabSstevel  * The contents of this file are subject to the terms of the
5*3db86aabSstevel  * Common Development and Distribution License (the "License").
6*3db86aabSstevel  * You may not use this file except in compliance with the License.
7*3db86aabSstevel  *
8*3db86aabSstevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3db86aabSstevel  * or http://www.opensolaris.org/os/licensing.
10*3db86aabSstevel  * See the License for the specific language governing permissions
11*3db86aabSstevel  * and limitations under the License.
12*3db86aabSstevel  *
13*3db86aabSstevel  * When distributing Covered Code, include this CDDL HEADER in each
14*3db86aabSstevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3db86aabSstevel  * If applicable, add the following below this CDDL HEADER, with the
16*3db86aabSstevel  * fields enclosed by brackets "[]" replaced with your own identifying
17*3db86aabSstevel  * information: Portions Copyright [yyyy] [name of copyright owner]
18*3db86aabSstevel  *
19*3db86aabSstevel  * CDDL HEADER END
20*3db86aabSstevel  */
21*3db86aabSstevel /*
22*3db86aabSstevel  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*3db86aabSstevel  * Use is subject to license terms.
24*3db86aabSstevel  */
25*3db86aabSstevel /*
26*3db86aabSstevel  * Copyright (c)  * Copyright (c) 2001 Tadpole Technology plc
27*3db86aabSstevel  * All rights reserved.
28*3db86aabSstevel  */
29*3db86aabSstevel 
30*3db86aabSstevel #ifndef	_SYS_CARDBUS_HP_H
31*3db86aabSstevel #define	_SYS_CARDBUS_HP_H
32*3db86aabSstevel 
33*3db86aabSstevel #pragma ident	"%Z%%M%	%I%	%E% SMI"
34*3db86aabSstevel 
35*3db86aabSstevel #ifdef  __cplusplus
36*3db86aabSstevel extern "C" {
37*3db86aabSstevel #endif
38*3db86aabSstevel 
39*3db86aabSstevel struct  cardbus_config_ctrl {
40*3db86aabSstevel 	int	op;	/* operation - PCICFG_OP_ONLINE/PCICFG_OP_OFFLINE */
41*3db86aabSstevel 	int	busno;
42*3db86aabSstevel 	int	rv;	/* return error code */
43*3db86aabSstevel 	uint_t	flags;
44*3db86aabSstevel 	dev_info_t	*dip;	/* first error occurred here */
45*3db86aabSstevel };
46*3db86aabSstevel 
47*3db86aabSstevel extern void *cardbus_state;
48*3db86aabSstevel 
49*3db86aabSstevel extern int cardbus_init_hotplug(cbus_t *cbp);
50*3db86aabSstevel extern int cardbus_unconfigure_node(dev_info_t *dip, int prim_bus,
51*3db86aabSstevel 		boolean_t top_bridge);
52*3db86aabSstevel extern int cbus_configure(dev_info_t *dip, void *hdl);
53*3db86aabSstevel 
54*3db86aabSstevel #ifdef  __cplusplus
55*3db86aabSstevel }
56*3db86aabSstevel #endif
57*3db86aabSstevel 
58*3db86aabSstevel #endif	/* _SYS_CARDBUS_HP_H */
59