diff options
Diffstat (limited to 'usr/src/uts/common/sys/hotplug/pci/pcicfg.h')
| -rw-r--r-- | usr/src/uts/common/sys/hotplug/pci/pcicfg.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/hotplug/pci/pcicfg.h b/usr/src/uts/common/sys/hotplug/pci/pcicfg.h new file mode 100644 index 0000000000..481a176f76 --- /dev/null +++ b/usr/src/uts/common/sys/hotplug/pci/pcicfg.h @@ -0,0 +1,72 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (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 + * or http://www.opensolaris.org/os/licensing. + * 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 (c) 1999-2001 by Sun Microsystems, Inc. + * All rights reserved. + */ + +#ifndef _SYS_HOTPLUG_PCI_PCICFG_H +#define _SYS_HOTPLUG_PCI_PCICFG_H + +#pragma ident "%Z%%M% %I% %E% SMI" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Interfaces exported by PCI configurator module, kernel/misc/pcicfg. + */ +int pcicfg_configure(dev_info_t *, uint_t); +int pcicfg_unconfigure(dev_info_t *, uint_t); + +#define PCICFG_SUCCESS DDI_SUCCESS +#define PCICFG_FAILURE DDI_FAILURE + +/* + * The following subclass definition for Non Transparent bridge should + * be moved to pci.h. + */ +#define PCI_BRIDGE_STBRIDGE 0x9 + +#define PCICFG_CONF_INDIRECT_MAP 1 +#define PCICFG_CONF_DIRECT_MAP 0 + +/* + * we recognize the non transparent bridge child nodes with the + * following property. This is specific to an implementation only. + * This property is specific to AP nodes only. + */ +#define PCICFG_DEV_CONF_MAP_PROP "pci-parent-indirect" + +/* + * If a non transparent bridge drives a hotplug/hotswap bus, then + * the following property must be defined for the node either by + * the driver or the OBP. + */ +#define PCICFG_BUS_CONF_MAP_PROP "pci-conf-indirect" + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS_HOTPLUG_PCI_PCICFG_H */ |
