/* * 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 "@(#)pcicfg.h 1.3 01/09/10 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 */