Module Name:    src
Committed By:   martin
Date:           Tue Dec 17 12:44:33 UTC 2024

Modified Files:
        src/sys/dev/gpio: files.gpio
Added Files:
        src/sys/dev/gpio: gpiolib.c
Removed Files:
        src/sys/dev/gpio: gpiobus.c

Log Message:
Rename gpiobus.c to gpiolib.c so we can move other parts in there too.
Requested by Jared.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/gpio/files.gpio
cvs rdiff -u -r1.1 -r0 src/sys/dev/gpio/gpiobus.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/gpio/gpiolib.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/gpio/files.gpio
diff -u src/sys/dev/gpio/files.gpio:1.17 src/sys/dev/gpio/files.gpio:1.18
--- src/sys/dev/gpio/files.gpio:1.17	Tue Dec 17 12:39:39 2024
+++ src/sys/dev/gpio/files.gpio	Tue Dec 17 12:44:33 2024
@@ -1,4 +1,4 @@
-# $NetBSD: files.gpio,v 1.17 2024/12/17 12:39:39 martin Exp $
+# $NetBSD: files.gpio,v 1.18 2024/12/17 12:44:33 martin Exp $
 
 define	gpio {[offset = -1], [mask = 0], [flag = 0]}
 
@@ -6,7 +6,7 @@ device	gpio: gpio
 attach	gpio at gpiobus
 file	dev/gpio/gpio.c				gpio 	needs-flag
 
-file	dev/gpio/gpiobus.c			gpiobus
+file	dev/gpio/gpiolib.c			gpiobus
 
 # GPIO simulator
 defpseudodev	gpiosim: gpiobus

Added files:

Index: src/sys/dev/gpio/gpiolib.c
diff -u /dev/null src/sys/dev/gpio/gpiolib.c:1.1
--- /dev/null	Tue Dec 17 12:44:33 2024
+++ src/sys/dev/gpio/gpiolib.c	Tue Dec 17 12:44:33 2024
@@ -0,0 +1,44 @@
+/* $NetBSD: gpiolib.c,v 1.1 2024/12/17 12:44:33 martin Exp $ */
+/*	$OpenBSD: gpio.c,v 1.6 2006/01/14 12:33:49 grange Exp $	*/
+
+/*
+ * Copyright (c) 2008, 2009, 2010, 2011 Marc Balmer <m...@msys.ch>
+ * Copyright (c) 2004, 2006 Alexander Yurchenko <gra...@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: gpiolib.c,v 1.1 2024/12/17 12:44:33 martin Exp $");
+
+/*
+ * General Purpose Input/Output framework.
+ */
+
+#include <sys/systm.h>
+#include <sys/gpio.h>
+#include <dev/gpio/gpiovar.h>
+
+int
+gpiobus_print(void *aux, const char *pnp)
+{
+#if 0
+	struct gpiobus_attach_args *gba = aux;
+#endif
+	if (pnp != NULL)
+		aprint_normal("gpiobus at %s", pnp);
+
+	return UNCONF;
+}
+

Reply via email to