CVS commit: src/sys/dev/pci

2024-02-11 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Mon Feb 12 02:28:28 UTC 2024

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

Log Message:
Fix typo in error message.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/pci/ld_virtio.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/ld_virtio.c
diff -u src/sys/dev/pci/ld_virtio.c:1.32 src/sys/dev/pci/ld_virtio.c:1.33
--- src/sys/dev/pci/ld_virtio.c:1.32	Thu Mar 23 03:55:11 2023
+++ src/sys/dev/pci/ld_virtio.c	Mon Feb 12 02:28:28 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: ld_virtio.c,v 1.32 2023/03/23 03:55:11 yamaguchi Exp $	*/
+/*	$NetBSD: ld_virtio.c,v 1.33 2024/02/12 02:28:28 isaki Exp $	*/
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.32 2023/03/23 03:55:11 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.33 2024/02/12 02:28:28 isaki Exp $");
 
 #include 
 #include 
@@ -308,7 +308,7 @@ ld_virtio_attach(device_t parent, device
 			maxxfersize = MAXPHYS;
 		} else if (maxxfersize > MAXPHYS) {
 			aprint_normal_dev(sc->sc_dev,
-			"Clip SEG_MAX from %dK to %dK\n",
+			"Clip SIZE_MAX from %dK to %dK\n",
 			maxxfersize / 1024,
 			MAXPHYS / 1024);
 			maxxfersize = MAXPHYS;



CVS commit: src/sys/dev/pci

2024-02-11 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Mon Feb 12 02:28:28 UTC 2024

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

Log Message:
Fix typo in error message.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/pci/ld_virtio.c

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



CVS commit: src/distrib/utils/embedded

2024-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:29:50 UTC 2024

Modified Files:
src/distrib/utils/embedded: mkimage

Log Message:
PR/57925: Jan-Benedict Glaw: Honor $MKREPRO_TIMESTAMP, don't embed name and
stamp in gzip.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/distrib/utils/embedded/mkimage

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

Modified files:

Index: src/distrib/utils/embedded/mkimage
diff -u src/distrib/utils/embedded/mkimage:1.79 src/distrib/utils/embedded/mkimage:1.80
--- src/distrib/utils/embedded/mkimage:1.79	Sat Jan 20 16:35:59 2024
+++ src/distrib/utils/embedded/mkimage	Sun Feb 11 12:29:50 2024
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.79 2024/01/20 21:35:59 jmcneill Exp $
+# $NetBSD: mkimage,v 1.80 2024/02/11 17:29:50 christos Exp $
 #
 # Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -190,6 +190,10 @@ do
 	*)	usage;;
 	esac
 done
+if [ -n ${MKREPRO_TIMESTAMP} ]; then
+	timestamp_opt="-T ${MKREPRO_TIMESTAMP}"
+	volume_opt=",volume_id=$((${MKREPRO_TIMESTAMP} & 0x))"
+fi
 
 shift $(( $OPTIND - 1 ))
 if [ -n "$1" ]; then
@@ -246,7 +250,7 @@ if [ -n "${msdosid}" ]; then
 	*)	fat_opt=;;
 	esac
 	${MAKEFS} -N ${release}/etc -t msdos \
-	-o "volume_label=NETBSD${fat_opt}" \
+	-o "volume_label=NETBSD${fat_opt}${volume_opt}" ${timestamp_opt} \
 	-O $((${init} / 2))m -s $((${boot} / 2))m \
 	${image} ${mnt}/boot
 fi
@@ -254,7 +258,7 @@ fi
 if [ -z "${bootonly}" ]; then
 	echo ${bar} Populating ffs filesystem ${bar}
 	${MAKEFS} -rx ${endian} -N ${release}/etc -t ffs \
-	-O ${ffsoffset} \
+	-O ${ffsoffset} ${timestamp_opt} \
 	-o d=4096,f=8192,b=65536 -b $((${extra}))m \
 	-F "$tmp/selected_sets" ${image} "${release}" "${mnt}"
 fi
