/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PCIBUS_LABELS_H
#define _PCIBUS_LABELS_H
#include <hostbridge.h>
#include <did.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* When all we're provided is a physical slot number, these structures
* allow us to attach an accompanying label.
*/
typedef struct physnm {
int ps_num;
const char *ps_label;
} physnm_t;
typedef struct pphysnm {
} pphysnm_t;
typedef struct physlot_names {
int psn_nplats;
/*
* Sometimes OBP gets it wrong, there's a slot-names property, but it
* is incorrect. These structures allow us to replace a given label A
* with a different label B prior to attaching the label to a topology node.
*/
typedef struct slot_rwd {
} slot_rwd_t;
typedef struct plat_rwd {
} plat_rwd_t;
typedef struct slotnm_rewrite {
int srw_nplats;
/*
* We can locate a label without help from OBP slot-names or a
* physical slot-name, if need be. Having to resort to this, though is
* really an indication that there's a bug in the platform OBP.
*/
typedef struct devlab {
} devlab_t;
typedef struct pdevlabs {
} pdevlabs_t;
typedef struct missing_names {
#ifdef __cplusplus
}
#endif
#endif /* _PCIBUS_LABELS_H */