summaryrefslogtreecommitdiff
path: root/include/smc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/smc.h')
-rw-r--r--include/smc.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/smc.h b/include/smc.h
new file mode 100644
index 0000000000..19600e8a1e
--- /dev/null
+++ b/include/smc.h
@@ -0,0 +1,44 @@
+/**
+ * @file
+ * @ingroup gp32_smc
+ * @brief SMC disk driver initialization entry point
+ */
+
+#ifndef __SMC_H__
+#define __SMC_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <rtems.h>
+
+#include "rtems/blkdev.h"
+
+/**
+ * @defgroup gp32_smc SMC Disk Driver
+ * @ingroup arm_gp32
+ * @brief SMC Disk Driver Support
+ * @{
+ */
+
+/**
+ * @brief smc_initialize
+ * SMC disk driver initialization entry point.
+ */
+rtems_device_driver
+smc_initialize(
+ rtems_device_major_number major,
+ rtems_device_minor_number minor,
+ void *arg);
+
+#define SMC_DRIVER_TABLE_ENTRY \
+ { smc_initialize, GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES }
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif