diff options
| author | Warner Losh <imp@FreeBSD.org> | 2009-05-20 22:00:39 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2009-05-20 22:00:39 +0000 |
| commit | 89c81b88f141fb1d561d5bd76046b1d02f7feebe (patch) | |
| tree | 901803bb979f730e8db6029b728d1810e3d6d0ed /sys/dev/pci/pci_pci.c | |
| parent | 9e31449738aa74508575c8ff4a01ac3c1594b484 (diff) | |
Notes
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
| -rw-r--r-- | sys/dev/pci/pci_pci.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 8bb2eff39156..15cad92484d7 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) { |
