gpiolib.c revision 1.1 1 1.1 martin /* $NetBSD: gpiolib.c,v 1.1 2024/12/17 12:44:33 martin Exp $ */
2 1.1 martin /* $OpenBSD: gpio.c,v 1.6 2006/01/14 12:33:49 grange Exp $ */
3 1.1 martin
4 1.1 martin /*
5 1.1 martin * Copyright (c) 2008, 2009, 2010, 2011 Marc Balmer <marc (at) msys.ch>
6 1.1 martin * Copyright (c) 2004, 2006 Alexander Yurchenko <grange (at) openbsd.org>
7 1.1 martin *
8 1.1 martin * Permission to use, copy, modify, and distribute this software for any
9 1.1 martin * purpose with or without fee is hereby granted, provided that the above
10 1.1 martin * copyright notice and this permission notice appear in all copies.
11 1.1 martin *
12 1.1 martin * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 1.1 martin * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 1.1 martin * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 1.1 martin * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 1.1 martin * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 1.1 martin * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 1.1 martin * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 1.1 martin */
20 1.1 martin
21 1.1 martin
22 1.1 martin #include <sys/cdefs.h>
23 1.1 martin __KERNEL_RCSID(0, "$NetBSD: gpiolib.c,v 1.1 2024/12/17 12:44:33 martin Exp $");
24 1.1 martin
25 1.1 martin /*
26 1.1 martin * General Purpose Input/Output framework.
27 1.1 martin */
28 1.1 martin
29 1.1 martin #include <sys/systm.h>
30 1.1 martin #include <sys/gpio.h>
31 1.1 martin #include <dev/gpio/gpiovar.h>
32 1.1 martin
33 1.1 martin int
34 1.1 martin gpiobus_print(void *aux, const char *pnp)
35 1.1 martin {
36 1.1 martin #if 0
37 1.1 martin struct gpiobus_attach_args *gba = aux;
38 1.1 martin #endif
39 1.1 martin if (pnp != NULL)
40 1.1 martin aprint_normal("gpiobus at %s", pnp);
41 1.1 martin
42 1.1 martin return UNCONF;
43 1.1 martin }
44 1.1 martin
45