diff options
author | Vijay Kumar Banerjee <vijaykumar9597@gmail.com> | 2019-08-04 01:49:39 +0530 |
---|---|---|
committer | Christian Mauderer <oss@c-mauderer.de> | 2019-08-11 15:57:54 +0200 |
commit | 59ce99a357d7e283b2f463d3e22189e88b2ed412 (patch) | |
tree | 7316a504d1747959be413d284db82e757a9fc9a4 /rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h | |
parent | Pinmux : Import from FreeBSD (diff) | |
download | rtems-libbsd-59ce99a357d7e283b2f463d3e22189e88b2ed412.tar.bz2 |
Pinmux: Port to RTEMS
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h b/rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h index e69de29b..6343de41 100644 --- a/rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h +++ b/rtemsbsd/include/rtems/bsd/local/fdt_pinctrl_if.h @@ -0,0 +1,40 @@ +/* + * This file is produced automatically. + * Do not modify anything in here by hand. + * + * Created from source file + * freebsd-org/sys/dev/fdt/fdt_pinctrl_if.m + * with + * makeobjops.awk + * + * See the source file for legal information + */ + + +#ifndef _fdt_pinctrl_if_h_ +#define _fdt_pinctrl_if_h_ + + +#include <sys/tslog.h> + +/** @brief Unique descriptor for the FDT_PINCTRL_CONFIGURE() method */ +extern struct kobjop_desc fdt_pinctrl_configure_desc; +/** @brief A function implementing the FDT_PINCTRL_CONFIGURE() method */ +typedef int fdt_pinctrl_configure_t(device_t pinctrl, phandle_t cfgxref); + +static __inline int FDT_PINCTRL_CONFIGURE(device_t pinctrl, phandle_t cfgxref) +{ + kobjop_t _m; + int rc; + +TSENTER2(device_get_name(pinctrl)); + + KOBJOPLOOKUP(((kobj_t)pinctrl)->ops,fdt_pinctrl_configure); + rc = ((fdt_pinctrl_configure_t *) _m)(pinctrl, cfgxref); + +TSEXIT2(device_get_name(pinctrl)); + + return (rc); +} + +#endif /* _fdt_pinctrl_if_h_ */ |