ccid_device: Export functions for generating async responses
The 'slot' implementation will need to be able to transmit certain
CCID messages by itself.
Change-Id: I16646dc89dc5b6c33f94bbb4eedc65acc8bbd6e2
diff --git a/ccid/ccid_device.h b/ccid/ccid_device.h
index e7bb557..5b3a5bc 100644
--- a/ccid/ccid_device.h
+++ b/ccid/ccid_device.h
@@ -97,6 +97,15 @@
void *priv;
};
+int ccid_slot_send(struct ccid_slot *cs, struct msgb *msg);
+int ccid_slot_send_unbusy(struct ccid_slot *cs, struct msgb *msg);
+struct msgb *ccid_gen_slot_status(struct ccid_slot *cs, uint8_t seq, uint8_t cmd_sts,
+ enum ccid_error_code err);
+
+struct msgb *ccid_gen_data_block(struct ccid_slot *cs, uint8_t seq, uint8_t cmd_sts,
+ enum ccid_error_code err, const uint8_t *data,
+ uint32_t data_len);
+
void ccid_instance_init(struct ccid_instance *ci, const struct ccid_ops *ops,
const struct ccid_slot_ops *slot_ops, const char *name, void *priv);
int ccid_handle_out(struct ccid_instance *ci, struct msgb *msg);