Sync with HEAD.diff -r1.10.88.5 -r1.10.88.6 src/sys/arch/powerpc/conf/files.ibm4xx
(uebayasi)
--- src/sys/arch/powerpc/conf/files.ibm4xx 2010/11/09 06:03:39 1.10.88.5
+++ src/sys/arch/powerpc/conf/files.ibm4xx 2010/11/09 06:06:30 1.10.88.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: files.ibm4xx,v 1.10.88.5 2010/11/09 06:03:39 uebayasi Exp $ | 1 | # $NetBSD: files.ibm4xx,v 1.10.88.6 2010/11/09 06:06:30 uebayasi Exp $ | |
2 | # | 2 | # | |
3 | # IBM 4xx specific configuration info | 3 | # IBM 4xx specific configuration info | |
4 | 4 | |||
5 | include "arch/powerpc/fpu/files.fpu" | 5 | include "arch/powerpc/fpu/files.fpu" | |
6 | 6 | |||
7 | defflag opt_uic.h MULTIUIC | 7 | defflag opt_uic.h MULTIUIC | |
8 | file arch/powerpc/ibm4xx/intr.c | 8 | file arch/powerpc/ibm4xx/intr.c | |
9 | 9 | |||
10 | # Board Properties | 10 | # Board Properties | |
11 | file arch/powerpc/ibm4xx/board_prop.c | 11 | file arch/powerpc/ibm4xx/board_prop.c | |
12 | 12 | |||
13 | # Processor Local Bus | 13 | # Processor Local Bus | |
14 | device plb { [irq = -1] } | 14 | device plb { [irq = -1] } | |
@@ -59,30 +59,22 @@ include "dev/i2o/files.i2o" | @@ -59,30 +59,22 @@ include "dev/i2o/files.i2o" | |||
59 | include "dev/pci/files.pci" | 59 | include "dev/pci/files.pci" | |
60 | 60 | |||
61 | # On-chip PCI bridge | 61 | # On-chip PCI bridge | |
62 | device pchb : pcibus | 62 | device pchb : pcibus | |
63 | attach pchb at plb | 63 | attach pchb at plb | |
64 | file arch/powerpc/ibm4xx/pci/pchb.c pchb | 64 | file arch/powerpc/ibm4xx/pci/pchb.c pchb | |
65 | file arch/powerpc/ibm4xx/pci/pci_machdep.c pci | 65 | file arch/powerpc/ibm4xx/pci/pci_machdep.c pci | |
66 | file arch/powerpc/ibm4xx/dev/ibm405gp.c pchb | pci | 66 | file arch/powerpc/ibm4xx/dev/ibm405gp.c pchb | pci | |
67 | 67 | |||
68 | # On-chip IIC controller | 68 | # On-chip IIC controller | |
69 | device gpiic: i2cbus, i2c_bitbang | 69 | device gpiic: i2cbus, i2c_bitbang | |
70 | attach gpiic at opb | 70 | attach gpiic at opb | |
71 | file arch/powerpc/ibm4xx/dev/gpiic_opb.c gpiic | 71 | file arch/powerpc/ibm4xx/dev/gpiic_opb.c gpiic | |
72 | <<<<<<< files.ibm4xx | |||
73 | 72 | |||
74 | # External bus | 73 | # External bus | |
75 | device exb {[addr = -1]} | 74 | device exb {[addr = -1]} | |
76 | attach exb at plb | 75 | attach exb at plb | |
77 | file arch/powerpc/ibm4xx/dev/exb.c exb | 76 | file arch/powerpc/ibm4xx/dev/exb.c exb | |
78 | 77 | |||
79 | # FlashROM on external bus | 78 | # FlashROM on external bus | |
80 | attach flash at exb with flash_exb | 79 | attach flash at exb with flash_exb | |
81 | file arch/powerpc/ibm4xx/dev/flash_exb.c flash_exb needs-flag | 80 | file arch/powerpc/ibm4xx/dev/flash_exb.c flash_exb needs-flag | |
82 | ======= | |||
83 | ||||
84 | # External bus | |||
85 | #device exb {[addr = -1]} | |||
86 | #attach exb at plb | |||
87 | #file arch/powerpc/ibm4xx/dev/exb.c exb | |||
88 | >>>>>>> 1.12 |
--- src/sys/arch/powerpc/ibm4xx/dev/plb.c 2010/11/09 06:03:39 1.14.98.3
+++ src/sys/arch/powerpc/ibm4xx/dev/plb.c 2010/11/09 06:06:30 1.14.98.4
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: plb.c,v 1.14.98.3 2010/11/09 06:03:39 uebayasi Exp $ */ | 1 | /* $NetBSD: plb.c,v 1.14.98.4 2010/11/09 06:06:30 uebayasi Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright 2001 Wasabi Systems, Inc. | 4 | * Copyright 2001 Wasabi Systems, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Written by Eduardo Horvath and Simon Burge for Wasabi Systems, Inc. | 7 | * Written by Eduardo Horvath and Simon Burge for Wasabi Systems, Inc. | |
8 | * | 8 | * | |
9 | * Redistribution and use in source and binary forms, with or without | 9 | * Redistribution and use in source and binary forms, with or without | |
10 | * modification, are permitted provided that the following conditions | 10 | * modification, are permitted provided that the following conditions | |
11 | * are met: | 11 | * are met: | |
12 | * 1. Redistributions of source code must retain the above copyright | 12 | * 1. Redistributions of source code must retain the above copyright | |
13 | * notice, this list of conditions and the following disclaimer. | 13 | * notice, this list of conditions and the following disclaimer. | |
14 | * 2. Redistributions in binary form must reproduce the above copyright | 14 | * 2. Redistributions in binary form must reproduce the above copyright | |
@@ -56,27 +56,27 @@ | @@ -56,27 +56,27 @@ | |||
56 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 56 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
57 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 57 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
58 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 58 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
59 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 59 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
60 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 60 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
61 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 61 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
62 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 62 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
63 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 63 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
64 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 64 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
65 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 65 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
66 | */ | 66 | */ | |
67 | 67 | |||
68 | #include <sys/cdefs.h> | 68 | #include <sys/cdefs.h> | |
69 | __KERNEL_RCSID(0, "$NetBSD: plb.c,v 1.14.98.3 2010/11/09 06:03:39 uebayasi Exp $"); | 69 | __KERNEL_RCSID(0, "$NetBSD: plb.c,v 1.14.98.4 2010/11/09 06:06:30 uebayasi Exp $"); | |
70 | 70 | |||
71 | #include "locators.h" | 71 | #include "locators.h" | |
72 | #include "emac.h" | 72 | #include "emac.h" | |
73 | 73 | |||
74 | #include <sys/param.h> | 74 | #include <sys/param.h> | |
75 | #include <sys/systm.h> | 75 | #include <sys/systm.h> | |
76 | #include <sys/device.h> | 76 | #include <sys/device.h> | |
77 | #include <sys/extent.h> | 77 | #include <sys/extent.h> | |
78 | #include <sys/malloc.h> | 78 | #include <sys/malloc.h> | |
79 | 79 | |||
80 | #define _POWERPC_BUS_DMA_PRIVATE | 80 | #define _POWERPC_BUS_DMA_PRIVATE | |
81 | #include <machine/bus.h> | 81 | #include <machine/bus.h> | |
82 | 82 | |||
@@ -90,31 +90,27 @@ __KERNEL_RCSID(0, "$NetBSD: plb.c,v 1.14 | @@ -90,31 +90,27 @@ __KERNEL_RCSID(0, "$NetBSD: plb.c,v 1.14 | |||
90 | */ | 90 | */ | |
91 | const struct plb_dev plb_devs [] = { | 91 | const struct plb_dev plb_devs [] = { | |
92 | /* IBM 405GP */ | 92 | /* IBM 405GP */ | |
93 | { IBM405GP, "cpu", }, | 93 | { IBM405GP, "cpu", }, | |
94 | { IBM405GP, "ecc", }, | 94 | { IBM405GP, "ecc", }, | |
95 | { IBM405GP, "opb", }, | 95 | { IBM405GP, "opb", }, | |
96 | { IBM405GP, "pchb", }, | 96 | { IBM405GP, "pchb", }, | |
97 | 97 | |||
98 | /* IBM 405GPr */ | 98 | /* IBM 405GPr */ | |
99 | { IBM405GPR, "cpu", }, | 99 | { IBM405GPR, "cpu", }, | |
100 | { IBM405GPR, "ecc", }, | 100 | { IBM405GPR, "ecc", }, | |
101 | { IBM405GPR, "opb", }, | 101 | { IBM405GPR, "opb", }, | |
102 | { IBM405GPR, "pchb", }, | 102 | { IBM405GPR, "pchb", }, | |
103 | <<<<<<< plb.c | |||
104 | { IBM405GPR, "exb", }, | 103 | { IBM405GPR, "exb", }, | |
105 | ======= | |||
106 | { IBM405GPR, "exb", }, | |||
107 | >>>>>>> 1.16 | |||
108 | 104 | |||
109 | /* AMCC 405EX / EXR */ | 105 | /* AMCC 405EX / EXR */ | |
110 | { AMCC405EX, "cpu", }, | 106 | { AMCC405EX, "cpu", }, | |
111 | { AMCC405EX, "ecc", }, | 107 | { AMCC405EX, "ecc", }, | |
112 | { AMCC405EX, "opb", }, | 108 | { AMCC405EX, "opb", }, | |
113 | { AMCC405EX, "pchb", }, | 109 | { AMCC405EX, "pchb", }, | |
114 | 110 | |||
115 | { 0, NULL } | 111 | { 0, NULL } | |
116 | }; | 112 | }; | |
117 | 113 | |||
118 | static int plb_match(struct device *, struct cfdata *, void *); | 114 | static int plb_match(struct device *, struct cfdata *, void *); | |
119 | static void plb_attach(struct device *, struct device *, void *); | 115 | static void plb_attach(struct device *, struct device *, void *); | |
120 | static int plb_print(void *, const char *); | 116 | static int plb_print(void *, const char *); |
--- src/sys/arch/powerpc/powerpc/bus_space.c 2010/11/09 06:03:39 1.20.20.4
+++ src/sys/arch/powerpc/powerpc/bus_space.c 2010/11/09 06:06:31 1.20.20.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: bus_space.c,v 1.20.20.4 2010/11/09 06:03:39 uebayasi Exp $ */ | 1 | /* $NetBSD: bus_space.c,v 1.20.20.5 2010/11/09 06:06:31 uebayasi Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, | 8 | * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, | |
9 | * NASA Ames Research Center. | 9 | * NASA Ames Research Center. | |
10 | * | 10 | * | |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without | |
12 | * modification, are permitted provided that the following conditions | 12 | * modification, are permitted provided that the following conditions | |
13 | * are met: | 13 | * are met: | |
14 | * 1. Redistributions of source code must retain the above copyright | 14 | * 1. Redistributions of source code must retain the above copyright | |
@@ -21,42 +21,37 @@ | @@ -21,42 +21,37 @@ | |||
21 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 21 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
22 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 22 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
24 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 24 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
30 | * POSSIBILITY OF SUCH DAMAGE. | 30 | * POSSIBILITY OF SUCH DAMAGE. | |
31 | */ | 31 | */ | |
32 | 32 | |||
33 | #include <sys/cdefs.h> | 33 | #include <sys/cdefs.h> | |
34 | __KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.20.20.4 2010/11/09 06:03:39 uebayasi Exp $"); | 34 | __KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.20.20.5 2010/11/09 06:06:31 uebayasi Exp $"); | |
35 | 35 | |||
36 | #include <sys/param.h> | 36 | #include <sys/param.h> | |
37 | #include <sys/systm.h> | 37 | #include <sys/systm.h> | |
38 | #include <sys/kernel.h> | 38 | #include <sys/kernel.h> | |
39 | #include <sys/device.h> | 39 | #include <sys/device.h> | |
40 | #include <sys/endian.h> | 40 | #include <sys/endian.h> | |
41 | #include <sys/extent.h> | 41 | #include <sys/extent.h> | |
42 | #include <sys/malloc.h> | 42 | #include <sys/malloc.h> | |
43 | 43 | |||
44 | <<<<<<< bus_space.c | |||
45 | #include <uvm/uvm_extern.h> | |||
46 | #include <uvm/uvm_prot.h> | |||
47 | ======= | |||
48 | #include <uvm/uvm.h> | 44 | #include <uvm/uvm.h> | |
49 | >>>>>>> 1.23 | |||
50 | 45 | |||
51 | #define _POWERPC_BUS_SPACE_PRIVATE | 46 | #define _POWERPC_BUS_SPACE_PRIVATE | |
52 | #include <machine/bus.h> | 47 | #include <machine/bus.h> | |
53 | 48 | |||
54 | #if defined (PPC_OEA) || defined(PPC_OEA64) || defined (PPC_OEA64_BRIDGE) | 49 | #if defined (PPC_OEA) || defined(PPC_OEA64) || defined (PPC_OEA64_BRIDGE) | |
55 | #include <powerpc/spr.h> | 50 | #include <powerpc/spr.h> | |
56 | #include <powerpc/oea/bat.h> | 51 | #include <powerpc/oea/bat.h> | |
57 | #include <powerpc/oea/cpufeat.h> | 52 | #include <powerpc/oea/cpufeat.h> | |
58 | #include <powerpc/oea/pte.h> | 53 | #include <powerpc/oea/pte.h> | |
59 | #include <powerpc/oea/spr.h> | 54 | #include <powerpc/oea/spr.h> | |
60 | #include <powerpc/oea/sr_601.h> | 55 | #include <powerpc/oea/sr_601.h> | |
61 | 56 | |||
62 | extern unsigned long oeacpufeat; | 57 | extern unsigned long oeacpufeat; |
--- src/sys/arch/x86/x86/bus_dma.c 2010/11/09 06:03:40 1.52.2.4
+++ src/sys/arch/x86/x86/bus_dma.c 2010/11/09 06:06:31 1.52.2.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: bus_dma.c,v 1.52.2.4 2010/11/09 06:03:40 uebayasi Exp $ */ | 1 | /* $NetBSD: bus_dma.c,v 1.52.2.5 2010/11/09 06:06:31 uebayasi Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1996, 1997, 1998, 2007 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 1996, 1997, 1998, 2007 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace | 8 | * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace | |
9 | * Simulation Facility NASA Ames Research Center, and by Andrew Doran. | 9 | * Simulation Facility NASA Ames Research Center, and by Andrew Doran. | |
10 | * | 10 | * | |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without | |
12 | * modification, are permitted provided that the following conditions | 12 | * modification, are permitted provided that the following conditions | |
13 | * are met: | 13 | * are met: | |
14 | * 1. Redistributions of source code must retain the above copyright | 14 | * 1. Redistributions of source code must retain the above copyright | |
@@ -21,27 +21,27 @@ | @@ -21,27 +21,27 @@ | |||
21 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 21 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
22 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 22 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
24 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 24 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
30 | * POSSIBILITY OF SUCH DAMAGE. | 30 | * POSSIBILITY OF SUCH DAMAGE. | |
31 | */ | 31 | */ | |
32 | 32 | |||
33 | #include <sys/cdefs.h> | 33 | #include <sys/cdefs.h> | |
34 | __KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.52.2.4 2010/11/09 06:03:40 uebayasi Exp $"); | 34 | __KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.52.2.5 2010/11/09 06:06:31 uebayasi Exp $"); | |
35 | 35 | |||
36 | /* | 36 | /* | |
37 | * The following is included because _bus_dma_uiomove is derived from | 37 | * The following is included because _bus_dma_uiomove is derived from | |
38 | * uiomove() in kern_subr.c. | 38 | * uiomove() in kern_subr.c. | |
39 | */ | 39 | */ | |
40 | 40 | |||
41 | /* | 41 | /* | |
42 | * Copyright (c) 1982, 1986, 1991, 1993 | 42 | * Copyright (c) 1982, 1986, 1991, 1993 | |
43 | * The Regents of the University of California. All rights reserved. | 43 | * The Regents of the University of California. All rights reserved. | |
44 | * (c) UNIX System Laboratories, Inc. | 44 | * (c) UNIX System Laboratories, Inc. | |
45 | * All or some portions of this file are derived from material licensed | 45 | * All or some portions of this file are derived from material licensed | |
46 | * to the University of California by American Telephone and Telegraph | 46 | * to the University of California by American Telephone and Telegraph | |
47 | * Co. or Unix System Laboratories, Inc. and are reproduced herein with | 47 | * Co. or Unix System Laboratories, Inc. and are reproduced herein with | |
@@ -91,32 +91,27 @@ __KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v | @@ -91,32 +91,27 @@ __KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v | |||
91 | #include <sys/kernel.h> | 91 | #include <sys/kernel.h> | |
92 | #include <sys/malloc.h> | 92 | #include <sys/malloc.h> | |
93 | #include <sys/mbuf.h> | 93 | #include <sys/mbuf.h> | |
94 | #include <sys/proc.h> | 94 | #include <sys/proc.h> | |
95 | 95 | |||
96 | #include <machine/bus.h> | 96 | #include <machine/bus.h> | |
97 | #include <machine/bus_private.h> | 97 | #include <machine/bus_private.h> | |
98 | #include <machine/i82093var.h> | 98 | #include <machine/i82093var.h> | |
99 | #include <machine/mpbiosvar.h> | 99 | #include <machine/mpbiosvar.h> | |
100 | 100 | |||
101 | #include <dev/isa/isareg.h> | 101 | #include <dev/isa/isareg.h> | |
102 | #include <dev/isa/isavar.h> | 102 | #include <dev/isa/isavar.h> | |
103 | 103 | |||
104 | <<<<<<< bus_dma.c | |||
105 | #include <uvm/uvm_extern.h> | |||
106 | #include <uvm/uvm_page.h> | |||
107 | ======= | |||
108 | #include <uvm/uvm.h> | 104 | #include <uvm/uvm.h> | |
109 | >>>>>>> 1.56 | |||
110 | 105 | |||
111 | extern paddr_t avail_end; | 106 | extern paddr_t avail_end; | |
112 | 107 | |||
113 | #define IDTVEC(name) __CONCAT(X,name) | 108 | #define IDTVEC(name) __CONCAT(X,name) | |
114 | typedef void (vector)(void); | 109 | typedef void (vector)(void); | |
115 | extern vector *IDTVEC(intr)[]; | 110 | extern vector *IDTVEC(intr)[]; | |
116 | 111 | |||
117 | #define BUSDMA_BOUNCESTATS | 112 | #define BUSDMA_BOUNCESTATS | |
118 | 113 | |||
119 | #ifdef BUSDMA_BOUNCESTATS | 114 | #ifdef BUSDMA_BOUNCESTATS | |
120 | #define BUSDMA_EVCNT_DECL(name) \ | 115 | #define BUSDMA_EVCNT_DECL(name) \ | |
121 | static struct evcnt bus_dma_ev_##name = \ | 116 | static struct evcnt bus_dma_ev_##name = \ | |
122 | EVCNT_INITIALIZER(EVCNT_TYPE_MISC, NULL, "bus_dma", #name); \ | 117 | EVCNT_INITIALIZER(EVCNT_TYPE_MISC, NULL, "bus_dma", #name); \ |
--- src/sys/arch/x86/x86/cpu.c 2010/11/09 06:03:40 1.66.2.5
+++ src/sys/arch/x86/x86/cpu.c 2010/11/09 06:06:31 1.66.2.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: cpu.c,v 1.66.2.5 2010/11/09 06:03:40 uebayasi Exp $ */ | 1 | /* $NetBSD: cpu.c,v 1.66.2.6 2010/11/09 06:06:31 uebayasi Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2000, 2006, 2007, 2008 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2000, 2006, 2007, 2008 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Bill Sommerfeld of RedBack Networks Inc, and by Andrew Doran. | 8 | * by Bill Sommerfeld of RedBack Networks Inc, and by Andrew Doran. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -52,54 +52,49 @@ | @@ -52,54 +52,49 @@ | |||
52 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 52 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
53 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 53 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
54 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE | 54 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE | |
55 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 55 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
56 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 56 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
57 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 57 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
58 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 58 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
59 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 59 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
60 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 60 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
61 | * SUCH DAMAGE. | 61 | * SUCH DAMAGE. | |
62 | */ | 62 | */ | |
63 | 63 | |||
64 | #include <sys/cdefs.h> | 64 | #include <sys/cdefs.h> | |
65 | __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.66.2.5 2010/11/09 06:03:40 uebayasi Exp $"); | 65 | __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.66.2.6 2010/11/09 06:06:31 uebayasi Exp $"); | |
66 | 66 | |||
67 | #include "opt_ddb.h" | 67 | #include "opt_ddb.h" | |
68 | #include "opt_mpbios.h" /* for MPDEBUG */ | 68 | #include "opt_mpbios.h" /* for MPDEBUG */ | |
69 | #include "opt_mtrr.h" | 69 | #include "opt_mtrr.h" | |
70 | 70 | |||
71 | #include "lapic.h" | 71 | #include "lapic.h" | |
72 | #include "ioapic.h" | 72 | #include "ioapic.h" | |
73 | 73 | |||
74 | #ifdef i386 | 74 | #ifdef i386 | |
75 | #include "npx.h" | 75 | #include "npx.h" | |
76 | #endif | 76 | #endif | |
77 | 77 | |||
78 | #include <sys/param.h> | 78 | #include <sys/param.h> | |
79 | #include <sys/proc.h> | 79 | #include <sys/proc.h> | |
80 | #include <sys/systm.h> | 80 | #include <sys/systm.h> | |
81 | #include <sys/device.h> | 81 | #include <sys/device.h> | |
82 | #include <sys/kmem.h> | 82 | #include <sys/kmem.h> | |
83 | #include <sys/cpu.h> | 83 | #include <sys/cpu.h> | |
84 | #include <sys/atomic.h> | 84 | #include <sys/atomic.h> | |
85 | #include <sys/reboot.h> | 85 | #include <sys/reboot.h> | |
86 | 86 | |||
87 | <<<<<<< cpu.c | |||
88 | #include <uvm/uvm_extern.h> | |||
89 | #include <uvm/uvm_page.h> | |||
90 | ======= | |||
91 | #include <uvm/uvm.h> | 87 | #include <uvm/uvm.h> | |
92 | >>>>>>> 1.78 | |||
93 | 88 | |||
94 | #include <machine/cpufunc.h> | 89 | #include <machine/cpufunc.h> | |
95 | #include <machine/cpuvar.h> | 90 | #include <machine/cpuvar.h> | |
96 | #include <machine/pmap.h> | 91 | #include <machine/pmap.h> | |
97 | #include <machine/vmparam.h> | 92 | #include <machine/vmparam.h> | |
98 | #include <machine/mpbiosvar.h> | 93 | #include <machine/mpbiosvar.h> | |
99 | #include <machine/pcb.h> | 94 | #include <machine/pcb.h> | |
100 | #include <machine/specialreg.h> | 95 | #include <machine/specialreg.h> | |
101 | #include <machine/segments.h> | 96 | #include <machine/segments.h> | |
102 | #include <machine/gdt.h> | 97 | #include <machine/gdt.h> | |
103 | #include <machine/mtrr.h> | 98 | #include <machine/mtrr.h> | |
104 | #include <machine/pio.h> | 99 | #include <machine/pio.h> | |
105 | #include <machine/cpu_counter.h> | 100 | #include <machine/cpu_counter.h> |
--- src/sys/arch/xen/x86/cpu.c 2010/11/09 06:03:41 1.40.2.6
+++ src/sys/arch/xen/x86/cpu.c 2010/11/09 06:06:31 1.40.2.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: cpu.c,v 1.40.2.6 2010/11/09 06:03:41 uebayasi Exp $ */ | 1 | /* $NetBSD: cpu.c,v 1.40.2.7 2010/11/09 06:06:31 uebayasi Exp $ */ | |
2 | /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp */ | 2 | /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp */ | |
3 | 3 | |||
4 | /*- | 4 | /*- | |
5 | * Copyright (c) 2000 The NetBSD Foundation, Inc. | 5 | * Copyright (c) 2000 The NetBSD Foundation, Inc. | |
6 | * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi, | 6 | * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi, | |
7 | * All rights reserved. | 7 | * All rights reserved. | |
8 | * | 8 | * | |
9 | * This code is derived from software contributed to The NetBSD Foundation | 9 | * This code is derived from software contributed to The NetBSD Foundation | |
10 | * by RedBack Networks Inc. | 10 | * by RedBack Networks Inc. | |
11 | * | 11 | * | |
12 | * Author: Bill Sommerfeld | 12 | * Author: Bill Sommerfeld | |
13 | * | 13 | * | |
14 | * Redistribution and use in source and binary forms, with or without | 14 | * Redistribution and use in source and binary forms, with or without | |
@@ -56,52 +56,47 @@ | @@ -56,52 +56,47 @@ | |||
56 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 56 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
57 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 57 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
58 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE | 58 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE | |
59 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 59 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
60 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 60 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
61 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 61 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
62 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 62 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
63 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 63 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
64 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 64 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
65 | * SUCH DAMAGE. | 65 | * SUCH DAMAGE. | |
66 | */ | 66 | */ | |
67 | 67 | |||
68 | #include <sys/cdefs.h> | 68 | #include <sys/cdefs.h> | |
69 | __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.40.2.6 2010/11/09 06:03:41 uebayasi Exp $"); | 69 | __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.40.2.7 2010/11/09 06:06:31 uebayasi Exp $"); | |
70 | 70 | |||
71 | #include "opt_ddb.h" | 71 | #include "opt_ddb.h" | |
72 | #include "opt_multiprocessor.h" | 72 | #include "opt_multiprocessor.h" | |
73 | #include "opt_mpbios.h" /* for MPDEBUG */ | 73 | #include "opt_mpbios.h" /* for MPDEBUG */ | |
74 | #include "opt_mtrr.h" | 74 | #include "opt_mtrr.h" | |
75 | #include "opt_xen.h" | 75 | #include "opt_xen.h" | |
76 | 76 | |||
77 | #include "lapic.h" | 77 | #include "lapic.h" | |
78 | #include "ioapic.h" | 78 | #include "ioapic.h" | |
79 | 79 | |||
80 | #include <sys/param.h> | 80 | #include <sys/param.h> | |
81 | #include <sys/proc.h> | 81 | #include <sys/proc.h> | |
82 | #include <sys/systm.h> | 82 | #include <sys/systm.h> | |
83 | #include <sys/device.h> | 83 | #include <sys/device.h> | |
84 | #include <sys/kmem.h> | 84 | #include <sys/kmem.h> | |
85 | #include <sys/cpu.h> | 85 | #include <sys/cpu.h> | |
86 | #include <sys/atomic.h> | 86 | #include <sys/atomic.h> | |
87 | #include <sys/reboot.h> | 87 | #include <sys/reboot.h> | |
88 | 88 | |||
89 | <<<<<<< cpu.c | |||
90 | #include <uvm/uvm_extern.h> | |||
91 | #include <uvm/uvm_page.h> | |||
92 | ======= | |||
93 | #include <uvm/uvm.h> | 89 | #include <uvm/uvm.h> | |
94 | >>>>>>> 1.51 | |||
95 | 90 | |||
96 | #include <machine/cpufunc.h> | 91 | #include <machine/cpufunc.h> | |
97 | #include <machine/cpuvar.h> | 92 | #include <machine/cpuvar.h> | |
98 | #include <machine/pmap.h> | 93 | #include <machine/pmap.h> | |
99 | #include <machine/vmparam.h> | 94 | #include <machine/vmparam.h> | |
100 | #include <machine/mpbiosvar.h> | 95 | #include <machine/mpbiosvar.h> | |
101 | #include <machine/pcb.h> | 96 | #include <machine/pcb.h> | |
102 | #include <machine/specialreg.h> | 97 | #include <machine/specialreg.h> | |
103 | #include <machine/segments.h> | 98 | #include <machine/segments.h> | |
104 | #include <machine/gdt.h> | 99 | #include <machine/gdt.h> | |
105 | #include <machine/mtrr.h> | 100 | #include <machine/mtrr.h> | |
106 | #include <machine/pio.h> | 101 | #include <machine/pio.h> | |
107 | 102 |