s/diable/disable/ in comments.diff -r1.68 -r1.69 src/sys/dev/ic/aic79xx.c
(andvar)
--- src/sys/dev/ic/aic79xx.c 2022/05/23 19:52:35 1.68
+++ src/sys/dev/ic/aic79xx.c 2023/08/01 20:50:11 1.69
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: aic79xx.c,v 1.68 2022/05/23 19:52:35 andvar Exp $ */ | 1 | /* $NetBSD: aic79xx.c,v 1.69 2023/08/01 20:50:11 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Core routines and tables shareable across OS platforms. | 4 | * Core routines and tables shareable across OS platforms. | |
5 | * | 5 | * | |
6 | * Copyright (c) 1994-2002 Justin T. Gibbs. | 6 | * Copyright (c) 1994-2002 Justin T. Gibbs. | |
7 | * Copyright (c) 2000-2003 Adaptec Inc. | 7 | * Copyright (c) 2000-2003 Adaptec Inc. | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
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, | |
@@ -39,27 +39,27 @@ | @@ -39,27 +39,27 @@ | |||
39 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 39 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
40 | * POSSIBILITY OF SUCH DAMAGES. | 40 | * POSSIBILITY OF SUCH DAMAGES. | |
41 | * | 41 | * | |
42 | * Id: //depot/aic7xxx/aic7xxx/aic79xx.c#202 $ | 42 | * Id: //depot/aic7xxx/aic7xxx/aic79xx.c#202 $ | |
43 | * | 43 | * | |
44 | * $FreeBSD: src/sys/dev/aic7xxx/aic79xx.c,v 1.24 2003/06/28 04:46:54 gibbs Exp $ | 44 | * $FreeBSD: src/sys/dev/aic7xxx/aic79xx.c,v 1.24 2003/06/28 04:46:54 gibbs Exp $ | |
45 | */ | 45 | */ | |
46 | /* | 46 | /* | |
47 | * Ported from FreeBSD by Pascal Renauld, Network Storage Solutions, Inc. | 47 | * Ported from FreeBSD by Pascal Renauld, Network Storage Solutions, Inc. | |
48 | * - April 2003 | 48 | * - April 2003 | |
49 | */ | 49 | */ | |
50 | 50 | |||
51 | #include <sys/cdefs.h> | 51 | #include <sys/cdefs.h> | |
52 | __KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.68 2022/05/23 19:52:35 andvar Exp $"); | 52 | __KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.69 2023/08/01 20:50:11 andvar Exp $"); | |
53 | 53 | |||
54 | #include <dev/ic/aic79xx_osm.h> | 54 | #include <dev/ic/aic79xx_osm.h> | |
55 | #include <dev/ic/aic79xx_inline.h> | 55 | #include <dev/ic/aic79xx_inline.h> | |
56 | #include <dev/ic/aic7xxx_cam.h> | 56 | #include <dev/ic/aic7xxx_cam.h> | |
57 | 57 | |||
58 | #include <dev/microcode/aic7xxx/aicasm.h> | 58 | #include <dev/microcode/aic7xxx/aicasm.h> | |
59 | #include <dev/microcode/aic7xxx/aicasm_insformat.h> | 59 | #include <dev/microcode/aic7xxx/aicasm_insformat.h> | |
60 | 60 | |||
61 | 61 | |||
62 | /******************************** Globals *************************************/ | 62 | /******************************** Globals *************************************/ | |
63 | struct ahd_softc_tailq ahd_tailq = TAILQ_HEAD_INITIALIZER(ahd_tailq); | 63 | struct ahd_softc_tailq ahd_tailq = TAILQ_HEAD_INITIALIZER(ahd_tailq); | |
64 | 64 | |||
65 | /***************************** Lookup Tables **********************************/ | 65 | /***************************** Lookup Tables **********************************/ | |
@@ -6143,27 +6143,27 @@ ahd_init(struct ahd_softc *ahd) | @@ -6143,27 +6143,27 @@ ahd_init(struct ahd_softc *ahd) | |||
6143 | if (i == 0) { | 6143 | if (i == 0) { | |
6144 | printf("%s: Timedout during current-sensing test\n", | 6144 | printf("%s: Timedout during current-sensing test\n", | |
6145 | ahd_name(ahd)); | 6145 | ahd_name(ahd)); | |
6146 | goto init_done; | 6146 | goto init_done; | |
6147 | } | 6147 | } | |
6148 | 6148 | |||
6149 | /* Latch Current Sensing status. */ | 6149 | /* Latch Current Sensing status. */ | |
6150 | error = ahd_read_flexport(ahd, FLXADDR_CURRENT_STAT, ¤t_sensing); | 6150 | error = ahd_read_flexport(ahd, FLXADDR_CURRENT_STAT, ¤t_sensing); | |
6151 | if (error != 0) { | 6151 | if (error != 0) { | |
6152 | printf("%s: current sensing timeout 3\n", ahd_name(ahd)); | 6152 | printf("%s: current sensing timeout 3\n", ahd_name(ahd)); | |
6153 | goto init_done; | 6153 | goto init_done; | |
6154 | } | 6154 | } | |
6155 | 6155 | |||
6156 | /* Diable current sensing. */ | 6156 | /* Disable current sensing. */ | |
6157 | ahd_write_flexport(ahd, FLXADDR_ROMSTAT_CURSENSECTL, 0); | 6157 | ahd_write_flexport(ahd, FLXADDR_ROMSTAT_CURSENSECTL, 0); | |
6158 | 6158 | |||
6159 | #ifdef AHD_DEBUG | 6159 | #ifdef AHD_DEBUG | |
6160 | if ((ahd_debug & AHD_SHOW_TERMCTL) != 0) { | 6160 | if ((ahd_debug & AHD_SHOW_TERMCTL) != 0) { | |
6161 | printf("%s: current_sensing == 0x%x\n", | 6161 | printf("%s: current_sensing == 0x%x\n", | |
6162 | ahd_name(ahd), current_sensing); | 6162 | ahd_name(ahd), current_sensing); | |
6163 | } | 6163 | } | |
6164 | #endif | 6164 | #endif | |
6165 | warn_user = 0; | 6165 | warn_user = 0; | |
6166 | for (i = 0; i < 4; i++, current_sensing >>= FLX_CSTAT_SHIFT) { | 6166 | for (i = 0; i < 4; i++, current_sensing >>= FLX_CSTAT_SHIFT) { | |
6167 | u_int term_stat; | 6167 | u_int term_stat; | |
6168 | 6168 | |||
6169 | term_stat = (current_sensing & FLX_CSTAT_MASK); | 6169 | term_stat = (current_sensing & FLX_CSTAT_MASK); |
--- src/sys/dev/pci/if_ntwoc_pci.c 2022/05/24 06:28:01 1.32
+++ src/sys/dev/pci/if_ntwoc_pci.c 2023/08/01 20:50:11 1.33
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: if_ntwoc_pci.c,v 1.32 2022/05/24 06:28:01 andvar Exp $ */ | 1 | /* $NetBSD: if_ntwoc_pci.c,v 1.33 2023/08/01 20:50:11 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1998 Vixie Enterprises | 4 | * Copyright (c) 1998 Vixie Enterprises | |
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 | * | 10 | * | |
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 | |
@@ -27,27 +27,27 @@ | @@ -27,27 +27,27 @@ | |||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |
28 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 28 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |
29 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | 29 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
30 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | 30 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |
31 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
32 | * SUCH DAMAGE. | 32 | * SUCH DAMAGE. | |
33 | * | 33 | * | |
34 | * This software has been written for Vixie Enterprises by Michael Graff | 34 | * This software has been written for Vixie Enterprises by Michael Graff | |
35 | * <explorer@flame.org>. To learn more about Vixie Enterprises, see | 35 | * <explorer@flame.org>. To learn more about Vixie Enterprises, see | |
36 | * ``http://www.vix.com''. | 36 | * ``http://www.vix.com''. | |
37 | */ | 37 | */ | |
38 | 38 | |||
39 | #include <sys/cdefs.h> | 39 | #include <sys/cdefs.h> | |
40 | __KERNEL_RCSID(0, "$NetBSD: if_ntwoc_pci.c,v 1.32 2022/05/24 06:28:01 andvar Exp $"); | 40 | __KERNEL_RCSID(0, "$NetBSD: if_ntwoc_pci.c,v 1.33 2023/08/01 20:50:11 andvar Exp $"); | |
41 | 41 | |||
42 | #include <sys/param.h> | 42 | #include <sys/param.h> | |
43 | #include <sys/systm.h> | 43 | #include <sys/systm.h> | |
44 | #include <sys/device.h> | 44 | #include <sys/device.h> | |
45 | #include <sys/mbuf.h> | 45 | #include <sys/mbuf.h> | |
46 | #include <sys/socket.h> | 46 | #include <sys/socket.h> | |
47 | 47 | |||
48 | #include <net/if.h> | 48 | #include <net/if.h> | |
49 | 49 | |||
50 | #include <sys/cpu.h> | 50 | #include <sys/cpu.h> | |
51 | #include <sys/bus.h> | 51 | #include <sys/bus.h> | |
52 | #include <sys/intr.h> | 52 | #include <sys/intr.h> | |
53 | 53 | |||
@@ -313,27 +313,27 @@ ntwoc_pci_attach(device_t parent, device | @@ -313,27 +313,27 @@ ntwoc_pci_attach(device_t parent, device | |||
313 | if (db1 != NTWOC_FE_ID_NONE) | 313 | if (db1 != NTWOC_FE_ID_NONE) | |
314 | numports++; | 314 | numports++; | |
315 | 315 | |||
316 | aprint_normal_dev(self, "%d port%s\n", numports, | 316 | aprint_normal_dev(self, "%d port%s\n", numports, | |
317 | (numports > 1 ? "s" : "")); | 317 | (numports > 1 ? "s" : "")); | |
318 | aprint_normal_dev(self, "port 0 interface card: %s\n", | 318 | aprint_normal_dev(self, "port 0 interface card: %s\n", | |
319 | ntwoc_pci_db_names[db0]); | 319 | ntwoc_pci_db_names[db0]); | |
320 | if (numports > 1) | 320 | if (numports > 1) | |
321 | aprint_normal_dev(self, "port 1 interface card: %s\n", | 321 | aprint_normal_dev(self, "port 1 interface card: %s\n", | |
322 | ntwoc_pci_db_names[db1]); | 322 | ntwoc_pci_db_names[db1]); | |
323 | 323 | |||
324 | /* | 324 | /* | |
325 | * enable the RS422 tristate transmit | 325 | * enable the RS422 tristate transmit | |
326 | * diable clock output (use receiver clock for both) | 326 | * disable clock output (use receiver clock for both) | |
327 | */ | 327 | */ | |
328 | frontend_cr |= (NTWOC_FECR_TE0 | NTWOC_FECR_TE1); | 328 | frontend_cr |= (NTWOC_FECR_TE0 | NTWOC_FECR_TE1); | |
329 | frontend_cr &= ~(NTWOC_FECR_ETC0 | NTWOC_FECR_ETC1); | 329 | frontend_cr &= ~(NTWOC_FECR_ETC0 | NTWOC_FECR_ETC1); | |
330 | bus_space_write_2(sc->sc_sca.sc_iot, sc->sc_sca.sc_ioh, | 330 | bus_space_write_2(sc->sc_sca.sc_iot, sc->sc_sca.sc_ioh, | |
331 | NTWOC_FECR, frontend_cr); | 331 | NTWOC_FECR, frontend_cr); | |
332 | 332 | |||
333 | /* | 333 | /* | |
334 | * initialize the SCA. This will allocate DMAable memory based | 334 | * initialize the SCA. This will allocate DMAable memory based | |
335 | * on the number of ports we passed in, the size of each | 335 | * on the number of ports we passed in, the size of each | |
336 | * buffer, and the number of buffers per port. | 336 | * buffer, and the number of buffers per port. | |
337 | */ | 337 | */ | |
338 | sca->sc_parent = self; | 338 | sca->sc_parent = self; | |
339 | sca->sc_read_1 = ntwoc_pci_sca_read_1; | 339 | sca->sc_read_1 = ntwoc_pci_sca_read_1; |
--- src/sys/dev/pci/tdvfb.c 2021/08/07 16:19:14 1.10
+++ src/sys/dev/pci/tdvfb.c 2023/08/01 20:50:11 1.11
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: tdvfb.c,v 1.10 2021/08/07 16:19:14 thorpej Exp $ */ | 1 | /* $NetBSD: tdvfb.c,v 1.11 2023/08/01 20:50:11 andvar Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2012 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2012 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 Radoslaw Kujawa. | 8 | * by Radoslaw Kujawa. | |
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. | |
@@ -39,27 +39,27 @@ | @@ -39,27 +39,27 @@ | |||
39 | * This driver currently only support boards with ICS GENDAC (which seems to | 39 | * This driver currently only support boards with ICS GENDAC (which seems to | |
40 | * be most popular, however at least two different DACs were used with CVG). | 40 | * be most popular, however at least two different DACs were used with CVG). | |
41 | * | 41 | * | |
42 | * TODO (in no particular order): | 42 | * TODO (in no particular order): | |
43 | * - Finally fix 16-bit depth handling on big-endian machines. | 43 | * - Finally fix 16-bit depth handling on big-endian machines. | |
44 | * - Expose card to userspace through /dev/3dfx compatible device file | 44 | * - Expose card to userspace through /dev/3dfx compatible device file | |
45 | * (for Glide). | 45 | * (for Glide). | |
46 | * - Allow mmap'ing of registers through wscons access op. | 46 | * - Allow mmap'ing of registers through wscons access op. | |
47 | * - Complete wscons emul ops acceleration support. | 47 | * - Complete wscons emul ops acceleration support. | |
48 | * - Add support for others DACs (need hardware). | 48 | * - Add support for others DACs (need hardware). | |
49 | */ | 49 | */ | |
50 | 50 | |||
51 | #include <sys/cdefs.h> | 51 | #include <sys/cdefs.h> | |
52 | __KERNEL_RCSID(0, "$NetBSD: tdvfb.c,v 1.10 2021/08/07 16:19:14 thorpej Exp $"); | 52 | __KERNEL_RCSID(0, "$NetBSD: tdvfb.c,v 1.11 2023/08/01 20:50:11 andvar Exp $"); | |
53 | 53 | |||
54 | #include <sys/param.h> | 54 | #include <sys/param.h> | |
55 | #include <sys/systm.h> | 55 | #include <sys/systm.h> | |
56 | #include <sys/kernel.h> | 56 | #include <sys/kernel.h> | |
57 | #include <sys/device.h> | 57 | #include <sys/device.h> | |
58 | #include <sys/endian.h> | 58 | #include <sys/endian.h> | |
59 | 59 | |||
60 | #include <dev/pci/pcivar.h> | 60 | #include <dev/pci/pcivar.h> | |
61 | #include <dev/pci/pcireg.h> | 61 | #include <dev/pci/pcireg.h> | |
62 | #include <dev/pci/pcidevs.h> | 62 | #include <dev/pci/pcidevs.h> | |
63 | #include <dev/pci/pciio.h> | 63 | #include <dev/pci/pciio.h> | |
64 | 64 | |||
65 | #include <dev/pci/tdvfbreg.h> | 65 | #include <dev/pci/tdvfbreg.h> | |
@@ -424,27 +424,27 @@ tdvfb_videomode_set(struct tdvfb_softc * | @@ -424,27 +424,27 @@ tdvfb_videomode_set(struct tdvfb_softc * | |||
424 | } | 424 | } | |
425 | tdvfb_cvg_write(sc, TDV_OFF_FBIINIT1, fbiinit1); | 425 | tdvfb_cvg_write(sc, TDV_OFF_FBIINIT1, fbiinit1); | |
426 | if (sc->sc_voodootype == TDV_VOODOO_2) { | 426 | if (sc->sc_voodootype == TDV_VOODOO_2) { | |
427 | tdvfb_cvg_write(sc, TDV_OFF_FBIINIT6, fbiinit6); | 427 | tdvfb_cvg_write(sc, TDV_OFF_FBIINIT6, fbiinit6); | |
428 | tdvfb_cvg_write(sc, TDV_OFF_FBIINIT5, fbiinit5); | 428 | tdvfb_cvg_write(sc, TDV_OFF_FBIINIT5, fbiinit5); | |
429 | } | 429 | } | |
430 | tdvfb_wait(sc); | 430 | tdvfb_wait(sc); | |
431 | 431 | |||
432 | /* unreset, enable DRAM refresh */ | 432 | /* unreset, enable DRAM refresh */ | |
433 | tdvfb_cvg_unset(sc, TDV_OFF_FBIINIT1, TDV_FBIINIT1_VIDEO_RST); | 433 | tdvfb_cvg_unset(sc, TDV_OFF_FBIINIT1, TDV_FBIINIT1_VIDEO_RST); | |
434 | tdvfb_cvg_unset(sc, TDV_OFF_FBIINIT0, TDV_FBIINIT0_FBI_RST | | 434 | tdvfb_cvg_unset(sc, TDV_OFF_FBIINIT0, TDV_FBIINIT0_FBI_RST | | |
435 | TDV_FBIINIT0_FIFO_RST); | 435 | TDV_FBIINIT0_FIFO_RST); | |
436 | tdvfb_cvg_set(sc, TDV_OFF_FBIINIT2, TDV_FBIINIT2_DRAM_REFR); | 436 | tdvfb_cvg_set(sc, TDV_OFF_FBIINIT2, TDV_FBIINIT2_DRAM_REFR); | |
437 | /* diable access to FBIINIT regs */ | 437 | /* disable access to FBIINIT regs */ | |
438 | pci_conf_write(sc->sc_pc, sc->sc_pcitag, TDV_INITENABLE_REG, | 438 | pci_conf_write(sc->sc_pc, sc->sc_pcitag, TDV_INITENABLE_REG, | |
439 | TDV_INITENABLE_EN_FIFO); | 439 | TDV_INITENABLE_EN_FIFO); | |
440 | tdvfb_wait(sc); | 440 | tdvfb_wait(sc); | |
441 | 441 | |||
442 | if (sc->sc_bpp == 16) | 442 | if (sc->sc_bpp == 16) | |
443 | lfbmode = TDV_LFBMODE_565; | 443 | lfbmode = TDV_LFBMODE_565; | |
444 | else if (sc->sc_bpp == 32) | 444 | else if (sc->sc_bpp == 32) | |
445 | lfbmode = TDV_LFBMODE_8888; | 445 | lfbmode = TDV_LFBMODE_8888; | |
446 | else | 446 | else | |
447 | return false; | 447 | return false; | |
448 | 448 | |||
449 | #if BYTE_ORDER == BIG_ENDIAN | 449 | #if BYTE_ORDER == BIG_ENDIAN | |
450 | lfbmode |= TDV_LFBMODE_BSW_WR | TDV_LFBMODE_BSW_RD; | 450 | lfbmode |= TDV_LFBMODE_BSW_WR | TDV_LFBMODE_BSW_RD; |