From d7c01f45691d4289c5b8d5cafe9e2776b03731ea Mon Sep 17 00:00:00 2001 From: Vijay Kumar Banerjee Date: Sun, 4 Aug 2019 01:49:43 +0530 Subject: fbd: Port to RTEMS --- rtemsbsd/include/rtems/bsd/local/fb_if.h | 45 ++++++++++++++++++++++++++ rtemsbsd/include/rtems/bsd/local/opt_fb.h | 0 rtemsbsd/include/rtems/bsd/local/opt_splash.h | 0 rtemsbsd/include/rtems/bsd/local/opt_syscons.h | 0 rtemsbsd/include/rtems/bsd/local/opt_teken.h | 0 5 files changed, 45 insertions(+) create mode 100644 rtemsbsd/include/rtems/bsd/local/fb_if.h create mode 100644 rtemsbsd/include/rtems/bsd/local/opt_fb.h create mode 100644 rtemsbsd/include/rtems/bsd/local/opt_splash.h create mode 100644 rtemsbsd/include/rtems/bsd/local/opt_syscons.h create mode 100644 rtemsbsd/include/rtems/bsd/local/opt_teken.h (limited to 'rtemsbsd/include/rtems/bsd') diff --git a/rtemsbsd/include/rtems/bsd/local/fb_if.h b/rtemsbsd/include/rtems/bsd/local/fb_if.h new file mode 100644 index 00000000..29d2b66a --- /dev/null +++ b/rtemsbsd/include/rtems/bsd/local/fb_if.h @@ -0,0 +1,45 @@ +/* + * This file is produced automatically. + * Do not modify anything in here by hand. + * + * Created from source file + * freebsd-org/sys/dev/fb/fb_if.m + * with + * makeobjops.awk + * + * See the source file for legal information + */ + + +#ifndef _fb_if_h_ +#define _fb_if_h_ + +/** @brief Unique descriptor for the FB_PIN_MAX() method */ +extern struct kobjop_desc fb_pin_max_desc; +/** @brief A function implementing the FB_PIN_MAX() method */ +typedef int fb_pin_max_t(device_t dev, int *npins); + +static __inline int FB_PIN_MAX(device_t dev, int *npins) +{ + kobjop_t _m; + int rc; + KOBJOPLOOKUP(((kobj_t)dev)->ops,fb_pin_max); + rc = ((fb_pin_max_t *) _m)(dev, npins); + return (rc); +} + +/** @brief Unique descriptor for the FB_GETINFO() method */ +extern struct kobjop_desc fb_getinfo_desc; +/** @brief A function implementing the FB_GETINFO() method */ +typedef struct fb_info * fb_getinfo_t(device_t dev); + +static __inline struct fb_info * FB_GETINFO(device_t dev) +{ + kobjop_t _m; + struct fb_info * rc; + KOBJOPLOOKUP(((kobj_t)dev)->ops,fb_getinfo); + rc = ((fb_getinfo_t *) _m)(dev); + return (rc); +} + +#endif /* _fb_if_h_ */ diff --git a/rtemsbsd/include/rtems/bsd/local/opt_fb.h b/rtemsbsd/include/rtems/bsd/local/opt_fb.h new file mode 100644 index 00000000..e69de29b diff --git a/rtemsbsd/include/rtems/bsd/local/opt_splash.h b/rtemsbsd/include/rtems/bsd/local/opt_splash.h new file mode 100644 index 00000000..e69de29b diff --git a/rtemsbsd/include/rtems/bsd/local/opt_syscons.h b/rtemsbsd/include/rtems/bsd/local/opt_syscons.h new file mode 100644 index 00000000..e69de29b diff --git a/rtemsbsd/include/rtems/bsd/local/opt_teken.h b/rtemsbsd/include/rtems/bsd/local/opt_teken.h new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3