@@ -276,6 +280,7 @@ if $gpt; then
 	if $gpt_hybrid; then
 		gpt_flags="-H"
 	fi
+	gpt_flags="${gpt_flags} ${timestamp_opt}"
 	initsecs=$((${init} * 1024))
 	bootsecs=$((${boot} * 1024))
 	ffsstart="$(getsectors ${ffsoffset})"
@@ -328,7 +333,7 @@ fi
 if $compress; then
 	echo ${bar} Compressing image ${bar}
 	rm -f "${image}.gz"
-	${GZIP_CMD} -9 ${image}
+	${GZIP_CMD} -n -9 ${image}
 	image="${image}.gz"
 fi
 



CVS commit: src/distrib/utils/embedded

2024-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:29:50 UTC 2024

Modified Files:
src/distrib/utils/embedded: mkimage

Log Message:
PR/57925: Jan-Benedict Glaw: Honor $MKREPRO_TIMESTAMP, don't embed name and
stamp in gzip.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/distrib/utils/embedded/mkimage

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-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:17:05 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: Makefile.evbmips.inc

Log Message:
put quotes back


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbmips/conf/Makefile.evbmips.inc

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/Makefile.evbmips.inc
diff -u src/sys/arch/evbmips/conf/Makefile.evbmips.inc:1.8 src/sys/arch/evbmips/conf/Makefile.evbmips.inc:1.9
--- src/sys/arch/evbmips/conf/Makefile.evbmips.inc:1.8	Sun Feb 11 12:13:02 2024
+++ src/sys/arch/evbmips/conf/Makefile.evbmips.inc	Sun Feb 11 12:17:05 2024
@@ -40,7 +40,7 @@ MKUBOOTIMAGEARGS+=	-e $(TEXTADDR)
 .endif
 MKUBOOTIMAGEARGS+=  -n "$(MACHINE) ${_OSRELEASE} ($(KERNEL_BUILD:T))"
 .if ${MKREPRO_TIMESTAMP:Uno} != "no"
-MKUBOOTIMAGEARGS+=	-t ${MKREPRO_TIMESTAMP}
+MKUBOOTIMAGEARGS+=	-t "${MKREPRO_TIMESTAMP}"
 .endif
 
 .if ${NEED_UBOOTIMAGE:Mgz} == "gz"



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

2024-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:17:05 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: Makefile.evbmips.inc

Log Message:
put quotes back


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbmips/conf/Makefile.evbmips.inc

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



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

2024-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:16:05 UTC 2024

Modified Files:
src/sys/arch/evbppc/conf: Makefile.obs405.inc

Log Message:
PR/57924: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for mkubootimage


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbppc/conf/Makefile.obs405.inc

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/evbppc/conf/Makefile.obs405.inc
diff -u src/sys/arch/evbppc/conf/Makefile.obs405.inc:1.13 src/sys/arch/evbppc/conf/Makefile.obs405.inc:1.14
--- src/sys/arch/evbppc/conf/Makefile.obs405.inc:1.13	Thu Jul 28 18:46:48 2016
+++ src/sys/arch/evbppc/conf/Makefile.obs405.inc	Sun Feb 11 12:16:05 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.obs405.inc,v 1.13 2016/07/28 22:46:48 maya Exp $
+#	$NetBSD: Makefile.obs405.inc,v 1.14 2024/02/11 17:16:05 christos Exp $
 
 CFLAGS+=-mcpu=405
 AFLAGS+=-mcpu=405
@@ -49,6 +49,9 @@ MKUBOOTIMAGE=		mkubootimage
 MKUBOOTIMAGEARGS=	-A powerpc -T kernel
 MKUBOOTIMAGEARGS+=	-a $(TEXTADDR)
 MKUBOOTIMAGEARGS+=	-n "NetBSD/openblocks600 ${_OSRELEASE}"
