diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-10 15:03:18 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-10 15:03:18 +0000 |
commit | 74bf55af09e87235f63d504f70036233bbc2a632 (patch) | |
tree | e94f6a6ca0027f399ce3c30ca84a6b46933ffbad /sys/arch/amd64 | |
parent | b4838ee1817939fdb2ae083508222fdaf40d6382 (diff) |
remove the _BUS_DMA_PRIVATE define from amd64 and i386.
a define needed to get to ``private'' functions that needs to be defined
5 or more times isn't much use and may cause namespace issues anyway.
Other archs will probably follow.
Discussed in portugal. "Hell yes" weingart@, ok kettenis@, no
objections miod@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/bus_dma.c | 3 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/bus_space.c | 3 | ||||
-rw-r--r-- | sys/arch/amd64/include/bus.h | 6 | ||||
-rw-r--r-- | sys/arch/amd64/isa/isa_machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/amd64/pci/iommu.c | 3 | ||||
-rw-r--r-- | sys/arch/amd64/pci/pci_machdep.c | 3 |
6 files changed, 6 insertions, 15 deletions
diff --git a/sys/arch/amd64/amd64/bus_dma.c b/sys/arch/amd64/amd64/bus_dma.c index 6f52ee5d9c5..20d951a08c0 100644 --- a/sys/arch/amd64/amd64/bus_dma.c +++ b/sys/arch/amd64/amd64/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.15 2009/03/07 15:34:34 miod Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.16 2009/03/10 15:03:16 oga Exp $ */ /* $NetBSD: bus_dma.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */ /*- @@ -95,7 +95,6 @@ #include <sys/mbuf.h> #include <sys/proc.h> -#define _BUS_DMA_PRIVATE #include <machine/bus.h> #include <dev/isa/isareg.h> diff --git a/sys/arch/amd64/amd64/bus_space.c b/sys/arch/amd64/amd64/bus_space.c index bfc306c8b63..6a8f17a611e 100644 --- a/sys/arch/amd64/amd64/bus_space.c +++ b/sys/arch/amd64/amd64/bus_space.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_space.c,v 1.11 2008/12/03 15:46:06 oga Exp $ */ +/* $OpenBSD: bus_space.c,v 1.12 2009/03/10 15:03:16 oga Exp $ */ /* $NetBSD: bus_space.c,v 1.2 2003/03/14 18:47:53 christos Exp $ */ /*- @@ -38,7 +38,6 @@ #include <uvm/uvm_extern.h> -#define _BUS_DMA_PRIVATE #include <machine/bus.h> #include <dev/isa/isareg.h> diff --git a/sys/arch/amd64/include/bus.h b/sys/arch/amd64/include/bus.h index e2fa9ec1fbf..8217a265614 100644 --- a/sys/arch/amd64/include/bus.h +++ b/sys/arch/amd64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.14 2009/02/05 01:15:20 oga Exp $ */ +/* $OpenBSD: bus.h,v 1.15 2009/03/10 15:03:16 oga Exp $ */ /* $NetBSD: bus.h,v 1.6 1996/11/10 03:19:25 thorpej Exp $ */ /*- @@ -571,7 +571,6 @@ struct bus_dmamap { bus_dma_segment_t dm_segs[1]; /* segments; variable length */ }; -#ifdef _BUS_DMA_PRIVATE int _bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t, bus_size_t, int, bus_dmamap_t *); void _bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t); @@ -612,8 +611,5 @@ int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size, */ paddr_t bus_space_mmap(bus_space_tag_t, bus_addr_t, off_t, int, int); - - -#endif /* _BUS_DMA_PRIVATE */ #endif /* _X86_BUS_H_ */ diff --git a/sys/arch/amd64/isa/isa_machdep.c b/sys/arch/amd64/isa/isa_machdep.c index 2861959eb62..99c25c181a5 100644 --- a/sys/arch/amd64/isa/isa_machdep.c +++ b/sys/arch/amd64/isa/isa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.c,v 1.19 2008/12/11 17:07:14 oga Exp $ */ +/* $OpenBSD: isa_machdep.c,v 1.20 2009/03/10 15:03:17 oga Exp $ */ /* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ #define ISA_DMA_STATS @@ -85,7 +85,6 @@ #include <machine/mpbiosvar.h> #endif -#define _BUS_DMA_PRIVATE #include <machine/bus.h> #include <machine/intr.h> diff --git a/sys/arch/amd64/pci/iommu.c b/sys/arch/amd64/pci/iommu.c index 1fc6f1828a5..c2082727647 100644 --- a/sys/arch/amd64/pci/iommu.c +++ b/sys/arch/amd64/pci/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.23 2008/12/03 15:46:06 oga Exp $ */ +/* $OpenBSD: iommu.c,v 1.24 2009/03/10 15:03:17 oga Exp $ */ /* * Copyright (c) 2005 Jason L. Wright (jason@thought.net) @@ -38,7 +38,6 @@ #include <uvm/uvm_extern.h> -#define _BUS_DMA_PRIVATE #include <machine/bus.h> #include <machine/pio.h> diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c index a11c8cd2ebe..5df71ab40c4 100644 --- a/sys/arch/amd64/pci/pci_machdep.c +++ b/sys/arch/amd64/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.21 2009/01/27 15:33:59 oga Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.22 2009/03/10 15:03:17 oga Exp $ */ /* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */ /*- @@ -83,7 +83,6 @@ #include <uvm/uvm_extern.h> -#define _BUS_DMA_PRIVATE #include <machine/bus.h> #include <machine/pio.h> |