CVS commit: src/sys/arch/x86/x86

2024-04-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr 22 23:07:47 UTC 2024

Modified Files:
src/sys/arch/x86/x86: cpu.c

Log Message:
Surround full mp_cpu_start() method with NLAPIC > 0 guard.

Initialization is based on x86_ipi* functions, which are implemented only
when lapic flag is enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/sys/arch/x86/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2024-04-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr 22 23:07:47 UTC 2024

Modified Files:
src/sys/arch/x86/x86: cpu.c

Log Message:
Surround full mp_cpu_start() method with NLAPIC > 0 guard.

Initialization is based on x86_ipi* functions, which are implemented only
when lapic flag is enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/sys/arch/x86/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/cpu.c
diff -u src/sys/arch/x86/x86/cpu.c:1.209 src/sys/arch/x86/x86/cpu.c:1.210
--- src/sys/arch/x86/x86/cpu.c:1.209	Sun Jul 16 19:55:43 2023
+++ src/sys/arch/x86/x86/cpu.c	Mon Apr 22 23:07:47 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.209 2023/07/16 19:55:43 riastradh Exp $	*/
+/*	$NetBSD: cpu.c,v 1.210 2024/04/22 23:07:47 andvar Exp $	*/
 
 /*
  * Copyright (c) 2000-2020 NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.209 2023/07/16 19:55:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.210 2024/04/22 23:07:47 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mpbios.h"		/* for MPDEBUG */
@@ -1134,6 +1134,7 @@ cpu_copy_trampoline(paddr_t pdir_pa)
 int
 mp_cpu_start(struct cpu_info *ci, paddr_t target)
 {
+#if NLAPIC > 0
 	int error;
 
 	/*
@@ -1149,7 +1150,6 @@ mp_cpu_start(struct cpu_info *ci, paddr_
 	outb(IO_RTC, NVRAM_RESET);
 	outb(IO_RTC+1, NVRAM_RESET_JUMP);
 
-#if NLAPIC > 0
 	/*
 	 * "and the warm reset vector (DWORD based at 40:67) to point
 	 * to the AP startup code ..."
@@ -1159,7 +1159,6 @@ mp_cpu_start(struct cpu_info *ci, paddr_
 	dwordptr[1] = target >> 4;
 
 	memcpy((uint8_t *)cmos_data_mapping + 0x467, dwordptr, 4);
-#endif
 
 	if ((cpu_feature[0] & CPUID_APIC) == 0) {
 		aprint_error("mp_cpu_start: CPU does not have APIC\n");
@@ -1200,6 +1199,9 @@ mp_cpu_start(struct cpu_info *ci, paddr_
 	}
 
 	return 0;
+#else
+	return ENODEV;
+#endif /* NLAPIC > 0 */
 }
 
 void



CVS commit: src/sys/arch/i386/i386

2024-04-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr 22 22:47:00 UTC 2024

Modified Files:
src/sys/arch/i386/i386: i386_mainbus.c

Log Message:
Add (defined(MPBIOS) || NACPICA > 0) check around mp_pci_childdetached().
Fixes the build without MPBIOS or ACPI. Modified patch from Paolo Pisati in
current-users@.

While here:
Remove obsolete  include with its guard.
Add comments for multiple endifs for better readability.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/i386/i386/i386_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/i386

2024-04-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr 22 22:47:00 UTC 2024

Modified Files:
src/sys/arch/i386/i386: i386_mainbus.c

Log Message:
Add (defined(MPBIOS) || NACPICA > 0) check around mp_pci_childdetached().
Fixes the build without MPBIOS or ACPI. Modified patch from Paolo Pisati in
current-users@.

While here:
Remove obsolete  include with its guard.
Add comments for multiple endifs for better readability.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/i386/i386/i386_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/i386/i386/i386_mainbus.c
diff -u src/sys/arch/i386/i386/i386_mainbus.c:1.6 src/sys/arch/i386/i386/i386_mainbus.c:1.7
--- src/sys/arch/i386/i386/i386_mainbus.c:1.6	Sat Aug  7 16:18:55 2021
+++ src/sys/arch/i386/i386/i386_mainbus.c	Mon Apr 22 22:47:00 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_mainbus.c,v 1.6 2021/08/07 16:18:55 thorpej Exp $	*/
+/*	$NetBSD: i386_mainbus.c,v 1.7 2024/04/22 22:47:00 andvar Exp $	*/
 /*	NetBSD: mainbus.c,v 1.104 2018/12/02 08:19:44 cherry Exp 	*/
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: i386_mainbus.c,v 1.6 2021/08/07 16:18:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i386_mainbus.c,v 1.7 2024/04/22 22:47:00 andvar Exp $");
 
 #include 
 #include 
@@ -87,12 +87,9 @@ __KERNEL_RCSID(0, "$NetBSD: i386_mainbus
 #include 
 #if defined(PCI_ADDR_FIXUP)
 #include 
-#endif
-#endif
-#ifdef __HAVE_PCI_MSI_MSIX
-#include 
-#endif /* __HAVE_PCI_MSI_MSIX */
-#endif
+#endif /* PCI_ADDR_FIXUP */
+#endif /* PCI_BUS_FIXUP */
+#endif /* NPCI > 0 */
 
 void	i386_mainbus_childdetached(device_t, device_t);
 int	i386_mainbus_match(device_t, cfdata_t, void *);
@@ -178,7 +175,7 @@ i386_mainbus_childdetached(device_t self
 	if (sc->sc_pci == child)
 		sc->sc_pci = NULL;
 
-#if NPCI > 0
+#if NPCI > 0 && (defined(MPBIOS) || NACPICA > 0)
 	mp_pci_childdetached(self, child);
 #endif
 }



CVS commit: src/sys/arch/x86/x86

2024-04-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr 22 22:29:29 UTC 2024

Modified Files:
src/sys/arch/x86/x86: intr.c

Log Message:
Add opt_pci.h include to fix NO_PCI_MSI_MSIX build.
(Path from Paolo Pisati in current_users@)

While here:
Simplify mp_cpu_start() ifdefs. MULTIPROCESSOR and HYPERV code falls under
NLAPIC > 0, thus just combine all blocks under this guard.
Rearrange opt_acpi.h include alphabetically.


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/arch/x86/x86/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/intr.c
diff -u src/sys/arch/x86/x86/intr.c:1.167 src/sys/arch/x86/x86/intr.c:1.168
--- src/sys/arch/x86/x86/intr.c:1.167	Tue Mar  5 20:58:05 2024
+++ src/sys/arch/x86/x86/intr.c	Mon Apr 22 22:29:28 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.c,v 1.167 2024/03/05 20:58:05 andvar Exp $	*/
+/*	$NetBSD: intr.c,v 1.168 2024/04/22 22:29:28 andvar Exp $	*/
 
 /*
  * Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -133,11 +133,12 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.167 2024/03/05 20:58:05 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.168 2024/04/22 22:29:28 andvar Exp $");
 
+#include "opt_acpi.h"
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
-#include "opt_acpi.h"
+#include "opt_pci.h"
 
 #include 
 #include 
@@ -1366,18 +1367,13 @@ redzone_const_or_zero(int x)
 void
 cpu_intr_init(struct cpu_info *ci)
 {
-#if (NLAPIC > 0) || defined(MULTIPROCESSOR) || \
-(NHYPERV > 0)
-	struct intrsource *isp;
-#endif
 #if NLAPIC > 0
+	struct intrsource *isp;
 	static int first = 1;
 #if defined(MULTIPROCESSOR)
 	int i;
 #endif
-#endif
 
-#if NLAPIC > 0
 	isp = kmem_zalloc(sizeof(*isp), KM_SLEEP);
 	isp->is_recurse = Xrecurse_lapic_ltimer;
 	isp->is_resume = Xresume_lapic_ltimer;
@@ -1404,7 +1400,7 @@ cpu_intr_init(struct cpu_info *ci)
 	for (i = 0; i < X86_NIPI; i++)
 		evcnt_attach_dynamic(>ci_ipi_events[i], EVCNT_TYPE_MISC,
 		NULL, device_xname(ci->ci_dev), x86_ipi_names[i]);
-#endif
+#endif /* MULTIPROCESSOR */
 
 #if NHYPERV > 0
 	if (hyperv_hypercall_enabled()) {
@@ -1418,8 +1414,8 @@ cpu_intr_init(struct cpu_info *ci)
 		evcnt_attach_dynamic(>is_evcnt, EVCNT_TYPE_INTR, NULL,
 		device_xname(ci->ci_dev), "Hyper-V hypercall");
 	}
-#endif
-#endif
+#endif /* NHYPERV > 0 */
+#endif /* NLAPIC > 0 */
 
 #if defined(__HAVE_PREEMPTION)
 	x86_init_preempt(ci);



CVS commit: src/sys/arch/x86/x86

2024-04-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr 22 22:29:29 UTC 2024

Modified Files:
src/sys/arch/x86/x86: intr.c

Log Message:
Add opt_pci.h include to fix NO_PCI_MSI_MSIX build.
(Path from Paolo Pisati in current_users@)

While here:
Simplify mp_cpu_start() ifdefs. MULTIPROCESSOR and HYPERV code falls under
NLAPIC > 0, thus just combine all blocks under this guard.
Rearrange opt_acpi.h include alphabetically.


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/arch/x86/x86/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2024-04-19 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr 19 21:24:00 UTC 2024

Modified Files:
src/sys/dev/pci: pci_subr.c pcireg.h

Log Message:
s/Resorce/Resource/ in comment and log message.


To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/sys/dev/pci/pci_subr.c
cvs rdiff -u -r1.169 -r1.170 src/sys/dev/pci/pcireg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/pci_subr.c
diff -u src/sys/dev/pci/pci_subr.c:1.243 src/sys/dev/pci/pci_subr.c:1.244
--- src/sys/dev/pci/pci_subr.c:1.243	Thu Aug 10 20:02:56 2023
+++ src/sys/dev/pci/pci_subr.c	Fri Apr 19 21:24:00 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_subr.c,v 1.243 2023/08/10 20:02:56 andvar Exp $	*/
+/*	$NetBSD: pci_subr.c,v 1.244 2024/04/19 21:24:00 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.243 2023/08/10 20:02:56 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.244 2024/04/19 21:24:00 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -2559,10 +2559,10 @@ pci_conf_print_ea_cap_prop(unsigned int 
 		printf("I/O Space\n");
 		break;
 	case PCI_EA_PROP_VF_MEM_NONPREF:
-		printf("Resorce for VF use, Memory Space, Non-Prefetchable\n");
+		printf("Resource for VF use, Memory Space, Non-Prefetchable\n");
 		break;
 	case PCI_EA_PROP_VF_MEM_PREF:
-		printf("Resorce for VF use, Memory Space, Prefetch\n");
+		printf("Resource for VF use, Memory Space, Prefetch\n");
 		break;
 	case PCI_EA_PROP_BB_MEM_NONPREF:
 		printf("Behind the Bridge, Memory Space, Non-Pref\n");

Index: src/sys/dev/pci/pcireg.h
diff -u src/sys/dev/pci/pcireg.h:1.169 src/sys/dev/pci/pcireg.h:1.170
--- src/sys/dev/pci/pcireg.h:1.169	Fri Feb  2 22:19:13 2024
+++ src/sys/dev/pci/pcireg.h	Fri Apr 19 21:24:00 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcireg.h,v 1.169 2024/02/02 22:19:13 andvar Exp $	*/
+/*	$NetBSD: pcireg.h,v 1.170 2024/04/19 21:24:00 andvar Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996, 1999, 2000
@@ -1963,8 +1963,8 @@ struct pci_rom {
 #define  PCI_EA_PROP_MEM_NONPREF	0x00	/* Memory Space, Non-Prefetchable */
 #define  PCI_EA_PROP_MEM_PREF		0x01	/* Memory Space, Prefetchable */
 #define  PCI_EA_PROP_IO			0x02	/* I/O Space */
-#define  PCI_EA_PROP_VF_MEM_NONPREF	0x03	/* Resorce for VF use. Mem. Non-Pref */
-#define  PCI_EA_PROP_VF_MEM_PREF	0x04	/* Resorce for VF use. Mem. Prefetch */
+#define  PCI_EA_PROP_VF_MEM_NONPREF	0x03	/* Resource for VF use. Mem. Non-Pref */
+#define  PCI_EA_PROP_VF_MEM_PREF	0x04	/* Resource for VF use. Mem. Prefetch */
 #define  PCI_EA_PROP_BB_MEM_NONPREF	0x05	/* Behind Bridge: MEM. Non-Pref */
 #define  PCI_EA_PROP_BB_MEM_PREF	0x06	/* Behind Bridge: MEM. Prefetch */
 #define  PCI_EA_PROP_BB_IO		0x07	/* Behind Bridge: I/O Space */



CVS commit: src/sys/dev/pci

2024-04-19 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr 19 21:24:00 UTC 2024

Modified Files:
src/sys/dev/pci: pci_subr.c pcireg.h

Log Message:
s/Resorce/Resource/ in comment and log message.


To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/sys/dev/pci/pci_subr.c
cvs rdiff -u -r1.169 -r1.170 src/sys/dev/pci/pcireg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2024-04-18 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Apr 18 10:32:03 UTC 2024

Modified Files:
src/sys/arch/mac68k/mac68k: macrom.h
src/sys/net: if_media.h

Log Message:
s/resoure/resource/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/mac68k/mac68k/macrom.h
cvs rdiff -u -r1.71 -r1.72 src/sys/net/if_media.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/mac68k/macrom.h
diff -u src/sys/arch/mac68k/mac68k/macrom.h:1.19 src/sys/arch/mac68k/mac68k/macrom.h:1.20
--- src/sys/arch/mac68k/mac68k/macrom.h:1.19	Sun Nov  1 01:51:35 2009
+++ src/sys/arch/mac68k/mac68k/macrom.h	Thu Apr 18 10:32:03 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: macrom.h,v 1.19 2009/11/01 01:51:35 snj Exp $	*/
+/*	$NetBSD: macrom.h,v 1.20 2024/04/18 10:32:03 andvar Exp $	*/
 
 /*-
  * Copyright (C) 1994	Bradley A. Grantham
@@ -153,7 +153,7 @@ void	dumptrace(void);
 	/* Stuff for configuring ROM Glue */
 typedef struct rsrc_s {
 	u_int16_t unknown[4];	/*  */
-	u_int32_t next;		/* pointer to next resoure in list */
+	u_int32_t next;		/* pointer to next resource in list */
 	u_int32_t body;		/* pointer to resource body? */
 	u_int32_t name;		/* resource name */
 	u_int16_t index;	/*  */

Index: src/sys/net/if_media.h
diff -u src/sys/net/if_media.h:1.71 src/sys/net/if_media.h:1.72
--- src/sys/net/if_media.h:1.71	Sun Mar 15 23:04:51 2020
+++ src/sys/net/if_media.h	Thu Apr 18 10:32:03 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_media.h,v 1.71 2020/03/15 23:04:51 thorpej Exp $	*/
+/*	$NetBSD: if_media.h,v 1.72 2024/04/18 10:32:03 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2020 The NetBSD Foundation, Inc.
@@ -981,7 +981,7 @@ void	ifmedia_init(struct ifmedia *, int,
 void	ifmedia_init_with_lock(struct ifmedia *, int, ifm_change_cb_t,
 	ifm_stat_cb_t, kmutex_t *);
 
-/* Release resourecs associated with an ifmedia. */
+/* Release resources associated with an ifmedia. */
 void	ifmedia_fini(struct ifmedia *);
 
 



CVS commit: src/sys

2024-04-18 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Apr 18 10:32:03 UTC 2024

Modified Files:
src/sys/arch/mac68k/mac68k: macrom.h
src/sys/net: if_media.h

Log Message:
s/resoure/resource/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/mac68k/mac68k/macrom.h
cvs rdiff -u -r1.71 -r1.72 src/sys/net/if_media.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hdaudio

2024-04-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Apr 17 11:44:00 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs.h hdaudiodevs_data.h

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/hdaudio/hdaudiodevs.h \
src/sys/dev/hdaudio/hdaudiodevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hdaudio/hdaudiodevs.h
diff -u src/sys/dev/hdaudio/hdaudiodevs.h:1.9 src/sys/dev/hdaudio/hdaudiodevs.h:1.10
--- src/sys/dev/hdaudio/hdaudiodevs.h:1.9	Sat Apr  6 13:35:59 2024
+++ src/sys/dev/hdaudio/hdaudiodevs.h	Wed Apr 17 11:43:59 2024
@@ -1,10 +1,10 @@
-/*	$NetBSD: hdaudiodevs.h,v 1.9 2024/04/06 13:35:59 andvar Exp $	*/
+/*	$NetBSD: hdaudiodevs.h,v 1.10 2024/04/17 11:43:59 andvar Exp $	*/
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: hdaudiodevs,v 1.8 2024/04/06 13:35:36 andvar Exp
+ *	NetBSD: hdaudiodevs,v 1.9 2024/04/17 11:42:47 andvar Exp
  */
 
 /*
@@ -151,6 +151,8 @@
 #define	HDAUDIO_PRODUCT_VIATECH_VT1812	0x0448		/* VT1812 */
 #define	HDAUDIO_PRODUCT_VIATECH_VT1818S	0x0440		/* VT1818S */
 #define	HDAUDIO_PRODUCT_VIATECH_VT1705	0x4760		/* VT1705 */
+#define	HDAUDIO_PRODUCT_VIATECH_VX900_HDMI_1	0x9f80		/* VX900 HDMI/DP */
+#define	HDAUDIO_PRODUCT_VIATECH_VX900_HDMI_2	0x9f81		/* VX900 HDMI/DP */
 
 /* Analog Devices */
 #define	HDAUDIO_PRODUCT_ANALOG_AD1884A	0x184a		/* AD1884A */
Index: src/sys/dev/hdaudio/hdaudiodevs_data.h
diff -u src/sys/dev/hdaudio/hdaudiodevs_data.h:1.9 src/sys/dev/hdaudio/hdaudiodevs_data.h:1.10
--- src/sys/dev/hdaudio/hdaudiodevs_data.h:1.9	Sat Apr  6 13:35:59 2024
+++ src/sys/dev/hdaudio/hdaudiodevs_data.h	Wed Apr 17 11:43:59 2024
@@ -1,10 +1,10 @@
-/*	$NetBSD: hdaudiodevs_data.h,v 1.9 2024/04/06 13:35:59 andvar Exp $	*/
+/*	$NetBSD: hdaudiodevs_data.h,v 1.10 2024/04/17 11:43:59 andvar Exp $	*/
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: hdaudiodevs,v 1.8 2024/04/06 13:35:36 andvar Exp
+ *	NetBSD: hdaudiodevs,v 1.9 2024/04/17 11:42:47 andvar Exp
  */
 
 /*
@@ -231,60 +231,64 @@ static const uint32_t hdaudio_products[]
 	477, 0,
 	HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1705, 
 	485, 0,
+	HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VX900_HDMI_1, 
+	492, 160, 0,
+	HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VX900_HDMI_2, 
+	492, 160, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1884A, 
-	492, 0,
+	498, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1882, 
-	500, 0,
+	506, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1883, 
-	507, 0,
+	513, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1884, 
-	514, 0,
+	520, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1984A, 
-	521, 0,
+	527, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1984B, 
-	529, 0,
+	535, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1981HD, 
-	537, 0,
+	543, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1983, 
-	546, 0,
+	552, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1984, 
-	553, 0,
+	559, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1986A, 
-	560, 0,
+	566, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1988A, 
-	568, 0,
+	574, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1988B, 
-	576, 0,
+	582, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1989A, 
-	584, 0,
+	590, 0,
 	HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1989B, 
-	592, 0,
+	598, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20549, 
-	600, 0,
+	606, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20551, 
-	608, 0,
+	614, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20561, 
-	616, 0,
+	622, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20582, 
-	624, 0,
+	630, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20583, 
-	632, 0,
+	638, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20585, 
-	640, 0,
+	646, 0,
 	HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20671, 
-	648, 0,
+	654, 0,
 	HDAUDIO_VENDOR_CMEDIA, HDAUDIO_PRODUCT_CMEDIA_CMI9880, 
-	656, 0,
+	662, 0,
 	HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_Q57_HDMI, 
-	664, 92, 0,
+	670, 92, 0,
 	HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_1, 
-	668, 672, 0,
+	674, 678, 0,
 	HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_2, 
-	668, 679, 0,
+	674, 685, 0,
 	HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_3, 
-	668, 686, 0,
+	674, 692, 0,
 	HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_4, 
-	  

CVS commit: src/sys/dev/hdaudio

2024-04-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Apr 17 11:44:00 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs.h hdaudiodevs_data.h

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/hdaudio/hdaudiodevs.h \
src/sys/dev/hdaudio/hdaudiodevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hdaudio

2024-04-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Apr 17 11:42:47 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs

Log Message:
Add VIA VX900 HDMI.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/hdaudio/hdaudiodevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hdaudio/hdaudiodevs
diff -u src/sys/dev/hdaudio/hdaudiodevs:1.8 src/sys/dev/hdaudio/hdaudiodevs:1.9
--- src/sys/dev/hdaudio/hdaudiodevs:1.8	Sat Apr  6 13:35:36 2024
+++ src/sys/dev/hdaudio/hdaudiodevs	Wed Apr 17 11:42:47 2024
@@ -1,4 +1,4 @@
-$NetBSD: hdaudiodevs,v 1.8 2024/04/06 13:35:36 andvar Exp $
+$NetBSD: hdaudiodevs,v 1.9 2024/04/17 11:42:47 andvar Exp $
 
 /*
  * Copyright (c) 2010 Jared D. McNeill 
@@ -144,6 +144,8 @@ product	VIATECH		VT2002P_1	0x4438	VT2002
 product	VIATECH		VT1812		0x0448	VT1812
 product	VIATECH		VT1818S		0x0440	VT1818S
 product	VIATECH		VT1705		0x4760	VT1705
+product	VIATECH		VX900_HDMI_1	0x9f80	VX900 HDMI/DP
+product	VIATECH		VX900_HDMI_2	0x9f81	VX900 HDMI/DP
 
 /* Analog Devices */
 product	ANALOG		AD1884A		0x184a	AD1884A



CVS commit: src/sys/dev/hdaudio

2024-04-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Apr 17 11:42:47 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs

Log Message:
Add VIA VX900 HDMI.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/hdaudio/hdaudiodevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2024-04-14 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Apr 14 18:02:55 UTC 2024

Modified Files:
src/sys/netinet: sctputil.h

Log Message:
s/force_comile_error/force_compile_error/


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/sctputil.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/sctputil.h
diff -u src/sys/netinet/sctputil.h:1.3 src/sys/netinet/sctputil.h:1.4
--- src/sys/netinet/sctputil.h:1.3	Sun Jan 19 20:51:13 2020
+++ src/sys/netinet/sctputil.h	Sun Apr 14 18:02:55 2024
@@ -1,5 +1,5 @@
 /*	$KAME: sctputil.h,v 1.15 2005/03/06 16:04:19 itojun Exp $	*/
-/*	$NetBSD: sctputil.h,v 1.3 2020/01/19 20:51:13 riastradh Exp $ */
+/*	$NetBSD: sctputil.h,v 1.4 2024/04/14 18:02:55 andvar Exp $ */
 
 #ifndef __SCTPUTIL_H__
 #define __SCTPUTIL_H__
@@ -85,7 +85,7 @@
 	pool_init(&(zone), size, 0, 0, 0, name, NULL, IPL_NET);
 #else
 	/* don't know this OS! */
-	force_comile_error;
+	force_compile_error;
 #endif
 
 /* SCTP_ZONE_GET: allocate element from the zone */
@@ -105,7 +105,7 @@
 	pool_get(, PR_NOWAIT);
 #else
 	/* don't know this OS! */
-	force_comile_error;
+	force_compile_error;
 #endif
 
 /* SCTP_ZONE_FREE: free element from the zone */
@@ -125,7 +125,7 @@
 	pool_put(, element);
 #else
 	/* don't know this OS! */
-	force_comile_error;
+	force_compile_error;
 #endif
 
 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.my_vtag)



CVS commit: src/sys/netinet

2024-04-14 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Apr 14 18:02:55 UTC 2024

Modified Files:
src/sys/netinet: sctputil.h

Log Message:
s/force_comile_error/force_compile_error/


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/sctputil.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2024-04-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr 13 09:12:09 UTC 2024

Modified Files:
src/sys/arch/x86/x86: viac7temp.c

Log Message:
viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

XXX pullup-10, -9, -8


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/x86/x86/viac7temp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/viac7temp.c
diff -u src/sys/arch/x86/x86/viac7temp.c:1.9 src/sys/arch/x86/x86/viac7temp.c:1.10
--- src/sys/arch/x86/x86/viac7temp.c:1.9	Thu Oct  7 12:52:27 2021
+++ src/sys/arch/x86/x86/viac7temp.c	Sat Apr 13 09:12:09 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: viac7temp.c,v 1.9 2021/10/07 12:52:27 msaitoh Exp $ */
+/* $NetBSD: viac7temp.c,v 1.10 2024/04/13 09:12:09 andvar Exp $ */
 
 /*-
  * Copyright (c) 2009 Jared D. McNeill 
@@ -27,11 +27,12 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: viac7temp.c,v 1.9 2021/10/07 12:52:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viac7temp.c,v 1.10 2024/04/13 09:12:09 andvar Exp $");
 
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -162,3 +163,32 @@ viac7temp_refresh_xcall(void *arg0, void
 	edata->value_cur += 27315;
 	edata->state = ENVSYS_SVALID;
 }
+
+MODULE(MODULE_CLASS_DRIVER, viac7temp, NULL);
+
+#ifdef _MODULE
+#include "ioconf.c"
+#endif
+
+static int
+viac7temp_modcmd(modcmd_t cmd, void *arg __unused)
+{
+	int error = 0;
+
+	switch (cmd) {
+	case MODULE_CMD_INIT:
+#ifdef _MODULE
+		error = config_init_component(cfdriver_ioconf_viac7temp,
+		cfattach_ioconf_viac7temp, cfdata_ioconf_viac7temp);
+#endif
+		return error;
+	case MODULE_CMD_FINI:
+#ifdef _MODULE
+		error = config_fini_component(cfdriver_ioconf_viac7temp,
+		cfattach_ioconf_viac7temp, cfdata_ioconf_viac7temp);
+#endif
+		return error;
+	default:
+		return ENOTTY;
+	}
+}



CVS commit: src/sys/arch/x86/x86

2024-04-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr 13 09:12:09 UTC 2024

Modified Files:
src/sys/arch/x86/x86: viac7temp.c

Log Message:
viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

XXX pullup-10, -9, -8


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/x86/x86/viac7temp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2024-04-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Apr 11 10:42:42 UTC 2024

Modified Files:
src/sys/dev/pci: if_mcx.c

Log Message:
mcx(4): enforce full-duplex mark in mcx_media_status(), when link is up.

LACP protocol requires full-duplex to be enabled for lagg(4) to work,
however mcx(4) was not setting this capability making it to fail.

Fixes PR kern/58124.  OK'd by msaitoh@


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/pci/if_mcx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2024-04-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Apr 11 10:42:42 UTC 2024

Modified Files:
src/sys/dev/pci: if_mcx.c

Log Message:
mcx(4): enforce full-duplex mark in mcx_media_status(), when link is up.

LACP protocol requires full-duplex to be enabled for lagg(4) to work,
however mcx(4) was not setting this capability making it to fail.

Fixes PR kern/58124.  OK'd by msaitoh@


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/pci/if_mcx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_mcx.c
diff -u src/sys/dev/pci/if_mcx.c:1.26 src/sys/dev/pci/if_mcx.c:1.27
--- src/sys/dev/pci/if_mcx.c:1.26	Thu Oct 26 03:44:12 2023
+++ src/sys/dev/pci/if_mcx.c	Thu Apr 11 10:42:42 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mcx.c,v 1.26 2023/10/26 03:44:12 msaitoh Exp $ */
+/*	$NetBSD: if_mcx.c,v 1.27 2024/04/11 10:42:42 andvar Exp $ */
 /*	$OpenBSD: if_mcx.c,v 1.101 2021/06/02 19:16:11 patrick Exp $ */
 
 /*
@@ -23,7 +23,7 @@
 #endif
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_mcx.c,v 1.26 2023/10/26 03:44:12 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mcx.c,v 1.27 2024/04/11 10:42:42 andvar Exp $");
 
 #include 
 #include 
@@ -8072,7 +8072,7 @@ mcx_media_status(struct ifnet *ifp, stru
 	ifmr->ifm_status = IFM_AVALID;
 	if (proto_oper != 0) {
 		ifmr->ifm_status |= IFM_ACTIVE;
-		ifmr->ifm_active = IFM_ETHER | IFM_AUTO | media_oper;
+		ifmr->ifm_active = IFM_ETHER | IFM_FDX | IFM_AUTO | media_oper;
 		/* txpause, rxpause, duplex? */
 	}
 }



