pcmu_util.h revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PCMU_UTIL_H
#define _SYS_PCMU_UTIL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Prototypes
*/
extern int pcmu_report_dev(dev_info_t *);
extern void free_pcmu_properties(pcmu_t *);
extern int pcmu_get_portid(dev_info_t *);
pci_regspec_t *);
pcmu_errstate_t *, int, uint32_t);
#ifdef DEBUG
extern uint64_t pcmu_debug_flags;
typedef struct pcmu_dflag_to_str {
char *string;
#define PCMU_DBG_ATTACH 0x1ull
#define PCMU_DBG_DETACH 0x2ull
#define PCMU_DBG_MAP 0x4ull
#define PCMU_DBG_A_INTX 0x8ull
#define PCMU_DBG_R_INTX 0x10ull
#define PCMU_DBG_INIT_CLD 0x20ull
#define PCMU_DBG_CTLOPS 0x40ull
#define PCMU_DBG_INTR 0x80ull
#define PCMU_DBG_ERR_INTR 0x100ull
#define PCMU_DBG_BUS_FAULT 0x200ull
#else /* DEBUG */
#endif /* DEBUG */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PCMU_UTIL_H */