+.if ${MKREPRO_TIMESTAMP:Uno} != "no"
+MKUBOOTIMAGEARGS+=	-t "${MKREPRO_TIMESTAMP}"
+.endif
 MKUBOOTIMAGEARGS_NONE=  ${MKUBOOTIMAGEARGS} -C none
 MKUBOOTIMAGEARGS_GZ=${MKUBOOTIMAGEARGS} -C gz
 



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

2024-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:16:05 UTC 2024

Modified Files:
src/sys/arch/evbppc/conf: Makefile.obs405.inc

Log Message:
PR/57924: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for mkubootimage


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbppc/conf/Makefile.obs405.inc

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-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:13:02 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: Makefile.evbmips.inc

Log Message:
PR/57923: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for mkubootimage


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbmips/conf/Makefile.evbmips.inc

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/Makefile.evbmips.inc
diff -u src/sys/arch/evbmips/conf/Makefile.evbmips.inc:1.7 src/sys/arch/evbmips/conf/Makefile.evbmips.inc:1.8
--- src/sys/arch/evbmips/conf/Makefile.evbmips.inc:1.7	Fri Jun 26 17:56:31 2015
+++ src/sys/arch/evbmips/conf/Makefile.evbmips.inc	Sun Feb 11 12:13:02 2024
@@ -39,6 +39,9 @@ MKUBOOTIMAGEARGS+=	-E $(TEXTADDR)
 MKUBOOTIMAGEARGS+=	-e $(TEXTADDR)
 .endif
 MKUBOOTIMAGEARGS+=  -n "$(MACHINE) ${_OSRELEASE} ($(KERNEL_BUILD:T))"
+.if ${MKREPRO_TIMESTAMP:Uno} != "no"
+MKUBOOTIMAGEARGS+=	-t ${MKREPRO_TIMESTAMP}
+.endif
 
 .if ${NEED_UBOOTIMAGE:Mgz} == "gz"
 MKUBOOTIMAGEARGS+=	-C gz



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

2024-02-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 11 17:13:02 UTC 2024

Modified Files:
src/sys/arch/evbmips/conf: Makefile.evbmips.inc

Log Message:
PR/57923: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for mkubootimage


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbmips/conf/Makefile.evbmips.inc

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



CVS commit: src/sys/kern

2024-02-11 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb 11 13:01:29 UTC 2024

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
make kqfilter() behave the same for PIPE_SOCKETPAIR pipe as it does
for standard one - refuse EVFILT_WRITE if the reader is already disconnected

fixes test failure for kernel/kqueue/write/t_pipe.c on PIPE_SOCKETPAIR kernel

PR kern/55690


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/sys/kern/uipc_socket.c

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



CVS commit: src/sys/kern

2024-02-11 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb 11 13:01:29 UTC 2024

Modified Files:
src/sys/kern: uipc_socket.c

Log Message:
make kqfilter() behave the same for PIPE_SOCKETPAIR pipe as it does
for standard one - refuse EVFILT_WRITE if the reader is already disconnected

fixes test failure for kernel/kqueue/write/t_pipe.c on PIPE_SOCKETPAIR kernel

PR kern/55690


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/sys/kern/uipc_socket.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/kern/uipc_socket.c
diff -u src/sys/kern/uipc_socket.c:1.308 src/sys/kern/uipc_socket.c:1.309
--- src/sys/kern/uipc_socket.c:1.308	Sat Feb  3 19:05:14 2024
+++ src/sys/kern/uipc_socket.c	Sun Feb 11 13:01:29 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_socket.c,v 1.308 2024/02/03 19:05:14 jdolecek Exp $	*/
+/*	$NetBSD: uipc_socket.c,v 1.309 2024/02/11 13:01:29 jdolecek Exp $	*/
 
 /*
  * Copyright (c) 2002, 2007, 2008, 2009, 2023 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.308 2024/02/03 19:05:14 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.309 2024/02/11 13:01:29 jdolecek Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -81,6 +81,7 @@ __KERNEL_RCSID(0, "$NetBSD: uipc_socket.
 #include "opt_somaxkva.h"
 #include "opt_multiprocessor.h"	/* XXX */
 #include "opt_sctp.h"
