s/auxillary/auxiliary/ in comments.diff -r1.134 -r1.135 src/sys/arch/arm/include/armreg.h
(andvar)
--- src/sys/arch/arm/include/armreg.h 2021/11/27 08:25:18 1.134
+++ src/sys/arch/arm/include/armreg.h 2022/05/20 19:34:22 1.135
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: armreg.h,v 1.134 2021/11/27 08:25:18 skrll Exp $ */ | 1 | /* $NetBSD: armreg.h,v 1.135 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1998, 2001 Ben Harris | 4 | * Copyright (c) 1998, 2001 Ben Harris | |
5 | * Copyright (c) 1994-1996 Mark Brinicombe. | 5 | * Copyright (c) 1994-1996 Mark Brinicombe. | |
6 | * Copyright (c) 1994 Brini. | 6 | * Copyright (c) 1994 Brini. | |
7 | * All rights reserved. | 7 | * All rights reserved. | |
8 | * | 8 | * | |
9 | * This code is derived from software written for Brini by Mark Brinicombe | 9 | * This code is derived from software written for Brini by Mark Brinicombe | |
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 | |
@@ -260,27 +260,27 @@ | @@ -260,27 +260,27 @@ | |||
260 | #define XSCALE_AUXCTL_MD_WB_RA 0x00000000 /* mini-D$ wb, read-allocate */ | 260 | #define XSCALE_AUXCTL_MD_WB_RA 0x00000000 /* mini-D$ wb, read-allocate */ | |
261 | #define XSCALE_AUXCTL_MD_WB_RWA 0x00000010 /* mini-D$ wb, read/write-allocate */ | 261 | #define XSCALE_AUXCTL_MD_WB_RWA 0x00000010 /* mini-D$ wb, read/write-allocate */ | |
262 | #define XSCALE_AUXCTL_MD_WT 0x00000020 /* mini-D$ wt, read-allocate */ | 262 | #define XSCALE_AUXCTL_MD_WT 0x00000020 /* mini-D$ wt, read-allocate */ | |
263 | #define XSCALE_AUXCTL_MD_MASK 0x00000030 | 263 | #define XSCALE_AUXCTL_MD_MASK 0x00000030 | |
264 | 264 | |||
265 | /* ARM11 MPCore Auxiliary Control Register (CP15 register 1, opcode2 1) */ | 265 | /* ARM11 MPCore Auxiliary Control Register (CP15 register 1, opcode2 1) */ | |
266 | #define MPCORE_AUXCTL_RS 0x00000001 /* return stack */ | 266 | #define MPCORE_AUXCTL_RS 0x00000001 /* return stack */ | |
267 | #define MPCORE_AUXCTL_DB 0x00000002 /* dynamic branch prediction */ | 267 | #define MPCORE_AUXCTL_DB 0x00000002 /* dynamic branch prediction */ | |
268 | #define MPCORE_AUXCTL_SB 0x00000004 /* static branch prediction */ | 268 | #define MPCORE_AUXCTL_SB 0x00000004 /* static branch prediction */ | |
269 | #define MPCORE_AUXCTL_F 0x00000008 /* instruction folding enable */ | 269 | #define MPCORE_AUXCTL_F 0x00000008 /* instruction folding enable */ | |
270 | #define MPCORE_AUXCTL_EX 0x00000010 /* exclusive L1/L2 cache */ | 270 | #define MPCORE_AUXCTL_EX 0x00000010 /* exclusive L1/L2 cache */ | |
271 | #define MPCORE_AUXCTL_SA 0x00000020 /* SMP/AMP */ | 271 | #define MPCORE_AUXCTL_SA 0x00000020 /* SMP/AMP */ | |
272 | 272 | |||
273 | /* Marvell PJ4B Auxillary Control Register (CP15.0.R1.c0.1) */ | 273 | /* Marvell PJ4B Auxiliary Control Register (CP15.0.R1.c0.1) */ | |
274 | #define PJ4B_AUXCTL_FW __BIT(0) /* Cache and TLB updates broadcast */ | 274 | #define PJ4B_AUXCTL_FW __BIT(0) /* Cache and TLB updates broadcast */ | |
275 | #define PJ4B_AUXCTL_SMPNAMP __BIT(6) /* 0 = AMP, 1 = SMP */ | 275 | #define PJ4B_AUXCTL_SMPNAMP __BIT(6) /* 0 = AMP, 1 = SMP */ | |
276 | #define PJ4B_AUXCTL_L1PARITY __BIT(9) /* L1 parity checking */ | 276 | #define PJ4B_AUXCTL_L1PARITY __BIT(9) /* L1 parity checking */ | |
277 | 277 | |||
278 | /* Marvell PJ4B Auxialiary Function Modes Control 0 (CP15.1.R15.c2.0) */ | 278 | /* Marvell PJ4B Auxialiary Function Modes Control 0 (CP15.1.R15.c2.0) */ | |
279 | #define PJ4B_AUXFMC0_L2EN __BIT(0) /* Tightly-Coupled L2 cache enable */ | 279 | #define PJ4B_AUXFMC0_L2EN __BIT(0) /* Tightly-Coupled L2 cache enable */ | |
280 | #define PJ4B_AUXFMC0_SMPNAMP __BIT(1) /* 0 = AMP, 1 = SMP */ | 280 | #define PJ4B_AUXFMC0_SMPNAMP __BIT(1) /* 0 = AMP, 1 = SMP */ | |
281 | #define PJ4B_AUXFMC0_L1PARITY __BIT(2) /* alias of PJ4B_AUXCTL_L1PARITY */ | 281 | #define PJ4B_AUXFMC0_L1PARITY __BIT(2) /* alias of PJ4B_AUXCTL_L1PARITY */ | |
282 | #define PJ4B_AUXFMC0_DCSLFD __BIT(2) /* Disable DC Speculative linefill */ | 282 | #define PJ4B_AUXFMC0_DCSLFD __BIT(2) /* Disable DC Speculative linefill */ | |
283 | #define PJ4B_AUXFMC0_FW __BIT(8) /* alias of PJ4B_AUXCTL_FW*/ | 283 | #define PJ4B_AUXFMC0_FW __BIT(8) /* alias of PJ4B_AUXCTL_FW*/ | |
284 | 284 | |||
285 | /* Cortex-A5 Auxiliary Control Register (CP15 register 1, opcode 1) */ | 285 | /* Cortex-A5 Auxiliary Control Register (CP15 register 1, opcode 1) */ | |
286 | #define CORTEXA5_ACTLR_FW __BIT(0) | 286 | #define CORTEXA5_ACTLR_FW __BIT(0) |
--- src/sys/arch/powerpc/powerpc/powerpc_machdep.c 2022/05/03 20:52:31 1.84
+++ src/sys/arch/powerpc/powerpc/powerpc_machdep.c 2022/05/20 19:34:22 1.85
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: powerpc_machdep.c,v 1.84 2022/05/03 20:52:31 andvar Exp $ */ | 1 | /* $NetBSD: powerpc_machdep.c,v 1.85 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (C) 1995, 1996 Wolfgang Solfrank. | 4 | * Copyright (C) 1995, 1996 Wolfgang Solfrank. | |
5 | * Copyright (C) 1995, 1996 TooLs GmbH. | 5 | * Copyright (C) 1995, 1996 TooLs GmbH. | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without | |
9 | * modification, are permitted provided that the following conditions | 9 | * modification, are permitted provided that the following conditions | |
10 | * are met: | 10 | * are met: | |
11 | * 1. Redistributions of source code must retain the above copyright | 11 | * 1. Redistributions of source code must retain the above copyright | |
12 | * notice, this list of conditions and the following disclaimer. | 12 | * notice, this list of conditions and the following disclaimer. | |
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright | |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the | |
@@ -22,27 +22,27 @@ | @@ -22,27 +22,27 @@ | |||
22 | * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR | 22 | * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR | |
23 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 23 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
24 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 24 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
25 | * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 25 | * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
27 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 27 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
28 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 28 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
29 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 29 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
32 | */ | 32 | */ | |
33 | 33 | |||
34 | #include <sys/cdefs.h> | 34 | #include <sys/cdefs.h> | |
35 | __KERNEL_RCSID(0, "$NetBSD: powerpc_machdep.c,v 1.84 2022/05/03 20:52:31 andvar Exp $"); | 35 | __KERNEL_RCSID(0, "$NetBSD: powerpc_machdep.c,v 1.85 2022/05/20 19:34:22 andvar Exp $"); | |
36 | 36 | |||
37 | #ifdef _KERNEL_OPT | 37 | #ifdef _KERNEL_OPT | |
38 | #include "opt_altivec.h" | 38 | #include "opt_altivec.h" | |
39 | #include "opt_ddb.h" | 39 | #include "opt_ddb.h" | |
40 | #include "opt_modular.h" | 40 | #include "opt_modular.h" | |
41 | #include "opt_multiprocessor.h" | 41 | #include "opt_multiprocessor.h" | |
42 | #include "opt_ppcarch.h" | 42 | #include "opt_ppcarch.h" | |
43 | #endif | 43 | #endif | |
44 | 44 | |||
45 | #include <sys/param.h> | 45 | #include <sys/param.h> | |
46 | #include <sys/conf.h> | 46 | #include <sys/conf.h> | |
47 | #include <sys/disklabel.h> | 47 | #include <sys/disklabel.h> | |
48 | #include <sys/exec.h> | 48 | #include <sys/exec.h> | |
@@ -129,27 +129,27 @@ setregs(struct lwp *l, struct exec_packa | @@ -129,27 +129,27 @@ setregs(struct lwp *l, struct exec_packa | |||
129 | * Notes: | 129 | * Notes: | |
130 | * - obj and cleanup are the auxiliary and termination | 130 | * - obj and cleanup are the auxiliary and termination | |
131 | * vectors. They are fixed up by ld.elf_so. | 131 | * vectors. They are fixed up by ld.elf_so. | |
132 | * - ps_strings is a NetBSD extension, and will be | 132 | * - ps_strings is a NetBSD extension, and will be | |
133 | * ignored by executables which are strictly | 133 | * ignored by executables which are strictly | |
134 | * compliant with the SVR4 ABI. | 134 | * compliant with the SVR4 ABI. | |
135 | * | 135 | * | |
136 | * XXX We have to set both regs and retval here due to different | 136 | * XXX We have to set both regs and retval here due to different | |
137 | * XXX calling convention in trap.c and init_main.c. | 137 | * XXX calling convention in trap.c and init_main.c. | |
138 | */ | 138 | */ | |
139 | tf->tf_fixreg[3] = arginfo.ps_nargvstr; | 139 | tf->tf_fixreg[3] = arginfo.ps_nargvstr; | |
140 | tf->tf_fixreg[4] = (register_t)arginfo.ps_argvstr; | 140 | tf->tf_fixreg[4] = (register_t)arginfo.ps_argvstr; | |
141 | tf->tf_fixreg[5] = (register_t)arginfo.ps_envstr; | 141 | tf->tf_fixreg[5] = (register_t)arginfo.ps_envstr; | |
142 | tf->tf_fixreg[6] = 0; /* auxillary vector */ | 142 | tf->tf_fixreg[6] = 0; /* auxiliary vector */ | |
143 | tf->tf_fixreg[7] = 0; /* termination vector */ | 143 | tf->tf_fixreg[7] = 0; /* termination vector */ | |
144 | tf->tf_fixreg[8] = p->p_psstrp; /* NetBSD extension */ | 144 | tf->tf_fixreg[8] = p->p_psstrp; /* NetBSD extension */ | |
145 | 145 | |||
146 | #ifdef _LP64 | 146 | #ifdef _LP64 | |
147 | /* | 147 | /* | |
148 | * For native ELF64, entry point to the function | 148 | * For native ELF64, entry point to the function | |
149 | * descriptor which contains the real function address | 149 | * descriptor which contains the real function address | |
150 | * and its TOC base address. | 150 | * and its TOC base address. | |
151 | */ | 151 | */ | |
152 | uintptr_t fdesc[3] = { [0] = func, [1] = 0, [2] = 0 }; | 152 | uintptr_t fdesc[3] = { [0] = func, [1] = 0, [2] = 0 }; | |
153 | copyin((void *)func, fdesc, sizeof(fdesc)); | 153 | copyin((void *)func, fdesc, sizeof(fdesc)); | |
154 | tf->tf_fixreg[2] = fdesc[1] + epp->ep_entryoffset; | 154 | tf->tf_fixreg[2] = fdesc[1] + epp->ep_entryoffset; | |
155 | func = fdesc[0] + epp->ep_entryoffset; | 155 | func = fdesc[0] + epp->ep_entryoffset; |
--- src/sys/arch/sparc64/dev/ffbreg.h 2012/08/09 00:48:06 1.11
+++ src/sys/arch/sparc64/dev/ffbreg.h 2022/05/20 19:34:22 1.12
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: ffbreg.h,v 1.11 2012/08/09 00:48:06 macallan Exp $ */ | 1 | /* $NetBSD: ffbreg.h,v 1.12 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | /* $OpenBSD: creatorreg.h,v 1.5 2002/07/29 06:21:45 jason Exp $ */ | 2 | /* $OpenBSD: creatorreg.h,v 1.5 2002/07/29 06:21:45 jason Exp $ */ | |
3 | 3 | |||
4 | /* | 4 | /* | |
5 | * Copyright (c) 2002 Jason L. Wright (jason@thought.net) | 5 | * Copyright (c) 2002 Jason L. Wright (jason@thought.net) | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without | |
9 | * modification, are permitted provided that the following conditions | 9 | * modification, are permitted provided that the following conditions | |
10 | * are met: | 10 | * are met: | |
11 | * 1. Redistributions of source code must retain the above copyright | 11 | * 1. Redistributions of source code must retain the above copyright | |
12 | * notice, this list of conditions and the following disclaimer. | 12 | * notice, this list of conditions and the following disclaimer. | |
13 | * 2. Redistributions in binary form must reproduce the above copyright | 13 | * 2. Redistributions in binary form must reproduce the above copyright | |
14 | * notice, this list of conditions and the following disclaimer in the | 14 | * notice, this list of conditions and the following disclaimer in the | |
@@ -177,27 +177,27 @@ | @@ -177,27 +177,27 @@ | |||
177 | #define FFB_FBC_MAGNC 0x26c | 177 | #define FFB_FBC_MAGNC 0x26c | |
178 | #define FFB_FBC_FBCFG0 0x270 | 178 | #define FFB_FBC_FBCFG0 0x270 | |
179 | #define FFB_FBC_FBCFG1 0x274 | 179 | #define FFB_FBC_FBCFG1 0x274 | |
180 | #define FFB_FBC_FBCFG2 0x278 | 180 | #define FFB_FBC_FBCFG2 0x278 | |
181 | #define FFB_FBC_FBCFG3 0x27c | 181 | #define FFB_FBC_FBCFG3 0x27c | |
182 | #define FFB_FBC_PPCFG 0x280 | 182 | #define FFB_FBC_PPCFG 0x280 | |
183 | #define FFB_FBC_PICK 0x284 | 183 | #define FFB_FBC_PICK 0x284 | |
184 | #define FFB_FBC_FILLMODE 0x288 | 184 | #define FFB_FBC_FILLMODE 0x288 | |
185 | #define FFB_FBC_FBRAMWAC 0x28c /* FB RAM Write Address Control */ | 185 | #define FFB_FBC_FBRAMWAC 0x28c /* FB RAM Write Address Control */ | |
186 | #define FFB_FBC_PMASK 0x290 /* RGB Plane Mask */ | 186 | #define FFB_FBC_PMASK 0x290 /* RGB Plane Mask */ | |
187 | #define FFB_FBC_XPMASK 0x294 /* X PlaneMask */ | 187 | #define FFB_FBC_XPMASK 0x294 /* X PlaneMask */ | |
188 | #define FFB_FBC_YPMASK 0x298 | 188 | #define FFB_FBC_YPMASK 0x298 | |
189 | #define FFB_FBC_ZPMASK 0x29c | 189 | #define FFB_FBC_ZPMASK 0x29c | |
190 | #define FFB_FBC_CLIP0MIN 0x2a0 /* Auxilliary Viewport Clips */ | 190 | #define FFB_FBC_CLIP0MIN 0x2a0 /* Auxiliary Viewport Clips */ | |
191 | #define FFB_FBC_CLIP0MAX 0x2a4 | 191 | #define FFB_FBC_CLIP0MAX 0x2a4 | |
192 | #define FFB_FBC_CLIP1MIN 0x2a8 | 192 | #define FFB_FBC_CLIP1MIN 0x2a8 | |
193 | #define FFB_FBC_CLIP1MAX 0x2ac | 193 | #define FFB_FBC_CLIP1MAX 0x2ac | |
194 | #define FFB_FBC_CLIP2MIN 0x2b0 | 194 | #define FFB_FBC_CLIP2MIN 0x2b0 | |
195 | #define FFB_FBC_CLIP2MAX 0x2b4 | 195 | #define FFB_FBC_CLIP2MAX 0x2b4 | |
196 | #define FFB_FBC_CLIP3MIN 0x2b8 | 196 | #define FFB_FBC_CLIP3MIN 0x2b8 | |
197 | #define FFB_FBC_CLIP3MAX 0x2bc | 197 | #define FFB_FBC_CLIP3MAX 0x2bc | |
198 | #define FFB_FBC_RAWBLEND2 0x2c0 | 198 | #define FFB_FBC_RAWBLEND2 0x2c0 | |
199 | #define FFB_FBC_RAWPREBLEND 0x2c4 | 199 | #define FFB_FBC_RAWPREBLEND 0x2c4 | |
200 | #define FFB_FBC_RAWSTENCIL 0x2c8 | 200 | #define FFB_FBC_RAWSTENCIL 0x2c8 | |
201 | #define FFB_FBC_RAWSTENCILCTL 0x2cc | 201 | #define FFB_FBC_RAWSTENCILCTL 0x2cc | |
202 | #define FFB_FBC_THREEDRAM1 0x2d0 | 202 | #define FFB_FBC_THREEDRAM1 0x2d0 | |
203 | #define FFB_FBC_THREEDRAM2 0x2d4 | 203 | #define FFB_FBC_THREEDRAM2 0x2d4 |
--- src/sys/arch/sun3/dev/fd.c 2021/08/07 16:19:06 1.86
+++ src/sys/arch/sun3/dev/fd.c 2022/05/20 19:34:22 1.87
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: fd.c,v 1.86 2021/08/07 16:19:06 thorpej Exp $ */ | 1 | /* $NetBSD: fd.c,v 1.87 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1990 The Regents of the University of California. | 4 | * Copyright (c) 1990 The Regents of the University of California. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to Berkeley by | 7 | * This code is derived from software contributed to Berkeley by | |
8 | * Don Ahn. | 8 | * Don Ahn. | |
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. | |
@@ -62,27 +62,27 @@ | @@ -62,27 +62,27 @@ | |||
62 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | 62 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
63 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 63 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
64 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 64 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
65 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 65 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
66 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 66 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
67 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 67 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
68 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 68 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
69 | * SUCH DAMAGE. | 69 | * SUCH DAMAGE. | |
70 | * | 70 | * | |
71 | * @(#)fd.c 7.4 (Berkeley) 5/25/91 | 71 | * @(#)fd.c 7.4 (Berkeley) 5/25/91 | |
72 | */ | 72 | */ | |
73 | 73 | |||
74 | #include <sys/cdefs.h> | 74 | #include <sys/cdefs.h> | |
75 | __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.86 2021/08/07 16:19:06 thorpej Exp $"); | 75 | __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.87 2022/05/20 19:34:22 andvar Exp $"); | |
76 | 76 | |||
77 | #include "opt_ddb.h" | 77 | #include "opt_ddb.h" | |
78 | 78 | |||
79 | #include <sys/param.h> | 79 | #include <sys/param.h> | |
80 | #include <sys/systm.h> | 80 | #include <sys/systm.h> | |
81 | #include <sys/callout.h> | 81 | #include <sys/callout.h> | |
82 | #include <sys/kernel.h> | 82 | #include <sys/kernel.h> | |
83 | #include <sys/file.h> | 83 | #include <sys/file.h> | |
84 | #include <sys/ioctl.h> | 84 | #include <sys/ioctl.h> | |
85 | #include <sys/device.h> | 85 | #include <sys/device.h> | |
86 | #include <sys/disklabel.h> | 86 | #include <sys/disklabel.h> | |
87 | #include <sys/disk.h> | 87 | #include <sys/disk.h> | |
88 | #include <sys/fdio.h> | 88 | #include <sys/fdio.h> | |
@@ -330,27 +330,27 @@ static void fdcretry(struct fdc_softc *) | @@ -330,27 +330,27 @@ static void fdcretry(struct fdc_softc *) | |||
330 | static void fdfinish(struct fd_softc *, struct buf *); | 330 | static void fdfinish(struct fd_softc *, struct buf *); | |
331 | static int fdformat(dev_t, struct ne7_fd_formb *, struct proc *); | 331 | static int fdformat(dev_t, struct ne7_fd_formb *, struct proc *); | |
332 | static void fd_do_eject(struct fdc_softc *, int); | 332 | static void fd_do_eject(struct fdc_softc *, int); | |
333 | static void fd_mountroot_hook(device_t); | 333 | static void fd_mountroot_hook(device_t); | |
334 | static void fdconf(struct fdc_softc *); | 334 | static void fdconf(struct fdc_softc *); | |
335 | 335 | |||
336 | #define IPL_SOFTFD IPL_BIO | 336 | #define IPL_SOFTFD IPL_BIO | |
337 | #define FDC_SOFTPRI 2 | 337 | #define FDC_SOFTPRI 2 | |
338 | #define FD_SET_SWINTR() softint_schedule(fdc->sc_si); | 338 | #define FD_SET_SWINTR() softint_schedule(fdc->sc_si); | |
339 | 339 | |||
340 | /* | 340 | /* | |
341 | * The Floppy Control Register on the sun3x, not to be confused with the | 341 | * The Floppy Control Register on the sun3x, not to be confused with the | |
342 | * Floppy ControllER Registers that this driver mostly insterfaces with, | 342 | * Floppy ControllER Registers that this driver mostly insterfaces with, | |
343 | * controls some of the auxillary functions of the floppy drive. These | 343 | * controls some of the auxiliary functions of the floppy drive. These | |
344 | * include asserting the floppy eject and terminal data count (or TC) pins | 344 | * include asserting the floppy eject and terminal data count (or TC) pins | |
345 | * of the floppy drive and controller chip respectively. | 345 | * of the floppy drive and controller chip respectively. | |
346 | * | 346 | * | |
347 | * Often it is necessary to toggle individual bits within this register | 347 | * Often it is necessary to toggle individual bits within this register | |
348 | * while keeping the others untouched. However, the register does not | 348 | * while keeping the others untouched. However, the register does not | |
349 | * present its latched data to the processor when read. This prevents the | 349 | * present its latched data to the processor when read. This prevents the | |
350 | * use of a read-modify-write cycle that would normally be used to modify | 350 | * use of a read-modify-write cycle that would normally be used to modify | |
351 | * individual bits. To get around this we must keep a copy of register's | 351 | * individual bits. To get around this we must keep a copy of register's | |
352 | * current value and always insure that when we wish to modify the register, | 352 | * current value and always insure that when we wish to modify the register, | |
353 | * we actually modify the copy and synchronize the register to it. | 353 | * we actually modify the copy and synchronize the register to it. | |
354 | */ | 354 | */ | |
355 | #define FCR_REG_SYNC() (*fdc->sc_reg_fcr = fdc->sc_fcr) | 355 | #define FCR_REG_SYNC() (*fdc->sc_reg_fcr = fdc->sc_fcr) | |
356 | 356 |
--- src/sys/coda/coda_namecache.c 2020/04/13 19:23:17 1.27
+++ src/sys/coda/coda_namecache.c 2022/05/20 19:34:22 1.28
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: coda_namecache.c,v 1.27 2020/04/13 19:23:17 ad Exp $ */ | 1 | /* $NetBSD: coda_namecache.c,v 1.28 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * | 4 | * | |
5 | * Coda: an Experimental Distributed File System | 5 | * Coda: an Experimental Distributed File System | |
6 | * Release 3.1 | 6 | * Release 3.1 | |
7 | * | 7 | * | |
8 | * Copyright (c) 1987-1998 Carnegie Mellon University | 8 | * Copyright (c) 1987-1998 Carnegie Mellon University | |
9 | * All Rights Reserved | 9 | * All Rights Reserved | |
10 | * | 10 | * | |
11 | * Permission to use, copy, modify and distribute this software and its | 11 | * Permission to use, copy, modify and distribute this software and its | |
12 | * documentation is hereby granted, provided that both the copyright | 12 | * documentation is hereby granted, provided that both the copyright | |
13 | * notice and this permission notice appear in all copies of the | 13 | * notice and this permission notice appear in all copies of the | |
14 | * software, derivative works or modified versions, and any portions | 14 | * software, derivative works or modified versions, and any portions | |
@@ -67,27 +67,27 @@ | @@ -67,27 +67,27 @@ | |||
67 | /* | 67 | /* | |
68 | * NOTES: rvb@cs | 68 | * NOTES: rvb@cs | |
69 | * 1. The name cache holds a reference to every vnode in it. Hence files can not be | 69 | * 1. The name cache holds a reference to every vnode in it. Hence files can not be | |
70 | * closed or made inactive until they are released. | 70 | * closed or made inactive until they are released. | |
71 | * 2. coda_nc_name(cp) was added to get a name for a cnode pointer for debugging. | 71 | * 2. coda_nc_name(cp) was added to get a name for a cnode pointer for debugging. | |
72 | * 3. coda_nc_find() has debug code to detect when entries are stored with different | 72 | * 3. coda_nc_find() has debug code to detect when entries are stored with different | |
73 | * credentials. We don't understand yet, if/how entries are NOT EQ but still | 73 | * credentials. We don't understand yet, if/how entries are NOT EQ but still | |
74 | * EQUAL | 74 | * EQUAL | |
75 | * 4. I wonder if this name cache could be replace by the vnode name cache. | 75 | * 4. I wonder if this name cache could be replace by the vnode name cache. | |
76 | * The latter has no zapping functions, so probably not. | 76 | * The latter has no zapping functions, so probably not. | |
77 | */ | 77 | */ | |
78 | 78 | |||
79 | #include <sys/cdefs.h> | 79 | #include <sys/cdefs.h> | |
80 | __KERNEL_RCSID(0, "$NetBSD: coda_namecache.c,v 1.27 2020/04/13 19:23:17 ad Exp $"); | 80 | __KERNEL_RCSID(0, "$NetBSD: coda_namecache.c,v 1.28 2022/05/20 19:34:22 andvar Exp $"); | |
81 | 81 | |||
82 | #include <sys/param.h> | 82 | #include <sys/param.h> | |
83 | #include <sys/errno.h> | 83 | #include <sys/errno.h> | |
84 | #include <sys/malloc.h> | 84 | #include <sys/malloc.h> | |
85 | #include <sys/select.h> | 85 | #include <sys/select.h> | |
86 | #include <sys/kauth.h> | 86 | #include <sys/kauth.h> | |
87 | 87 | |||
88 | #include <coda/coda.h> | 88 | #include <coda/coda.h> | |
89 | #include <coda/cnode.h> | 89 | #include <coda/cnode.h> | |
90 | #include <coda/coda_namecache.h> | 90 | #include <coda/coda_namecache.h> | |
91 | #include <coda/coda_subr.h> | 91 | #include <coda/coda_subr.h> | |
92 | 92 | |||
93 | /* | 93 | /* | |
@@ -150,27 +150,27 @@ coda_nc_init(void) | @@ -150,27 +150,27 @@ coda_nc_init(void) | |||
150 | 150 | |||
151 | for (i=0; i < coda_nc_size; i++) { /* initialize the heap */ | 151 | for (i=0; i < coda_nc_size; i++) { /* initialize the heap */ | |
152 | TAILQ_INSERT_HEAD(&coda_nc_lru.head, &coda_nc_heap[i], lru); | 152 | TAILQ_INSERT_HEAD(&coda_nc_lru.head, &coda_nc_heap[i], lru); | |
153 | } | 153 | } | |
154 | 154 | |||
155 | for (i=0; i < coda_nc_hashsize; i++) { /* initialize the hashtable */ | 155 | for (i=0; i < coda_nc_hashsize; i++) { /* initialize the hashtable */ | |
156 | LIST_INIT(&coda_nc_hash[i].head); | 156 | LIST_INIT(&coda_nc_hash[i].head); | |
157 | } | 157 | } | |
158 | 158 | |||
159 | coda_nc_initialized++; | 159 | coda_nc_initialized++; | |
160 | } | 160 | } | |
161 | 161 | |||
162 | /* | 162 | /* | |
163 | * Auxillary routines -- shouldn't be entry points | 163 | * Auxiliary routines -- shouldn't be entry points | |
164 | */ | 164 | */ | |
165 | 165 | |||
166 | static struct coda_cache * | 166 | static struct coda_cache * | |
167 | coda_nc_find(struct cnode *dcp, const char *name, int namelen, | 167 | coda_nc_find(struct cnode *dcp, const char *name, int namelen, | |
168 | kauth_cred_t cred, int hash) | 168 | kauth_cred_t cred, int hash) | |
169 | { | 169 | { | |
170 | /* | 170 | /* | |
171 | * hash to find the appropriate bucket, look through the chain | 171 | * hash to find the appropriate bucket, look through the chain | |
172 | * for the right entry (especially right cred, unless cred == 0) | 172 | * for the right entry (especially right cred, unless cred == 0) | |
173 | */ | 173 | */ | |
174 | struct coda_cache *cncp; | 174 | struct coda_cache *cncp; | |
175 | int count = 1; | 175 | int count = 1; | |
176 | 176 |
--- src/sys/compat/linux/common/linux_emuldata.h 2020/04/26 18:53:33 1.19
+++ src/sys/compat/linux/common/linux_emuldata.h 2022/05/20 19:34:22 1.20
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: linux_emuldata.h,v 1.19 2020/04/26 18:53:33 thorpej Exp $ */ | 1 | /* $NetBSD: linux_emuldata.h,v 1.20 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1998,2002 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 1998,2002 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 Eric Haszlakiewicz. | 8 | * by Eric Haszlakiewicz. | |
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. | |
@@ -23,27 +23,27 @@ | @@ -23,27 +23,27 @@ | |||
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #ifndef _COMMON_LINUX_EMULDATA_H | 32 | #ifndef _COMMON_LINUX_EMULDATA_H | |
33 | #define _COMMON_LINUX_EMULDATA_H | 33 | #define _COMMON_LINUX_EMULDATA_H | |
34 | 34 | |||
35 | /* | 35 | /* | |
36 | * This is auxillary data the linux compat code | 36 | * This is auxiliary data the linux compat code | |
37 | * needs to do its work. A pointer to it is | 37 | * needs to do its work. A pointer to it is | |
38 | * stored in the emuldata field of the proc | 38 | * stored in the emuldata field of the proc | |
39 | * structure. | 39 | * structure. | |
40 | */ | 40 | */ | |
41 | 41 | |||
42 | struct linux_emuldata { | 42 | struct linux_emuldata { | |
43 | int led_debugreg[8]; /* GDB information for ptrace - for use, */ | 43 | int led_debugreg[8]; /* GDB information for ptrace - for use, */ | |
44 | /* see ../arch/i386/linux_ptrace.c */ | 44 | /* see ../arch/i386/linux_ptrace.c */ | |
45 | 45 | |||
46 | void *led_child_tidptr; /* Used during clone() */ | 46 | void *led_child_tidptr; /* Used during clone() */ | |
47 | void *led_clear_tid; /* Own TID to clear on exit */ | 47 | void *led_clear_tid; /* Own TID to clear on exit */ | |
48 | long led_personality; | 48 | long led_personality; | |
49 | }; | 49 | }; |
--- src/sys/dev/ic/ds1687reg.h 2021/10/21 13:21:54 1.12
+++ src/sys/dev/ic/ds1687reg.h 2022/05/20 19:34:22 1.13
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: ds1687reg.h,v 1.12 2021/10/21 13:21:54 andvar Exp $ */ | 1 | /* $NetBSD: ds1687reg.h,v 1.13 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2003 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2003 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 Rafal K. Boni. | 8 | * by Rafal K. Boni. | |
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. | |
@@ -158,27 +158,27 @@ | @@ -158,27 +158,27 @@ | |||
158 | 158 | |||
159 | #define DS1687_BANK1_START 0x40 /* BANK1: Start of BANK1 registers */ | 159 | #define DS1687_BANK1_START 0x40 /* BANK1: Start of BANK1 registers */ | |
160 | #define DS1687_BANK1_CENTURY 0x48 /* BANK1: Time of yr: Century (0-99) */ | 160 | #define DS1687_BANK1_CENTURY 0x48 /* BANK1: Time of yr: Century (0-99) */ | |
161 | #define DS1687_BANK1_ADATE 0x49 /* BANK1: Alarm: Date (1-31) */ | 161 | #define DS1687_BANK1_ADATE 0x49 /* BANK1: Alarm: Date (1-31) */ | |
162 | #define DS1687_BANK1_XCTRL4A 0x4a | 162 | #define DS1687_BANK1_XCTRL4A 0x4a | |
163 | #define DS1687_X4A_VRT 0x80 /* valid RAM / time */ | 163 | #define DS1687_X4A_VRT 0x80 /* valid RAM / time */ | |
164 | #define DS1687_X4A_INCR 0x40 /* increment status */ | 164 | #define DS1687_X4A_INCR 0x40 /* increment status */ | |
165 | #define DS1687_X4A_BME 0x20 /* burst mode enable */ | 165 | #define DS1687_X4A_BME 0x20 /* burst mode enable */ | |
166 | #define DS1687_X4A_PAB 0x08 /* power active bar */ | 166 | #define DS1687_X4A_PAB 0x08 /* power active bar */ | |
167 | #define DS1687_X4A_RCF 0x04 /* read clear flag */ | 167 | #define DS1687_X4A_RCF 0x04 /* read clear flag */ | |
168 | #define DS1687_X4A_WAF 0x02 /* wakeup alarm flag */ | 168 | #define DS1687_X4A_WAF 0x02 /* wakeup alarm flag */ | |
169 | #define DS1687_X4A_KF 0x01 /* kickstart flag */ | 169 | #define DS1687_X4A_KF 0x01 /* kickstart flag */ | |
170 | #define DS1687_BANK1_XCTRL4B 0x4b | 170 | #define DS1687_BANK1_XCTRL4B 0x4b | |
171 | #define DS1687_X4B_ABE 0x80 /* auxillary battery enable */ | 171 | #define DS1687_X4B_ABE 0x80 /* auxiliary battery enable */ | |
172 | #define DS1687_X4B_E32K 0x40 /* enable 32.768kHz output */ | 172 | #define DS1687_X4B_E32K 0x40 /* enable 32.768kHz output */ | |
173 | #define DS1687_X4B_CS 0x20 /* chrystal select */ | 173 | #define DS1687_X4B_CS 0x20 /* chrystal select */ | |
174 | #define DS1687_X4B_RCE 0x10 /* RAM clear enable */ | 174 | #define DS1687_X4B_RCE 0x10 /* RAM clear enable */ | |
175 | #define DS1687_X4B_PRS 0x08 /* PAB reset select */ | 175 | #define DS1687_X4B_PRS 0x08 /* PAB reset select */ | |
176 | #define DS1687_X4B_RCIE 0x04 /* RAM clear interrupt enable */ | 176 | #define DS1687_X4B_RCIE 0x04 /* RAM clear interrupt enable */ | |
177 | #define DS1687_X4B_WIE 0x02 /* wakeup interrupt enable */ | 177 | #define DS1687_X4B_WIE 0x02 /* wakeup interrupt enable */ | |
178 | #define DS1687_X4B_KIE 0x01 /* kickstart interrupt enable */ | 178 | #define DS1687_X4B_KIE 0x01 /* kickstart interrupt enable */ | |
179 | 179 | |||
180 | #define DS1687_NBASEREGS 0x0d /* 14 registers; CMOS follows */ | 180 | #define DS1687_NBASEREGS 0x0d /* 14 registers; CMOS follows */ | |
181 | 181 | |||
182 | /* Layout of software shadow copy of TOD registers */ | 182 | /* Layout of software shadow copy of TOD registers */ | |
183 | #define DS1687_NHDW_TODREGS 0x0a /* 10 basic TOD registers */ | 183 | #define DS1687_NHDW_TODREGS 0x0a /* 10 basic TOD registers */ | |
184 | #define DS1687_NSOFT_TODREGS 0x0c /* ...plus shadow CENTURY, ADATE */ | 184 | #define DS1687_NSOFT_TODREGS 0x0c /* ...plus shadow CENTURY, ADATE */ |
--- src/sys/dev/ic/nec7210reg.h 2008/04/28 20:23:50 1.4
+++ src/sys/dev/ic/nec7210reg.h 2022/05/20 19:34:22 1.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: nec7210reg.h,v 1.4 2008/04/28 20:23:50 martin Exp $ */ | 1 | /* $NetBSD: nec7210reg.h,v 1.5 2022/05/20 19:34:22 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2003 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2003 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 Gregory McGarry. | 8 | * by Gregory McGarry. | |
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,27 +52,27 @@ | @@ -52,27 +52,27 @@ | |||
52 | #define IMR2_CO 0x08 | 52 | #define IMR2_CO 0x08 | |
53 | #define IMR2_DMAI 0x10 | 53 | #define IMR2_DMAI 0x10 | |
54 | #define IMR2_DMAO 0x20 | 54 | #define IMR2_DMAO 0x20 | |
55 | #define IMR2_SRQ 0x40 | 55 | #define IMR2_SRQ 0x40 | |
56 | #define NEC7210_SPMR 3 /* (W) serial poll mode */ | 56 | #define NEC7210_SPMR 3 /* (W) serial poll mode */ | |
57 | #define SPMR_RSV 0x80 | 57 | #define SPMR_RSV 0x80 | |
58 | #define NEC7210_ADMR 4 /* (W) address mode */ | 58 | #define NEC7210_ADMR 4 /* (W) address mode */ | |
59 | #define ADMR_ADM0 0x01 | 59 | #define ADMR_ADM0 0x01 | |
60 | #define ADMR_ADM1 0x02 | 60 | #define ADMR_ADM1 0x02 | |
61 | #define ADMR_TRM0 0x10 | 61 | #define ADMR_TRM0 0x10 | |
62 | #define ADMR_TRM1 0x20 | 62 | #define ADMR_TRM1 0x20 | |
63 | #define ADMR_LON 0x40 | 63 | #define ADMR_LON 0x40 | |
64 | #define ADMR_TON 0x80 | 64 | #define ADMR_TON 0x80 | |
65 | #define NEC7210_AUXMR 5 /* (W) auxilliary mode */ | 65 | #define NEC7210_AUXMR 5 /* (W) auxiliary mode */ | |
66 | #define AUXMR_CMD 0x00 /* see below */ | 66 | #define AUXMR_CMD 0x00 /* see below */ | |
67 | #define AUXMR_ICR 0x20 | 67 | #define AUXMR_ICR 0x20 | |
68 | #define AUXMR_REGD 0x40 | 68 | #define AUXMR_REGD 0x40 | |
69 | #define AUXMR_PPOLL 0x60 | 69 | #define AUXMR_PPOLL 0x60 | |
70 | #define AUXMR_REGA 0x80 | 70 | #define AUXMR_REGA 0x80 | |
71 | #define AUXMR_REGB 0xa0 | 71 | #define AUXMR_REGB 0xa0 | |
72 | #define AUXMR_REGE 0xc0 | 72 | #define AUXMR_REGE 0xc0 | |
73 | #define AUXMR_EXTERN 0xe0 | 73 | #define AUXMR_EXTERN 0xe0 | |
74 | #define NEC7210_ADDR 6 /* (W) address */ | 74 | #define NEC7210_ADDR 6 /* (W) address */ | |
75 | #define ADDR_MASK 0x1f | 75 | #define ADDR_MASK 0x1f | |
76 | #define ADDR_DL 0x20 | 76 | #define ADDR_DL 0x20 | |
77 | #define ADDR_DT 0x40 | 77 | #define ADDR_DT 0x40 | |
78 | #define ADDR_ARS 0x80 | 78 | #define ADDR_ARS 0x80 |
--- src/sys/dev/isa/if_elreg.h 1994/10/27 04:17:29 1.4
+++ src/sys/dev/isa/if_elreg.h 2022/05/20 19:34:23 1.5
@@ -1,42 +1,42 @@ | @@ -1,42 +1,42 @@ | |||
1 | /* $NetBSD: if_elreg.h,v 1.4 1994/10/27 04:17:29 cgd Exp $ */ | 1 | /* $NetBSD: if_elreg.h,v 1.5 2022/05/20 19:34:23 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted | 4 | * Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted | |
5 | * to use, copy, modify and distribute this software provided that both | 5 | * to use, copy, modify and distribute this software provided that both | |
6 | * the copyright notice and this permission notice appear in all copies | 6 | * the copyright notice and this permission notice appear in all copies | |
7 | * of the software, derivative works or modified versions, and any | 7 | * of the software, derivative works or modified versions, and any | |
8 | * portions thereof. | 8 | * portions thereof. | |
9 | */ | 9 | */ | |
10 | 10 | |||
11 | /* | 11 | /* | |
12 | * 3COM Etherlink 3C501 Register Definitions | 12 | * 3COM Etherlink 3C501 Register Definitions | |
13 | */ | 13 | */ | |
14 | 14 | |||
15 | /* | 15 | /* | |
16 | * I/O Ports | 16 | * I/O Ports | |
17 | */ | 17 | */ | |
18 | #define EL_RXS 0x6 /* Receive status register */ | 18 | #define EL_RXS 0x6 /* Receive status register */ | |
19 | #define EL_RXC 0x6 /* Receive command register */ | 19 | #define EL_RXC 0x6 /* Receive command register */ | |
20 | #define EL_TXS 0x7 /* Transmit status register */ | 20 | #define EL_TXS 0x7 /* Transmit status register */ | |
21 | #define EL_TXC 0x7 /* Transmit command register */ | 21 | #define EL_TXC 0x7 /* Transmit command register */ | |
22 | #define EL_GPBL 0x8 /* GP buffer ptr low byte */ | 22 | #define EL_GPBL 0x8 /* GP buffer ptr low byte */ | |
23 | #define EL_GPBH 0x9 /* GP buffer ptr high byte */ | 23 | #define EL_GPBH 0x9 /* GP buffer ptr high byte */ | |
24 | #define EL_RBL 0xa /* Receive buffer ptr low byte */ | 24 | #define EL_RBL 0xa /* Receive buffer ptr low byte */ | |
25 | #define EL_RBC 0xa /* Receive buffer clear */ | 25 | #define EL_RBC 0xa /* Receive buffer clear */ | |
26 | #define EL_RBH 0xb /* Receive buffer ptr high byte */ | 26 | #define EL_RBH 0xb /* Receive buffer ptr high byte */ | |
27 | #define EL_EAW 0xc /* Ethernet address window */ | 27 | #define EL_EAW 0xc /* Ethernet address window */ | |
28 | #define EL_AS 0xe /* Auxillary status register */ | 28 | #define EL_AS 0xe /* Auxiliary status register */ | |
29 | #define EL_AC 0xe /* Auxillary command register */ | 29 | #define EL_AC 0xe /* Auxiliary command register */ | |
30 | #define EL_BUF 0xf /* Data buffer */ | 30 | #define EL_BUF 0xf /* Data buffer */ | |
31 | 31 | |||
32 | /* Receive status register bits */ | 32 | /* Receive status register bits */ | |
33 | #define EL_RXS_OFLOW 0x01 /* Overflow error */ | 33 | #define EL_RXS_OFLOW 0x01 /* Overflow error */ | |
34 | #define EL_RXS_FCS 0x02 /* FCS error */ | 34 | #define EL_RXS_FCS 0x02 /* FCS error */ | |
35 | #define EL_RXS_DRIB 0x04 /* Dribble error */ | 35 | #define EL_RXS_DRIB 0x04 /* Dribble error */ | |
36 | #define EL_RXS_SHORT 0x08 /* Short frame */ | 36 | #define EL_RXS_SHORT 0x08 /* Short frame */ | |
37 | #define EL_RXS_NOFLOW 0x10 /* No overflow */ | 37 | #define EL_RXS_NOFLOW 0x10 /* No overflow */ | |
38 | #define EL_RXS_GOOD 0x20 /* Received good frame */ | 38 | #define EL_RXS_GOOD 0x20 /* Received good frame */ | |
39 | #define EL_RXS_STALE 0x80 /* Stale receive status */ | 39 | #define EL_RXS_STALE 0x80 /* Stale receive status */ | |
40 | 40 | |||
41 | /* Receive command register bits */ | 41 | /* Receive command register bits */ | |
42 | #define EL_RXC_DISABLE 0x00 /* Receiver disabled */ | 42 | #define EL_RXC_DISABLE 0x00 /* Receiver disabled */ | |
@@ -52,31 +52,31 @@ | @@ -52,31 +52,31 @@ | |||
52 | 52 | |||
53 | /* Transmit status register bits */ | 53 | /* Transmit status register bits */ | |
54 | #define EL_TXS_UFLOW 0x01 /* Underflow */ | 54 | #define EL_TXS_UFLOW 0x01 /* Underflow */ | |
55 | #define EL_TXS_COLL 0x02 /* Collision */ | 55 | #define EL_TXS_COLL 0x02 /* Collision */ | |
56 | #define EL_TXS_COLL16 0x04 /* Collision 16 */ | 56 | #define EL_TXS_COLL16 0x04 /* Collision 16 */ | |
57 | #define EL_TXS_READY 0x08 /* Ready for new frame */ | 57 | #define EL_TXS_READY 0x08 /* Ready for new frame */ | |
58 | 58 | |||
59 | /* Transmit command register bits */ | 59 | /* Transmit command register bits */ | |
60 | #define EL_TXC_DUFLOW 0x01 /* Detect underflow */ | 60 | #define EL_TXC_DUFLOW 0x01 /* Detect underflow */ | |
61 | #define EL_TXC_DCOLL 0x02 /* Detect collisions */ | 61 | #define EL_TXC_DCOLL 0x02 /* Detect collisions */ | |
62 | #define EL_TXC_DCOLL16 0x04 /* Detect collision 16 */ | 62 | #define EL_TXC_DCOLL16 0x04 /* Detect collision 16 */ | |
63 | #define EL_TXC_DSUCCESS 0x08 /* Detect success */ | 63 | #define EL_TXC_DSUCCESS 0x08 /* Detect success */ | |
64 | 64 | |||
65 | /* Auxillary status register bits */ | 65 | /* Auxiliary status register bits */ | |
66 | #define EL_AS_RXBUSY 0x01 /* Receive busy */ | 66 | #define EL_AS_RXBUSY 0x01 /* Receive busy */ | |
67 | #define EL_AS_DMADONE 0x10 /* DMA finished */ | 67 | #define EL_AS_DMADONE 0x10 /* DMA finished */ | |
68 | #define EL_AS_TXBUSY 0x80 /* Transmit busy */ | 68 | #define EL_AS_TXBUSY 0x80 /* Transmit busy */ | |
69 | 69 | |||
70 | /* Auxillary command register bits */ | 70 | /* Auxiliary command register bits */ | |
71 | #define EL_AC_HOST 0x00 /* System bus can access buffer */ | 71 | #define EL_AC_HOST 0x00 /* System bus can access buffer */ | |
72 | #define EL_AC_IRQE 0x01 /* IRQ enable */ | 72 | #define EL_AC_IRQE 0x01 /* IRQ enable */ | |
73 | #define EL_AC_TXBAD 0x02 /* Transmit frames with bad FCS */ | 73 | #define EL_AC_TXBAD 0x02 /* Transmit frames with bad FCS */ | |
74 | #define EL_AC_TXFRX 0x04 /* Transmit followed by receive */ | 74 | #define EL_AC_TXFRX 0x04 /* Transmit followed by receive */ | |
75 | #define EL_AC_RX 0x08 /* Receive */ | 75 | #define EL_AC_RX 0x08 /* Receive */ | |
76 | #define EL_AC_LB 0x0c /* Loopback */ | 76 | #define EL_AC_LB 0x0c /* Loopback */ | |
77 | #define EL_AC_DRQ 0x20 /* DMA request */ | 77 | #define EL_AC_DRQ 0x20 /* DMA request */ | |
78 | #define EL_AC_RIDE 0x40 /* DRQ and IRQ enabled */ | 78 | #define EL_AC_RIDE 0x40 /* DRQ and IRQ enabled */ | |
79 | #define EL_AC_RESET 0x80 /* Reset */ | 79 | #define EL_AC_RESET 0x80 /* Reset */ | |
80 | 80 | |||
81 | /* Packet buffer size */ | 81 | /* Packet buffer size */ | |
82 | #define EL_BUFSIZ 2048 | 82 | #define EL_BUFSIZ 2048 |
--- src/usr.sbin/syslogd/syslogd.c 2021/11/27 22:30:26 1.138
+++ src/usr.sbin/syslogd/syslogd.c 2022/05/20 19:34:23 1.139
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: syslogd.c,v 1.138 2021/11/27 22:30:26 rillig Exp $ */ | 1 | /* $NetBSD: syslogd.c,v 1.139 2022/05/20 19:34:23 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1983, 1988, 1993, 1994 | 4 | * Copyright (c) 1983, 1988, 1993, 1994 | |
5 | * The Regents of the University of California. All rights reserved. | 5 | * The Regents of the University of California. All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -29,27 +29,27 @@ | @@ -29,27 +29,27 @@ | |||
29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #include <sys/cdefs.h> | 32 | #include <sys/cdefs.h> | |
33 | #ifndef lint | 33 | #ifndef lint | |
34 | __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\ | 34 | __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\ | |
35 | The Regents of the University of California. All rights reserved."); | 35 | The Regents of the University of California. All rights reserved."); | |
36 | #endif /* not lint */ | 36 | #endif /* not lint */ | |
37 | 37 | |||
38 | #ifndef lint | 38 | #ifndef lint | |
39 | #if 0 | 39 | #if 0 | |
40 | static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; | 40 | static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; | |
41 | #else | 41 | #else | |
42 | __RCSID("$NetBSD: syslogd.c,v 1.138 2021/11/27 22:30:26 rillig Exp $"); | 42 | __RCSID("$NetBSD: syslogd.c,v 1.139 2022/05/20 19:34:23 andvar Exp $"); | |
43 | #endif | 43 | #endif | |
44 | #endif /* not lint */ | 44 | #endif /* not lint */ | |
45 | 45 | |||
46 | /* | 46 | /* | |
47 | * syslogd -- log system messages | 47 | * syslogd -- log system messages | |
48 | * | 48 | * | |
49 | * This program implements a system log. It takes a series of lines. | 49 | * This program implements a system log. It takes a series of lines. | |
50 | * Each line may have a priority, signified as "<n>" as | 50 | * Each line may have a priority, signified as "<n>" as | |
51 | * the first characters of the line. If this is | 51 | * the first characters of the line. If this is | |
52 | * not present, a default priority is used. | 52 | * not present, a default priority is used. | |
53 | * | 53 | * | |
54 | * To kill syslogd, send a signal 15 (terminate). A signal 1 (hup) will | 54 | * To kill syslogd, send a signal 15 (terminate). A signal 1 (hup) will | |
55 | * cause it to reread its configuration file. | 55 | * cause it to reread its configuration file. | |
@@ -4746,27 +4746,27 @@ make_timestamp(time_t *in_now, bool iso, | @@ -4746,27 +4746,27 @@ make_timestamp(time_t *in_now, bool iso, | |||
4746 | } | 4746 | } | |
4747 | } | 4747 | } | |
4748 | 4748 | |||
4749 | switch (tlen) { | 4749 | switch (tlen) { | |
4750 | case (size_t)-1: | 4750 | case (size_t)-1: | |
4751 | return timestamp; | 4751 | return timestamp; | |
4752 | case 0: | 4752 | case 0: | |
4753 | return strdup(timestamp); | 4753 | return strdup(timestamp); | |
4754 | default: | 4754 | default: | |
4755 | return strndup(timestamp, tlen); | 4755 | return strndup(timestamp, tlen); | |
4756 | } | 4756 | } | |
4757 | } | 4757 | } | |
4758 | 4758 | |||
4759 | /* auxillary code to allocate memory and copy a string */ | 4759 | /* auxiliary code to allocate memory and copy a string */ | |
4760 | bool | 4760 | bool | |
4761 | copy_string(char **mem, const char *p, const char *q) | 4761 | copy_string(char **mem, const char *p, const char *q) | |
4762 | { | 4762 | { | |
4763 | const size_t len = 1 + q - p; | 4763 | const size_t len = 1 + q - p; | |
4764 | if (!(*mem = malloc(len))) { | 4764 | if (!(*mem = malloc(len))) { | |
4765 | logerror("Unable to allocate memory for config"); | 4765 | logerror("Unable to allocate memory for config"); | |
4766 | return false; | 4766 | return false; | |
4767 | } | 4767 | } | |
4768 | strlcpy(*mem, p, len); | 4768 | strlcpy(*mem, p, len); | |
4769 | return true; | 4769 | return true; | |
4770 | } | 4770 | } | |
4771 | 4771 | |||
4772 | /* keyword has to end with ", everything until next " is copied */ | 4772 | /* keyword has to end with ", everything until next " is copied */ |