diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-10-22 14:21:29 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-10-22 14:21:29 +0200 |
commit | b4521685bf00398a4db0d3abe28376bd8f1b31ed (patch) | |
tree | 91c2097bc5f467c15ff8b404b288b8f916d80541 /arch/sandbox/mach-sandbox/include | |
parent | e2a7b79cfc63c8a5bdafb6f333fedf35b6b8a380 (diff) | |
download | barebox-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')
-rw-r--r-- | arch/sandbox/mach-sandbox/include/mach/hostfile.h | 15 | ||||
-rw-r--r-- | arch/sandbox/mach-sandbox/include/mach/linux.h | 23 |
2 files changed, 38 insertions, 0 deletions
diff --git a/arch/sandbox/mach-sandbox/include/mach/hostfile.h b/arch/sandbox/mach-sandbox/include/mach/hostfile.h new file mode 100644 index 0000000000..30f9499c03 --- /dev/null +++ b/arch/sandbox/mach-sandbox/include/mach/hostfile.h @@ -0,0 +1,15 @@ +#ifndef __ASM_ARCH_HOSTFILE_H +#define __ASM_ARCH_HOSTFILE_H + +struct hf_platform_data { + int fd; + size_t size; + unsigned long map_base; + char *filename; + char *name; +}; + +int u_boot_register_filedev(struct hf_platform_data *hf); + +#endif /* __ASM_ARCH_HOSTFILE_H */ + 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 */ |