CVS commit: src/usr.sbin/sysinst

2024-04-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Apr 11 06:42:18 UTC 2024

Modified Files:
src/usr.sbin/sysinst: mbr.c

Log Message:
fix typo in method name: part_attr_fornat_str -> part_attr_format_str.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.sbin/sysinst/mbr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/mbr.c
diff -u src/usr.sbin/sysinst/mbr.c:1.47 src/usr.sbin/sysinst/mbr.c:1.48
--- src/usr.sbin/sysinst/mbr.c:1.47	Thu Feb  8 20:51:24 2024
+++ src/usr.sbin/sysinst/mbr.c	Thu Apr 11 06:42:18 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: mbr.c,v 1.47 2024/02/08 20:51:24 andvar Exp $ */
+/*	$NetBSD: mbr.c,v 1.48 2024/04/11 06:42:18 andvar Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -2829,7 +2829,7 @@ struct part_attr_set_data {
 };
 
 static bool
-part_attr_fornat_str(const struct disk_partitions *arg, part_id id,
+part_attr_format_str(const struct disk_partitions *arg, part_id id,
 const mbr_info_t *mb, int i, bool primary,
 const struct mbr_partition *mp, void *cookie)
 {
@@ -2942,7 +2942,7 @@ mbr_custom_attribute_format(const struct
 	data.parts = parts;
 	data.info = info;
 
-	return mbr_part_apply(arg, id, part_attr_fornat_str, );
+	return mbr_part_apply(arg, id, part_attr_format_str, );
 }
 
 static bool



CVS commit: src/usr.sbin/sysinst

2024-04-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Apr 11 06:42:18 UTC 2024

Modified Files:
src/usr.sbin/sysinst: mbr.c

Log Message:
fix typo in method name: part_attr_fornat_str -> part_attr_format_str.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.sbin/sysinst/mbr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2024-04-10 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Apr 10 20:00:12 UTC 2024

Modified Files:
src/sys/sys: disklabel.h

Log Message:
s/Unfornately/Unfortunately/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/sys/disklabel.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/disklabel.h
diff -u src/sys/sys/disklabel.h:1.127 src/sys/sys/disklabel.h:1.128
--- src/sys/sys/disklabel.h:1.127	Tue Nov  1 06:47:41 2022
+++ src/sys/sys/disklabel.h	Wed Apr 10 20:00:12 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.h,v 1.127 2022/11/01 06:47:41 simonb Exp $	*/
+/*	$NetBSD: disklabel.h,v 1.128 2024/04/10 20:00:12 andvar Exp $	*/
 
 /*
  * Copyright (c) 1987, 1988, 1993
@@ -127,7 +127,7 @@ struct	partition {		/* the partition tab
  * padding at the end, but that would have been confusing (although that
  * is what actually happens), because the partitions structure is supposed
  * to be variable size and putting a padding uint32_t would be weird.
- * Unfornately mips32 and i386 align uint64_t standalone at an 8 byte
+ * Unfortunately mips32 and i386 align uint64_t standalone at an 8 byte
  * boundary, but in structures at a 4 byte boundary so matt's
  * change did not affect them.
  *



CVS commit: src/sys/sys

2024-04-10 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Apr 10 20:00:12 UTC 2024

Modified Files:
src/sys/sys: disklabel.h

Log Message:
s/Unfornately/Unfortunately/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/sys/disklabel.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/ifconfig

2024-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr  8 20:28:34 UTC 2024

Modified Files:
src/sbin/ifconfig: ifconfig.8

Log Message:
Update the date of the documentation to reflect recent changes.


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sbin/ifconfig/ifconfig.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/ifconfig/ifconfig.8
diff -u src/sbin/ifconfig/ifconfig.8:1.128 src/sbin/ifconfig/ifconfig.8:1.129
--- src/sbin/ifconfig/ifconfig.8:1.128	Mon Apr  8 12:32:57 2024
+++ src/sbin/ifconfig/ifconfig.8	Mon Apr  8 20:28:34 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ifconfig.8,v 1.128 2024/04/08 12:32:57 uwe Exp $
+.\"	$NetBSD: ifconfig.8,v 1.129 2024/04/08 20:28:34 andvar Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" @(#)ifconfig.8	8.4 (Berkeley) 6/1/94
 .\"
-.Dd November 25, 2022
+.Dd April 8, 2024
 .Dt IFCONFIG 8
 .Os
 .Sh NAME



CVS commit: src/sbin/ifconfig

2024-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr  8 20:28:34 UTC 2024

Modified Files:
src/sbin/ifconfig: ifconfig.8

Log Message:
Update the date of the documentation to reflect recent changes.


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sbin/ifconfig/ifconfig.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbmips/conf

2024-04-07 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Apr  7 19:51:49 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: README.evbmips

Log Message:
Remove extra whitespace after P-4032.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbmips/conf/README.evbmips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbmips/conf/README.evbmips
diff -u src/sys/arch/evbmips/conf/README.evbmips:1.1 src/sys/arch/evbmips/conf/README.evbmips:1.2
--- src/sys/arch/evbmips/conf/README.evbmips:1.1	Sun Apr  7 19:39:24 2024
+++ src/sys/arch/evbmips/conf/README.evbmips	Sun Apr  7 19:51:49 2024
@@ -1,4 +1,4 @@
-$NetBSD: README.evbmips,v 1.1 2024/04/07 19:39:24 andvar Exp $
+$NetBSD: README.evbmips,v 1.2 2024/04/07 19:51:49 andvar Exp $
 
 The documentation is not final, more updates are coming.
 
@@ -29,7 +29,7 @@ MIPSSIM64	2021/01/27	evbmips(n)64-el,eb	
 MTX-1		2006/02/23	evbmips-el		4G Systems MTX-1 (MeshCube / AccessCube, Alchemy Au1500).
 OCTEON		2015/04/29	evbmips(n)64-eb		Cavium Octeon and Octeon Plus SoC based devices like Ubiquiti Networks EdgeRouter Lite.
 OMSAL400	2006/02/23	evbmips-el		Plat'Home OpenMicroServer (OMS-AL400, Alchemy Au1550).
-P4032		2001/06/01	evbmips-el		Algorithmics MIPS P-4032  evaluation board (QED RM4xxx).
+P4032		2001/06/01	evbmips-el		Algorithmics MIPS P-4032 evaluation board (QED RM4xxx).
 P5064		2001/05/28	evbmips-el		Algorithmics MIPS P-5064 evaluation board (QED RM52xx).
 P5064-64	2009/12/14	evbmips(n)64-el		P5064 64-bit kernel configuration.
 P6032		2001/06/22	evbmips-el		Algorithmics MIPS P-6032 evaluation board.



CVS commit: src/sys/arch/evbmips/conf

2024-04-07 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Apr  7 19:51:49 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: README.evbmips

Log Message:
Remove extra whitespace after P-4032.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbmips/conf/README.evbmips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbmips/conf

2024-04-07 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Apr  7 19:39:24 UTC 2024

Added Files:
src/sys/arch/evbmips/conf: README.evbmips

Log Message:
Initial version of evbmips kernel configuration files documentation.
The goal is to give a better understanding which hardware they represent
and how to build them. Also not to lose this information over the years.

Loosely based on a README.evbarm, however has additional notes on building
targets. The file is not final, some discussion came up about the need of
*32 kernel configs. simon is planning to review.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/evbmips/conf/README.evbmips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/sys/arch/evbmips/conf/README.evbmips
diff -u /dev/null src/sys/arch/evbmips/conf/README.evbmips:1.1
--- /dev/null	Sun Apr  7 19:39:24 2024
+++ src/sys/arch/evbmips/conf/README.evbmips	Sun Apr  7 19:39:24 2024
@@ -0,0 +1,64 @@
+$NetBSD: README.evbmips,v 1.1 2024/04/07 19:39:24 andvar Exp $
+
+The documentation is not final, more updates are coming.
+
+config		date		targets			boards
+-
+ADM5210		2007/03/20	evbmips-el		Infineon ADM5120 (MIPS32 4Kc) based boards and routers, 
+			including RouterBOARD 100 series.
+ADM5210-NB	2007/03/20	evbmips-el		ADM5120 netboot kernel.
+ADM5210-USB	2007/03/20	evbmips-el		ADM5120 netboot kernel with USB support.
+AP30		2006/06/06	evbmips-el,eb		Atheros AP30 development board (AR5312).
+CI20		2014/11/22	evbmips-eb		MIPS Creator CI20 (Ingenic JZ4780).
+CPMBR1400	2011/07/28	evbmips-el		CradlePoint MBR1400 Router (Ralink RT3883 MIPS74K).
+DB120		2011/07/07	evbmips-eb		Qualcomm Atheros AR9344 (MIPS74K) DB120 evaluation board.
+DBAU1500	2006/02/08	evbmips-el,eb		AMD Alchemy DBAu1500 evaluation board.
+DBAU1550	2006/02/08	evbmips-el,eb		AMD Alchemy DBAu1550 evaluation board.
+GDIUM		2009/08/06	evbmips-el		EMTEC Gdium netbook 32-bit kernel.
+GDIUM64		2011/08/24	evbmips(n)64-el		EMTEC Gdium netbook 64-bit kernel.
+LINKITSMART7688	2016/10/05	evbmips-el		Seeed Studio LinkIt Smart 7688 compact controller board (MediaTek MT7688).
+LOONGSON	2011/08/27	evbmips64-el		Loongson 2F/2E based devices (Lemote Fuloong, Yeelong).
+MALTA		2002/03/07	evbmips-el,eb		MIPS Malta evaluation board 4Kc (MIPS32) or 5Kc (MIPS64).
+MALTA32		2009/12/14	evbmips64-el,eb		MALTA N32 ABI kernel configuration.
+MALTA32.MP	2009/12/14	evbmips64-el,eb		MALTA N32 ABI MP kernel configuration.
+MALTA64		2009/12/14	evbmips(n)64-el,eb	MALTA 64-bit kernel configuration.
+MALTA64.MP	2009/12/14	evbmips(n)64-el,eb	MALTA MP 64-bit kernel configuration.
+MERAKI		2006/09/26	evbmips-eb		Meraki Mini (Atheros AR2315).
+MIPSSIM		2021/01/27	evbmips-el,eb		QEMU MIPS "mipssim" simulator.
+MIPSSIM64	2021/01/27	evbmips(n)64-el,eb	MIPSSIM 64-bit kernel.
+MTX-1		2006/02/23	evbmips-el		4G Systems MTX-1 (MeshCube / AccessCube, Alchemy Au1500).
+OCTEON		2015/04/29	evbmips(n)64-eb		Cavium Octeon and Octeon Plus SoC based devices like Ubiquiti Networks EdgeRouter Lite.
+OMSAL400	2006/02/23	evbmips-el		Plat'Home OpenMicroServer (OMS-AL400, Alchemy Au1550).
+P4032		2001/06/01	evbmips-el		Algorithmics MIPS P-4032  evaluation board (QED RM4xxx).
+P5064		2001/05/28	evbmips-el		Algorithmics MIPS P-5064 evaluation board (QED RM52xx).
+P5064-64	2009/12/14	evbmips(n)64-el		P5064 64-bit kernel configuration.
+P6032		2001/06/22	evbmips-el		Algorithmics MIPS P-6032 evaluation board.
+RB153		2007/03/20	evbmips-el		MikroTik RouterBOARD 153 (Infineon ADM5120).
+RB433UAH	2011/07/07	evbmips-eb		MikroTik RouterBOARD 433(UAH) AR71xx (MIPS24K core).
+SBMIPS		2002/03/06	evbmips-el,eb		Broadcom/SiByte SB1250 evaluation board.
+SBMIPS.MP	2011/02/20	evbmips-el,eb		SBMIPS MP kernel configuration.
+SBMIPS64	2009/12/14	evbmips(n)64-el,eb	SBMIPS 64-bit kernel configuration.
+SBMIPS64.MP	2011/02/20	evbmips(n)64-el,eb	SBMIPS 64-bit MP kernel configuration.
+WGT624V3	2007/02/18	evbmips-eb		Netgear WGT624 v3 wireless router (example config).
+XLSATX		2009/12/14RMI (NetLogic) XLS/XLR models (base for other XLSATX* kernel configs).
+XLSATX32	2011/02/20	evbmips64-el,eb		XLSATX N32 kernel configuration.
+XLSATX64	2009/12/14	evbmips(n)64-el,eb	XLSATX 64-bit kernel configuration.
+XLSATX64.MP	2011/02/20	evbmips(n)64-el,eb	XLSATX 64-bit MP kernel configuration.
+ZYXELKX		2014/04/30	evbmips-el		Zyxel Keenetic Extra router (MediaTek MT7620A).
+
+Configuration file notes:
+* "INSALL_*"	installation kernel configuration files.
+		(typically enables hooks for initializing the root memory-disk).
+* "*.MP"	configuration files with the multiprocessor support enabled.
+* "*32"		N32 ABI kernel configuration files
+		(can be built using evbmips64-* targets).
+Building target notes:
+* "*-el"	represent targets for building little-endian 

CVS commit: src/sys/arch/evbmips/conf

2024-04-07 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Apr  7 19:39:24 UTC 2024

Added Files:
src/sys/arch/evbmips/conf: README.evbmips

Log Message:
Initial version of evbmips kernel configuration files documentation.
The goal is to give a better understanding which hardware they represent
and how to build them. Also not to lose this information over the years.

Loosely based on a README.evbarm, however has additional notes on building
targets. The file is not final, some discussion came up about the need of
*32 kernel configs. simon is planning to review.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/evbmips/conf/README.evbmips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hdaudio

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 13:35:59 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs.h hdaudiodevs_data.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/hdaudio/hdaudiodevs.h \
src/sys/dev/hdaudio/hdaudiodevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hdaudio/hdaudiodevs.h
diff -u src/sys/dev/hdaudio/hdaudiodevs.h:1.8 src/sys/dev/hdaudio/hdaudiodevs.h:1.9
--- src/sys/dev/hdaudio/hdaudiodevs.h:1.8	Sat Jul  1 13:37:48 2023
+++ src/sys/dev/hdaudio/hdaudiodevs.h	Sat Apr  6 13:35:59 2024
@@ -1,10 +1,10 @@
-/*	$NetBSD: hdaudiodevs.h,v 1.8 2023/07/01 13:37:48 nia Exp $	*/
+/*	$NetBSD: hdaudiodevs.h,v 1.9 2024/04/06 13:35:59 andvar Exp $	*/
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: hdaudiodevs,v 1.6 2022/04/16 12:24:06 nia Exp
+ *	NetBSD: hdaudiodevs,v 1.8 2024/04/06 13:35:36 andvar Exp
  */
 
 /*
@@ -49,6 +49,7 @@
 #define	HDAUDIO_VENDOR_ANALOG	0x11d4		/* Analog Devices */
 #define	HDAUDIO_VENDOR_CONEXANT	0x14f1		/* Conexant */
 #define	HDAUDIO_VENDOR_VMWARE	0x15ad		/* VMware */