+#include "opt_pipe.h"
 #endif
 
 #include 
@@ -2394,6 +2395,16 @@ soo_kqfilter(struct file *fp, struct kno
 	case EVFILT_WRITE:
 		kn->kn_fop = _filtops;
 		sb = >so_snd;
+
+#ifdef PIPE_SOCKETPAIR
+		if (so->so_state & SS_ISAPIPE) {
+			/* Other end of pipe has been closed. */
+			if (so->so_state & SS_ISDISCONNECTED) {
+sounlock(so);
+return EBADF;
+			}
+		}
+#endif
 		break;
 	case EVFILT_EMPTY:
 		kn->kn_fop = _filtops;



CVS commit: src/sys/dev/ic

2024-02-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Feb 11 12:28:20 UTC 2024

Modified Files:
src/sys/dev/ic: dwc_gmac.c

Log Message:
Fix spello in debug output


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/dev/ic/dwc_gmac.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/ic/dwc_gmac.c
diff -u src/sys/dev/ic/dwc_gmac.c:1.80 src/sys/dev/ic/dwc_gmac.c:1.81
--- src/sys/dev/ic/dwc_gmac.c:1.80	Wed Dec 20 18:09:19 2023
+++ src/sys/dev/ic/dwc_gmac.c	Sun Feb 11 12:28:20 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.80 2023/12/20 18:09:19 skrll Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.81 2024/02/11 12:28:20 skrll Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include 
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.80 2023/12/20 18:09:19 skrll Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.81 2024/02/11 12:28:20 skrll Exp $");
 
 /* #define	DWC_GMAC_DEBUG	1 */
 
@@ -1052,7 +1052,7 @@ dwc_gmac_queue(struct dwc_gmac_softc *sc
 		desc->ddesc_data = htole32(map->dm_segs[i].ds_addr);
 
 #ifdef DWC_GMAC_DEBUG
-		aprint_normal_dev(sc->sc_dev, "enqueing desc #%d data %08lx "
+		aprint_normal_dev(sc->sc_dev, "enqueuing desc #%d data %08lx "
 		"len %lu\n", sc->sc_txq.t_cur,
 		(unsigned long)map->dm_segs[i].ds_addr,
 		(unsigned long)map->dm_segs[i].ds_len);



CVS commit: src/sys/dev/ic

2024-02-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Feb 11 12:28:20 UTC 2024

Modified Files:
src/sys/dev/ic: dwc_gmac.c

Log Message:
Fix spello in debug output


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/dev/ic/dwc_gmac.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-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Feb 11 12:25:20 UTC 2024

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

Log Message:
Fix a comment. arm32 stopped using 8K pages a long time ago.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ic/dwc_gmac_var.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/dwc_gmac_var.h
diff -u src/sys/dev/ic/dwc_gmac_var.h:1.17 src/sys/dev/ic/dwc_gmac_var.h:1.18
--- src/sys/dev/ic/dwc_gmac_var.h:1.17	Sun Sep 18 18:26:53 2022
+++ src/sys/dev/ic/dwc_gmac_var.h	Sun Feb 11 12:25:20 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac_var.h,v 1.17 2022/09/18 18:26:53 thorpej Exp $ */
+/* $NetBSD: dwc_gmac_var.h,v 1.18 2024/02/11 12:25:20 skrll Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -45,12 +45,9 @@
 #endif
 
 /*
- * We could use 1024 DMA descriptors to fill up an 8k page (each is 16 byte).
- * However, on TX we probably will not need that many, and on RX we allocate
- * a full mbuf cluster for each, so secondary memory consumption will grow
- * rapidly.
- * So currently we waste half a page of dma memory and consume 512k Byte of
- * RAM for mbuf clusters.
+ * Rx and Tx Ring counts that map into single 4K page with 16byte descriptor
+ * size. For Rx a full mbuf cluster is allocated for each which consumes
+ * around 512k Byte of RAM for mbuf clusters.
  * XXX Maybe fine-tune later, or reconsider unsharing of RX/TX dmamap.
  */
 #define		AWGE_RX_RING_COUNT	256



CVS commit: src/sys/dev/ic

2024-02-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Feb 11 12:25:20 UTC 2024

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

Log Message:
Fix a comment. arm32 stopped using 8K pages a long time ago.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ic/dwc_gmac_var.h

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



CVS commit: src

2024-02-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 11 10:36:40 UTC 2024

Modified Files:
src/lib/librefuse/refuse: session.h
src/share/i18n/csmapper/KOI: KOI8-C%UCS.src UCS%KOI8-C.src
src/sys/arch/hpcmips/hpcmips: bus_space.c
src/sys/dev/adb: adb_ktm.c adb_ms.c
src/sys/dev/pcmcia: if_ray.c

Log Message:
Fix few more typos in comments and log message:
s/butoon/button/
s/BUTTOM/BOTTOM/
s/communicaiton/communication/
s/recevice/receive/
s/regiion/region/


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/librefuse/refuse/session.h
cvs rdiff -u -r1.3 -r1.4 src/share/i18n/csmapper/KOI/KOI8-C%UCS.src \
src/share/i18n/csmapper/KOI/UCS%KOI8-C.src
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/hpcmips/hpcmips/bus_space.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/adb/adb_ktm.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/adb/adb_ms.c
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/pcmcia/if_ray.c

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



CVS commit: src

2024-02-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 11 10:36:40 UTC 2024

Modified Files:
src/lib/librefuse/refuse: session.h
src/share/i18n/csmapper/KOI: KOI8-C%UCS.src UCS%KOI8-C.src
src/sys/arch/hpcmips/hpcmips: bus_space.c
src/sys/dev/adb: adb_ktm.c adb_ms.c
src/sys/dev/pcmcia: if_ray.c

Log Message:
Fix few more typos in comments and log message:
s/butoon/button/
s/BUTTOM/BOTTOM/
s/communicaiton/communication/
s/recevice/receive/
s/regiion/region/


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/librefuse/refuse/session.h
cvs rdiff -u -r1.3 -r1.4 src/share/i18n/csmapper/KOI/KOI8-C%UCS.src \
src/share/i18n/csmapper/KOI/UCS%KOI8-C.src
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/hpcmips/hpcmips/bus_space.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/adb/adb_ktm.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/adb/adb_ms.c
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/pcmcia/if_ray.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/librefuse/refuse/session.h
diff -u src/lib/librefuse/refuse/session.h:1.1 src/lib/librefuse/refuse/session.h:1.2
--- src/lib/librefuse/refuse/session.h:1.1	Sat Jan 22 07:53:06 2022
+++ src/lib/librefuse/refuse/session.h	Sun Feb 11 10:36:40 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: session.h,v 1.1 2022/01/22 07:53:06 pho Exp $ */
+/* $NetBSD: session.h,v 1.2 2024/02/11 10:36:40 andvar Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -51,7 +51,7 @@ struct fuse_session;
 /* Get a session from a fuse object. Appeared on FUSE 2.6. */
 struct fuse_session *fuse_get_session(struct fuse *f);
 
-/* Get the file descriptor for communicaiton with kernel. Appeared on
+/* Get the file descriptor for communication with kernel. Appeared on
  * FUSE 3.0. */
 int fuse_session_fd(struct fuse_session *se);
 

Index: src/share/i18n/csmapper/KOI/KOI8-C%UCS.src
diff -u src/share/i18n/csmapper/KOI/KOI8-C%UCS.src:1.3 src/share/i18n/csmapper/KOI/KOI8-C%UCS.src:1.4
--- src/share/i18n/csmapper/KOI/KOI8-C%UCS.src:1.3	Wed Mar  7 15:12:41 2007
+++ src/share/i18n/csmapper/KOI/KOI8-C%UCS.src	Sun Feb 11 10:36:40 2024
@@ -1,4 +1,4 @@
-# $NetBSD: KOI8-C%UCS.src,v 1.3 2007/03/07 15:12:41 tnozaki Exp $
+# $NetBSD: KOI8-C%UCS.src,v 1.4 2024/02/11 10:36:40 andvar Exp $
 
 TYPE		ROWCOL
 NAME		"KOI8-C/UCS"
@@ -49,7 +49,7 @@ BEGIN_MAP
 0x98 = 0x04B6		# CYRILLIC CAPITAL LETTER CHE WITH DESCENDER
 0x99 = 0x04B8		# CYRILLIC CAPITAL LETTER CHE WITH VERTICAL STROKE
 0x9A = 0x04BA		# CYRILLIC CAPITAL LETTER SHHA
-0x9B = 0x2321		# BUTTOM HALF INTEGRAL
+0x9B = 0x2321		# BOTTOM HALF INTEGRAL
 0x9C = 0x04D8		# CYRILLIC CAPITAL LETTER SCHWA
 0x9D = 0x04E2		# CYRILLIC CAPITAL LETTER I WITH MACRON
 0x9E = 0x04E8		# CYRILLIC CAPITAL LETTER BARRED O
Index: src/share/i18n/csmapper/KOI/UCS%KOI8-C.src
diff -u src/share/i18n/csmapper/KOI/UCS%KOI8-C.src:1.3 src/share/i18n/csmapper/KOI/UCS%KOI8-C.src:1.4
--- src/share/i18n/csmapper/KOI/UCS%KOI8-C.src:1.3	Wed Mar  7 15:12:41 2007
+++ src/share/i18n/csmapper/KOI/UCS%KOI8-C.src	Sun Feb 11 10:36:40 2024
@@ -1,4 +1,4 @@
-# $NetBSD: UCS%KOI8-C.src,v 1.3 2007/03/07 15:12:41 tnozaki Exp $
+# $NetBSD: UCS%KOI8-C.src,v 1.4 2024/02/11 10:36:40 andvar Exp $
 
 TYPE		ROWCOL
 NAME		"UCS/KOI8-C"
@@ -85,6 +85,6 @@ BEGIN_MAP
 0x04EE = 0x9F		# CYRILLIC CAPITAL LETTER U WITH MACRON
 0x04EF = 0x8F		# CYRILLIC SMALL LETTER U WITH MACRON
 0x2116 = 0xB0		# NUMERO SIGN
-0x2321 = 0x9B		# BUTTOM HALF INTEGRAL
+0x2321 = 0x9B		# BOTTOM HALF INTEGRAL
 0x2580 = 0x8B		# UPPER HALF BLOCK
 END_MAP

Index: src/sys/arch/hpcmips/hpcmips/bus_space.c
diff -u src/sys/arch/hpcmips/hpcmips/bus_space.c:1.34 src/sys/arch/hpcmips/hpcmips/bus_space.c:1.35
--- src/sys/arch/hpcmips/hpcmips/bus_space.c:1.34	Wed Dec 20 14:50:02 2023
+++ src/sys/arch/hpcmips/hpcmips/bus_space.c	Sun Feb 11 10:36:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus_space.c,v 1.34 2023/12/20 14:50:02 thorpej Exp $	*/
+/*	$NetBSD: bus_space.c,v 1.35 2024/02/11 10:36:40 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.34 2023/12/20 14:50:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.35 2024/02/11 10:36:40 andvar Exp $");
 
 #include 
 #include 
@@ -278,7 +278,7 @@ __bs_map(bus_space_tag_t tx, bus_addr_t 
 		if ((err = extent_alloc_region(t->extent, bpa, size, 
 		EX_NOWAIT|EX_MALLOCOK))) {
 			DPRINTF(("\tbus_space_map: "
-			"extent_alloc_regiion() failed\n"));
+			"extent_alloc_region() failed\n"));
 			return (err);
 		}
 	}

Index: src/sys/dev/adb/adb_ktm.c
diff -u src/sys/dev/adb/adb_ktm.c:1.6 src/sys/dev/adb/adb_ktm.c:1.7
--- src/sys/dev/adb/adb_ktm.c:1.6	Thu Oct  6 19:38:54 2022
+++ src/sys/dev/adb/adb_ktm.c	Sun Feb 11 10:36:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_ktm.c,v 1.6 2022/10/06 19:38:54 andvar Exp $	*/
+/*	$NetBSD: adb_ktm.c,v 1.7 2024/02/11 10:36:40 andvar 

CVS commit: src/sys/dev/i2c

2024-02-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 11 09:20:08 UTC 2024

Modified Files:
src/sys/dev/i2c: w83795g.c

Log Message:
s/Nuvaton/Nuvoton/ in log message.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/w83795g.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/i2c/w83795g.c
diff -u src/sys/dev/i2c/w83795g.c:1.5 src/sys/dev/i2c/w83795g.c:1.6
--- src/sys/dev/i2c/w83795g.c:1.5	Sat Aug  7 16:19:11 2021
+++ src/sys/dev/i2c/w83795g.c	Sun Feb 11 09:20:08 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: w83795g.c,v 1.5 2021/08/07 16:19:11 thorpej Exp $	*/
+/*	$NetBSD: w83795g.c,v 1.6 2024/02/11 09:20:08 andvar Exp $	*/
 
 /*
  * Copyright (c) 2013 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: w83795g.c,v 1.5 2021/08/07 16:19:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: w83795g.c,v 1.6 2024/02/11 09:20:08 andvar Exp $");
 
 #include 
 #include 
@@ -192,7 +192,7 @@ w83795g_attach(device_t parent, device_t
 	iic_smbus_read_byte(sc->sc_tag, sc->sc_addr, W83795G_CONFIG, , 0);
 	iic_smbus_read_byte(sc->sc_tag, sc->sc_addr, W83795G_DEVICE, , 0);
 
-	aprint_normal(": Nuvaton W83795");
+	aprint_normal(": Nuvoton W83795");
 	if (conf & CONFIG_CONFIG48)
 		aprint_normal("ADG");
 	else



CVS commit: src/sys/dev/i2c

2024-02-11 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 11 09:20:08 UTC 2024

Modified Files:
src/sys/dev/i2c: w83795g.c

Log Message:
s/Nuvaton/Nuvoton/ in log message.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/w83795g.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/riscv/conf

2024-02-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Feb 11 09:07:49 UTC 2024

Modified Files:
src/sys/arch/riscv/conf: GENERIC.common

Log Message:
Turn off HEARTBEAT


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/riscv/conf/GENERIC.common

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



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

2024-02-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Feb 11 09:07:49 UTC 2024

Modified Files:
src/sys/arch/riscv/conf: GENERIC.common

Log Message:
Turn off HEARTBEAT


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/riscv/conf/GENERIC.common

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/riscv/conf/GENERIC.common
diff -u src/sys/arch/riscv/conf/GENERIC.common:1.10 src/sys/arch/riscv/conf/GENERIC.common:1.11
--- src/sys/arch/riscv/conf/GENERIC.common:1.10	Mon Jan 29 18:27:14 2024
+++ src/sys/arch/riscv/conf/GENERIC.common	Sun Feb 11 09:07:49 2024
@@ -1,5 +1,5 @@
 #
-#	$NetBSD: GENERIC.common,v 1.10 2024/01/29 18:27:14 christos Exp $
+#	$NetBSD: GENERIC.common,v 1.11 2024/02/11 09:07:49 skrll Exp $
 #
 #	GENERIC common RISC-V kernel config items shared between 32 and 64
 #	kernels
@@ -17,8 +17,8 @@ options 	NTP		# NTP phase/frequency lock
 options 	KTRACE		# system call tracing via ktrace(1)
 
 # Heartbeat checks
-options 	HEARTBEAT
-options 	HEARTBEAT_MAX_PERIOD_DEFAULT=15
+#options 	HEARTBEAT
+#options 	HEARTBEAT_MAX_PERIOD_DEFAULT=15
 
 # Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
 options 	SYSVMSG		# System V-like message queues