3db86aab554edbb4244c8d1a1c90f152eee768afstevel * CDDL HEADER START
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * The contents of this file are subject to the terms of the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * Common Development and Distribution License (the "License").
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * You may not use this file except in compliance with the License.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * See the License for the specific language governing permissions
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * and limitations under the License.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * When distributing Covered Code, include this CDDL HEADER in each
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * If applicable, add the following below this CDDL HEADER, with the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * fields enclosed by brackets "[]" replaced with your own identifying
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * information: Portions Copyright [yyyy] [name of copyright owner]
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * CDDL HEADER END
11c2b4c0e543fe2e1e5910cde1f4422cc3218160rw * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * Use is subject to license terms.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * Copyright (c) * Copyright (c) 2001 Tadpole Technology plc
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * All rights reserved.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#pragma ident "%Z%%M% %I% %E% SMI"
3db86aab554edbb4244c8d1a1c90f152eee768afstevelextern "C" {
3db86aab554edbb4244c8d1a1c90f152eee768afsteveltypedef enum { PCIHP_SOFT_STATE_CLOSED, PCIHP_SOFT_STATE_OPEN,
3db86aab554edbb4244c8d1a1c90f152eee768afstevel * Main softstate per cardbus device
3db86aab554edbb4244c8d1a1c90f152eee768afstevel /* Nexus specific variables */
3db86aab554edbb4244c8d1a1c90f152eee768afstevel ap_condition_t condition; /* condition of the occupant */
3db86aab554edbb4244c8d1a1c90f152eee768afstevel /* Slot specific variables */
3db86aab554edbb4244c8d1a1c90f152eee768afstevel hpc_slot_info_t slot_info; /* Bus Specific SlotInfo */
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#if defined(DEBUG)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelextern void prom_printf(const char *, ...);
3db86aab554edbb4244c8d1a1c90f152eee768afstevelextern int cardbus_attach(dev_info_t *, cb_nexus_cb_t *);
3db86aab554edbb4244c8d1a1c90f152eee768afstevelextern boolean_t cardbus_load_cardbus(dev_info_t *, uint_t, uint32_t);
3db86aab554edbb4244c8d1a1c90f152eee768afstevelextern void cardbus_err(dev_info_t *dip, int level, const char *fmt, ...);
3db86aab554edbb4244c8d1a1c90f152eee768afstevel/* The following only exists for hotplug support */
3db86aab554edbb4244c8d1a1c90f152eee768afstevelextern int cardbus_ioctl(dev_t, int, intptr_t, int, cred_t *,
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#endif /* _SYS_CARDBUS_H */