+#define	HDAUDIO_VENDOR_ZHAOXIN	0x1d17		/* Zhaoxin */
 #define	HDAUDIO_VENDOR_CMEDIA	0x434d		/* C-Media */
 #define	HDAUDIO_VENDOR_INTEL	0x8086		/* Intel */
 #define	HDAUDIO_VENDOR_SIGMATEL	0x8384		/* Sigmatel */
@@ -269,6 +270,10 @@
 /* VMware */
 #define	HDAUDIO_PRODUCT_VMWARE_VIRTUAL_HDA	0x1975		/* Virtual HDA */
 
+/* Zhaoxin */
+#define	HDAUDIO_PRODUCT_ZHAOXIN_KX6000_HDMI_1	0x9f8a		/* ZX-E HDMI/DP */
+#define	HDAUDIO_PRODUCT_ZHAOXIN_KX6000_HDMI_2	0x9f8b		/* ZX-E HDMI/DP */
+
 /* Define format strings for non-existent values */
 #define hdaudio_id1_format	"vendor %4.4x"
 #define hdaudio_id2_format	"product %4.4x"
Index: src/sys/dev/hdaudio/hdaudiodevs_data.h
diff -u src/sys/dev/hdaudio/hdaudiodevs_data.h:1.8 src/sys/dev/hdaudio/hdaudiodevs_data.h:1.9
--- src/sys/dev/hdaudio/hdaudiodevs_data.h:1.8	Sat Jul  1 13:37:48 2023
+++ src/sys/dev/hdaudio/hdaudiodevs_data.h	Sat Apr  6 13:35:59 2024
@@ -1,10 +1,10 @@
-/*	$NetBSD: hdaudiodevs_data.h,v 1.8 2023/07/01 13:37:48 nia Exp $	*/
+/*	$NetBSD: hdaudiodevs_data.h,v 1.9 2024/04/06 13:35:59 andvar Exp $	*/
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: hdaudiodevs,v 1.6 2022/04/16 12:24:06 nia Exp
+ *	NetBSD: hdaudiodevs,v 1.8 2024/04/06 13:35:36 andvar Exp
  */
 
 /*
@@ -44,400 +44,405 @@ static const uint32_t hdaudio_vendors[] 
 	HDAUDIO_VENDOR_ANALOG, 33, 40, 0,
 	HDAUDIO_VENDOR_CONEXANT, 48, 0,
 	HDAUDIO_VENDOR_VMWARE, 57, 0,
-	HDAUDIO_VENDOR_CMEDIA, 64, 0,
-	HDAUDIO_VENDOR_INTEL, 72, 0,
+	HDAUDIO_VENDOR_ZHAOXIN, 64, 0,
+	HDAUDIO_VENDOR_CMEDIA, 72, 0,
+	HDAUDIO_VENDOR_INTEL, 80, 0,
 	HDAUDIO_VENDOR_SIGMATEL, 24, 0,
 };
 
 static const uint32_t hdaudio_products[] = {
 	HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_RS600_HDMI_1, 
-	78, 84, 0,
+	86, 92, 0,
 	HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_RS600_HDMI_2, 
-	78, 84, 0,
+	86, 92, 0,
 	HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_RS690_780_HDMI, 
-	89, 84, 0,
+	97, 92, 0,
 	HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_R6xx_HDMI, 
-	99, 84, 0,
+	107, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_2, 
-	104, 84, 0,
+	112, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_3, 
-	104, 84, 0,
+	112, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_5, 
-	104, 84, 0,
+	112, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_6, 
-	104, 84, 0,
+	112, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP79_7A_HDMI_7, 
-	113, 84, 0,
+	121, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT220_HDMI, 
-	122, 84, 0,
+	130, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT21x_HDMI, 
-	128, 84, 0,
+	136, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP89_HDMI, 
-	134, 84, 0,
+	142, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT240_HDMI, 
-	140, 84, 0,
+	148, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT5xx_HDMI_DP, 
-	146, 152, 0,
+	154, 160, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_TEGRA124_HDMI, 
-	160, 84, 0,
+	168, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP67_HDMI, 
-	169, 84, 0,
+	177, 92, 0,
 	HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP73_HDMI, 
-	175, 84, 0,
+	183, 92, 0,
 	HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC260, 
-	181, 0,
+	189, 0,
 	HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC262, 
-	188, 0,
+	196, 0,
 	HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC267, 
-	195, 0,
+	203, 0,
 

CVS commit: src/sys/dev/hdaudio

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 13:35:59 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs.h hdaudiodevs_data.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/hdaudio/hdaudiodevs.h \
src/sys/dev/hdaudio/hdaudiodevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hdaudio

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 13:35:36 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs

Log Message:
Add KX-6000 (ZX-E) HDA codecs.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/hdaudio/hdaudiodevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hdaudio

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 13:35:36 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdaudiodevs

Log Message:
Add KX-6000 (ZX-E) HDA codecs.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/hdaudio/hdaudiodevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hdaudio/hdaudiodevs
diff -u src/sys/dev/hdaudio/hdaudiodevs:1.7 src/sys/dev/hdaudio/hdaudiodevs:1.8
--- src/sys/dev/hdaudio/hdaudiodevs:1.7	Sat Jul  1 13:37:36 2023
+++ src/sys/dev/hdaudio/hdaudiodevs	Sat Apr  6 13:35:36 2024
@@ -1,4 +1,4 @@
-$NetBSD: hdaudiodevs,v 1.7 2023/07/01 13:37:36 nia Exp $
+$NetBSD: hdaudiodevs,v 1.8 2024/04/06 13:35:36 andvar Exp $
 
 /*
  * Copyright (c) 2010 Jared D. McNeill 
@@ -42,6 +42,7 @@ vendor	SIGMATEL2	0x111d	Sigmatel
 vendor	ANALOG		0x11d4	Analog Devices
 vendor	CONEXANT	0x14f1	Conexant
 vendor	VMWARE		0x15ad	VMware
+vendor	ZHAOXIN		0x1d17	Zhaoxin
 vendor	CMEDIA		0x434d	C-Media
 vendor	INTEL		0x8086	Intel
 vendor	SIGMATEL	0x8384	Sigmatel
@@ -261,3 +262,7 @@ product	SIGMATEL2	92HD81B1C5_1	0x76d5	92
 
 /* VMware */
 product	VMWARE		VIRTUAL_HDA	0x1975	Virtual HDA
+
+/* Zhaoxin */
+product	ZHAOXIN		KX6000_HDMI_1	0x9f8a	ZX-E HDMI/DP
+product	ZHAOXIN		KX6000_HDMI_2	0x9f8b	ZX-E HDMI/DP



CVS commit: src/sys/dev/pci

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 09:11:50 UTC 2024

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.1483 -r1.1484 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1482 -r1.1483 src/sys/dev/pci/pcidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffs are larger than 1MB and have been omitted


CVS commit: src/sys/dev/pci

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 09:11:50 UTC 2024

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.1483 -r1.1484 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1482 -r1.1483 src/sys/dev/pci/pcidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 09:10:11 UTC 2024

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add Zhaoxin devices, mainly from my TVS-675 NAS device, and some additional
to fill the gaps from pci-ids database.


