summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriz <riz@NetBSD.org>2006-08-20 16:03:30 +0000
committerriz <riz@NetBSD.org>2006-08-20 16:03:30 +0000
commitc250a823e737b1105305bd3d902a67d5bc34a1dc (patch)
treed22299d74cf3133fefb3de591ba427466bca454a /sys/dev
parent9d18036adcf89f9c0c8f65870bbbc326a033cf6b (diff)
Make this driver compile when SK_USEIOSPACE is defined - I have no
evidence that this is actually needed except for the existence of the code itself, but if it's going to be here, it should compile. Tested briefly on my ASUS motherboard with built-in sk interface.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_sk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index 2dabb1320f5..15786861c02 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sk.c,v 1.26 2006/05/31 21:46:32 riz Exp $ */
+/* $NetBSD: if_sk.c,v 1.27 2006/08/20 16:03:30 riz Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -1527,7 +1527,9 @@ skc_attach(struct device *parent, struct device *self, void *aux)
struct pci_attach_args *pa = aux;
struct skc_attach_args skca;
pci_chipset_tag_t pc = pa->pa_pc;
+#ifndef SK_USEIOSPACE
pcireg_t memtype;
+#endif
pci_intr_handle_t ih;
const char *intrstr = NULL;
bus_addr_t iobase;
@@ -1590,7 +1592,8 @@ skc_attach(struct device *parent, struct device *self, void *aux)
* Map control/status registers.
*/
if (pci_mapreg_map(pa, SK_PCI_LOIO, PCI_MAPREG_TYPE_IO, 0,
- &iobase, &iosize)) {
+ &sc->sk_btag, &sc->sk_bhandle,
+ &iobase, &iosize)) {
aprint_error(": can't find i/o space\n");
goto fail;
}