summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-05-20 22:00:39 +0000
committerimp <imp@FreeBSD.org>2009-05-20 22:00:39 +0000
commitcf4102fe7fd60325350ad3243f502912d3ce1c54 (patch)
tree901803bb979f730e8db6029b728d1810e3d6d0ed /sys/dev/pci/pci_pci.c
parent521ec23d7fcf9c1d927f8e44b30b0a40fde3731f (diff)
downloadFreeBSD-src-cf4102fe7fd60325350ad3243f502912d3ce1c54.zip
FreeBSD-src-cf4102fe7fd60325350ad3243f502912d3ce1c54.tar.gz
Revert junk from last commit. These are WIP and not ready (and don't
match the description of the last commit).
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 8bb2eff..15cad92 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -52,13 +52,6 @@ __FBSDID("$FreeBSD$");
#include "pcib_if.h"
-// #define KLUDGE_O_MATIC
-#ifdef KLUDGE_O_MATIC
-int hack_unit = 1;
-u_long mem_base = 0xc0400000ul;
-u_long mem_limit = 0x00100000ul;
-#endif
-
static int pcib_probe(device_t dev);
static device_method_t pcib_methods[] = {
@@ -331,14 +324,6 @@ pcib_attach(device_t dev)
struct pcib_softc *sc;
device_t child;
-#ifdef KLUDGE_O_MATIC
- if (device_get_unit(dev) == hack_unit) {
- pci_write_config(dev, PCIR_COMMAND,
- PCIM_CMD_MEMEN | pci_read_config(dev, PCIR_COMMAND, 1), 1);
- pci_write_config(dev, PCIR_MEMBASE_1, mem_base >> 16, 2);
- pci_write_config(dev, PCIR_MEMLIMIT_1, mem_limit >> 16, 2);
- }
-#endif
pcib_attach_common(dev);
sc = device_get_softc(dev);
if (sc->secbus != 0) {
OpenPOWER on IntegriCloud