To generate a diff of this commit:
cvs rdiff -u -r1.1503 -r1.1504 src/sys/dev/pci/pcidevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1503 src/sys/dev/pci/pcidevs:1.1504
--- src/sys/dev/pci/pcidevs:1.1503	Wed Feb 28 18:51:34 2024
+++ src/sys/dev/pci/pcidevs	Sat Apr  6 09:10:11 2024
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1503 2024/02/28 18:51:34 jakllsch Exp $
+$NetBSD: pcidevs,v 1.1504 2024/04/06 09:10:11 andvar Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -651,6 +651,7 @@ vendor SYMPHONY2	0x1c1c	Symphony Labs (2
 vendor HGST		0x1c58	HGST, Inc.
 vendor BEIJING_MEMBLAZE	0x1c5f	Beijing Memblaze Technology Co. Ltd.
 vendor AMAZON		0x1d0f	Amazon.com, Inc.
+vendor ZHAOXIN		0x1d17	Zhaoxin
 vendor AQUANTIA		0x1d6a	Aquantia
 vendor ROCKCHIP		0x1d87	Rockchip
 vendor TEKRAM2		0x1de1	Tekram Technology (2nd PCI Vendor ID)
@@ -10173,6 +10174,47 @@ product ZEINET 1221	0x0001	1221
 /* Ziatech products */
 product ZIATECH ZT8905	0x8905 PCI-ST32 Bridge
 
+/* Zhaoxin products */
+product ZHAOXIN ZX100_PCIE		0x0708	ZX-100 PCI Express Root Port
+product ZHAOXIN ZX200_PCIE_0		0x0710	ZX-100/ZX-200 PCI Express Root Port
+product ZHAOXIN ZX200_PCIE_1		0x0711	ZX-100/ZX-200 PCI Express Root Port
+product ZHAOXIN ZX200_PCIE_2		0x0712	ZX-100/ZX-200 PCI Express Root Port
+product ZHAOXIN ZX200_PCIE_3		0x0713	ZX-100/ZX-200 PCI Express Root Port
+product ZHAOXIN ZX200_PCIE_4		0x0714	ZX-100/ZX-200 PCI Express Root Port
+product ZHAOXIN ZX200_PCIE_5		0x0715	ZX-100/ZX-200 PCI Express Root Port
+product ZHAOXIN ZXD_PCIE		0x0716	ZX-D PCI Express Root Port
+product ZHAOXIN KX_PCIE_0		0x0717	KX-5000|6000(G)|7000 / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_1		0x0718	KX-5000|6000(G)|7000 / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_2		0x0719	KX-5000|6000(G)|7000 / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_3		0x071a	KX-5000|6000(G) / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_4		0x071b	KX-5000|6000(G)|7000 / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_5		0x071c	KX-5000|6000(G)|7000 / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_6		0x071d	KX-5000|6000(G) / KH-4 PCI Express Root Port
+product ZHAOXIN KX_PCIE_7		0x071e	KX-5000|6000(G)|7000 / KH-4 PCI Express Root Port
+product ZHAOXIN ZX200_UP_PCIE_SWITCH	0x071f	ZX-200 Upstream Port of PCI Express Switch
+product ZHAOXIN ZX200_DP_PCIE_SWITCH	0x0721	ZX-200 Downstream Port of PCI Express Switch
+product ZHAOXIN ZX200_PCIE_PC2_BRIDGE	0x0722	ZX-200 PCIE P2C bridge
+product ZHAOXIN ZX_MISC_BUS		0x1001	ZX-D/ZX-E/KH-4/KX-7000 Miscellaneous Bus
+product ZHAOXIN ZX_PCHB_0		0x1003	ZX-E Standard Host Bridge
+product ZHAOXIN ZX_UHCI			0x3038	USB UHCI Controller
+product ZHAOXIN ZX_EHCI			0x3104	USB EHCI Controller
+product ZHAOXIN ZX_PCHB_1		0x31b0	ZX-100 / KX-5000|6000(G)|7000 / KH-4 Standard Host Bridge
+product ZHAOXIN ZX_PCHB_2		0x31b1	ZX-100 / KX-5000|6000(G)|7000 / KH-4 Standard Host Bridge
+product ZHAOXIN ZX_DRAM			0x31b2	ZX-100 / KX-5000|6000(G)|7000 / KH-4 DRAM Controller
+product ZHAOXIN ZX_PMC			0x31b3	ZX-100 / KX-5000|6000(G)|7000 / KH-4 Power Management Controller
+product ZHAOXIN ZX_IOAPIC		0x31b4	ZX-100 / KX-5000|6000(G)|7000 / KH-4 I/O APIC
+product ZHAOXIN ZX_SCRATCH		0x31b5	ZX-100 / KX-5000|6000(G)|7000 / KH-4 Scratch Device
+product ZHAOXIN ZX_PCHB_3		0x31b7	ZX-100 / KX-5000|6000(G)|7000 / KH-4 Standard Host Bridge
+product ZHAOXIN C320_GPU		0x3a02	ZX-100 C-320 GPU
+product ZHAOXIN C860_GPU		0x3a03	ZX-D C-860 Integrated Graphics
+product ZHAOXIN C960_GPU		0x3a04	KX-6000 C-960 Integrated Graphics
+product ZHAOXIN C1190_GPU		0x3a05	KX-7000 C-1190 Integrated Graphics
+product ZHAOXIN ZX200_AHCI		0x9083	StorX AHCI Controller
+product ZHAOXIN ZXE_HDAUDIO 		0x9144	ZX-E High Definition Audio Controller
+product ZHAOXIN ZX100_XHCI		0x9202	ZX-100 USB xHCI Controller
+product ZHAOXIN ZX200_XHCI		0x9203	ZX-200 USB xHCI Controller
+product ZHAOXIN KX_XHCI			0x9204	KX-6000(G)|7000 USB xHCI Controller
+
 /* Zoran products */
 product ZORAN ZR36057	0x6057 ZR36057 Multimedia Controller
 product ZORAN ZR36120	0x6120 ZR36120 Video Controller



CVS commit: src/sys/dev/pci

2024-04-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Apr  6 09:10:11 UTC 2024

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add Zhaoxin devices, mainly from my TVS-675 NAS device, and some additional
to fill the gaps from pci-ids database.


To generate a diff of this commit:
cvs rdiff -u -r1.1503 -r1.1504 src/sys/dev/pci/pcidevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2024-04-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr  1 22:56:56 UTC 2024

Modified Files:
src/sys/dev/pci: if_bge.c

Log Message:
s/Doucments/Documents/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.390 -r1.391 src/sys/dev/pci/if_bge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.390 src/sys/dev/pci/if_bge.c:1.391
--- src/sys/dev/pci/if_bge.c:1.390	Fri Feb  9 22:08:35 2024
+++ src/sys/dev/pci/if_bge.c	Mon Apr  1 22:56:55 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bge.c,v 1.390 2024/02/09 22:08:35 andvar Exp $	*/
+/*	$NetBSD: if_bge.c,v 1.391 2024/04/01 22:56:55 andvar Exp $	*/
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.390 2024/02/09 22:08:35 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.391 2024/04/01 22:56:55 andvar Exp $");
 
 #include 
 #include 
@@ -5746,7 +5746,7 @@ bge_init_locked(struct ifnet *ifp)
 
 	/* 5718 step 12, 57XX step 37 */
 	/*
-	 * XXX Doucments of 5718 series and 577xx say the recommended value
+	 * XXX Documents of 5718 series and 577xx say the recommended value
 	 * is 1, but tg3 set 1 only on 57765 series.
 	 */
 	if (BGE_IS_57765_PLUS(sc))



CVS commit: src/sys/dev/pci

2024-04-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Apr  1 22:56:56 UTC 2024

Modified Files:
src/sys/dev/pci: if_bge.c

Log Message:
s/Doucments/Documents/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.390 -r1.391 src/sys/dev/pci/if_bge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libperfuse

2024-03-30 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 30 22:05:07 UTC 2024

Modified Files:
src/lib/libperfuse: perfuse.c

Log Message:
s/Unfortunatley/Unfortunately/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/libperfuse/perfuse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libperfuse/perfuse.c
diff -u src/lib/libperfuse/perfuse.c:1.44 src/lib/libperfuse/perfuse.c:1.45
--- src/lib/libperfuse/perfuse.c:1.44	Wed Feb 23 21:54:40 2022
+++ src/lib/libperfuse/perfuse.c	Sat Mar 30 22:05:07 2024
@@ -1,4 +1,4 @@
-/*  $NetBSD: perfuse.c,v 1.44 2022/02/23 21:54:40 andvar Exp $ */
+/*  $NetBSD: perfuse.c,v 1.45 2024/03/30 22:05:07 andvar Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -563,7 +563,7 @@ perfuse_init(struct perfuse_callbacks *p
 	 * It would be nice to avoid useless inactive, and only
 	 * get them on file open for writing (PUFFS does 
 	 * CLOSE/WRITE/INACTIVE, therefore actual close must be
-	 * done at INACTIVE time). Unfortunatley, puffs_setback
+	 * done at INACTIVE time). Unfortunately, puffs_setback
 	 * crashes when called on OPEN, therefore leave it for 
 	 * another day.
 	 */



CVS commit: src/lib/libperfuse

2024-03-30 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 30 22:05:07 UTC 2024

Modified Files:
src/lib/libperfuse: perfuse.c

Log Message:
s/Unfortunatley/Unfortunately/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/libperfuse/perfuse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/common/lib/libc/arch

2024-03-30 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 30 22:03:39 UTC 2024

Modified Files:
src/common/lib/libc/arch/i386/string: strlen.S
src/common/lib/libc/arch/x86_64/string: strlen.S

Log Message:
s/Westley/Wesley/ in a book reference (in comments).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/arch/i386/string/strlen.S
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libc/arch/x86_64/string/strlen.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/arch/i386/string/strlen.S
diff -u src/common/lib/libc/arch/i386/string/strlen.S:1.4 src/common/lib/libc/arch/i386/string/strlen.S:1.5
--- src/common/lib/libc/arch/i386/string/strlen.S:1.4	Wed Dec  8 20:11:54 2021
+++ src/common/lib/libc/arch/i386/string/strlen.S	Sat Mar 30 22:03:39 2024
@@ -6,7 +6,7 @@
 #include 
 
 #if defined(LIBC_SCCS)
-	RCSID("$NetBSD: strlen.S,v 1.4 2021/12/08 20:11:54 andvar Exp $")
+	RCSID("$NetBSD: strlen.S,v 1.5 2024/03/30 22:03:39 andvar Exp $")
 #endif
 
 ENTRY(strlen)
@@ -89,7 +89,7 @@ ENTRY(strlen)
 	 * to load constants.
 	 *
 	 *
-	 * [1] Henry S. Warren Jr., "Hacker's Delight", Addison-Westley 2003
+	 * [1] Henry S. Warren Jr., "Hacker's Delight", Addison-Wesley 2003
 	 *
 	 * [2] International Business Machines, "The PowerPC Compiler Writer's
 	 * Guide", Warthman Associates, 1996

Index: src/common/lib/libc/arch/x86_64/string/strlen.S
diff -u src/common/lib/libc/arch/x86_64/string/strlen.S:1.7 src/common/lib/libc/arch/x86_64/string/strlen.S:1.8
--- src/common/lib/libc/arch/x86_64/string/strlen.S:1.7	Wed Dec  8 20:11:54 2021
+++ src/common/lib/libc/arch/x86_64/string/strlen.S	Sat Mar 30 22:03:39 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: strlen.S,v 1.7 2021/12/08 20:11:54 andvar Exp $	*/
+/*	$NetBSD: strlen.S,v 1.8 2024/03/30 22:03:39 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 #include 
 
 #if defined(LIBC_SCCS)
-	RCSID("$NetBSD: strlen.S,v 1.7 2021/12/08 20:11:54 andvar Exp $")
+	RCSID("$NetBSD: strlen.S,v 1.8 2024/03/30 22:03:39 andvar Exp $")
 #endif
 
 /*
@@ -108,7 +108,7 @@
  * to load constants.
  *
  *
- * [1] Henry S. Warren Jr., "Hacker's Delight", Addison-Westley 2003
+ * [1] Henry S. Warren Jr., "Hacker's Delight", Addison-Wesley 2003
  *
  * [2] International Business Machines, "The PowerPC Compiler Writer's
  * Guide", Warthman Associates, 1996



CVS commit: src/common/lib/libc/arch

2024-03-30 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 30 22:03:39 UTC 2024

Modified Files:
src/common/lib/libc/arch/i386/string: strlen.S
src/common/lib/libc/arch/x86_64/string: strlen.S

Log Message:
s/Westley/Wesley/ in a book reference (in comments).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/arch/i386/string/strlen.S
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libc/arch/x86_64/string/strlen.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/games/larn

2024-03-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 26 20:50:29 UTC 2024

Modified Files:
src/games/larn: io.c

Log Message:
Fix header comment to align text using 8 space tabs.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/games/larn/io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/larn/io.c
diff -u src/games/larn/io.c:1.30 src/games/larn/io.c:1.31
--- src/games/larn/io.c:1.30	Sat Mar 23 21:10:45 2024
+++ src/games/larn/io.c	Tue Mar 26 20:50:29 2024
@@ -1,66 +1,66 @@
-/*	$NetBSD: io.c,v 1.30 2024/03/23 21:10:45 andvar Exp $	*/
+/*	$NetBSD: io.c,v 1.31 2024/03/26 20:50:29 andvar Exp $	*/
 
 /*
- * io.c			 Larn is copyrighted 1986 by Noah Morgan.
+ * io.c			Larn is copyrighted 1986 by Noah Morgan.
  *
  * Below are the functions in this file:
  *
  * setupvt100()		Subroutine to set up terminal in correct mode for game
  * clearvt100()		Subroutine to clean up terminal when the game is over
  * ttgetch()		Routine to read in one character from the terminal
- * scbr()			Function to set cbreak -echo for the terminal
- * sncbr()			Function to set -cbreak echo for the terminal
+ * scbr()		Function to set cbreak -echo for the terminal
+ * sncbr()		Function to set -cbreak echo for the terminal
  * newgame()		Subroutine to save the initial time and seed rnd()
  *
  * FILE OUTPUT ROUTINES
  *
- * lprintf(format,args . . .)	printf to the output buffer 
- * lprint(integer)send binary integer to output buffer
- * lwrite(buf,len)write a buffer to the output buffer
- * lprcat(str)	append a string to the output buffer
+ * lprintf(format,args . . .)	printf to the output buffer
+ * lprint(integer)		send binary integer to output buffer
+ * lwrite(buf,len)		write a buffer to the output buffer
+ * lprcat(str)			append a string to the output buffer
  *
  * FILE OUTPUT MACROS (in header.h)
  *
- * lprc(character)put the character into the output buffer
+ * lprc(character)		put the character into the output buffer
  *
  * FILE INPUT ROUTINES
  *
- * long lgetc()	read one character from input buffer
- * long larn_lrint()			read one integer from input buffer
- * lrfill(address,number)		put input bytes into a buffer char
- * *lgetw()		get a whitespace ended word from
- * input char *lgetl()			get a \n or EOF ended line from input
+ * long lgetc()			read one character from input buffer
+ * long larn_lrint()		read one integer from input buffer
+ * lrfill(address,number)	put input bytes into a buffer char
+ * *lgetw()			get a whitespace ended word from
+ * input char *lgetl()		get a \n or EOF ended line from input
  *
  * FILE OPEN / CLOSE ROUTINES
  *
- * lcreat(filename)create a new file for write
- * lopen(filename)open a file for read
- * lappend(filename)			open for append to an existing file
- * lrclose()	close the input file
- * lwclose()	close output file 
- * lflush()		flush the output buffer
+ * lcreat(filename)		create a new file for write
+ * lopen(filename)		open a file for read
+ * lappend(filename)		open for append to an existing file
+ * lrclose()			close the input file
+ * lwclose()			close output file
+ * lflush()			flush the output buffer
  *
  * Other Routines
  *
- * cursor(x,y)	position cursor at [x,y]
- * cursors()	position cursor at [1,24] (saves memory)
- * cl_line(x,y)	clear line at [1,y] and leave cursor at [x,y]
- * cl_up(x,y)	clear screen from [x,1] to current line
- * cl_dn(x,y)	clear screen from [1,y] to end of display
- * standout(str)print the string in standout mode
- * set_score_output()			called when output should be literally printed
- * ttputch(ch)	print one character in decoded output buffer
- * flush_buf()	flush buffer with decoded output
- * init_term()	terminal initialization -- setup termcap info
- * char *tmcapcnv(sd,ss)		routine to convert VT100 \33's to termcap format
- * beep()		routine to emit a beep if enabled
- * (see no-beep in .larnopts)
+ * cursor(x,y)			position cursor at [x,y]
+ * cursors()			position cursor at [1,24] (saves memory)
+ * cl_line(x,y)			clear line at [1,y] and leave cursor at [x,y]
+ * cl_up(x,y)			clear screen from [x,1] to current line
+ * cl_dn(x,y)			clear screen from [1,y] to end of display
+ * standout(str)		print the string in standout mode
+ * set_score_output()		called when output should be literally printed
+ * ttputch(ch)			print one character in decoded output buffer
+ * flush_buf()			flush buffer with decoded output
+ * init_term()			terminal initialization -- setup termcap info
+ * char *tmcapcnv(sd,ss)	routine to convert VT100 \33's to termcap format
+ * beep()			routine to emit a beep if enabled
+ * (see no-beep in .larnopts)
  *
  * Note: ** entries are available only in termcap mode.
  */
 #include 
 #ifndef lint
-__RCSID("$NetBSD: io.c,v 1.30 2024/03/23 21:10:45 andvar Exp $");
+__RCSID("$NetBSD: io.c,v 1.31 

CVS commit: src/games/larn

2024-03-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 26 20:50:29 UTC 2024

Modified Files:
src/games/larn: io.c

Log Message:
Fix header comment to align text using 8 space tabs.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/games/larn/io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbmips/conf

2024-03-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 26 10:23:42 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: ADM5120-NB

Log Message:
Revert accidental change for root file system in previous commit.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbmips/conf/ADM5120-NB

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbmips/conf/ADM5120-NB
diff -u src/sys/arch/evbmips/conf/ADM5120-NB:1.33 src/sys/arch/evbmips/conf/ADM5120-NB:1.34
--- src/sys/arch/evbmips/conf/ADM5120-NB:1.33	Tue Mar 26 10:16:47 2024
+++ src/sys/arch/evbmips/conf/ADM5120-NB	Tue Mar 26 10:23:42 2024
@@ -1,11 +1,11 @@
-#	$NetBSD: ADM5120-NB,v 1.33 2024/03/26 10:16:47 andvar Exp $
+#	$NetBSD: ADM5120-NB,v 1.34 2024/03/26 10:23:42 andvar Exp $
 #
 # Kernel config for the ADM5120 based boards and routers,
 # including the RouterBOARD 100 series.
 
 include 	"arch/evbmips/conf/std.adm5120"
 
-#ident 		"GENERIC-$Revision: 1.33 $"
+#ident 		"GENERIC-$Revision: 1.34 $"
 
 maxusers	32
 
@@ -101,7 +101,7 @@ options 	INET		# Internet protocols
 options 	NFS_BOOT_DHCP
 
 # Pretty much only one device to use for the root file system.
-config		netbsd		root on ? type ?
+config		netbsd-admsw0	root on admsw0 type nfs
 
 mainbus0 	at root
 



CVS commit: src/sys/arch/evbmips/conf

2024-03-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 26 10:23:42 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: ADM5120-NB

Log Message:
Revert accidental change for root file system in previous commit.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/evbmips/conf/ADM5120-NB

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbmips/conf

2024-03-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 26 10:16:47 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: ADM5120-NB

Log Message:
Remove netgraph options which are not supported and have no effect in NetBSD.

While here, reposition extio to reduce diff between ADM5120 and ADM5120-NB.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/evbmips/conf/ADM5120-NB

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbmips/conf/ADM5120-NB
diff -u src/sys/arch/evbmips/conf/ADM5120-NB:1.32 src/sys/arch/evbmips/conf/ADM5120-NB:1.33
--- src/sys/arch/evbmips/conf/ADM5120-NB:1.32	Mon Jan 29 18:27:11 2024
+++ src/sys/arch/evbmips/conf/ADM5120-NB	Tue Mar 26 10:16:47 2024
@@ -1,11 +1,11 @@
-#	$NetBSD: ADM5120-NB,v 1.32 2024/01/29 18:27:11 christos Exp $
+#	$NetBSD: ADM5120-NB,v 1.33 2024/03/26 10:16:47 andvar Exp $
 #
 # Kernel config for the ADM5120 based boards and routers,
 # including the RouterBOARD 100 series.
 
 include 	"arch/evbmips/conf/std.adm5120"
 
-#ident 		"GENERIC-$Revision: 1.32 $"
+#ident 		"GENERIC-$Revision: 1.33 $"
 
 maxusers	32
 
@@ -77,30 +77,6 @@ options 	BUFQ_PRIOCSCAN
 # Networking options
 options 	GATEWAY		# IP packet forwarding
 options 	INET		# Internet protocols
-options 	NETGRAPH	# Netgraph
-options 	NETGRAPH_ASYNC
-options 	NETGRAPH_BPF
-options 	NETGRAPH_CISCO
-options 	NETGRAPH_ECHO
-options 	NETGRAPH_EIFACE
-options 	NETGRAPH_ETF
-options 	NETGRAPH_ETHER
-options 	NETGRAPH_FRAME_RELAY
-options 	NETGRAPH_HOLE
-options 	NETGRAPH_HUB
-options 	NETGRAPH_IFACE
-options 	NETGRAPH_KSOCKET
-options 	NETGRAPH_L2TP
-options 	NETGRAPH_LMI
-options 	NETGRAPH_ONE2MANY
-options 	NETGRAPH_PPP
-options 	NETGRAPH_PPPOE
-options 	NETGRAPH_PPTPGRE
-options 	NETGRAPH_RFC1490
-options 	NETGRAPH_TEE
-options 	NETGRAPH_UI
-options 	NETGRAPH_VJC
-options 	NETGRAPH_VLAN
 #options 	INET6		# IPV6
 #options 	IPSEC		# IP security
 #options 	IPSEC_DEBUG	# debug for IP security
@@ -125,7 +101,7 @@ options 	NETGRAPH_VLAN
 options 	NFS_BOOT_DHCP
 
 # Pretty much only one device to use for the root file system.
-config		netbsd-admsw0	root on admsw0 type nfs
+config		netbsd		root on ? type ?
 
 mainbus0 	at root
 
@@ -151,9 +127,8 @@ pseudo-device	pty# pseudo-terminals
 pseudo-device	ksyms
 
 obio*		at mainbus?
-extio*		at mainbus?
 gpio*		at mainbus?
-
+extio*		at mainbus?
 uart*		at obio? addr ?
 admsw*		at obio? addr ?
 #admflash*	at obio? addr ?



CVS commit: src/sys/arch/evbmips/conf

2024-03-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 26 10:16:47 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: ADM5120-NB

Log Message:
Remove netgraph options which are not supported and have no effect in NetBSD.

While here, reposition extio to reduce diff between ADM5120 and ADM5120-NB.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/evbmips/conf/ADM5120-NB

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/games/larn

2024-03-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 23 21:10:45 UTC 2024

Modified Files:
src/games/larn: io.c

Log Message:
Attempt to fix descriptions of the routines in the initial comment block.

Something likely went wrong with copying the original text, causing
missing letters, broken indentation and formatting.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/games/larn/io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/games/larn

2024-03-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 23 21:10:45 UTC 2024

Modified Files:
src/games/larn: io.c

Log Message:
Attempt to fix descriptions of the routines in the initial comment block.

Something likely went wrong with copying the original text, causing
missing letters, broken indentation and formatting.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/games/larn/io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/larn/io.c
diff -u src/games/larn/io.c:1.29 src/games/larn/io.c:1.30
--- src/games/larn/io.c:1.29	Sun May  2 12:50:45 2021
+++ src/games/larn/io.c	Sat Mar 23 21:10:45 2024
@@ -1,68 +1,66 @@
-/*	$NetBSD: io.c,v 1.29 2021/05/02 12:50:45 rillig Exp $	*/
+/*	$NetBSD: io.c,v 1.30 2024/03/23 21:10:45 andvar Exp $	*/
 
 /*
  * io.c			 Larn is copyrighted 1986 by Noah Morgan.
  *
  * Below are the functions in this file:
  *
- * setupvt100() 	Subroutine to set up terminal in correct mode for game
- * clearvt100()  	Subroutine to clean up terminal when the game is over
- * ttgetch() 		Routine to read in one character from the terminal
+ * setupvt100()		Subroutine to set up terminal in correct mode for game
+ * clearvt100()		Subroutine to clean up terminal when the game is over
+ * ttgetch()		Routine to read in one character from the terminal
  * scbr()			Function to set cbreak -echo for the terminal
  * sncbr()			Function to set -cbreak echo for the terminal
- * newgame() 		Subroutine to save the initial time and seed rnd()
+ * newgame()		Subroutine to save the initial time and seed rnd()
  *
  * FILE OUTPUT ROUTINES
  *
- * lprintf(format,args . . .)	printf to the output buffer lprint(integer)
- * end binary integer to output buffer lwrite(buf,len)
- * rite a buffer to the output buffer lprcat(str)
- * ent string to output buffer
+ * lprintf(format,args . . .)	printf to the output buffer 
+ * lprint(integer)send binary integer to output buffer
+ * lwrite(buf,len)write a buffer to the output buffer
+ * lprcat(str)	append a string to the output buffer
  *
  * FILE OUTPUT MACROS (in header.h)
  *
- * lprc(character)put the character into the output
- * buffer
+ * lprc(character)put the character into the output buffer
  *
  * FILE INPUT ROUTINES
  *
- * long lgetc()read one character from input buffer
+ * long lgetc()	read one character from input buffer
  * long larn_lrint()			read one integer from input buffer
  * lrfill(address,number)		put input bytes into a buffer char
- * *lgetw()get a whitespace ended word from
- * input char *lgetl()get a \n or EOF ended line
- * from input
+ * *lgetw()		get a whitespace ended word from
+ * input char *lgetl()			get a \n or EOF ended line from input
  *
  * FILE OPEN / CLOSE ROUTINES
  *
- * lcreat(filename)			create a new file for write
+ * lcreat(filename)create a new file for write
  * lopen(filename)open a file for read
  * lappend(filename)			open for append to an existing file
  * lrclose()	close the input file
- * lwclose()	close output file lflush()
- * lush the output buffer
+ * lwclose()	close output file 
+ * lflush()		flush the output buffer
  *
  * Other Routines
  *
  * cursor(x,y)	position cursor at [x,y]
- * cursors()	position cursor at [1,24]
- * (saves memory) cl_line(x,y) 		Clear line at [1,y] and leave
- * cursor at [x,y] cl_up(x,y)Clear screen
- * from [x,1] to current line. cl_dn(x,y)
- * lear screen from [1,y] to end of display. standout(str)
- * rint the string in standout mode. set_score_output()
- * alled when output should be literally printed. * ttputch(ch)
- * rint one character in decoded output buffer. * flush_buf()
- * lush buffer with decoded output. * init_term()
- * erminal initialization -- setup termcap info *	char *tmcapcnv(sd,ss)
- * outine to convert VT100 \33's to termcap format beep()
- * e to emit a beep if enabled (see no-beep in .larnopts)
+ * cursors()	position cursor at [1,24] (saves memory)
+ * cl_line(x,y)	clear line at [1,y] and leave cursor at [x,y]
+ * cl_up(x,y)	clear screen from [x,1] to current line
+ * cl_dn(x,y)	clear screen from [1,y] to end of display
+ * standout(str)print the string in standout mode
+ * set_score_output()			called when output should be literally printed
+ * ttputch(ch)	print one character in decoded output buffer
+ * flush_buf()	flush buffer with decoded output
+ * init_term()	terminal initialization -- setup termcap info
+ * char *tmcapcnv(sd,ss)		routine to convert VT100 \33's to termcap format
+ * beep()		routine to emit a beep if enabled
+ * (see no-beep in .larnopts)
  *
  * Note: ** entries are available only in termcap mode.
  */
 #include 
 #ifndef lint
-__RCSID("$NetBSD: io.c,v 1.29 2021/05/02 12:50:45 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.30 2024/03/23 21:10:45 andvar Exp $");
 #endif /* not lint */

CVS commit: src/sys/arch/sparc/include

2024-03-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 23 18:48:31 UTC 2024

Modified Files:
src/sys/arch/sparc/include: pmap.h

Log Message:
s/ignorning/ignoring/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/sparc/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/include/pmap.h
diff -u src/sys/arch/sparc/include/pmap.h:1.97 src/sys/arch/sparc/include/pmap.h:1.98
--- src/sys/arch/sparc/include/pmap.h:1.97	Mon Jan 25 20:05:29 2021
+++ src/sys/arch/sparc/include/pmap.h	Sat Mar 23 18:48:31 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.h,v 1.97 2021/01/25 20:05:29 mrg Exp $ */
+/*	$NetBSD: pmap.h,v 1.98 2024/03/23 18:48:31 andvar Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -74,7 +74,7 @@ struct vm_page;
  * User space begins at 0x and runs through 0x1fff,
  * then has a `hole', then resumes at 0xe000 and runs until it
  * hits the kernel space at 0xf800.  This can be mapped
- * contiguously by ignorning the top two bits and pretending the
+ * contiguously by ignoring the top two bits and pretending the
  * space goes from 0 to 37ff.  Typically the lower range is
  * used for text+data and the upper for stack, but the code here
  * makes no such distinction.



CVS commit: src/sys/arch/sparc/include

2024-03-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 23 18:48:31 UTC 2024

Modified Files:
src/sys/arch/sparc/include: pmap.h

Log Message:
s/ignorning/ignoring/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/sparc/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/rpc

2024-03-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 22 19:45:22 UTC 2024

Modified Files:
src/lib/libc/rpc: xdr_rec.c

Log Message:
Fix few typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/rpc/xdr_rec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/rpc/xdr_rec.c
diff -u src/lib/libc/rpc/xdr_rec.c:1.40 src/lib/libc/rpc/xdr_rec.c:1.41
--- src/lib/libc/rpc/xdr_rec.c:1.40	Tue Jan 23 17:24:38 2024
+++ src/lib/libc/rpc/xdr_rec.c	Fri Mar 22 19:45:22 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: xdr_rec.c,v 1.40 2024/01/23 17:24:38 christos Exp $	*/
+/*	$NetBSD: xdr_rec.c,v 1.41 2024/03/22 19:45:22 andvar Exp $	*/
 
 /*
  * Copyright (c) 2010, Oracle America, Inc.
@@ -37,7 +37,7 @@
 static char *sccsid = "@(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)xdr_rec.c	2.2 88/08/01 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: xdr_rec.c,v 1.40 2024/01/23 17:24:38 christos Exp $");
+__RCSID("$NetBSD: xdr_rec.c,v 1.41 2024/03/22 19:45:22 andvar Exp $");
 #endif
 #endif
 
@@ -242,7 +242,7 @@ xdrrec_create(
 
 
 /*
- * The reoutines defined below are the xdr ops which will go into the
+ * The routines defined below are the xdr ops which will go into the
  * xdr handle filled in by xdrrec_create.
  */
 
@@ -503,9 +503,9 @@ xdrrec_eof(XDR *xdrs)
 
 /*
  * The client must tell the package when an end-of-record has occurred.
- * The second paraemters tells whether the record should be flushed to the
+ * The second parameters tells whether the record should be flushed to the
  * (output) tcp stream.  (This let's the package support batched or
- * pipelined procedure calls.)  TRUE => immmediate flush to tcp connection.
+ * pipelined procedure calls.)  TRUE => immediate flush to tcp connection.
  */
 bool_t
 xdrrec_endofrecord(XDR *xdrs, int sendnow)



CVS commit: src/lib/libc/rpc

2024-03-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 22 19:45:22 UTC 2024

Modified Files:
src/lib/libc/rpc: xdr_rec.c

Log Message:
Fix few typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/rpc/xdr_rec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librmt

2024-03-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 22 19:36:56 UTC 2024

Modified Files:
src/lib/librmt: rmtlib.c

Log Message:
s/Cannnot/Cannot/ in error message.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/librmt/rmtlib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librmt/rmtlib.c
diff -u src/lib/librmt/rmtlib.c:1.28 src/lib/librmt/rmtlib.c:1.29
--- src/lib/librmt/rmtlib.c:1.28	Fri Dec 27 09:41:48 2019
+++ src/lib/librmt/rmtlib.c	Fri Mar 22 19:36:56 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: rmtlib.c,v 1.28 2019/12/27 09:41:48 msaitoh Exp $	*/
+/*	$NetBSD: rmtlib.c,v 1.29 2024/03/22 19:36:56 andvar Exp $	*/
 
 /*
  *	rmt --- remote tape emulator subroutines
@@ -28,7 +28,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: rmtlib.c,v 1.28 2019/12/27 09:41:48 msaitoh Exp $");
+__RCSID("$NetBSD: rmtlib.c,v 1.29 2024/03/22 19:36:56 andvar Exp $");
 
 #define RMTIOCTL	1
 /* #define USE_REXEC	1 */	/* rexec code courtesy of Dan Kegel, srs!dan */
@@ -364,7 +364,7 @@ _rmt_open(const char *path, int oflag, i
  *	bad problems if we get here
  */
 
-		err(1, "Cannnot exec %s", rshpath);
+		err(1, "Cannot exec %s", rshpath);
 		/*FALLTHROUGH*/
 	default:
 		break;



CVS commit: src/lib/librmt

2024-03-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 22 19:36:56 UTC 2024

Modified Files:
src/lib/librmt: rmtlib.c

Log Message:
s/Cannnot/Cannot/ in error message.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/librmt/rmtlib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:48:02 UTC 2024

Modified Files:
src/lib/libc/gen: vis.c
src/sys/arch/usermode/usermode: thunk.c
src/sys/netinet: sctp.h
src/usr.bin/mail: strings.c

Log Message:
Add missing "e" in few words, in comments and one log message.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libc/gen/vis.c
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/usermode/usermode/thunk.c
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet/sctp.h
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/mail/strings.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/vis.c
diff -u src/lib/libc/gen/vis.c:1.87 src/lib/libc/gen/vis.c:1.88
--- src/lib/libc/gen/vis.c:1.87	Sat Jan 20 14:52:47 2024
+++ src/lib/libc/gen/vis.c	Sun Mar 17 21:48:02 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: vis.c,v 1.87 2024/01/20 14:52:47 christos Exp $	*/
+/*	$NetBSD: vis.c,v 1.88 2024/03/17 21:48:02 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.87 2024/01/20 14:52:47 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.88 2024/03/17 21:48:02 andvar Exp $");
 #endif /* LIBC_SCCS and not lint */
 #ifdef __FBSDID
 __FBSDID("$FreeBSD$");
@@ -653,7 +653,7 @@ istrsenvisx(char **mbdstp, size_t *dlen,
 		mbdst += clen;
 		/* Advance buffer character pointer. */
 		dst++;
-		/* Incrment output character count. */
+		/* Increment output character count. */
 		olen += clen;
 	}
 

Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.92 src/sys/arch/usermode/usermode/thunk.c:1.93
--- src/sys/arch/usermode/usermode/thunk.c:1.92	Wed May  8 13:40:16 2019
+++ src/sys/arch/usermode/usermode/thunk.c	Sun Mar 17 21:48:01 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.92 2019/05/08 13:40:16 isaki Exp $ */
+/* $NetBSD: thunk.c,v 1.93 2024/03/17 21:48:01 andvar Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill 
@@ -28,7 +28,7 @@
 
 #include 
 #ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.92 2019/05/08 13:40:16 isaki Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.93 2024/03/17 21:48:01 andvar Exp $");
 #endif
 
 #define _KMEMUSER
@@ -1436,7 +1436,7 @@ thunk_rfb_poll(thunk_rfb_t *rfb, thunk_r
 			framebuffer_update_request[2],
 			framebuffer_update_request[3],
 			framebuffer_update_request[4],
-			framebuffer_update_request[0]?"Incrmental":"Complete");
+			framebuffer_update_request[0]?"Incremental":"Complete");
 #endif
 			
 		if (framebuffer_update_request[0] == 0) {

Index: src/sys/netinet/sctp.h
diff -u src/sys/netinet/sctp.h:1.5 src/sys/netinet/sctp.h:1.6
--- src/sys/netinet/sctp.h:1.5	Sun Oct 24 20:00:12 2021
+++ src/sys/netinet/sctp.h	Sun Mar 17 21:48:01 2024
@@ -1,5 +1,5 @@
 /*	$KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $	*/
-/*	$NetBSD: sctp.h,v 1.5 2021/10/24 20:00:12 andvar Exp $ */
+/*	$NetBSD: sctp.h,v 1.6 2024/03/17 21:48:01 andvar Exp $ */
 
 #ifndef _NETINET_SCTP_H_
 #define _NETINET_SCTP_H_
@@ -146,8 +146,8 @@ struct sctp_paramhdr {
 #define SCTP_PEER_PUBLIC_KEY0x0100 /* get the peers public key */
 #define SCTP_MY_PUBLIC_KEY  0x0101 /* get/set my endpoints public key */
 #define SCTP_SET_AUTH_SECRET0x0102 /* get/set my shared secret */
-#define SCTP_SET_AUTH_CHUNKS0x0103/* specify what chunks you want
-		* the system may have additional requirments
+#define SCTP_SET_AUTH_CHUNKS0x0103 /* specify what chunks you want
+		 * the system may have additional requirements
 		 * as well. I.e. probably ASCONF/ASCONF-ACK no matter
 		 * if you want it or not.
 		 */

Index: src/usr.bin/mail/strings.c
diff -u src/usr.bin/mail/strings.c:1.18 src/usr.bin/mail/strings.c:1.19
--- src/usr.bin/mail/strings.c:1.18	Tue Jan 12 14:45:31 2010
+++ src/usr.bin/mail/strings.c	Sun Mar 17 21:48:02 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: strings.c,v 1.18 2010/01/12 14:45:31 christos Exp $	*/
+/*	$NetBSD: strings.c,v 1.19 2024/03/17 21:48:02 andvar Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)strings.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: strings.c,v 1.18 2010/01/12 14:45:31 christos Exp $");
+__RCSID("$NetBSD: strings.c,v 1.19 2024/03/17 21:48:02 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -107,7 +107,7 @@ salloc(size_t size)
 }
 
 /*
- * Allocate zeroed space for 'number' elments of size 'size'.
+ * Allocate zeroed space for 'number' elements of size 'size'.
  */
 PUBLIC void *
 csalloc(size_t number, size_t size)



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:48:02 UTC 2024

Modified Files:
src/lib/libc/gen: vis.c
src/sys/arch/usermode/usermode: thunk.c
src/sys/netinet: sctp.h
src/usr.bin/mail: strings.c

Log Message:
Add missing "e" in few words, in comments and one log message.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libc/gen/vis.c
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/usermode/usermode/thunk.c
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet/sctp.h
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/mail/strings.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:37:53 UTC 2024

Modified Files:
src/lib/libc/net: inet6_rth_space.3
src/usr.bin/touch: touch.1

Log Message:
s/argumment/argument/ in documentation.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/net/inet6_rth_space.3
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/touch/touch.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/net/inet6_rth_space.3
diff -u src/lib/libc/net/inet6_rth_space.3:1.3 src/lib/libc/net/inet6_rth_space.3:1.4
--- src/lib/libc/net/inet6_rth_space.3:1.3	Sun Dec  4 01:29:32 2022
+++ src/lib/libc/net/inet6_rth_space.3	Sun Mar 17 21:37:53 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: inet6_rth_space.3,v 1.3 2022/12/04 01:29:32 uwe Exp $
+.\"	$NetBSD: inet6_rth_space.3,v 1.4 2024/03/17 21:37:53 andvar Exp $
 .\"	$KAME: inet6_rth_space.3,v 1.7 2005/01/05 03:00:44 itojun Exp $
 .\"
 .\" Copyright (C) 2004 WIDE Project.
@@ -84,7 +84,7 @@ of the type, specified in the
 .Fa type
 argument and containing the number of addresses specified in the
 .Fa segments
-argumment.
+argument.
 When the type is
 .Dv IPV6_RTHDR_TYPE_0
 the number of segments must be from 0 through 127.

Index: src/usr.bin/touch/touch.1
diff -u src/usr.bin/touch/touch.1:1.29 src/usr.bin/touch/touch.1:1.30
--- src/usr.bin/touch/touch.1:1.29	Sat Feb 10 00:19:30 2024
+++ src/usr.bin/touch/touch.1	Sun Mar 17 21:37:53 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: touch.1,v 1.29 2024/02/10 00:19:30 kre Exp $
+.\"	$NetBSD: touch.1,v 1.30 2024/03/17 21:37:53 andvar Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -389,7 +389,7 @@ That is, this merely tests that the
 .Ar human-datetime
 and
 .Ar datetime
-argumments to
+arguments to
 .Fl d
 and
 .Fl t



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:37:53 UTC 2024

Modified Files:
src/lib/libc/net: inet6_rth_space.3
src/usr.bin/touch: touch.1

Log Message:
s/argumment/argument/ in documentation.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/net/inet6_rth_space.3
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/touch/touch.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2024-03-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 16 18:17:39 UTC 2024

Modified Files:
src/sys/dev/ic: lan9118reg.h

Log Message:
s/Broardcast/Broadcast/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/lan9118reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2024-03-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Mar 16 18:17:39 UTC 2024

Modified Files:
src/sys/dev/ic: lan9118reg.h

Log Message:
s/Broardcast/Broadcast/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/lan9118reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/lan9118reg.h
diff -u src/sys/dev/ic/lan9118reg.h:1.3 src/sys/dev/ic/lan9118reg.h:1.4
--- src/sys/dev/ic/lan9118reg.h:1.3	Mon Sep 27 12:29:03 2010
+++ src/sys/dev/ic/lan9118reg.h	Sat Mar 16 18:17:39 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: lan9118reg.h,v 1.3 2010/09/27 12:29:03 kiyohara Exp $	*/
+/*	$NetBSD: lan9118reg.h,v 1.4 2024/03/16 18:17:39 andvar Exp $	*/
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -206,7 +206,7 @@
 #define LAN9118_MAC_CR_HO		(1 << 15) /* Hash Only Filtering mode */
 #define LAN9118_MAC_CR_HPFILT		(1 << 13) /* Hash/Perfect Flt Mode */
 #define LAN9118_MAC_CR_LCOLL		(1 << 12) /* Late Collision Control */
-#define LAN9118_MAC_CR_BCAST		(1 << 11) /* Disable Broardcast Frms */
+#define LAN9118_MAC_CR_BCAST		(1 << 11) /* Disable Broadcast Frms */
 #define LAN9118_MAC_CR_DISRTY		(1 << 10) /* Disable Retry */
 #define LAN9118_MAC_CR_PADSTR		(1 << 8)  /* Automatic Pad String */
 #define LAN9118_MAC_CR_BOLMT		(1 << 7)  /* BackOff Limit */



CVS commit: src/sys/uvm

2024-03-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 15 22:15:21 UTC 2024

Modified Files:
src/sys/uvm: uvm_swap.h

Log Message:
"retval = 0" should be "*retval = 0", should fix the broken build.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/uvm/uvm_swap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/uvm

2024-03-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 15 22:15:21 UTC 2024

Modified Files:
src/sys/uvm: uvm_swap.h

Log Message:
"retval = 0" should be "*retval = 0", should fix the broken build.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/uvm/uvm_swap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_swap.h
diff -u src/sys/uvm/uvm_swap.h:1.28 src/sys/uvm/uvm_swap.h:1.29
--- src/sys/uvm/uvm_swap.h:1.28	Fri Mar 15 20:09:31 2024
+++ src/sys/uvm/uvm_swap.h	Fri Mar 15 22:15:21 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swap.h,v 1.28 2024/03/15 20:09:31 andvar Exp $	*/
+/*	$NetBSD: uvm_swap.h,v 1.29 2024/03/15 22:15:21 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Matthew R. Green
@@ -65,7 +65,7 @@ uvm_swap_stats(char *c, int l, void (*f)
 size_t count, register_t *retval)
 {
 
-	retval = 0;
+	*retval = 0;
 	return ENOSYS;
 }
 



CVS commit: src/sys/uvm

2024-03-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 15 20:09:31 UTC 2024

Modified Files:
src/sys/uvm: uvm_swap.h

Log Message:
Rewrite !VMSWAP uvm_swap_stats() macro as a static function. NFCI.

>From riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/uvm/uvm_swap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_swap.h
diff -u src/sys/uvm/uvm_swap.h:1.27 src/sys/uvm/uvm_swap.h:1.28
--- src/sys/uvm/uvm_swap.h:1.27	Fri Mar 15 07:09:37 2024
+++ src/sys/uvm/uvm_swap.h	Fri Mar 15 20:09:31 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swap.h,v 1.27 2024/03/15 07:09:37 andvar Exp $	*/
+/*	$NetBSD: uvm_swap.h,v 1.28 2024/03/15 20:09:31 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Matthew R. Green
@@ -39,10 +39,10 @@
 #endif
 
 struct lwp;
+struct swapent;
 
 #if defined(VMSWAP)
 
-struct swapent;
 struct vm_page;
 
 int	uvm_swap_get(struct vm_page *, int, int);
@@ -57,8 +57,18 @@ int	uvm_swap_stats(char *, int,
 void (*)(void *, const struct swapent *), size_t, register_t *);
 
 #else /* defined(VMSWAP) */
+
 #define	uvm_swapisfull()	true
-#define uvm_swap_stats(c, l, f, count, retval) (void)(f), (*retval = 0, ENOSYS)
+
+static inline int
+uvm_swap_stats(char *c, int l, void (*f)(void *, const struct swapent *),
+size_t count, register_t *retval)
+{
+
+	retval = 0;
+	return ENOSYS;
+}
+
 #endif /* defined(VMSWAP) */
 
 void	uvm_swap_shutdown(struct lwp *);



CVS commit: src/sys/uvm

2024-03-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 15 20:09:31 UTC 2024

Modified Files:
src/sys/uvm: uvm_swap.h

Log Message:
Rewrite !VMSWAP uvm_swap_stats() macro as a static function. NFCI.

>From riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/uvm/uvm_swap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/uvm

2024-03-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 15 07:09:37 UTC 2024

Modified Files:
src/sys/uvm: uvm_fault.c uvm_pager.c uvm_swap.h uvm_swapstub.c

Log Message:
Fix !VMSWAP build:
Added __unused for few local variables, which are used in VMSWAP block only.
Adjust !VMSWAP uvm_swap_stats() definition to make it build with compat code.
Copied "int (*uvm_swap_stats50)(...)" definition from uvm_swap to uvm_swapstub
to avoid missing uvm_swap_stats50 reference on linking.

Fixes INSTALL_CPMBR1400, INSTALL_ZYXELKX evbmips kernel configs as a result.

Reviewed by simon and phone in IRC (thanks).


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sys/uvm/uvm_fault.c
cvs rdiff -u -r1.130 -r1.131 src/sys/uvm/uvm_pager.c
cvs rdiff -u -r1.26 -r1.27 src/sys/uvm/uvm_swap.h
cvs rdiff -u -r1.8 -r1.9 src/sys/uvm/uvm_swapstub.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_fault.c
diff -u src/sys/uvm/uvm_fault.c:1.236 src/sys/uvm/uvm_fault.c:1.237
--- src/sys/uvm/uvm_fault.c:1.236	Tue Sep 19 22:14:25 2023
+++ src/sys/uvm/uvm_fault.c	Fri Mar 15 07:09:37 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_fault.c,v 1.236 2023/09/19 22:14:25 ad Exp $	*/
+/*	$NetBSD: uvm_fault.c,v 1.237 2024/03/15 07:09:37 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.236 2023/09/19 22:14:25 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.237 2024/03/15 07:09:37 andvar Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -273,7 +273,7 @@ uvmfault_anonget(struct uvm_faultinfo *u
 {
 	struct vm_page *pg;
 	krw_t lock_type;
-	int error;
+	int error __unused; /* used for VMSWAP */
 
 	UVMHIST_FUNC(__func__); UVMHIST_CALLED(maphist);
 	KASSERT(rw_lock_held(anon->an_lock));

Index: src/sys/uvm/uvm_pager.c
diff -u src/sys/uvm/uvm_pager.c:1.130 src/sys/uvm/uvm_pager.c:1.131
--- src/sys/uvm/uvm_pager.c:1.130	Sun Oct 18 18:22:29 2020
+++ src/sys/uvm/uvm_pager.c	Fri Mar 15 07:09:37 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pager.c,v 1.130 2020/10/18 18:22:29 chs Exp $	*/
+/*	$NetBSD: uvm_pager.c,v 1.131 2024/03/15 07:09:37 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.130 2020/10/18 18:22:29 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.131 2024/03/15 07:09:37 andvar Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_readahead.h"
@@ -330,7 +330,7 @@ uvm_aio_aiodone_pages(struct vm_page **p
 	struct vm_page *pg;
 	krwlock_t *slock;
 	int pageout_done;	/* number of PG_PAGEOUT pages processed */
-	int swslot;
+	int swslot __unused;	/* used for VMSWAP */
 	int i;
 	bool swap;
 	UVMHIST_FUNC(__func__); UVMHIST_CALLED(ubchist);
@@ -405,7 +405,7 @@ uvm_aio_aiodone_pages(struct vm_page **p
 		 */
 
 		if (error) {
-			int slot;
+			int slot __unused;	/* used for VMSWAP */
 			if (!write) {
 pg->flags |= PG_RELEASED;
 continue;

Index: src/sys/uvm/uvm_swap.h
diff -u src/sys/uvm/uvm_swap.h:1.26 src/sys/uvm/uvm_swap.h:1.27
--- src/sys/uvm/uvm_swap.h:1.26	Sat Sep  5 16:30:13 2020
+++ src/sys/uvm/uvm_swap.h	Fri Mar 15 07:09:37 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swap.h,v 1.26 2020/09/05 16:30:13 riastradh Exp $	*/
+/*	$NetBSD: uvm_swap.h,v 1.27 2024/03/15 07:09:37 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Matthew R. Green
@@ -58,7 +58,7 @@ int	uvm_swap_stats(char *, int,
 
 #else /* defined(VMSWAP) */
 #define	uvm_swapisfull()	true
-#define uvm_swap_stats(c, l, f, count, retval) (__used f, *retval = 0, ENOSYS)
+#define uvm_swap_stats(c, l, f, count, retval) (void)(f), (*retval = 0, ENOSYS)
 #endif /* defined(VMSWAP) */
 
 void	uvm_swap_shutdown(struct lwp *);

Index: src/sys/uvm/uvm_swapstub.c
diff -u src/sys/uvm/uvm_swapstub.c:1.8 src/sys/uvm/uvm_swapstub.c:1.9
--- src/sys/uvm/uvm_swapstub.c:1.8	Tue Feb 18 06:18:13 2014
+++ src/sys/uvm/uvm_swapstub.c	Fri Mar 15 07:09:37 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swapstub.c,v 1.8 2014/02/18 06:18:13 pooka Exp $	*/
+/*	$NetBSD: uvm_swapstub.c,v 1.9 2024/03/15 07:09:37 andvar Exp $	*/
 
 /*-
  * Copyright (c)2005 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_swapstub.c,v 1.8 2014/02/18 06:18:13 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_swapstub.c,v 1.9 2024/03/15 07:09:37 andvar Exp $");
 
 #include 
 #include 
@@ -40,6 +40,9 @@ __KERNEL_RCSID(0, "$NetBSD: uvm_swapstub
 
 #include 
 
+int (*uvm_swap_stats50)(const struct sys_swapctl_args *, register_t *) =
+(void *)enosys;
+
 void
 uvm_swap_init(void)
 {



CVS commit: src/sys/uvm

2024-03-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar 15 07:09:37 UTC 2024

Modified Files:
src/sys/uvm: uvm_fault.c uvm_pager.c uvm_swap.h uvm_swapstub.c

Log Message:
Fix !VMSWAP build:
Added __unused for few local variables, which are used in VMSWAP block only.
Adjust !VMSWAP uvm_swap_stats() definition to make it build with compat code.
Copied "int (*uvm_swap_stats50)(...)" definition from uvm_swap to uvm_swapstub
to avoid missing uvm_swap_stats50 reference on linking.

Fixes INSTALL_CPMBR1400, INSTALL_ZYXELKX evbmips kernel configs as a result.

Reviewed by simon and phone in IRC (thanks).


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sys/uvm/uvm_fault.c
cvs rdiff -u -r1.130 -r1.131 src/sys/uvm/uvm_pager.c
cvs rdiff -u -r1.26 -r1.27 src/sys/uvm/uvm_swap.h
cvs rdiff -u -r1.8 -r1.9 src/sys/uvm/uvm_swapstub.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbmips/evbmips

2024-03-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 12 21:27:14 UTC 2024

Modified Files:
src/sys/arch/evbmips/evbmips: interrupt.c

Log Message:
Fix non-DIAGNOSTIC build for evbmips.

mtx_count, biglock_count and blcnt are defined inside DIAGNOSTIC block, thus
KASSERTs using them should be guarded as well.

Seemingly introduced with matt-nb5-mips64 merge in 2011.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbmips/evbmips/interrupt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbmips/evbmips

2024-03-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 12 21:27:14 UTC 2024

Modified Files:
src/sys/arch/evbmips/evbmips: interrupt.c

Log Message:
Fix non-DIAGNOSTIC build for evbmips.

mtx_count, biglock_count and blcnt are defined inside DIAGNOSTIC block, thus
KASSERTs using them should be guarded as well.

Seemingly introduced with matt-nb5-mips64 merge in 2011.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbmips/evbmips/interrupt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbmips/evbmips/interrupt.c
diff -u src/sys/arch/evbmips/evbmips/interrupt.c:1.25 src/sys/arch/evbmips/evbmips/interrupt.c:1.26
--- src/sys/arch/evbmips/evbmips/interrupt.c:1.25	Sat Jun 10 07:30:57 2023
+++ src/sys/arch/evbmips/evbmips/interrupt.c	Tue Mar 12 21:27:14 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: interrupt.c,v 1.25 2023/06/10 07:30:57 skrll Exp $	*/
+/*	$NetBSD: interrupt.c,v 1.26 2024/03/12 21:27:14 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.25 2023/06/10 07:30:57 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.26 2024/03/12 21:27:14 andvar Exp $");
 
 #include 
 #include 
@@ -94,9 +94,11 @@ cpu_intr(int ppl, vaddr_t pc, uint32_t s
 			/* Process I/O and error interrupts. */
 			evbmips_iointr(ipl, pending, );
 		}
+#ifdef DIAGNOSTIC
 		KASSERT(biglock_count == ci->ci_biglock_count);
 		KASSERT(blcnt == curlwp->l_blcnt);
 		KASSERT(mtx_count == ci->ci_mtx_count);
+#endif
 
 		/*
 		 * If even our spl is higher now (due to interrupting while



CVS commit: src/sys/arch/evbarm

2024-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Mar  6 20:18:42 UTC 2024

Modified Files:
src/sys/arch/evbarm/mini2440: mini2440_lcd.c
src/sys/arch/evbarm/smdk2xx0: smdk2410_lcd.c

Log Message:
s/horizontaol/horizontal/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/mini2440/mini2440_lcd.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm

2024-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Mar  6 20:18:42 UTC 2024

Modified Files:
src/sys/arch/evbarm/mini2440: mini2440_lcd.c
src/sys/arch/evbarm/smdk2xx0: smdk2410_lcd.c

Log Message:
s/horizontaol/horizontal/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/mini2440/mini2440_lcd.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/mini2440/mini2440_lcd.c
diff -u src/sys/arch/evbarm/mini2440/mini2440_lcd.c:1.7 src/sys/arch/evbarm/mini2440/mini2440_lcd.c:1.8
--- src/sys/arch/evbarm/mini2440/mini2440_lcd.c:1.7	Wed Dec 20 13:55:18 2023
+++ src/sys/arch/evbarm/mini2440/mini2440_lcd.c	Wed Mar  6 20:18:42 2024
@@ -59,7 +59,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mini2440_lcd.c,v 1.7 2023/12/20 13:55:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mini2440_lcd.c,v 1.8 2024/03/06 20:18:42 andvar Exp $");
 
 /*
  * LCD driver for FriendlyARM MINI2440.
@@ -237,7 +237,7 @@ static const struct s3c24x0_lcd_panel_in
 _(LCDCON3_HFPD, 2) | /*21*/
 _(LCDCON3_HOZVAL, 240),
 
-/* LCDCON4: horizontaol pulse width */
+/* LCDCON4: horizontal pulse width */
 _(LCDCON4_HPSW, 6), /* 6 */
 
 /* LCDCON5: signal polarities */

Index: src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
diff -u src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c:1.13 src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c:1.14
--- src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c:1.13	Wed Dec 20 13:55:18 2023
+++ src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c	Wed Mar  6 20:18:42 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: smdk2410_lcd.c,v 1.13 2023/12/20 13:55:18 thorpej Exp $ */
+/*	$NetBSD: smdk2410_lcd.c,v 1.14 2024/03/06 20:18:42 andvar Exp $ */
 
 /*
  * Copyright (c) 2004  Genetec Corporation.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: smdk2410_lcd.c,v 1.13 2023/12/20 13:55:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smdk2410_lcd.c,v 1.14 2024/03/06 20:18:42 andvar Exp $");
 
 /*
  * LCD driver for Samsung SMDK2410.
@@ -209,7 +209,7 @@ static const struct s3c24x0_lcd_panel_in
 _(LCDCON3_HBPD, 7) | 
 _(LCDCON3_HFPD, 3),
 
-/* LCDCON4: horizontaol pulse width */
+/* LCDCON4: horizontal pulse width */
 _(LCDCON4_HPSW, 4),
 
 /* LCDCON5: signal polarities */



CVS commit: src/sys

2024-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Mar  6 20:02:24 UTC 2024

Modified Files:
src/sys/arch/shark/shark: scr.c
src/sys/dev/pci: if_vmx.c

Log Message:
Fix few typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/shark/shark/scr.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/if_vmx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/shark/shark/scr.c
diff -u src/sys/arch/shark/shark/scr.c:1.37 src/sys/arch/shark/shark/scr.c:1.38
--- src/sys/arch/shark/shark/scr.c:1.37	Fri Feb  9 22:08:33 2024
+++ src/sys/arch/shark/shark/scr.c	Wed Mar  6 20:02:24 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: scr.c,v 1.37 2024/02/09 22:08:33 andvar Exp $	*/
+/*	$NetBSD: scr.c,v 1.38 2024/03/06 20:02:24 andvar Exp $	*/
 
 /*
  * Copyright 1997
@@ -67,7 +67,7 @@
 **referenced to T2 counts.
 **
 **The bottom half is done as a several linked state machines.  
-**The top level machine is the maserSM (ie master State Machine).  This 
+**The top level machine is the masterSM (ie master State Machine).  This 
 **machine calls mid level protocol machines, ie ATRSM (Answer To Reset 
 **State Machine), t0SendSM (T=0 Send State Machine), and t0RecvSM (T=0 Recv 
 **State Machine).  These mid level protocol machines in turn call low level
@@ -102,7 +102,7 @@
 */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: scr.c,v 1.37 2024/02/09 22:08:33 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scr.c,v 1.38 2024/03/06 20:02:24 andvar Exp $");
 
 #include "opt_ddb.h"
 

Index: src/sys/dev/pci/if_vmx.c
diff -u src/sys/dev/pci/if_vmx.c:1.14 src/sys/dev/pci/if_vmx.c:1.15
--- src/sys/dev/pci/if_vmx.c:1.14	Fri Feb  9 18:39:52 2024
+++ src/sys/dev/pci/if_vmx.c	Wed Mar  6 20:02:24 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vmx.c,v 1.14 2024/02/09 18:39:52 andvar Exp $	*/
+/*	$NetBSD: if_vmx.c,v 1.15 2024/03/06 20:02:24 andvar Exp $	*/
 /*	$OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.14 2024/02/09 18:39:52 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.15 2024/03/06 20:02:24 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_if_vmx.h"
@@ -3288,7 +3288,7 @@ vmxnet3_select_txqueue(struct ifnet *ifp
 	sc = ifp->if_softc;
 	cpuid = cpu_index(curcpu());
 	/*
-	 * Furure work
+	 * Future work
 	 * We should select txqueue to even up the load even if ncpu is
 	 * different from sc->vmx_ntxqueues. Currently, the load is not
 	 * even, that is, when ncpu is six and ntxqueues is four, the load
@@ -3606,7 +3606,7 @@ vmxnet3_if_link_status(struct vmxnet3_so
  * check vmx(4) state by VMXNET3_CMD and update ifp->if_baudrate
  *   returns
  *   - true:  link up
- *   - flase: link down
+ *   - false: link down
  */
 static bool
 vmxnet3_cmd_link_status(struct ifnet *ifp)



CVS commit: src/sys

2024-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Mar  6 20:02:24 UTC 2024

Modified Files:
src/sys/arch/shark/shark: scr.c
src/sys/dev/pci: if_vmx.c

Log Message:
Fix few typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/shark/shark/scr.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/if_vmx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2024-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Mar  6 19:48:53 UTC 2024

Modified Files:
src/sys/arch/mipsco/stand/common: boot.c
src/sys/arch/pmax/stand/common: boot.c

Log Message:
s/lader/loader/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/mipsco/stand/common/boot.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/pmax/stand/common/boot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mipsco/stand/common/boot.c
diff -u src/sys/arch/mipsco/stand/common/boot.c:1.10 src/sys/arch/mipsco/stand/common/boot.c:1.11
--- src/sys/arch/mipsco/stand/common/boot.c:1.10	Fri Feb 14 16:04:44 2014
+++ src/sys/arch/mipsco/stand/common/boot.c	Wed Mar  6 19:48:53 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot.c,v 1.10 2014/02/14 16:04:44 christos Exp $	*/
+/*	$NetBSD: boot.c,v 1.11 2024/03/06 19:48:53 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@ static char *devsplit(char *, char *);
 int main(int, char **);
 
 /*
- * This gets arguments from the first stage boot lader, calls PROM routines
+ * This gets arguments from the first stage boot loader, calls PROM routines
  * to open and load the program to boot, and then transfers execution to
  * that new program.
  */

Index: src/sys/arch/pmax/stand/common/boot.c
diff -u src/sys/arch/pmax/stand/common/boot.c:1.19 src/sys/arch/pmax/stand/common/boot.c:1.20
--- src/sys/arch/pmax/stand/common/boot.c:1.19	Sat Jan 22 19:19:21 2011
+++ src/sys/arch/pmax/stand/common/boot.c	Wed Mar  6 19:48:53 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot.c,v 1.19 2011/01/22 19:19:21 joerg Exp $	*/
+/*	$NetBSD: boot.c,v 1.20 2024/03/06 19:48:53 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@ static char *devname(char *);
 int main(int, char **);
 
 /*
- * This gets arguments from the first stage boot lader, calls PROM routines
+ * This gets arguments from the first stage boot loader, calls PROM routines
  * to open and load the program to boot, and then transfers execution to
  * that new program.
  *



CVS commit: src/sys/arch

2024-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Mar  6 19:48:53 UTC 2024

Modified Files:
src/sys/arch/mipsco/stand/common: boot.c
src/sys/arch/pmax/stand/common: boot.c

Log Message:
s/lader/loader/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/mipsco/stand/common/boot.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/pmax/stand/common/boot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2024-03-05 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar  5 20:58:05 UTC 2024

Modified Files:
src/sys/arch/mac68k/dev: adb_direct.c
src/sys/arch/macppc/dev: adb_direct.c
src/sys/arch/x86/x86: intr.c

Log Message:
Remove duplicate "when" word in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/mac68k/dev/adb_direct.c
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/macppc/dev/adb_direct.c
cvs rdiff -u -r1.166 -r1.167 src/sys/arch/x86/x86/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2024-03-05 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar  5 20:58:05 UTC 2024

Modified Files:
src/sys/arch/mac68k/dev: adb_direct.c
src/sys/arch/macppc/dev: adb_direct.c
src/sys/arch/x86/x86: intr.c

Log Message:
Remove duplicate "when" word in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/mac68k/dev/adb_direct.c
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/macppc/dev/adb_direct.c
cvs rdiff -u -r1.166 -r1.167 src/sys/arch/x86/x86/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/dev/adb_direct.c
diff -u src/sys/arch/mac68k/dev/adb_direct.c:1.71 src/sys/arch/mac68k/dev/adb_direct.c:1.72
--- src/sys/arch/mac68k/dev/adb_direct.c:1.71	Wed Feb 28 13:05:39 2024
+++ src/sys/arch/mac68k/dev/adb_direct.c	Tue Mar  5 20:58:05 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_direct.c,v 1.71 2024/02/28 13:05:39 thorpej Exp $	*/
+/*	$NetBSD: adb_direct.c,v 1.72 2024/03/05 20:58:05 andvar Exp $	*/
 
 /* From: adb_direct.c 2.02 4/18/97 jpw */
 
@@ -62,7 +62,7 @@
 #ifdef __NetBSD__
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb_direct.c,v 1.71 2024/02/28 13:05:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_direct.c,v 1.72 2024/03/05 20:58:05 andvar Exp $");
 
 #include "opt_adb.h"
 
@@ -394,7 +394,7 @@ adb_cuda_tickle(void)
 }
 
 /*
- * called when when an adb interrupt happens
+ * called when an adb interrupt happens
  *
  * Cuda version of adb_intr
  * TO DO: do we want to add some calls to intr_dispatch() here to
@@ -1208,7 +1208,7 @@ adb_guess_next_device(void)
 
 
 /*
- * Called when when an adb interrupt happens.
+ * Called when an adb interrupt happens.
  * This routine simply transfers control over to the appropriate
  * code for the machine we are running on.
  */
@@ -1241,7 +1241,7 @@ adb_intr(void *arg)
 
 
 /*
- * called when when an adb interrupt happens
+ * called when an adb interrupt happens
  *
  * IIsi version of adb_intr
  *

Index: src/sys/arch/macppc/dev/adb_direct.c
diff -u src/sys/arch/macppc/dev/adb_direct.c:1.45 src/sys/arch/macppc/dev/adb_direct.c:1.46
--- src/sys/arch/macppc/dev/adb_direct.c:1.45	Thu Sep 21 09:31:49 2023
+++ src/sys/arch/macppc/dev/adb_direct.c	Tue Mar  5 20:58:05 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_direct.c,v 1.45 2023/09/21 09:31:49 msaitoh Exp $	*/
+/*	$NetBSD: adb_direct.c,v 1.46 2024/03/05 20:58:05 andvar Exp $	*/
 
 /* From: adb_direct.c 2.02 4/18/97 jpw */
 
@@ -60,7 +60,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb_direct.c,v 1.45 2023/09/21 09:31:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_direct.c,v 1.46 2024/03/05 20:58:05 andvar Exp $");
 
 #include 
 #include 
@@ -319,7 +319,7 @@ adb_cuda_tickle(void)
 }
 
 /*
- * called when when an adb interrupt happens
+ * called when an adb interrupt happens
  *
  * Cuda version of adb_intr
  * TO DO: do we want to add some calls to intr_dispatch() here to

Index: src/sys/arch/x86/x86/intr.c
diff -u src/sys/arch/x86/x86/intr.c:1.166 src/sys/arch/x86/x86/intr.c:1.167
--- src/sys/arch/x86/x86/intr.c:1.166	Wed Nov 29 11:40:37 2023
+++ src/sys/arch/x86/x86/intr.c	Tue Mar  5 20:58:05 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.c,v 1.166 2023/11/29 11:40:37 mlelstv Exp $	*/
+/*	$NetBSD: intr.c,v 1.167 2024/03/05 20:58:05 andvar Exp $	*/
 
 /*
  * Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.166 2023/11/29 11:40:37 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.167 2024/03/05 20:58:05 andvar Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -1056,7 +1056,7 @@ intr_mask_xcall(void *arg1, void *arg2)
 			 * For level-sensitive interrupts, the hardware
 			 * will let us know.  For everything else, we
 			 * need to explicitly handle interrupts that
-			 * happened when when the source was masked.
+			 * happened when the source was masked.
 			 */
 			const uint64_t bit = (1U << ih->ih_slot);
 			if (ci->ci_imasked & bit) {



CVS commit: src/sys/secmodel/suser

2024-03-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar  1 22:01:03 UTC 2024

Modified Files:
src/sys/secmodel/suser: secmodel_suser.c

Log Message:
s/securlevel/securelevel/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/secmodel/suser/secmodel_suser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/secmodel/suser/secmodel_suser.c
diff -u src/sys/secmodel/suser/secmodel_suser.c:1.57 src/sys/secmodel/suser/secmodel_suser.c:1.58
--- src/sys/secmodel/suser/secmodel_suser.c:1.57	Thu Jan  5 18:29:45 2023
+++ src/sys/secmodel/suser/secmodel_suser.c	Fri Mar  1 22:01:03 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_suser.c,v 1.57 2023/01/05 18:29:45 jakllsch Exp $ */
+/* $NetBSD: secmodel_suser.c,v 1.58 2024/03/01 22:01:03 andvar Exp $ */
 /*-
  * Copyright (c) 2006 Elad Efrat 
  * All rights reserved.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: secmodel_suser.c,v 1.57 2023/01/05 18:29:45 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_suser.c,v 1.58 2024/03/01 22:01:03 andvar Exp $");
 
 #include 
 #include 
@@ -922,7 +922,7 @@ secmodel_suser_device_cb(kauth_cred_t cr
 
 	case KAUTH_DEVICE_GPIO_PINSET:
 		/*
-		 * root can access gpio pins, secmodel_securlevel can veto
+		 * root can access gpio pins, secmodel_securelevel can veto
 		 * this decision.
 		 */
 		if (isroot)



CVS commit: src/sys/secmodel/suser

2024-03-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Mar  1 22:01:03 UTC 2024

Modified Files:
src/sys/secmodel/suser: secmodel_suser.c

Log Message:
s/securlevel/securelevel/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/secmodel/suser/secmodel_suser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2024-02-29 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Feb 29 22:02:41 UTC 2024

Modified Files:
src/sys/dev/ic: mpc106reg.h

Log Message:
Fix couple typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/mpc106reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/mpc106reg.h
diff -u src/sys/dev/ic/mpc106reg.h:1.4 src/sys/dev/ic/mpc106reg.h:1.5
--- src/sys/dev/ic/mpc106reg.h:1.4	Mon Apr 28 20:23:50 2008
+++ src/sys/dev/ic/mpc106reg.h	Thu Feb 29 22:02:41 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: mpc106reg.h,v 1.4 2008/04/28 20:23:50 martin Exp $	*/
+/*	$NetBSD: mpc106reg.h,v 1.5 2024/02/29 22:02:41 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2001,2007 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
 	/* must be read with MPC106_PICR1_EXT_L2_EN :
 	 * L2_EN	L2_MP	Meaning
 	 * 0		00	Uniprocessor/none
-	 * 0		01	internal conrol/write-through
+	 * 0		01	internal control/write-through
 	 * 0		10	internal control/write-back
 	 * 0		11	Multiproc/none
 	 * 1		00	Uniprocessor/external L2
@@ -185,7 +185,7 @@
 #define  MPC106_MCRR2_EXT_ECM_ECC_EN	__BIT(18) /* ext. ECM ECC enable */
 #define  MPC106_MCRR2_ECC_EN	__BIT(17)	/* ECC enable */
 #define  MPC106_MCRR2_EDO	__BIT(16)	/* EDO enable */
-#define  MPC106_MCRR2_REFINT	__BITS(15,2)	/* refreash interval */
+#define  MPC106_MCRR2_REFINT	__BITS(15,2)	/* refresh interval */
 #define  MPC106_MCRR2_BUFMODE	__BIT(1)	/* buffer mode */
 #define  MPC106_MCRR2_RMW_PAR	__BIT(0)	/* RMW parity enable */
 #define	MPC106_MCCR3		0xf8	/* Memory control configuration 3 */



CVS commit: src/sys/dev/ic

2024-02-29 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Feb 29 22:02:41 UTC 2024

Modified Files:
src/sys/dev/ic: mpc106reg.h

Log Message:
Fix couple typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/mpc106reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hpc

2024-02-29 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Feb 29 22:01:58 UTC 2024

Modified Files:
src/sys/dev/hpc: hpcfb.c

Log Message:
s/hpcfb_refres_screen/hpcfb_refresh_screen/ in debug message.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/hpc/hpcfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hpc/hpcfb.c
diff -u src/sys/dev/hpc/hpcfb.c:1.65 src/sys/dev/hpc/hpcfb.c:1.66
--- src/sys/dev/hpc/hpcfb.c:1.65	Sun Dec 19 21:15:28 2021
+++ src/sys/dev/hpc/hpcfb.c	Thu Feb 29 22:01:57 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpcfb.c,v 1.65 2021/12/19 21:15:28 andvar Exp $	*/
+/*	$NetBSD: hpcfb.c,v 1.66 2024/02/29 22:01:57 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1999
@@ -43,7 +43,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.65 2021/12/19 21:15:28 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.66 2024/02/29 22:01:57 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_hpcfb.h"
@@ -695,7 +695,7 @@ hpcfb_refresh_screen(struct hpcfb_softc 
 	struct hpcfb_devconfig *dc = sc->sc_dc;
 	int x, y;
 
-	DPRINTF(("hpcfb_refres_screen()\n"));
+	DPRINTF(("hpcfb_refresh_screen()\n"));
 	if (dc == NULL)
 		return;
 



CVS commit: src/sys/dev/hpc

2024-02-29 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Feb 29 22:01:58 UTC 2024

Modified Files:
src/sys/dev/hpc: hpcfb.c

Log Message:
s/hpcfb_refres_screen/hpcfb_refresh_screen/ in debug message.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/hpc/hpcfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2024-02-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Feb 26 20:20:01 UTC 2024

Modified Files:
src/sys/arch/powerpc/include/booke: etsecreg.h
src/sys/dev/mii: makphyreg.h

Log Message:
s/Transmi /Transmit / in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/powerpc/include/booke/etsecreg.h
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/mii/makphyreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/include/booke/etsecreg.h
diff -u src/sys/arch/powerpc/include/booke/etsecreg.h:1.10 src/sys/arch/powerpc/include/booke/etsecreg.h:1.11
--- src/sys/arch/powerpc/include/booke/etsecreg.h:1.10	Wed May 11 14:58:00 2022
+++ src/sys/arch/powerpc/include/booke/etsecreg.h	Mon Feb 26 20:20:01 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: etsecreg.h,v 1.10 2022/05/11 14:58:00 andvar Exp $	*/
+/*	$NetBSD: etsecreg.h,v 1.11 2024/02/26 20:20:01 andvar Exp $	*/
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -174,7 +174,7 @@ struct rxfcb {
 #define	DMACTRL_TBDSEN	__PPCBIT(25)	/* TxBD Data Snoop enable */
 #define	DMACTRL_GRS	__PPCBIT(27)	/* graceful receive stop */
 #define	DMACTRL_GTS	__PPCBIT(28)	/* graceful transmit stop */
-#define	DMACTRL_TOD	__PPCBIT(29)	/* Transmi On Demand for TxBD ring 0 */
+#define	DMACTRL_TOD	__PPCBIT(29)	/* Transmit On Demand for TxBD ring 0 */
 #define	DMACTRL_WWR	__PPCBIT(30)	/* Write With Response */
 #define	DMACTRL_WOP	__PPCBIT(31)	/* Wait or pool for TxBD ring 0 */
 #define	DMACTRL_DEFAULT	(DMACTRL_WOP|DMACTRL_WWR|DMACTRL_TDSEN|DMACTRL_TBDSEN)

Index: src/sys/dev/mii/makphyreg.h
diff -u src/sys/dev/mii/makphyreg.h:1.11 src/sys/dev/mii/makphyreg.h:1.12
--- src/sys/dev/mii/makphyreg.h:1.11	Mon Aug  3 07:25:59 2020
+++ src/sys/dev/mii/makphyreg.h	Mon Feb 26 20:20:01 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: makphyreg.h,v 1.11 2020/08/03 07:25:59 msaitoh Exp $	*/
+/*	$NetBSD: makphyreg.h,v 1.12 2024/02/26 20:20:01 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
 
 /* 88E1112 page 2 */
 #define	MAKPHY_MSCR		0x10	/* MAC specific control register */
-#define	MSCR_TX_FIFODEPTH	0xc000	/* Transmi FIFO Depth */
+#define	MSCR_TX_FIFODEPTH	0xc000	/* Transmit FIFO Depth */
 #define	MSCR_RX_FIFODEPTH	0x3000	/* Receive FIFO Depth */
 #define	MSCR_AUTOPREF_MASK	0x0c00	/* Autoselect preferred media mask */
 #define	MSCR_AUTOPREF_NO	0x	/*  No preference */



CVS commit: src/sys

2024-02-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Feb 26 20:20:01 UTC 2024

Modified Files:
src/sys/arch/powerpc/include/booke: etsecreg.h
src/sys/dev/mii: makphyreg.h

Log Message:
s/Transmi /Transmit / in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/powerpc/include/booke/etsecreg.h
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/mii/makphyreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2024-02-25 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 25 18:27:54 UTC 2024

Modified Files:
src/sys/arch/x86/x86: lapic.c

Log Message:
s/asynchronious/asynchronous/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/arch/x86/x86/lapic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/lapic.c
diff -u src/sys/arch/x86/x86/lapic.c:1.89 src/sys/arch/x86/x86/lapic.c:1.90
--- src/sys/arch/x86/x86/lapic.c:1.89	Wed Sep  7 00:40:19 2022
+++ src/sys/arch/x86/x86/lapic.c	Sun Feb 25 18:27:54 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: lapic.c,v 1.89 2022/09/07 00:40:19 knakahara Exp $	*/
+/*	$NetBSD: lapic.c,v 1.90 2024/02/25 18:27:54 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2008, 2020 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.89 2022/09/07 00:40:19 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.90 2024/02/25 18:27:54 andvar Exp $");
 
 #include "acpica.h"
 #include "ioapic.h"
@@ -534,7 +534,7 @@ lapic_get_timecount(struct timecounter *
 	 *
 	 * If the current tick is almost the Initial Counter, explicitly
 	 * check for the pending interrupt bit as the interrupt delivery
-	 * could be asynchronious and compensate as well.
+	 * could be asynchronous and compensate as well.
 	 *
 	 * This can't be done without splhigh() as the calling code might
 	 * have masked the clockinterrupt already.



CVS commit: src/sys/arch/x86/x86

2024-02-25 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 25 18:27:54 UTC 2024

Modified Files:
src/sys/arch/x86/x86: lapic.c

Log Message:
s/asynchronious/asynchronous/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/arch/x86/x86/lapic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/xscale

2024-02-24 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Feb 24 12:04:16 UTC 2024

Modified Files:
src/sys/arch/arm/xscale: pxa2x0_rtc.c

Log Message:
Declare dt variable in PXARTC_DEBUG guarded blocks, since declarations were
removed in general one (likely as unused).

Fix dt.dt_year format specifier from %02d to expected %02lld.

Pass ch (todr_chip_handle_t), not sc (pxartc_softc) to rtc_wristwatch_gettime().

Fixes PXARTC_DEBUG enabled build (tested on zaurus).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/xscale/pxa2x0_rtc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/xscale/pxa2x0_rtc.c
diff -u src/sys/arch/arm/xscale/pxa2x0_rtc.c:1.7 src/sys/arch/arm/xscale/pxa2x0_rtc.c:1.8
--- src/sys/arch/arm/xscale/pxa2x0_rtc.c:1.7	Thu Jan  2 22:27:15 2020
+++ src/sys/arch/arm/xscale/pxa2x0_rtc.c	Sat Feb 24 12:04:16 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pxa2x0_rtc.c,v 1.7 2020/01/02 22:27:15 thorpej Exp $	*/
+/*	$NetBSD: pxa2x0_rtc.c,v 1.8 2024/02/24 12:04:16 andvar Exp $	*/
 
 /*
  * Copyright (c) 2007 NONAKA Kimihiro 
@@ -22,7 +22,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_rtc.c,v 1.7 2020/01/02 22:27:15 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_rtc.c,v 1.8 2024/02/24 12:04:16 andvar Exp $");
 
 #include 
 #include 
@@ -123,10 +123,11 @@ pxartc_todr_gettime(todr_chip_handle_t c
 	tv->tv_sec = bus_space_read_4(sc->sc_iot, sc->sc_ioh, RTC_RCNR);
 	tv->tv_usec = 0;
 #ifdef PXARTC_DEBUG
+	struct clock_ymdhms dt;
 	DPRINTF(("%s: RCNR = %08llx\n", device_xname(sc->sc_dev),
 	tv->tv_sec));
 	clock_secs_to_ymdhms(tv->tv_sec, );
-	DPRINTF(("%s: %02d/%02d/%02d %02d:%02d:%02d\n",
+	DPRINTF(("%s: %02lld/%02d/%02d %02d:%02d:%02d\n",
 	device_xname(sc->sc_dev),
 	dt.dt_year, dt.dt_mon, dt.dt_day,
 	dt.dt_hour, dt.dt_min, dt.dt_sec));
@@ -140,10 +141,11 @@ pxartc_todr_settime(todr_chip_handle_t c
 	struct pxartc_softc *sc = ch->cookie;
 
 #ifdef PXARTC_DEBUG
+	struct clock_ymdhms dt;
 	DPRINTF(("%s: RCNR = %08llx\n", device_xname(sc->sc_dev),
 	tv->tv_sec));
 	clock_secs_to_ymdhms(tv->tv_sec, );
-	DPRINTF(("%s: %02d/%02d/%02d %02d:%02d:%02d\n",
+	DPRINTF(("%s: %02lld/%02d/%02d %02d:%02d:%02d\n",
 	device_xname(sc->sc_dev),
 	dt.dt_year, dt.dt_mon, dt.dt_day,
 	dt.dt_hour, dt.dt_min, dt.dt_sec));
@@ -157,7 +159,7 @@ pxartc_todr_settime(todr_chip_handle_t c
 		DPRINTF(("%s: new RCNR = %08x\n", device_xname(sc->sc_dev),
 		cntr));
 		clock_secs_to_ymdhms(cntr, );
-		DPRINTF(("%s: %02d/%02d/%02d %02d:%02d:%02d\n",
+		DPRINTF(("%s: %02lld/%02d/%02d %02d:%02d:%02d\n",
 		device_xname(sc->sc_dev),
 		dt.dt_year, dt.dt_mon, dt.dt_day,
 		dt.dt_hour, dt.dt_min, dt.dt_sec));
@@ -191,7 +193,7 @@ pxartc_wristwatch_gettime(todr_chip_hand
 	dt->dt_mon = (yearr >> RYCR_MONTH_SHIFT) & RYCR_MONTH_MASK;
 	dt->dt_year = (yearr >> RYCR_YEAR_SHIFT) & RYCR_YEAR_MASK;
 
-	DPRINTF(("%s: %02d/%02d/%02d %02d:%02d:%02d\n",
+	DPRINTF(("%s: %02lld/%02d/%02d %02d:%02d:%02d\n",
 	device_xname(sc->sc_dev),
 	dt->dt_year, dt->dt_mon, dt->dt_day,
 	dt->dt_hour, dt->dt_min, dt->dt_sec));
@@ -210,7 +212,7 @@ pxartc_wristwatch_settime(todr_chip_hand
 	DPRINTF(("%s: pxartc_wristwatch_settime()\n",
 		 device_xname(sc->sc_dev)));
 
-	DPRINTF(("%s: %02d/%02d/%02d %02d:%02d:%02d\n",
+	DPRINTF(("%s: %02lld/%02d/%02d %02d:%02d:%02d\n",
 	device_xname(sc->sc_dev),
 	dt->dt_year, dt->dt_mon, dt->dt_day,
 	dt->dt_hour, dt->dt_min, dt->dt_sec));
@@ -242,7 +244,7 @@ pxartc_wristwatch_settime(todr_chip_hand
 #ifdef PXARTC_DEBUG
 	{
 		struct clock_ymdhms dummy;
-		pxartc_wristwatch_gettime(sc, );
+		pxartc_wristwatch_gettime(ch, );
 	}
 #endif
 



CVS commit: src/sys/arch/arm/xscale

2024-02-24 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Feb 24 12:04:16 UTC 2024

Modified Files:
src/sys/arch/arm/xscale: pxa2x0_rtc.c

Log Message:
Declare dt variable in PXARTC_DEBUG guarded blocks, since declarations were
removed in general one (likely as unused).

Fix dt.dt_year format specifier from %02d to expected %02lld.

Pass ch (todr_chip_handle_t), not sc (pxartc_softc) to rtc_wristwatch_gettime().

Fixes PXARTC_DEBUG enabled build (tested on zaurus).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/xscale/pxa2x0_rtc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm/conf

2024-02-24 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Feb 24 08:56:07 UTC 2024

Modified Files:
src/sys/arch/evbarm/conf: README.evbarm

Log Message:
Remove OMAP5EVM kernel config from README.evbarm, it was retired a while ago.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/evbarm/conf/README.evbarm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/conf/README.evbarm
diff -u src/sys/arch/evbarm/conf/README.evbarm:1.39 src/sys/arch/evbarm/conf/README.evbarm:1.40
--- src/sys/arch/evbarm/conf/README.evbarm:1.39	Sat Oct 29 13:24:35 2022
+++ src/sys/arch/evbarm/conf/README.evbarm	Sat Feb 24 08:56:07 2024
@@ -1,4 +1,4 @@
-$NetBSD: README.evbarm,v 1.39 2022/10/29 13:24:35 jmcneill Exp $
+$NetBSD: README.evbarm,v 1.40 2024/02/24 08:56:07 andvar Exp $
 
 config		date		boards
 ---
@@ -39,7 +39,6 @@ MV2120		2011/07/20	HP Media Vault MV2011
 NAPPI		2002/07/15	Netwise APlication Platform Board
 NETWALKER	2010/11/13	Sharp NetWalker
 NSLU2		2006/02/28	Linksys NSLU2 (a.k.a. "Slug")
-OMAP5EVM	2013/07/16	TI OMAP 5 based boards
 OPENBLOCKS_A6	2012/08/01	Plat'Home. OpenBlockS A6
 OPENBLOCKS_AX3	2013/09/30	Plat'Home. OpenBlockS AX3
 OPENRD		2012/08/10	open-rd.org Marvell Orion board



CVS commit: src/sys/arch/evbarm/conf

2024-02-24 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Feb 24 08:56:07 UTC 2024

Modified Files:
src/sys/arch/evbarm/conf: README.evbarm

Log Message:
Remove OMAP5EVM kernel config from README.evbarm, it was retired a while ago.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/evbarm/conf/README.evbarm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2024-02-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Feb 23 22:10:40 UTC 2024

Modified Files:
src/sys/arch/amd64/conf: files.amd64
src/sys/arch/i386/conf: files.i386
src/sys/arch/xen/conf: files.compat

Log Message:
s/optionms/options/ in copy-pasted comment.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/arch/amd64/conf/files.amd64
cvs rdiff -u -r1.407 -r1.408 src/sys/arch/i386/conf/files.i386
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/xen/conf/files.compat

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/conf/files.amd64
diff -u src/sys/arch/amd64/conf/files.amd64:1.122 src/sys/arch/amd64/conf/files.amd64:1.123
--- src/sys/arch/amd64/conf/files.amd64:1.122	Tue Dec  5 16:32:38 2023
+++ src/sys/arch/amd64/conf/files.amd64	Fri Feb 23 22:10:39 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: files.amd64,v 1.122 2023/12/05 16:32:38 thorpej Exp $
+#	$NetBSD: files.amd64,v 1.123 2024/02/23 22:10:39 andvar Exp $
 #
 # new style config file for amd64 architecture
 #
@@ -14,7 +14,7 @@ defparam		CPURESET_DELAY
 # The REAL{BASE,EXT}MEM options
 defparam opt_realmem.h	REALBASEMEM REALEXTMEM
 
-# The PHYSMEM_MAX_{SIZE,ADDR} optionms
+# The PHYSMEM_MAX_{SIZE,ADDR} options
 defparam opt_physmem.h	PHYSMEM_MAX_ADDR PHYSMEM_MAX_SIZE
 
 # Enable GCC spectre V2 mitigation options

Index: src/sys/arch/i386/conf/files.i386
diff -u src/sys/arch/i386/conf/files.i386:1.407 src/sys/arch/i386/conf/files.i386:1.408
--- src/sys/arch/i386/conf/files.i386:1.407	Wed Oct 21 13:31:51 2020
+++ src/sys/arch/i386/conf/files.i386	Fri Feb 23 22:10:39 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: files.i386,v 1.407 2020/10/21 13:31:51 christos Exp $
+#	$NetBSD: files.i386,v 1.408 2024/02/23 22:10:39 andvar Exp $
 #
 # new style config file for i386 architecture
 #
@@ -25,7 +25,7 @@ defflag	opt_xserver.h	XSERVER XSERVER_DD
 # The REAL{BASE,EXT}MEM options
 defparam opt_realmem.h	REALBASEMEM REALEXTMEM
 
-# The PHYSMEM_MAX_{SIZE,ADDR} optionms
+# The PHYSMEM_MAX_{SIZE,ADDR} options
 defparam opt_physmem.h	PHYSMEM_MAX_ADDR PHYSMEM_MAX_SIZE
 
 # PCI BIOS options

Index: src/sys/arch/xen/conf/files.compat
diff -u src/sys/arch/xen/conf/files.compat:1.34 src/sys/arch/xen/conf/files.compat:1.35
--- src/sys/arch/xen/conf/files.compat:1.34	Thu Jun 23 14:32:16 2022
+++ src/sys/arch/xen/conf/files.compat	Fri Feb 23 22:10:39 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: files.compat,v 1.34 2022/06/23 14:32:16 bouyer Exp $
+#	$NetBSD: files.compat,v 1.35 2024/02/23 22:10:39 andvar Exp $
 #	NetBSD: files.x86,v 1.10 2003/10/08 17:30:00 bouyer Exp 
 
 # options for MP configuration through the MP spec
@@ -44,5 +44,5 @@ defflag	opt_via_c7temp.h		XXXVIA_CORETEM
 # Multiboot support
 defflag 	opt_multiboot.h		XXXMULTIBOOT
 
-# The PHYSMEM_MAX_{SIZE,ADDR} optionms
+# The PHYSMEM_MAX_{SIZE,ADDR} options
 defparam opt_physmem.h	XXXPHYSMEM_MAX_ADDR XXXPHYSMEM_MAX_SIZE



CVS commit: src/sys/arch

2024-02-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Feb 23 22:10:40 UTC 2024

Modified Files:
src/sys/arch/amd64/conf: files.amd64
src/sys/arch/i386/conf: files.i386
src/sys/arch/xen/conf: files.compat

Log Message:
s/optionms/options/ in copy-pasted comment.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/arch/amd64/conf/files.amd64
cvs rdiff -u -r1.407 -r1.408 src/sys/arch/i386/conf/files.i386
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/xen/conf/files.compat

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2024-02-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Feb 23 22:03:45 UTC 2024

Modified Files:
src/sys/dev/pci: ubsec.c

Log Message:
s/opetions/options/ in hw.ubsec node description.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/pci/ubsec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ubsec.c
diff -u src/sys/dev/pci/ubsec.c:1.64 src/sys/dev/pci/ubsec.c:1.65
--- src/sys/dev/pci/ubsec.c:1.64	Fri Aug  4 07:38:53 2023
+++ src/sys/dev/pci/ubsec.c	Fri Feb 23 22:03:45 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: ubsec.c,v 1.64 2023/08/04 07:38:53 riastradh Exp $	*/
+/*	$NetBSD: ubsec.c,v 1.65 2024/02/23 22:03:45 andvar Exp $	*/
 /* $FreeBSD: src/sys/dev/ubsec/ubsec.c,v 1.6.2.6 2003/01/23 21:06:43 sam Exp $ */
 /*	$OpenBSD: ubsec.c,v 1.143 2009/03/27 13:31:30 reyk Exp$	*/
 
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ubsec.c,v 1.64 2023/08/04 07:38:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ubsec.c,v 1.65 2024/02/23 22:03:45 andvar Exp $");
 
 #undef UBSEC_DEBUG
 
@@ -609,7 +609,7 @@ SYSCTL_SETUP(ubsec_sysctl_init, "ubsec s
 	sysctl_createv(clog, 0, NULL, ,
 		CTLFLAG_PERMANENT,
 		CTLTYPE_NODE, "ubsec",
-		SYSCTL_DESCR("ubsec opetions"),
+		SYSCTL_DESCR("ubsec options"),
 		NULL, 0, NULL, 0,
 		CTL_HW, CTL_CREATE, CTL_EOL);
 	sysctl_createv(clog, 0, , NULL,



CVS commit: src/sys/dev/pci

2024-02-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Feb 23 22:03:45 UTC 2024

Modified Files:
src/sys/dev/pci: ubsec.c

Log Message:
s/opetions/options/ in hw.ubsec node description.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/pci/ubsec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm

2024-02-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Feb 22 23:16:10 UTC 2024

Modified Files:
src/sys/arch/evbarm/kobo: kobo_usb.c
src/sys/arch/evbarm/netwalker: netwalker_usb.c

Log Message:
sc_init_md_hook expects two params since interface change in imxusbvar.h rev 1.7
thus adjust kobo_usb_init() and netwalker_usb_init() functions accordingly.

Fixes build for KOBO and NETWALKER(_MD) kernel configs.
Needs pullup to netbsd-10.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/kobo/kobo_usb.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbarm/netwalker/netwalker_usb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm

2024-02-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Feb 22 23:16:10 UTC 2024

Modified Files:
src/sys/arch/evbarm/kobo: kobo_usb.c
src/sys/arch/evbarm/netwalker: netwalker_usb.c

Log Message:
sc_init_md_hook expects two params since interface change in imxusbvar.h rev 1.7
thus adjust kobo_usb_init() and netwalker_usb_init() functions accordingly.

Fixes build for KOBO and NETWALKER(_MD) kernel configs.
Needs pullup to netbsd-10.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/kobo/kobo_usb.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbarm/netwalker/netwalker_usb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/kobo/kobo_usb.c
diff -u src/sys/arch/evbarm/kobo/kobo_usb.c:1.3 src/sys/arch/evbarm/kobo/kobo_usb.c:1.4
--- src/sys/arch/evbarm/kobo/kobo_usb.c:1.3	Wed Jul 24 11:20:55 2019
+++ src/sys/arch/evbarm/kobo/kobo_usb.c	Thu Feb 22 23:16:10 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: kobo_usb.c,v 1.3 2019/07/24 11:20:55 hkenken Exp $	*/
+/*	$NetBSD: kobo_usb.c,v 1.4 2024/02/22 23:16:10 andvar Exp $	*/
 
 /*
  * Copyright (c) 2012  Genetec Corporation.  All rights reserved.
@@ -27,7 +27,7 @@
  *
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kobo_usb.c,v 1.3 2019/07/24 11:20:55 hkenken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobo_usb.c,v 1.4 2024/02/22 23:16:10 andvar Exp $");
 
 #include "opt_imx.h"
 
@@ -64,7 +64,7 @@ struct kobo_usbc_softc {
 
 static int	imxusbc_match(device_t, cfdata_t, void *);
 static void	imxusbc_attach(device_t, device_t, void *);
-static void	kobo_usb_init(struct imxehci_softc *);
+static void	kobo_usb_init(struct imxehci_softc *, uintptr_t);
 
 static void	init_otg(struct imxehci_softc *);
 static void	init_h1(struct imxehci_softc *);
@@ -105,7 +105,7 @@ imxusbc_attach(device_t parent, device_t
 }
 
 static void
-kobo_usb_init(struct imxehci_softc *sc)
+kobo_usb_init(struct imxehci_softc *sc, uintptr_t data)
 {
 	switch (sc->sc_unit) {
 	case 0:	/* OTG controller */

Index: src/sys/arch/evbarm/netwalker/netwalker_usb.c
diff -u src/sys/arch/evbarm/netwalker/netwalker_usb.c:1.8 src/sys/arch/evbarm/netwalker/netwalker_usb.c:1.9
--- src/sys/arch/evbarm/netwalker/netwalker_usb.c:1.8	Wed Jan 15 10:25:47 2020
+++ src/sys/arch/evbarm/netwalker/netwalker_usb.c	Thu Feb 22 23:16:10 2024
@@ -25,7 +25,7 @@
  *
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: netwalker_usb.c,v 1.8 2020/01/15 10:25:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netwalker_usb.c,v 1.9 2024/02/22 23:16:10 andvar Exp $");
 
 #include "locators.h"
 
@@ -61,7 +61,7 @@ struct netwalker_usbc_softc {
 
 static int	imxusbc_match(device_t, cfdata_t, void *);
 static void	imxusbc_attach(device_t, device_t, void *);
-static void	netwalker_usb_init(struct imxehci_softc *);
+static void	netwalker_usb_init(struct imxehci_softc *, uintptr_t);
 
 static void	init_otg(struct imxehci_softc *);
 static void	init_h1(struct imxehci_softc *);
@@ -103,7 +103,7 @@ imxusbc_attach(device_t parent, device_t
 }
 
 static void
-netwalker_usb_init(struct imxehci_softc *sc)
+netwalker_usb_init(struct imxehci_softc *sc, uintptr_t data)
 {
 	switch (sc->sc_unit) {
 	case 0:	/* OTG controller */



  1   2   3   4   5   6   7   8   9   10   >