[Cryptech-Commits] [user/sra/libhal] 02/03: novena-eim.h had an invisible dependency on <sys/types.h>, at least on Debian Wheezy (ie, on the Novena).
git at cryptech.is
git at cryptech.is
Sun Jul 5 20:26:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch master
in repository user/sra/libhal.
commit 785230990d43a1aaf11ebd102ce66e1c788cc4da
Author: Rob Austein <sra at hactrn.net>
Date: Sun Jul 5 16:16:34 2015 -0400
novena-eim.h had an invisible dependency on <sys/types.h>, at least on
Debian Wheezy (ie, on the Novena).
---
novena-eim.h | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/novena-eim.h b/novena-eim.h
index 5228529..2ef0fea 100644
--- a/novena-eim.h
+++ b/novena-eim.h
@@ -34,24 +34,37 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _NOVENA_EIM_H_
+#define _NOVENA_EIM_H_
+
#include <stdint.h>
+#include <sys/types.h> /* Required for off_t, at least on Debian Wheezy. */
+
#define EIM_BASE_ADDR 0x08000000
-/* Set up EIM bus.
+/*
+ * Set up EIM bus.
* Returns 0 on success, -1 on failure.
*/
+
int eim_setup(void);
-/* Write a 32-bit word to EIM.
+/*
+ * Write a 32-bit word to EIM.
* If EIM is not set up correctly, this will abort with a bus error.
*/
+
void eim_write_32(off_t, uint32_t *);
-/* Read a 32-bit word from EIM.
+/*
+ * Read a 32-bit word from EIM.
* If EIM is not set up correctly, this will abort with a bus error.
*/
+
void eim_read_32(off_t, uint32_t *);
+#endif /* _NOVENA_EIM_H_ */
+
/*
* Local variables:
* indent-tabs-mode: nil
More information about the Commits
mailing list