From 7fd2b08e28e0e50f19b854785a07d6b15c0331e4 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 22 Jul 2009 21:28:45 +0000 Subject: Get rid of bus_space_tag_t now unused bus_extent and bus_reverse fields. --- sys/arch/sgi/pci/macepcibridge.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'sys/arch/sgi/pci/macepcibridge.c') diff --git a/sys/arch/sgi/pci/macepcibridge.c b/sys/arch/sgi/pci/macepcibridge.c index 9b214821e23..9de3c526ee1 100644 --- a/sys/arch/sgi/pci/macepcibridge.c +++ b/sys/arch/sgi/pci/macepcibridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macepcibridge.c,v 1.27 2009/07/22 20:28:21 miod Exp $ */ +/* $OpenBSD: macepcibridge.c,v 1.28 2009/07/22 21:28:44 miod Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. @@ -117,10 +117,8 @@ struct cfdriver macepcibr_cd = { }; bus_space_t mace_pcibbus_mem_tag = { + PHYS_TO_XKPHYS(MACE_PCI_MEM_BASE, CCA_NC), NULL, - 0ULL, - NULL, - 0, mace_pcib_read_1, mace_pcib_write_1, mace_pcib_read_2, mace_pcib_write_2, mace_pcib_read_4, mace_pcib_write_4, @@ -132,10 +130,8 @@ bus_space_t mace_pcibbus_mem_tag = { }; bus_space_t mace_pcibbus_io_tag = { + PHYS_TO_XKPHYS(MACE_PCI_IO_BASE, CCA_NC), NULL, - 0ULL, - NULL, - 0, mace_pcib_read_1, mace_pcib_write_1, mace_pcib_read_2, mace_pcib_write_2, mace_pcib_read_4, mace_pcib_write_4, @@ -214,11 +210,6 @@ mace_pcibrattach(struct device *parent, struct device *self, void *aux) struct confargs *ca = aux; pcireg_t pcireg; - mace_pcibbus_io_tag.bus_base = - PHYS_TO_XKPHYS(MACE_PCI_IO_BASE, CCA_NC); - mace_pcibbus_mem_tag.bus_base = - PHYS_TO_XKPHYS(MACE_PCI_MEM_BASE, CCA_NC); - sc->sc_mem_bus_space = &mace_pcibbus_mem_tag; sc->sc_io_bus_space = &mace_pcibbus_io_tag; -- cgit v1.2.3