aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/crypto/talitos.c11
-rw-r--r--drivers/crypto/talitos.h6
2 files changed, 12 insertions, 5 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index bb3e63f5596b..2561aea52b62 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -192,11 +192,11 @@ static int init_device(struct device *dev)
192 * callback must check err and feedback in descriptor header 192 * callback must check err and feedback in descriptor header
193 * for device processing status. 193 * for device processing status.
194 */ 194 */
195static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc, 195int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
196 void (*callback)(struct device *dev, 196 void (*callback)(struct device *dev,
197 struct talitos_desc *desc, 197 struct talitos_desc *desc,
198 void *context, int error), 198 void *context, int error),
199 void *context) 199 void *context)
200{ 200{
201 struct talitos_private *priv = dev_get_drvdata(dev); 201 struct talitos_private *priv = dev_get_drvdata(dev);
202 struct talitos_request *request; 202 struct talitos_request *request;
@@ -237,6 +237,7 @@ static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
237 237
238 return -EINPROGRESS; 238 return -EINPROGRESS;
239} 239}
240EXPORT_SYMBOL(talitos_submit);
240 241
241/* 242/*
242 * process what was done, notify callback of error if not 243 * process what was done, notify callback of error if not
diff --git a/drivers/crypto/talitos.h b/drivers/crypto/talitos.h
index 9835e3abd89f..41b80f6295ce 100644
--- a/drivers/crypto/talitos.h
+++ b/drivers/crypto/talitos.h
@@ -133,6 +133,12 @@ struct talitos_private {
133 struct hwrng rng; 133 struct hwrng rng;
134}; 134};
135 135
136extern int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
137 void (*callback)(struct device *dev,
138 struct talitos_desc *desc,
139 void *context, int error),
140 void *context);
141
136/* .features flag */ 142/* .features flag */
137#define TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT 0x00000001 143#define TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT 0x00000001
138#define TALITOS_FTR_HW_AUTH_CHECK 0x00000002 144#define TALITOS_FTR_HW_AUTH_CHECK 0x00000002