2021-06-25 08:58:58

by Moriis Ku

[permalink] [raw]
Subject: [PATCH] SUNIX SDC PCIe multi-function card core support

From: Morris Ku <[email protected]>

Add support for SUNIX SDC PCIe multi-function card

Cc: Jason Lee <[email protected]>
Cc: Taian Chen <[email protected]>
Cc: Morris Ku <[email protected]>
Signed-off-by: Morris Ku <[email protected]>
---
sunix-sdc.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 sunix-sdc.h

diff --git a/drivers/mfd/sunix-sdc.h b/drivers/mfd/sunix-sdc.h
new file mode 100644
index 0000000..ce8f6c1
--- /dev/null
+++ b/sunix-sdc.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * SUNIX SDC PCIe multi-function card core support.
+ *
+ * Copyright (C) 2021, SUNIX Co., Ltd.
+ *
+ */
+
+#ifndef __SUNIX_SDC_H
+#define __SUNIX_SDC_H
+
+struct device;
+
+struct sunix_sdc_platform_info {
+ struct resource *b0_mem;
+ struct resource *b1_io;
+ struct resource *b2_mem;
+ int irq;
+};
+
+int sunix_sdc_probe(struct device *dev, struct sunix_sdc_platform_info *info);
+void sunix_sdc_remove(struct device *dev);
+
+#endif // __SUNIX_SDC_H
--
2.20.1