diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-19 04:52:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-19 04:52:27 +0000 |
commit | 96646966eefc0d0cbe51c45a487d38b4584e2808 (patch) | |
tree | 8a94cbdfaa8c1c77c89246edae6b19d9c8180ac5 /sys/dev/pci/if_mtd_pci.c | |
parent | 8e9e3cdf12e1e2cf582a52be32f779337469fbbd (diff) |
prefer memory mappings (to io)
Diffstat (limited to 'sys/dev/pci/if_mtd_pci.c')
-rw-r--r-- | sys/dev/pci/if_mtd_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mtd_pci.c b/sys/dev/pci/if_mtd_pci.c index 4318d38122e..447cc4ae30c 100644 --- a/sys/dev/pci/if_mtd_pci.c +++ b/sys/dev/pci/if_mtd_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mtd_pci.c,v 1.2 2003/08/19 04:45:04 mickey Exp $ */ +/* $OpenBSD: if_mtd_pci.c,v 1.3 2003/08/19 04:52:26 mickey Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin @@ -82,7 +82,7 @@ mtd_pci_attach(struct device *parent, struct device *self, void *aux) command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); -#ifdef MTD_USE_MEMIO +#ifndef MTD_USE_IO if (pci_mapreg_map(pa, MTD_PCI_LOMEM, PCI_MAPREG_TYPE_MEM, 0, &sc->bus_tag, &sc->bus_handle, NULL, &iosize, 0)) { printf(": can't map mem space\n"); |