summaryrefslogtreecommitdiffstats
path: root/device/pci_device.c
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-02-25 17:50:38 +0000
committerMyles Watson <mylesgw@gmail.com>2009-02-25 17:50:38 +0000
commitcc295dd73a20f340cfab7e82a0a1d2a0a3b37edf (patch)
tree72062a461a260764115531a27abd1d264412b783 /device/pci_device.c
parent52bdacea134c881228f9617cfb6ba19b6d2a9e9f (diff)
downloadcoreboot-cc295dd73a20f340cfab7e82a0a1d2a0a3b37edf.tar.gz
coreboot-cc295dd73a20f340cfab7e82a0a1d2a0a3b37edf.tar.bz2
coreboot-cc295dd73a20f340cfab7e82a0a1d2a0a3b37edf.zip
This patch removes all *_PLUGIN_SUPPORT options and replaces most
*_SUPPORT options with NO_*_SUPPORT options. This means that you have to specify that you want a smaller BIOS, otherwise you get full functionality. HyperTransport is the only exception for a couple of reasons. HT requires a mainboard.h file which not all mainboards have, and it's less likely to be "plugged in" to a board that doesn't have some onboard HT. It also fixes a trivial typo in Kconfig (paylaod -> payload) Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1140 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'device/pci_device.c')
-rw-r--r--device/pci_device.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/device/pci_device.c b/device/pci_device.c
index 01f8972912ba..c76092dfddb2 100644
--- a/device/pci_device.c
+++ b/device/pci_device.c
@@ -32,19 +32,19 @@
#include <device/pci.h>
#include <device/pci_ids.h>
-#ifdef CONFIG_PCIX_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_PCIX_SUPPORT
#include <device/pcix.h>
#endif
-#ifdef CONFIG_AGP_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_AGP_SUPPORT
#include <device/agp.h>
#endif
-#ifdef CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
+#ifdef CONFIG_HYPERTRANSPORT_SUPPORT
#include <device/hypertransport.h>
#endif
-#ifdef CONFIG_PCIE_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_PCIE_SUPPORT
#include <device/pcie.h>
#endif
-#ifdef CONFIG_CARDBUS_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_CARDBUS_SUPPORT
#include <device/cardbus.h>
#endif
@@ -792,7 +792,7 @@ const struct device_operations default_pci_ops_bus = {
*/
static const struct device_operations *get_pci_bridge_ops(struct device *dev)
{
-#ifdef CONFIG_PCIX_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_PCIX_SUPPORT
unsigned int pcix_pos;
pcix_pos = pci_find_capability(dev, PCI_CAP_ID_PCIX);
if (pcix_pos) {
@@ -801,12 +801,12 @@ static const struct device_operations *get_pci_bridge_ops(struct device *dev)
return &default_pcix_ops_bus;
}
#endif
-#ifdef CONFIG_AGP_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_AGP_SUPPORT
/* How do I detect an PCI to AGP bridge? */
#warning AGP detection not implemented, so AGP bridge plugin not supported.
#endif
-#ifdef CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
+#ifdef CONFIG_HYPERTRANSPORT_SUPPORT
unsigned int ht_pos;
ht_pos = 0;
while ((ht_pos = pci_find_next_capability(dev, PCI_CAP_ID_HT, ht_pos))) {
@@ -821,7 +821,7 @@ static const struct device_operations *get_pci_bridge_ops(struct device *dev)
}
}
#endif
-#ifdef CONFIG_PCIE_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_PCIE_SUPPORT
unsigned int pcie_pos;
pcie_pos = pci_find_capability(dev, PCI_CAP_ID_PCIE);
if (pcie_pos) {
@@ -897,7 +897,7 @@ static void set_pci_ops(struct device *dev)
else
dev->ops = get_pci_bridge_ops(dev);
break;
-#ifdef CONFIG_CARDBUS_PLUGIN_SUPPORT
+#ifndef CONFIG_NO_CARDBUS_SUPPORT
case PCI_HEADER_TYPE_CARDBUS:
dev->ops = &default_cardbus_ops_bus;
break;