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