summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/local/iicbus_if.c
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2019-06-25 12:43:40 +0530
committerChristian Mauderer <oss@c-mauderer.de>2019-06-29 10:31:01 +0200
commit4e1325a33862991119da67f2ec02aca5caaa85f5 (patch)
tree227571f42097a849c78deed22e69898d9f962d09 /rtemsbsd/local/iicbus_if.c
parent627fd1624ef5567fe2d82b7c1282144fa350393e (diff)
downloadrtems-libbsd-4e1325a33862991119da67f2ec02aca5caaa85f5.tar.bz2
iicbus: port to RTEMS
Diffstat (limited to 'rtemsbsd/local/iicbus_if.c')
-rw-r--r--rtemsbsd/local/iicbus_if.c76
1 files changed, 76 insertions, 0 deletions
diff --git a/rtemsbsd/local/iicbus_if.c b/rtemsbsd/local/iicbus_if.c
new file mode 100644
index 00000000..68099c34
--- /dev/null
+++ b/rtemsbsd/local/iicbus_if.c
@@ -0,0 +1,76 @@
+#include <machine/rtems-bsd-kernel-space.h>
+
+/*
+ * This file is produced automatically.
+ * Do not modify anything in here by hand.
+ *
+ * Created from source file
+ * freebsd-org/sys/dev/iicbus/iicbus_if.m
+ * with
+ * makeobjops.awk
+ *
+ * See the source file for legal information
+ */
+
+#include <sys/param.h>
+#include <sys/queue.h>
+#include <sys/kernel.h>
+#include <sys/kobj.h>
+#include <sys/bus.h>
+#include <dev/iicbus/iic.h>
+#include <rtems/bsd/local/iicbus_if.h>
+
+
+static int iicbus_nosupport(void)
+{
+
+ return (ENODEV);
+}
+
+static u_int
+iicbus_default_frequency(device_t bus, u_char speed)
+{
+
+ return (100000);
+}
+
+struct kobjop_desc iicbus_intr_desc = {
+ 0, { &iicbus_intr_desc, (kobjop_t)kobj_error_method }
+};
+
+struct kobjop_desc iicbus_callback_desc = {
+ 0, { &iicbus_callback_desc, (kobjop_t)kobj_error_method }
+};
+
+struct kobjop_desc iicbus_repeated_start_desc = {
+ 0, { &iicbus_repeated_start_desc, (kobjop_t)iicbus_nosupport }
+};
+
+struct kobjop_desc iicbus_start_desc = {
+ 0, { &iicbus_start_desc, (kobjop_t)iicbus_nosupport }
+};
+
+struct kobjop_desc iicbus_stop_desc = {
+ 0, { &iicbus_stop_desc, (kobjop_t)iicbus_nosupport }
+};
+
+struct kobjop_desc iicbus_read_desc = {
+ 0, { &iicbus_read_desc, (kobjop_t)iicbus_nosupport }
+};
+
+struct kobjop_desc iicbus_write_desc = {
+ 0, { &iicbus_write_desc, (kobjop_t)iicbus_nosupport }
+};
+
+struct kobjop_desc iicbus_reset_desc = {
+ 0, { &iicbus_reset_desc, (kobjop_t)kobj_error_method }
+};
+
+struct kobjop_desc iicbus_transfer_desc = {
+ 0, { &iicbus_transfer_desc, (kobjop_t)kobj_error_method }
+};
+
+struct kobjop_desc iicbus_get_frequency_desc = {
+ 0, { &iicbus_get_frequency_desc, (kobjop_t)iicbus_default_frequency }
+};
+