s/identifing/identifying/ and s/multipler/multiplier/ in comments.diff -r1.33 -r1.34 src/sys/arch/acorn32/podulebus/podulebus.c
(andvar)
--- src/sys/arch/acorn32/podulebus/podulebus.c 2021/09/11 20:28:03 1.33
+++ src/sys/arch/acorn32/podulebus/podulebus.c 2022/05/30 09:56:02 1.34
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: podulebus.c,v 1.33 2021/09/11 20:28:03 andvar Exp $ */ | 1 | /* $NetBSD: podulebus.c,v 1.34 2022/05/30 09:56:02 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1994-1996 Mark Brinicombe. | 4 | * Copyright (c) 1994-1996 Mark Brinicombe. | |
5 | * Copyright (c) 1994 Brini. | 5 | * Copyright (c) 1994 Brini. | |
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 | |
@@ -33,27 +33,27 @@ | @@ -33,27 +33,27 @@ | |||
33 | * SUCH DAMAGE. | 33 | * SUCH DAMAGE. | |
34 | * | 34 | * | |
35 | * RiscBSD kernel project | 35 | * RiscBSD kernel project | |
36 | * | 36 | * | |
37 | * podulebus.c | 37 | * podulebus.c | |
38 | * | 38 | * | |
39 | * Podule probe and configuration routines | 39 | * Podule probe and configuration routines | |
40 | * | 40 | * | |
41 | * Created : 07/11/94 | 41 | * Created : 07/11/94 | |
42 | */ | 42 | */ | |
43 | 43 | |||
44 | #include <sys/param.h> | 44 | #include <sys/param.h> | |
45 | 45 | |||
46 | __KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.33 2021/09/11 20:28:03 andvar Exp $"); | 46 | __KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.34 2022/05/30 09:56:02 andvar Exp $"); | |
47 | 47 | |||
48 | #include <sys/systm.h> | 48 | #include <sys/systm.h> | |
49 | #include <sys/kernel.h> | 49 | #include <sys/kernel.h> | |
50 | #include <sys/conf.h> | 50 | #include <sys/conf.h> | |
51 | #include <sys/kmem.h> | 51 | #include <sys/kmem.h> | |
52 | #include <sys/device.h> | 52 | #include <sys/device.h> | |
53 | #include <uvm/uvm_extern.h> | 53 | #include <uvm/uvm_extern.h> | |
54 | #include <machine/io.h> | 54 | #include <machine/io.h> | |
55 | #include <machine/intr.h> | 55 | #include <machine/intr.h> | |
56 | #include <machine/bootconfig.h> | 56 | #include <machine/bootconfig.h> | |
57 | #include <machine/pmap.h> | 57 | #include <machine/pmap.h> | |
58 | #include <arm/iomd/iomdreg.h> | 58 | #include <arm/iomd/iomdreg.h> | |
59 | #include <arm/iomd/iomdvar.h> | 59 | #include <arm/iomd/iomdvar.h> | |
@@ -389,27 +389,27 @@ podulescan(device_t dev) | @@ -389,27 +389,27 @@ podulescan(device_t dev) | |||
389 | } | 389 | } | |
390 | 390 | |||
391 | poduleexamine(podule, dev, SLOT_POD); | 391 | poduleexamine(podule, dev, SLOT_POD); | |
392 | } | 392 | } | |
393 | } | 393 | } | |
394 | 394 | |||
395 | 395 | |||
396 | /* | 396 | /* | |
397 | * void podulebusattach(device_t parent, device_t dev, void *aux) | 397 | * void podulebusattach(device_t parent, device_t dev, void *aux) | |
398 | * | 398 | * | |
399 | * Attach podulebus. | 399 | * Attach podulebus. | |
400 | * This probes all the podules and sets up the podules array with | 400 | * This probes all the podules and sets up the podules array with | |
401 | * information found in the podule headers. | 401 | * information found in the podule headers. | |
402 | * After identifing all the podules, all the children of the podulebus | 402 | * After identifying all the podules, all the children of the podulebus | |
403 | * are probed and attached. | 403 | * are probed and attached. | |
404 | */ | 404 | */ | |
405 | 405 | |||
406 | void | 406 | void | |
407 | podulebusattach(device_t parent, device_t self, void *aux) | 407 | podulebusattach(device_t parent, device_t self, void *aux) | |
408 | { | 408 | { | |
409 | int loop; | 409 | int loop; | |
410 | struct podule_attach_args pa; | 410 | struct podule_attach_args pa; | |
411 | #if 0 | 411 | #if 0 | |
412 | int easi_time; | 412 | int easi_time; | |
413 | int bit; | 413 | int bit; | |
414 | #endif | 414 | #endif | |
415 | unsigned int value; | 415 | unsigned int value; |
--- src/sys/arch/alpha/pci/tsreg.h 2021/07/17 23:53:02 1.10
+++ src/sys/arch/alpha/pci/tsreg.h 2022/05/30 09:56:02 1.11
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: tsreg.h,v 1.10 2021/07/17 23:53:02 thorpej Exp $ */ | 1 | /* $NetBSD: tsreg.h,v 1.11 2022/05/30 09:56:02 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1999 by Ross Harvey. All rights reserved. | 4 | * Copyright (c) 1999 by Ross Harvey. All rights reserved. | |
5 | * | 5 | * | |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without | |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions | |
8 | * are met: | 8 | * are met: | |
9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright | |
10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. | |
11 | * 2. Redistributions in binary form must reproduce the above copyright | 11 | * 2. Redistributions in binary form must reproduce the above copyright | |
12 | * notice, this list of conditions and the following disclaimer in the | 12 | * notice, this list of conditions and the following disclaimer in the | |
13 | * documentation and/or other materials provided with the distribution. | 13 | * documentation and/or other materials provided with the distribution. | |
14 | * 3. All advertising materials mentioning features or use of this software | 14 | * 3. All advertising materials mentioning features or use of this software | |
@@ -188,27 +188,27 @@ | @@ -188,27 +188,27 @@ | |||
188 | #define PCTL_THDIS __BIT(2) /* disable TLB anti-thrash (debug) */ | 188 | #define PCTL_THDIS __BIT(2) /* disable TLB anti-thrash (debug) */ | |
189 | #define PCTL_CHAINDIS __BIT(3) /* disable chaining */ | 189 | #define PCTL_CHAINDIS __BIT(3) /* disable chaining */ | |
190 | #define PCTL_TGTLAT __BIT(4) /* target latency timers enable */ | 190 | #define PCTL_TGTLAT __BIT(4) /* target latency timers enable */ | |
191 | #define PCTL_HOLE __BIT(5) /* 512KB->1M hole enable */ | 191 | #define PCTL_HOLE __BIT(5) /* 512KB->1M hole enable */ | |
192 | #define PCTL_MWIN __BIT(6) /* monster window enable */ | 192 | #define PCTL_MWIN __BIT(6) /* monster window enable */ | |
193 | #define PCTL_PRIGRP __BITS(8,14) /* arbiter priority group */ | 193 | #define PCTL_PRIGRP __BITS(8,14) /* arbiter priority group */ | |
194 | #define PCTL_PPRI __BIT(15) /* arbiter priority group for Pchip */ | 194 | #define PCTL_PPRI __BIT(15) /* arbiter priority group for Pchip */ | |
195 | #define PCTL_ECCEN __BIT(18) /* ECC enable for DMA and SGTE */ | 195 | #define PCTL_ECCEN __BIT(18) /* ECC enable for DMA and SGTE */ | |
196 | #define PCTL_PADM __BIT(19) /* PADbus mode */ | 196 | #define PCTL_PADM __BIT(19) /* PADbus mode */ | |
197 | #define PCTL_CDQMAX __BITS(20,23) /* see manual */ | 197 | #define PCTL_CDQMAX __BITS(20,23) /* see manual */ | |
198 | #define PCTL_REV __BITS(24,31) /* Pchip revision */ | 198 | #define PCTL_REV __BITS(24,31) /* Pchip revision */ | |
199 | #define PCTL_CRQMAX __BITS(32,35) /* see manual */ | 199 | #define PCTL_CRQMAX __BITS(32,35) /* see manual */ | |
200 | #define PCTL_PTPMAX __BITS(36,39) /* see manual */ | 200 | #define PCTL_PTPMAX __BITS(36,39) /* see manual */ | |
201 | #define PCTL_PCLKX __BITS(40,41) /* PCI clock freq multipler */ | 201 | #define PCTL_PCLKX __BITS(40,41) /* PCI clock freq multiplier */ | |
202 | #define PCTL_FDSDIS __BIT(42) /* fast DMA start and SGTE disable */ | 202 | #define PCTL_FDSDIS __BIT(42) /* fast DMA start and SGTE disable */ | |
203 | #define PCTL_FDWDIS __BIT(43) /* fast DMA read cache block disable */ | 203 | #define PCTL_FDWDIS __BIT(43) /* fast DMA read cache block disable */ | |
204 | #define PCTL_PTEVRFY __BIT(44) /* PTE verify for DMA read */ | 204 | #define PCTL_PTEVRFY __BIT(44) /* PTE verify for DMA read */ | |
205 | #define PCTL_RPP __BIT(45) /* remote Pchip present */ | 205 | #define PCTL_RPP __BIT(45) /* remote Pchip present */ | |
206 | #define PCTL_PID __BITS(46,47) /* Pchip ID */ | 206 | #define PCTL_PID __BITS(46,47) /* Pchip ID */ | |
207 | 207 | |||
208 | #define P_PLAT 0x0340 | 208 | #define P_PLAT 0x0340 | |
209 | /* reserved 0x0380 */ | 209 | /* reserved 0x0380 */ | |
210 | #define P_PERROR 0x03c0 | 210 | #define P_PERROR 0x03c0 | |
211 | 211 | |||
212 | # define PER_ERR(r) TSFIELD((r), 0, 12) | 212 | # define PER_ERR(r) TSFIELD((r), 0, 12) | |
213 | # define PER_ECC(r) TSFIELD((r), 10, 2) | 213 | # define PER_ECC(r) TSFIELD((r), 10, 2) | |
214 | # define PER_SADR(r) TSFIELD((r), 16, 34) | 214 | # define PER_SADR(r) TSFIELD((r), 16, 34) |
--- src/sys/arch/amiga/amiga/locore.s 2022/03/16 20:31:01 1.160
+++ src/sys/arch/amiga/amiga/locore.s 2022/05/30 09:56:02 1.161
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.160 2022/03/16 20:31:01 andvar Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.161 2022/05/30 09:56:02 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1980, 1990 The Regents of the University of California. | 5 | * Copyright (c) 1980, 1990 The Regents of the University of California. | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -685,27 +685,27 @@ ENTRY_NOPROFILE(lev7intr) | @@ -685,27 +685,27 @@ ENTRY_NOPROFILE(lev7intr) | |||
685 | * thing to do is to return as quick as possible. That's the | 685 | * thing to do is to return as quick as possible. That's the | |
686 | * reason why I do RTE here instead of jra rei. | 686 | * reason why I do RTE here instead of jra rei. | |
687 | */ | 687 | */ | |
688 | rte | all done | 688 | rte | all done | |
689 | 689 | |||
690 | 690 | |||
691 | /* | 691 | /* | |
692 | * Emulation of VAX REI instruction. | 692 | * Emulation of VAX REI instruction. | |
693 | * | 693 | * | |
694 | * This code deals with checking for and servicing ASTs | 694 | * This code deals with checking for and servicing ASTs | |
695 | * (profiling, scheduling) and software interrupts (network, softclock). | 695 | * (profiling, scheduling) and software interrupts (network, softclock). | |
696 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 696 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
697 | * the T_ASTFLT handling code will also check for software interrupts so we | 697 | * the T_ASTFLT handling code will also check for software interrupts so we | |
698 | * do not have to do it here. After identifing that we need an AST we | 698 | * do not have to do it here. After identifying that we need an AST we | |
699 | * drop the IPL to allow device interrupts. | 699 | * drop the IPL to allow device interrupts. | |
700 | * | 700 | * | |
701 | * This code is complicated by the fact that sendsig may have been called | 701 | * This code is complicated by the fact that sendsig may have been called | |
702 | * necessitating a stack cleanup. A cleanup should only be needed at this | 702 | * necessitating a stack cleanup. A cleanup should only be needed at this | |
703 | * point for coprocessor mid-instruction frames (type 9), but we also test | 703 | * point for coprocessor mid-instruction frames (type 9), but we also test | |
704 | * for bus error frames (type 10 and 11). | 704 | * for bus error frames (type 10 and 11). | |
705 | */ | 705 | */ | |
706 | ASENTRY_NOPROFILE(rei) | 706 | ASENTRY_NOPROFILE(rei) | |
707 | #ifdef DEBUG | 707 | #ifdef DEBUG | |
708 | tstl _C_LABEL(panicstr) | have we panicked? | 708 | tstl _C_LABEL(panicstr) | have we panicked? | |
709 | jne Ldorte | yes, do not make matters worse | 709 | jne Ldorte | yes, do not make matters worse | |
710 | #endif | 710 | #endif | |
711 | tstl _C_LABEL(astpending) | AST pending? | 711 | tstl _C_LABEL(astpending) | AST pending? |
--- src/sys/arch/arm/omap/Attic/am335x_prcm.c 2017/08/23 14:14:59 1.10
+++ src/sys/arch/arm/omap/Attic/am335x_prcm.c 2022/05/30 09:56:02 1.11
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: am335x_prcm.c,v 1.10 2017/08/23 14:14:59 skrll Exp $ */ | 1 | /* $NetBSD: am335x_prcm.c,v 1.11 2022/05/30 09:56:02 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * TI OMAP Power, Reset, and Clock Management on the AM335x | 4 | * TI OMAP Power, Reset, and Clock Management on the AM335x | |
5 | */ | 5 | */ | |
6 | 6 | |||
7 | /*- | 7 | /*- | |
8 | * Copyright (c) 2012 The NetBSD Foundation, Inc. | 8 | * Copyright (c) 2012 The NetBSD Foundation, Inc. | |
9 | * All rights reserved. | 9 | * All rights reserved. | |
10 | * | 10 | * | |
11 | * This code is derived from software contributed to The NetBSD Foundation | 11 | * This code is derived from software contributed to The NetBSD Foundation | |
12 | * by Taylor R. Campbell. | 12 | * by Taylor R. Campbell. | |
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 | |
@@ -24,27 +24,27 @@ | @@ -24,27 +24,27 @@ | |||
24 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 24 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
25 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 25 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
26 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 26 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
27 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 27 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
28 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 28 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
29 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 29 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
30 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 30 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
31 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 31 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
32 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 32 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
33 | * POSSIBILITY OF SUCH DAMAGE. | 33 | * POSSIBILITY OF SUCH DAMAGE. | |
34 | */ | 34 | */ | |
35 | 35 | |||
36 | #include <sys/cdefs.h> | 36 | #include <sys/cdefs.h> | |
37 | __KERNEL_RCSID(0, "$NetBSD: am335x_prcm.c,v 1.10 2017/08/23 14:14:59 skrll Exp $"); | 37 | __KERNEL_RCSID(0, "$NetBSD: am335x_prcm.c,v 1.11 2022/05/30 09:56:02 andvar Exp $"); | |
38 | 38 | |||
39 | #include "tps65217pmic.h" | 39 | #include "tps65217pmic.h" | |
40 | 40 | |||
41 | #include <sys/types.h> | 41 | #include <sys/types.h> | |
42 | #include <sys/param.h> | 42 | #include <sys/param.h> | |
43 | #include <sys/device.h> | 43 | #include <sys/device.h> | |
44 | #include <sys/sysctl.h> | 44 | #include <sys/sysctl.h> | |
45 | #include <sys/pmf.h> | 45 | #include <sys/pmf.h> | |
46 | 46 | |||
47 | #include <arm/omap/am335x_prcm.h> | 47 | #include <arm/omap/am335x_prcm.h> | |
48 | #include <arm/omap/omap2_reg.h> | 48 | #include <arm/omap/omap2_reg.h> | |
49 | #include <arm/omap/omap2_prcm.h> | 49 | #include <arm/omap/omap2_prcm.h> | |
50 | #include <arm/omap/omap_var.h> | 50 | #include <arm/omap/omap_var.h> | |
@@ -135,27 +135,27 @@ prcm_mpu_pll_config(u_int mpupll_m) | @@ -135,27 +135,27 @@ prcm_mpu_pll_config(u_int mpupll_m) | |||
135 | { | 135 | { | |
136 | uint32_t clkmode = prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKMODE_DPLL_MPU); | 136 | uint32_t clkmode = prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKMODE_DPLL_MPU); | |
137 | uint32_t clksel = prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKSEL_DPLL_MPU); | 137 | uint32_t clksel = prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKSEL_DPLL_MPU); | |
138 | //uint32_t div_m2 = prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_DIV_M2_DPLL_MPU); | 138 | //uint32_t div_m2 = prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_DIV_M2_DPLL_MPU); | |
139 | 139 | |||
140 | /* Request the DPLL be put into bypass mode */ | 140 | /* Request the DPLL be put into bypass mode */ | |
141 | prcm_write_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKMODE_DPLL_MPU, AM335X_PRCM_CM_CLKMODE_DPLL_MN_BYP_MODE); | 141 | prcm_write_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKMODE_DPLL_MPU, AM335X_PRCM_CM_CLKMODE_DPLL_MN_BYP_MODE); | |
142 | 142 | |||
143 | /* Wait for it to go into bypass */ | 143 | /* Wait for it to go into bypass */ | |
144 | while (prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_IDLEST_DPLL_MPU) != AM335X_PRCM_CM_IDLEST_DPLL_ST_DPLL_CLK_MN_BYPASS) { | 144 | while (prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_IDLEST_DPLL_MPU) != AM335X_PRCM_CM_IDLEST_DPLL_ST_DPLL_CLK_MN_BYPASS) { | |
145 | /* nothing */ | 145 | /* nothing */ | |
146 | } | 146 | } | |
147 | 147 | |||
148 | /* Replace multipler */ | 148 | /* Replace multiplier */ | |
149 | clksel &= ~AM335X_PRCM_CM_CLKSEL_DPLL_MULT; | 149 | clksel &= ~AM335X_PRCM_CM_CLKSEL_DPLL_MULT; | |
150 | clksel |= __SHIFTIN(mpupll_m, AM335X_PRCM_CM_CLKSEL_DPLL_MULT); | 150 | clksel |= __SHIFTIN(mpupll_m, AM335X_PRCM_CM_CLKSEL_DPLL_MULT); | |
151 | prcm_write_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKSEL_DPLL_MPU, clksel); | 151 | prcm_write_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKSEL_DPLL_MPU, clksel); | |
152 | 152 | |||
153 | /* Exit bypass mode */ | 153 | /* Exit bypass mode */ | |
154 | clkmode |= AM335X_PRCM_CM_CLKMODE_DPLL_LOCK_MODE; | 154 | clkmode |= AM335X_PRCM_CM_CLKMODE_DPLL_LOCK_MODE; | |
155 | prcm_write_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKMODE_DPLL_MPU, clkmode); | 155 | prcm_write_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_CLKMODE_DPLL_MPU, clkmode); | |
156 | 156 | |||
157 | /* Wait for the DPLL to lock */ | 157 | /* Wait for the DPLL to lock */ | |
158 | while (prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_IDLEST_DPLL_MPU) != AM335X_PRCM_CM_IDLEST_DPLL_ST_DPLL_CLK_LOCKED) { | 158 | while (prcm_read_4(AM335X_PRCM_CM_WKUP, AM335X_PRCM_CM_IDLEST_DPLL_MPU) != AM335X_PRCM_CM_IDLEST_DPLL_ST_DPLL_CLK_LOCKED) { | |
159 | /* nothing */ | 159 | /* nothing */ | |
160 | } | 160 | } | |
161 | } | 161 | } |
--- src/sys/arch/atari/atari/locore.s 2022/03/16 20:31:01 1.115
+++ src/sys/arch/atari/atari/locore.s 2022/05/30 09:56:03 1.116
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.115 2022/03/16 20:31:01 andvar Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.116 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1980, 1990 The Regents of the University of California. | 5 | * Copyright (c) 1980, 1990 The Regents of the University of California. | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -759,27 +759,27 @@ ENTRY_NOPROFILE(lev7intr) | @@ -759,27 +759,27 @@ ENTRY_NOPROFILE(lev7intr) | |||
759 | addql #1,_C_LABEL(intrcnt)+28 | add another nmi interrupt | 759 | addql #1,_C_LABEL(intrcnt)+28 | add another nmi interrupt | |
760 | rte | all done | 760 | rte | all done | |
761 | 761 | |||
762 | #endif /* _ATARIHW_ */ | 762 | #endif /* _ATARIHW_ */ | |
763 | 763 | |||
764 | 764 | |||
765 | /* | 765 | /* | |
766 | * Emulation of VAX REI instruction. | 766 | * Emulation of VAX REI instruction. | |
767 | * | 767 | * | |
768 | * This code deals with checking for and servicing ASTs | 768 | * This code deals with checking for and servicing ASTs | |
769 | * (profiling, scheduling) and software interrupts (network, softclock). | 769 | * (profiling, scheduling) and software interrupts (network, softclock). | |
770 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 770 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
771 | * the T_ASTFLT handling code will also check for software interrupts so we | 771 | * the T_ASTFLT handling code will also check for software interrupts so we | |
772 | * do not have to do it here. After identifing that we need an AST we | 772 | * do not have to do it here. After identifying that we need an AST we | |
773 | * drop the IPL to allow device interrupts. | 773 | * drop the IPL to allow device interrupts. | |
774 | * | 774 | * | |
775 | * This code is complicated by the fact that sendsig may have been called | 775 | * This code is complicated by the fact that sendsig may have been called | |
776 | * necessitating a stack cleanup. A cleanup should only be needed at this | 776 | * necessitating a stack cleanup. A cleanup should only be needed at this | |
777 | * point for coprocessor mid-instruction frames (type 9), but we also test | 777 | * point for coprocessor mid-instruction frames (type 9), but we also test | |
778 | * for bus error frames (type 10 and 11). | 778 | * for bus error frames (type 10 and 11). | |
779 | */ | 779 | */ | |
780 | ASENTRY_NOPROFILE(rei) | 780 | ASENTRY_NOPROFILE(rei) | |
781 | #ifdef DEBUG | 781 | #ifdef DEBUG | |
782 | tstl _C_LABEL(panicstr) | have we panicked? | 782 | tstl _C_LABEL(panicstr) | have we panicked? | |
783 | jne Ldorte | yes, do not make matters worse | 783 | jne Ldorte | yes, do not make matters worse | |
784 | #endif | 784 | #endif | |
785 | tstl _C_LABEL(astpending) | AST pending? | 785 | tstl _C_LABEL(astpending) | AST pending? |
--- src/sys/arch/cesfic/cesfic/locore.s 2018/12/19 13:57:46 1.33
+++ src/sys/arch/cesfic/cesfic/locore.s 2022/05/30 09:56:03 1.34
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.33 2018/12/19 13:57:46 maxv Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.34 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1980, 1990, 1993 | 4 | * Copyright (c) 1980, 1990, 1993 | |
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 | * This code is derived from software contributed to Berkeley by | 7 | * This code is derived from software contributed to Berkeley by | |
8 | * the Systems Programming Group of the University of Utah Computer | 8 | * the Systems Programming Group of the University of Utah Computer | |
9 | * Science Department. | 9 | * Science Department. | |
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 | |
@@ -658,27 +658,27 @@ ENTRY_NOPROFILE(lev7intr) /* level 7: pa | @@ -658,27 +658,27 @@ ENTRY_NOPROFILE(lev7intr) /* level 7: pa | |||
658 | movl %sp@(FR_SP),%a0 | restore | 658 | movl %sp@(FR_SP),%a0 | restore | |
659 | movl %a0,%usp | user SP | 659 | movl %a0,%usp | user SP | |
660 | moveml %sp@+,#0x7FFF | and remaining registers | 660 | moveml %sp@+,#0x7FFF | and remaining registers | |
661 | addql #8,%sp | pop SP and stack adjust | 661 | addql #8,%sp | pop SP and stack adjust | |
662 | jra _ASM_LABEL(rei) | all done | 662 | jra _ASM_LABEL(rei) | all done | |
663 | 663 | |||
664 | /* | 664 | /* | |
665 | * Emulation of VAX REI instruction. | 665 | * Emulation of VAX REI instruction. | |
666 | * | 666 | * | |
667 | * This code deals with checking for and servicing ASTs | 667 | * This code deals with checking for and servicing ASTs | |
668 | * (profiling, scheduling) and software interrupts (network, softclock). | 668 | * (profiling, scheduling) and software interrupts (network, softclock). | |
669 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 669 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
670 | * the T_ASTFLT handling code will also check for software interrupts so we | 670 | * the T_ASTFLT handling code will also check for software interrupts so we | |
671 | * do not have to do it here. After identifing that we need an AST we | 671 | * do not have to do it here. After identifying that we need an AST we | |
672 | * drop the IPL to allow device interrupts. | 672 | * drop the IPL to allow device interrupts. | |
673 | * | 673 | * | |
674 | * This code is complicated by the fact that sendsig may have been called | 674 | * This code is complicated by the fact that sendsig may have been called | |
675 | * necessitating a stack cleanup. | 675 | * necessitating a stack cleanup. | |
676 | */ | 676 | */ | |
677 | BSS(ssir,1) | 677 | BSS(ssir,1) | |
678 | 678 | |||
679 | ASENTRY_NOPROFILE(rei) | 679 | ASENTRY_NOPROFILE(rei) | |
680 | tstl _C_LABEL(astpending) | AST pending? | 680 | tstl _C_LABEL(astpending) | AST pending? | |
681 | jeq Lchksir | no, go check for SIR | 681 | jeq Lchksir | no, go check for SIR | |
682 | Lrei1: | 682 | Lrei1: | |
683 | btst #5,%sp@ | yes, are we returning to user mode? | 683 | btst #5,%sp@ | yes, are we returning to user mode? | |
684 | jne Lchksir | no, go check for SIR | 684 | jne Lchksir | no, go check for SIR |
--- src/sys/arch/hp300/hp300/locore.s 2018/12/19 13:57:47 1.172
+++ src/sys/arch/hp300/hp300/locore.s 2022/05/30 09:56:03 1.173
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.172 2018/12/19 13:57:47 maxv Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.173 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1980, 1990, 1993 | 4 | * Copyright (c) 1980, 1990, 1993 | |
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 | * This code is derived from software contributed to Berkeley by | 7 | * This code is derived from software contributed to Berkeley by | |
8 | * the Systems Programming Group of the University of Utah Computer | 8 | * the Systems Programming Group of the University of Utah Computer | |
9 | * Science Department. | 9 | * Science Department. | |
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 | |
@@ -969,27 +969,27 @@ ENTRY_NOPROFILE(lev7intr) /* level 7: pa | @@ -969,27 +969,27 @@ ENTRY_NOPROFILE(lev7intr) /* level 7: pa | |||
969 | movl %a0,%sp@(FR_SP) | the user stack pointer | 969 | movl %a0,%sp@(FR_SP) | the user stack pointer | |
970 | jbsr _C_LABEL(nmihand) | call handler | 970 | jbsr _C_LABEL(nmihand) | call handler | |
971 | movl %sp@(FR_SP),%a0 | restore | 971 | movl %sp@(FR_SP),%a0 | restore | |
972 | movl %a0,%usp | user SP | 972 | movl %a0,%usp | user SP | |
973 | moveml %sp@+,#0x7FFF | and remaining registers | 973 | moveml %sp@+,#0x7FFF | and remaining registers | |
974 | addql #8,%sp | pop SP and stack adjust | 974 | addql #8,%sp | pop SP and stack adjust | |
975 | jra _ASM_LABEL(rei) | all done | 975 | jra _ASM_LABEL(rei) | all done | |
976 | 976 | |||
977 | /* | 977 | /* | |
978 | * Emulation of VAX REI instruction. | 978 | * Emulation of VAX REI instruction. | |
979 | * | 979 | * | |
980 | * This code deals with checking for and servicing | 980 | * This code deals with checking for and servicing | |
981 | * ASTs (profiling, scheduling). | 981 | * ASTs (profiling, scheduling). | |
982 | * After identifing that we need an AST we drop the IPL | 982 | * After identifying that we need an AST we drop the IPL | |
983 | * to allow device interrupts. | 983 | * to allow device interrupts. | |
984 | * | 984 | * | |
985 | * This code is complicated by the fact that sendsig may have been called | 985 | * This code is complicated by the fact that sendsig may have been called | |
986 | * necessitating a stack cleanup. | 986 | * necessitating a stack cleanup. | |
987 | */ | 987 | */ | |
988 | 988 | |||
989 | ASENTRY_NOPROFILE(rei) | 989 | ASENTRY_NOPROFILE(rei) | |
990 | tstl _C_LABEL(astpending) | AST pending? | 990 | tstl _C_LABEL(astpending) | AST pending? | |
991 | jne 1f | no, done | 991 | jne 1f | no, done | |
992 | rte | 992 | rte | |
993 | 1: | 993 | 1: | |
994 | btst #5,%sp@ | yes, are we returning to user mode? | 994 | btst #5,%sp@ | yes, are we returning to user mode? | |
995 | jeq 2f | no, done | 995 | jeq 2f | no, done |
--- src/sys/arch/luna68k/luna68k/locore.s 2021/03/31 09:48:14 1.66
+++ src/sys/arch/luna68k/luna68k/locore.s 2022/05/30 09:56:03 1.67
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.66 2021/03/31 09:48:14 simonb Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.67 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1980, 1990, 1993 | 5 | * Copyright (c) 1980, 1990, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -659,27 +659,27 @@ ENTRY_NOPROFILE(lev5intr) | @@ -659,27 +659,27 @@ ENTRY_NOPROFILE(lev5intr) | |||
659 | INTERRUPT_RESTOREREG | 659 | INTERRUPT_RESTOREREG | |
660 | 1: | 660 | 1: | |
661 | subql #1,_C_LABEL(idepth) | 661 | subql #1,_C_LABEL(idepth) | |
662 | jra _ASM_LABEL(rei) | all done | 662 | jra _ASM_LABEL(rei) | all done | |
663 | #endif | 663 | #endif | |
664 | 664 | |||
665 | /* | 665 | /* | |
666 | * Emulation of VAX REI instruction. | 666 | * Emulation of VAX REI instruction. | |
667 | * | 667 | * | |
668 | * This code deals with checking for and servicing ASTs | 668 | * This code deals with checking for and servicing ASTs | |
669 | * (profiling, scheduling) and software interrupts (network, softclock). | 669 | * (profiling, scheduling) and software interrupts (network, softclock). | |
670 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 670 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
671 | * the T_ASTFLT handling code will also check for software interrupts so we | 671 | * the T_ASTFLT handling code will also check for software interrupts so we | |
672 | * do not have to do it here. After identifing that we need an AST we | 672 | * do not have to do it here. After identifying that we need an AST we | |
673 | * drop the IPL to allow device interrupts. | 673 | * drop the IPL to allow device interrupts. | |
674 | * | 674 | * | |
675 | * This code is complicated by the fact that sendsig may have been called | 675 | * This code is complicated by the fact that sendsig may have been called | |
676 | * necessitating a stack cleanup. | 676 | * necessitating a stack cleanup. | |
677 | */ | 677 | */ | |
678 | 678 | |||
679 | ASENTRY_NOPROFILE(rei) | 679 | ASENTRY_NOPROFILE(rei) | |
680 | tstl _C_LABEL(astpending) | AST pending? | 680 | tstl _C_LABEL(astpending) | AST pending? | |
681 | jne 1f | no, done | 681 | jne 1f | no, done | |
682 | rte | 682 | rte | |
683 | 1: | 683 | 1: | |
684 | btst #5,%sp@ | yes, are we returning to user mode? | 684 | btst #5,%sp@ | yes, are we returning to user mode? | |
685 | jeq 2f | no, done | 685 | jeq 2f | no, done |
--- src/sys/arch/mac68k/mac68k/locore.s 2021/03/14 03:25:01 1.174
+++ src/sys/arch/mac68k/mac68k/locore.s 2022/05/30 09:56:03 1.175
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.174 2021/03/14 03:25:01 rin Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.175 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1982, 1990 The Regents of the University of California. | 5 | * Copyright (c) 1982, 1990 The Regents of the University of California. | |
6 | * All rights reserved. | 6 | * All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -808,27 +808,27 @@ ENTRY_NOPROFILE(rtclock_intr) | @@ -808,27 +808,27 @@ ENTRY_NOPROFILE(rtclock_intr) | |||
808 | CPUINFO_INCREMENT(CI_NINTR) | 808 | CPUINFO_INCREMENT(CI_NINTR) | |
809 | INTERRUPT_RESTOREREG | 809 | INTERRUPT_RESTOREREG | |
810 | movw %d2,%sr | restore SPL | 810 | movw %d2,%sr | restore SPL | |
811 | movl %sp@+,%d2 | restore %d2 | 811 | movl %sp@+,%d2 | restore %d2 | |
812 | rts | go back from whence we came | 812 | rts | go back from whence we came | |
813 | 813 | |||
814 | /* | 814 | /* | |
815 | * Emulation of VAX REI instruction. | 815 | * Emulation of VAX REI instruction. | |
816 | * | 816 | * | |
817 | * This code deals with checking for and servicing ASTs | 817 | * This code deals with checking for and servicing ASTs | |
818 | * (profiling, scheduling) and software interrupts (network, softclock). | 818 | * (profiling, scheduling) and software interrupts (network, softclock). | |
819 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 819 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
820 | * the T_ASTFLT handling code will also check for software interrupts so we | 820 | * the T_ASTFLT handling code will also check for software interrupts so we | |
821 | * do not have to do it here. After identifing that we need an AST we | 821 | * do not have to do it here. After identifying that we need an AST we | |
822 | * drop the IPL to allow device interrupts. | 822 | * drop the IPL to allow device interrupts. | |
823 | * | 823 | * | |
824 | * This code is complicated by the fact that sendsig may have been called | 824 | * This code is complicated by the fact that sendsig may have been called | |
825 | * necessitating a stack cleanup. | 825 | * necessitating a stack cleanup. | |
826 | */ | 826 | */ | |
827 | 827 | |||
828 | ASENTRY_NOPROFILE(rei) | 828 | ASENTRY_NOPROFILE(rei) | |
829 | tstl _C_LABEL(astpending) | AST pending? | 829 | tstl _C_LABEL(astpending) | AST pending? | |
830 | jeq .Lchksir | no, go check for SIR | 830 | jeq .Lchksir | no, go check for SIR | |
831 | .Lrei1: | 831 | .Lrei1: | |
832 | btst #5,%sp@ | yes, are we returning to user mode? | 832 | btst #5,%sp@ | yes, are we returning to user mode? | |
833 | jne .Lchksir | no, go check for SIR | 833 | jne .Lchksir | no, go check for SIR | |
834 | movw #PSL_LOWIPL,%sr | lower SPL | 834 | movw #PSL_LOWIPL,%sr | lower SPL | |
@@ -1005,27 +1005,27 @@ ENTRY(spl0) | @@ -1005,27 +1005,27 @@ ENTRY(spl0) | |||
1005 | * | 1005 | * | |
1006 | * The branch target for the loops must be aligned on a half-line (8-byte) | 1006 | * The branch target for the loops must be aligned on a half-line (8-byte) | |
1007 | * boundary to minimize cache effects. This guarantees both that there | 1007 | * boundary to minimize cache effects. This guarantees both that there | |
1008 | * will be no prefetch stalls due to cache line burst operations and that | 1008 | * will be no prefetch stalls due to cache line burst operations and that | |
1009 | * the loops will run from a single cache half-line. | 1009 | * the loops will run from a single cache half-line. | |
1010 | */ | 1010 | */ | |
1011 | .align 8 | align to half-line boundary | 1011 | .align 8 | align to half-line boundary | |
1012 | | (use nop instructions if necessary!) | 1012 | | (use nop instructions if necessary!) | |
1013 | ALTENTRY(_delay, _delay) | 1013 | ALTENTRY(_delay, _delay) | |
1014 | ENTRY(delay) | 1014 | ENTRY(delay) | |
1015 | movl %sp@(4),%d0 | get microseconds to delay | 1015 | movl %sp@(4),%d0 | get microseconds to delay | |
1016 | cmpl #0x40000,%d0 | is it a "large" delay? | 1016 | cmpl #0x40000,%d0 | is it a "large" delay? | |
1017 | bls .Ldelayshort | no, normal calculation | 1017 | bls .Ldelayshort | no, normal calculation | |
1018 | movql #0x7f,%d1 | adjust for scaled multipler (to | 1018 | movql #0x7f,%d1 | adjust for scaled multiplier (to | |
1019 | addl %d1,%d0 | avoid overflow) | 1019 | addl %d1,%d0 | avoid overflow) | |
1020 | lsrl #7,%d0 | 1020 | lsrl #7,%d0 | |
1021 | mulul _C_LABEL(delay_factor),%d0 | calculate number of loop iterations | 1021 | mulul _C_LABEL(delay_factor),%d0 | calculate number of loop iterations | |
1022 | bra .Ldelaysetup | go do it! | 1022 | bra .Ldelaysetup | go do it! | |
1023 | .Ldelayshort: | 1023 | .Ldelayshort: | |
1024 | mulul _C_LABEL(delay_factor),%d0 | calculate number of loop iterations | 1024 | mulul _C_LABEL(delay_factor),%d0 | calculate number of loop iterations | |
1025 | lsrl #7,%d0 | adjust for scaled multiplier | 1025 | lsrl #7,%d0 | adjust for scaled multiplier | |
1026 | .Ldelaysetup: | 1026 | .Ldelaysetup: | |
1027 | jeq .Ldelayexit | bail out if nothing to do | 1027 | jeq .Ldelayexit | bail out if nothing to do | |
1028 | movql #0,%d1 | put bits 15-0 in %d1 for the | 1028 | movql #0,%d1 | put bits 15-0 in %d1 for the | |
1029 | movw %d0,%d1 | inner loop, and move bits | 1029 | movw %d0,%d1 | inner loop, and move bits | |
1030 | movw #0,%d0 | 31-16 to the low-order word | 1030 | movw #0,%d0 | 31-16 to the low-order word | |
1031 | subql #1,%d1 | of %d0 for the outer loop | 1031 | subql #1,%d1 | of %d0 for the outer loop |
--- src/sys/arch/mvme68k/mvme68k/locore.s 2021/03/31 09:48:14 1.117
+++ src/sys/arch/mvme68k/mvme68k/locore.s 2022/05/30 09:56:03 1.118
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.117 2021/03/31 09:48:14 simonb Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.118 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1980, 1990, 1993 | 5 | * Copyright (c) 1980, 1990, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -969,27 +969,27 @@ ENTRY_NOPROFILE(intrhand_vectored) | @@ -969,27 +969,27 @@ ENTRY_NOPROFILE(intrhand_vectored) | |||
969 | jbsr _C_LABEL(isrdispatch_vectored) | call dispatcher | 969 | jbsr _C_LABEL(isrdispatch_vectored) | call dispatcher | |
970 | addql #8,%sp | 970 | addql #8,%sp | |
971 | Lintrhand_exit: | 971 | Lintrhand_exit: | |
972 | INTERRUPT_RESTOREREG | 972 | INTERRUPT_RESTOREREG | |
973 | subql #1,_C_LABEL(interrupt_depth) | 973 | subql #1,_C_LABEL(interrupt_depth) | |
974 | 974 | |||
975 | /* FALLTHROUGH to rei */ | 975 | /* FALLTHROUGH to rei */ | |
976 | 976 | |||
977 | /* | 977 | /* | |
978 | * Emulation of VAX REI instruction. | 978 | * Emulation of VAX REI instruction. | |
979 | * | 979 | * | |
980 | * This code deals with checking for and servicing ASTs | 980 | * This code deals with checking for and servicing ASTs | |
981 | * (profiling, scheduling). | 981 | * (profiling, scheduling). | |
982 | * After identifing that we need an AST we drop the IPL to allow device | 982 | * After identifying that we need an AST we drop the IPL to allow device | |
983 | * interrupts. | 983 | * interrupts. | |
984 | * | 984 | * | |
985 | * This code is complicated by the fact that sendsig may have been called | 985 | * This code is complicated by the fact that sendsig may have been called | |
986 | * necessitating a stack cleanup. | 986 | * necessitating a stack cleanup. | |
987 | */ | 987 | */ | |
988 | ASENTRY_NOPROFILE(rei) | 988 | ASENTRY_NOPROFILE(rei) | |
989 | tstl _C_LABEL(astpending) | AST pending? | 989 | tstl _C_LABEL(astpending) | AST pending? | |
990 | jeq Ldorte | Nope. Just return. | 990 | jeq Ldorte | Nope. Just return. | |
991 | btst #5,%sp@ | Returning to kernel mode? | 991 | btst #5,%sp@ | Returning to kernel mode? | |
992 | jne Ldorte | Yup. Can't do ASTs | 992 | jne Ldorte | Yup. Can't do ASTs | |
993 | movw #PSL_LOWIPL,%sr | lower SPL | 993 | movw #PSL_LOWIPL,%sr | lower SPL | |
994 | clrl %sp@- | stack adjust | 994 | clrl %sp@- | stack adjust | |
995 | moveml #0xFFFF,%sp@- | save all registers | 995 | moveml #0xFFFF,%sp@- | save all registers |
--- src/sys/arch/news68k/news68k/locore.s 2021/01/23 15:00:33 1.67
+++ src/sys/arch/news68k/news68k/locore.s 2022/05/30 09:56:03 1.68
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.67 2021/01/23 15:00:33 tsutsui Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.68 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1980, 1990, 1993 | 5 | * Copyright (c) 1980, 1990, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -803,27 +803,27 @@ ENTRY_NOPROFILE(intrhand_vectored) | @@ -803,27 +803,27 @@ ENTRY_NOPROFILE(intrhand_vectored) | |||
803 | movl %d0,%sp@- | push exception vector info | 803 | movl %d0,%sp@- | push exception vector info | |
804 | movl %sp@(26),%sp@- | and PC | 804 | movl %sp@(26),%sp@- | and PC | |
805 | jbsr _C_LABEL(isrdispatch_vectored) | call dispatcher | 805 | jbsr _C_LABEL(isrdispatch_vectored) | call dispatcher | |
806 | lea %sp@(12),%sp | pop value args | 806 | lea %sp@(12),%sp | pop value args | |
807 | INTERRUPT_RESTOREREG | 807 | INTERRUPT_RESTOREREG | |
808 | subql #1,_C_LABEL(idepth) | 808 | subql #1,_C_LABEL(idepth) | |
809 | rte | 809 | rte | |
810 | 810 | |||
811 | /* | 811 | /* | |
812 | * Emulation of VAX REI instruction. | 812 | * Emulation of VAX REI instruction. | |
813 | * | 813 | * | |
814 | * This code deals with checking for and servicing | 814 | * This code deals with checking for and servicing | |
815 | * ASTs (profiling, scheduling). | 815 | * ASTs (profiling, scheduling). | |
816 | * After identifing that we need an AST we drop the IPL | 816 | * After identifying that we need an AST we drop the IPL | |
817 | * to allow device interrupts. | 817 | * to allow device interrupts. | |
818 | * | 818 | * | |
819 | * This code is complicated by the fact that sendsig may have been called | 819 | * This code is complicated by the fact that sendsig may have been called | |
820 | * necessitating a stack cleanup. | 820 | * necessitating a stack cleanup. | |
821 | */ | 821 | */ | |
822 | /* | 822 | /* | |
823 | * news68k has hardware support for AST, | 823 | * news68k has hardware support for AST, | |
824 | * so only traps (including system call) and | 824 | * so only traps (including system call) and | |
825 | * the AST interrupt use this REI function. | 825 | * the AST interrupt use this REI function. | |
826 | */ | 826 | */ | |
827 | 827 | |||
828 | ASENTRY_NOPROFILE(rei) | 828 | ASENTRY_NOPROFILE(rei) | |
829 | tstl _C_LABEL(astpending) | AST pending? | 829 | tstl _C_LABEL(astpending) | AST pending? |
--- src/sys/arch/next68k/next68k/locore.s 2021/01/25 13:08:05 1.67
+++ src/sys/arch/next68k/next68k/locore.s 2022/05/30 09:56:03 1.68
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.67 2021/01/25 13:08:05 tsutsui Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.68 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1998 Darrin B. Jewell | 4 | * Copyright (c) 1998 Darrin B. Jewell | |
5 | * Copyright (c) 1980, 1990, 1993 | 5 | * Copyright (c) 1980, 1990, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -803,27 +803,27 @@ Lintrhand_exit: | @@ -803,27 +803,27 @@ Lintrhand_exit: | |||
803 | INTERRUPT_RESTOREREG | 803 | INTERRUPT_RESTOREREG | |
804 | subql #1,_C_LABEL(interrupt_depth) | 804 | subql #1,_C_LABEL(interrupt_depth) | |
805 | 805 | |||
806 | /* FALLTHROUGH to rei */ | 806 | /* FALLTHROUGH to rei */ | |
807 | jra _ASM_LABEL(rei) | all done | 807 | jra _ASM_LABEL(rei) | all done | |
808 | 808 | |||
809 | /* | 809 | /* | |
810 | * Emulation of VAX REI instruction. | 810 | * Emulation of VAX REI instruction. | |
811 | * | 811 | * | |
812 | * This code deals with checking for and servicing ASTs | 812 | * This code deals with checking for and servicing ASTs | |
813 | * (profiling, scheduling) and software interrupts (network, softclock). | 813 | * (profiling, scheduling) and software interrupts (network, softclock). | |
814 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 814 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
815 | * the T_ASTFLT handling code will also check for software interrupts so we | 815 | * the T_ASTFLT handling code will also check for software interrupts so we | |
816 | * do not have to do it here. After identifing that we need an AST we | 816 | * do not have to do it here. After identifying that we need an AST we | |
817 | * drop the IPL to allow device interrupts. | 817 | * drop the IPL to allow device interrupts. | |
818 | * | 818 | * | |
819 | * This code is complicated by the fact that sendsig may have been called | 819 | * This code is complicated by the fact that sendsig may have been called | |
820 | * necessitating a stack cleanup. | 820 | * necessitating a stack cleanup. | |
821 | */ | 821 | */ | |
822 | 822 | |||
823 | ASENTRY_NOPROFILE(rei) | 823 | ASENTRY_NOPROFILE(rei) | |
824 | tstl _C_LABEL(astpending) | AST pending? | 824 | tstl _C_LABEL(astpending) | AST pending? | |
825 | jeq Lchksir | no, go check for SIR | 825 | jeq Lchksir | no, go check for SIR | |
826 | Lrei1: | 826 | Lrei1: | |
827 | btst #5,%sp@ | yes, are we returning to user mode? | 827 | btst #5,%sp@ | yes, are we returning to user mode? | |
828 | jne Lchksir | no, go check for SIR | 828 | jne Lchksir | no, go check for SIR | |
829 | movw #PSL_LOWIPL,%sr | lower SPL | 829 | movw #PSL_LOWIPL,%sr | lower SPL |
--- src/sys/arch/x68k/x68k/locore.s 2018/12/19 13:57:51 1.120
+++ src/sys/arch/x68k/x68k/locore.s 2022/05/30 09:56:03 1.121
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: locore.s,v 1.120 2018/12/19 13:57:51 maxv Exp $ */ | 1 | /* $NetBSD: locore.s,v 1.121 2022/05/30 09:56:03 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1980, 1990, 1993 | 5 | * Copyright (c) 1980, 1990, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department. | 10 | * Science Department. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -711,27 +711,27 @@ ENTRY_NOPROFILE(lev7intr) | @@ -711,27 +711,27 @@ ENTRY_NOPROFILE(lev7intr) | |||
711 | * floppy ejection trap | 711 | * floppy ejection trap | |
712 | */ | 712 | */ | |
713 | 713 | |||
714 | ENTRY_NOPROFILE(fdeject) | 714 | ENTRY_NOPROFILE(fdeject) | |
715 | jra _ASM_LABEL(rei) | 715 | jra _ASM_LABEL(rei) | |
716 | 716 | |||
717 | /* | 717 | /* | |
718 | * Emulation of VAX REI instruction. | 718 | * Emulation of VAX REI instruction. | |
719 | * | 719 | * | |
720 | * This code deals with checking for and servicing ASTs | 720 | * This code deals with checking for and servicing ASTs | |
721 | * (profiling, scheduling) and software interrupts (network, softclock). | 721 | * (profiling, scheduling) and software interrupts (network, softclock). | |
722 | * We check for ASTs first, just like the VAX. To avoid excess overhead | 722 | * We check for ASTs first, just like the VAX. To avoid excess overhead | |
723 | * the T_ASTFLT handling code will also check for software interrupts so we | 723 | * the T_ASTFLT handling code will also check for software interrupts so we | |
724 | * do not have to do it here. After identifing that we need an AST we | 724 | * do not have to do it here. After identifying that we need an AST we | |
725 | * drop the IPL to allow device interrupts. | 725 | * drop the IPL to allow device interrupts. | |
726 | * | 726 | * | |
727 | * This code is complicated by the fact that sendsig may have been called | 727 | * This code is complicated by the fact that sendsig may have been called | |
728 | * necessitating a stack cleanup. | 728 | * necessitating a stack cleanup. | |
729 | */ | 729 | */ | |
730 | 730 | |||
731 | ASENTRY_NOPROFILE(rei) | 731 | ASENTRY_NOPROFILE(rei) | |
732 | tstl _C_LABEL(astpending) | AST pending? | 732 | tstl _C_LABEL(astpending) | AST pending? | |
733 | jne 1f | no, done | 733 | jne 1f | no, done | |
734 | rte | 734 | rte | |
735 | 1: | 735 | 1: | |
736 | btst #5,%sp@ | yes, are we returning to user mode? | 736 | btst #5,%sp@ | yes, are we returning to user mode? | |
737 | beq 2f | no, done | 737 | beq 2f | no, done |
--- src/sys/dev/i2o/i2o.h 2017/10/28 06:27:32 1.16
+++ src/sys/dev/i2o/i2o.h 2022/05/30 09:56:04 1.17
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: i2o.h,v 1.16 2017/10/28 06:27:32 riastradh Exp $ */ | 1 | /* $NetBSD: i2o.h,v 1.17 2022/05/30 09:56:04 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2000, 2001 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 Andrew Doran. | 8 | * 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. | |
@@ -712,63 +712,63 @@ struct i2o_param_ddm_identity { | @@ -712,63 +712,63 @@ struct i2o_param_ddm_identity { | |||
712 | u_int8_t serialnumber[12]; | 712 | u_int8_t serialnumber[12]; | |
713 | } __packed; | 713 | } __packed; | |
714 | 714 | |||
715 | /* | 715 | /* | |
716 | * ================= Block storage class messages ================= | 716 | * ================= Block storage class messages ================= | |
717 | */ | 717 | */ | |
718 | 718 | |||
719 | #define I2O_RBS_BLOCK_READ 0x30 | 719 | #define I2O_RBS_BLOCK_READ 0x30 | |
720 | struct i2o_rbs_block_read { | 720 | struct i2o_rbs_block_read { | |
721 | u_int32_t msgflags; | 721 | u_int32_t msgflags; | |
722 | u_int32_t msgfunc; | 722 | u_int32_t msgfunc; | |
723 | u_int32_t msgictx; | 723 | u_int32_t msgictx; | |
724 | u_int32_t msgtctx; | 724 | u_int32_t msgtctx; | |
725 | u_int32_t flags; /* flags, time multipler, read ahead */ | 725 | u_int32_t flags; /* flags, time multiplier, read ahead */ | |
726 | u_int32_t datasize; | 726 | u_int32_t datasize; | |
727 | u_int32_t lowoffset; | 727 | u_int32_t lowoffset; | |
728 | u_int32_t highoffset; | 728 | u_int32_t highoffset; | |
729 | } __packed; | 729 | } __packed; | |
730 | 730 | |||
731 | #define I2O_RBS_BLOCK_READ_NO_RETRY 0x01 | 731 | #define I2O_RBS_BLOCK_READ_NO_RETRY 0x01 | |
732 | #define I2O_RBS_BLOCK_READ_SOLO 0x02 | 732 | #define I2O_RBS_BLOCK_READ_SOLO 0x02 | |
733 | #define I2O_RBS_BLOCK_READ_CACHE_READ 0x04 | 733 | #define I2O_RBS_BLOCK_READ_CACHE_READ 0x04 | |
734 | #define I2O_RBS_BLOCK_READ_PREFETCH 0x08 | 734 | #define I2O_RBS_BLOCK_READ_PREFETCH 0x08 | |
735 | #define I2O_RBS_BLOCK_READ_CACHE_ONLY 0x10 | 735 | #define I2O_RBS_BLOCK_READ_CACHE_ONLY 0x10 | |
736 | 736 | |||
737 | #define I2O_RBS_BLOCK_WRITE 0x31 | 737 | #define I2O_RBS_BLOCK_WRITE 0x31 | |
738 | struct i2o_rbs_block_write { | 738 | struct i2o_rbs_block_write { | |
739 | u_int32_t msgflags; | 739 | u_int32_t msgflags; | |
740 | u_int32_t msgfunc; | 740 | u_int32_t msgfunc; | |
741 | u_int32_t msgictx; | 741 | u_int32_t msgictx; | |
742 | u_int32_t msgtctx; | 742 | u_int32_t msgtctx; | |
743 | u_int32_t flags; /* flags, time multipler */ | 743 | u_int32_t flags; /* flags, time multiplier */ | |
744 | u_int32_t datasize; | 744 | u_int32_t datasize; | |
745 | u_int32_t lowoffset; | 745 | u_int32_t lowoffset; | |
746 | u_int32_t highoffset; | 746 | u_int32_t highoffset; | |
747 | } __packed; | 747 | } __packed; | |
748 | 748 | |||
749 | #define I2O_RBS_BLOCK_WRITE_NO_RETRY 0x01 | 749 | #define I2O_RBS_BLOCK_WRITE_NO_RETRY 0x01 | |
750 | #define I2O_RBS_BLOCK_WRITE_SOLO 0x02 | 750 | #define I2O_RBS_BLOCK_WRITE_SOLO 0x02 | |
751 | #define I2O_RBS_BLOCK_WRITE_CACHE_NONE 0x04 | 751 | #define I2O_RBS_BLOCK_WRITE_CACHE_NONE 0x04 | |
752 | #define I2O_RBS_BLOCK_WRITE_CACHE_WT 0x08 | 752 | #define I2O_RBS_BLOCK_WRITE_CACHE_WT 0x08 | |
753 | #define I2O_RBS_BLOCK_WRITE_CACHE_WB 0x10 | 753 | #define I2O_RBS_BLOCK_WRITE_CACHE_WB 0x10 | |
754 | 754 | |||
755 | #define I2O_RBS_CACHE_FLUSH 0x37 | 755 | #define I2O_RBS_CACHE_FLUSH 0x37 | |
756 | struct i2o_rbs_cache_flush { | 756 | struct i2o_rbs_cache_flush { | |
757 | u_int32_t msgflags; | 757 | u_int32_t msgflags; | |
758 | u_int32_t msgfunc; | 758 | u_int32_t msgfunc; | |
759 | u_int32_t msgictx; | 759 | u_int32_t msgictx; | |
760 | u_int32_t msgtctx; | 760 | u_int32_t msgtctx; | |
761 | u_int32_t flags; /* flags, time multipler */ | 761 | u_int32_t flags; /* flags, time multiplier */ | |
762 | } __packed; | 762 | } __packed; | |
763 | 763 | |||
764 | #define I2O_RBS_MEDIA_MOUNT 0x41 | 764 | #define I2O_RBS_MEDIA_MOUNT 0x41 | |
765 | struct i2o_rbs_media_mount { | 765 | struct i2o_rbs_media_mount { | |
766 | u_int32_t msgflags; | 766 | u_int32_t msgflags; | |
767 | u_int32_t msgfunc; | 767 | u_int32_t msgfunc; | |
768 | u_int32_t msgictx; | 768 | u_int32_t msgictx; | |
769 | u_int32_t msgtctx; | 769 | u_int32_t msgtctx; | |
770 | u_int32_t mediaid; | 770 | u_int32_t mediaid; | |
771 | u_int32_t loadflags; | 771 | u_int32_t loadflags; | |
772 | } __packed; | 772 | } __packed; | |
773 | 773 | |||
774 | #define I2O_RBS_MEDIA_EJECT 0x43 | 774 | #define I2O_RBS_MEDIA_EJECT 0x43 |
--- src/sys/dev/ic/cd1190reg.h 2008/07/02 10:16:20 1.5
+++ src/sys/dev/ic/cd1190reg.h 2022/05/30 09:56:04 1.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: cd1190reg.h,v 1.5 2008/07/02 10:16:20 plunky Exp $ */ | 1 | /* $NetBSD: cd1190reg.h,v 1.6 2022/05/30 09:56:04 andvar Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1998 Iain Hibbert. | 4 | * Copyright (c) 1998 Iain Hibbert. | |
5 | * All rights reserved. | 5 | * 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. | |
@@ -158,18 +158,18 @@ | @@ -158,18 +158,18 @@ | |||
158 | #define CD1190_SR1_IP2 (1<<5) /* IP2 0 to 1 Change */ | 158 | #define CD1190_SR1_IP2 (1<<5) /* IP2 0 to 1 Change */ | |
159 | #define CD1190_SR1_IP1 (1<<4) /* IP1 0 to 1 Change */ | 159 | #define CD1190_SR1_IP1 (1<<4) /* IP1 0 to 1 Change */ | |
160 | 160 | |||
161 | /* Signal Status Register */ | 161 | /* Signal Status Register */ | |
162 | #define CD1190_SSR 0x0d | 162 | #define CD1190_SSR 0x0d | |
163 | #define CD1190_SSR_WRRD (1<<7) /* WR/RD Change */ | 163 | #define CD1190_SSR_WRRD (1<<7) /* WR/RD Change */ | |
164 | #define CD1190_SSR_IP3 (1<<6) /* IP3 Change */ | 164 | #define CD1190_SSR_IP3 (1<<6) /* IP3 Change */ | |
165 | #define CD1190_SSR_IP2 (1<<5) /* IP2 Change */ | 165 | #define CD1190_SSR_IP2 (1<<5) /* IP2 Change */ | |
166 | #define CD1190_SSR_IP1 (1<<4) /* IP1 Change */ | 166 | #define CD1190_SSR_IP1 (1<<4) /* IP1 Change */ | |
167 | 167 | |||
168 | /* Strobe Width Register */ | 168 | /* Strobe Width Register */ | |
169 | #define CD1190_SWR 0x02 | 169 | #define CD1190_SWR 0x02 | |
170 | 170 | |||
171 | /* Timer Multipler Register */ | 171 | /* Timer Multiplier Register */ | |
172 | #define CD1190_TMR 0x05 | 172 | #define CD1190_TMR 0x05 | |
173 | 173 | |||
174 | /* Timer Prescale Register */ | 174 | /* Timer Prescale Register */ | |
175 | #define CD1190_TPR 0x04 | 175 | #define CD1190_TPR 0x04 |