blob: 7633f8dddd47b4e43bad3159457636f130bd2a0d [file] [log] [blame]
/** MobiCore driver module.(interface to the secure world SWD)
* <!-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __MC_OPS_H
#define __MC_OPS_H
#include <linux/workqueue.h>
#include "fastcall.h"
int mc_yield(void);
int mc_nsiq(void);
uint32_t mc_get_version(void);
int mc_info(uint32_t ext_info_id, uint32_t *state, uint32_t *ext_info);
int mc_init(uint32_t base, uint32_t nq_offset, uint32_t nq_length,
uint32_t mcp_offset, uint32_t mcp_length);
void mc_fastcall(void *data);
int mc_fastcall_init(void);
void mc_fastcall_destroy(void);
#endif /* __MC_OPS_H */