summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/mach-sandbox/include/mach/linux.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-22 14:21:29 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-22 14:21:29 +0200
commitb4521685bf00398a4db0d3abe28376bd8f1b31ed (patch)
tree91c2097bc5f467c15ff8b404b288b8f916d80541 /arch/sandbox/mach-sandbox/include/mach/linux.h
parente2a7b79cfc63c8a5bdafb6f333fedf35b6b8a380 (diff)
downloadbarebox-b4521685bf00398a4db0d3abe28376bd8f1b31ed.tar.gz
barebox-b4521685bf00398a4db0d3abe28376bd8f1b31ed.tar.xz
[SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/sandbox/mach-sandbox/include/mach/linux.h')
-rw-r--r--arch/sandbox/mach-sandbox/include/mach/linux.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b/arch/sandbox/mach-sandbox/include/mach/linux.h
new file mode 100644
index 0000000000..09376413e9
--- /dev/null
+++ b/arch/sandbox/mach-sandbox/include/mach/linux.h
@@ -0,0 +1,23 @@
+#ifndef __ASM_ARCH_LINUX_H
+#define __ASM_ARCH_LINUX_H
+
+int linux_register_device(const char *name, void *start, void *end);
+int tap_alloc(char *dev);
+uint64_t linux_get_time(void);
+int linux_read(int fd, void *buf, size_t count);
+int linux_read_nonblock(int fd, void *buf, size_t count);
+ssize_t linux_write(int fd, const void *buf, size_t count);
+off_t linux_lseek(int fildes, off_t offset);
+int linux_getc (void);
+void linux_putc (const char c);
+int linux_tstc(int fd);
+
+int u_boot_register_console(char *name_template, int stdinfd, int stdoutfd);
+
+struct linux_console_data {
+ int stdinfd;
+ int stdoutfd;
+ unsigned int flags;
+};
+
+#endif /* __ASM_ARCH_LINUX_H */