OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [mm0/] [include/] [file.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __MM0_FILE_H__
2
#define __MM0_FILE_H__
3
 
4
#include <l4/lib/list.h>
5
#include <l4lib/types.h>
6
#include <posix/sys/types.h>    /* FIXME: Remove this and refer to internal headers */
7
#include <task.h>
8
 
9
int vfs_read(struct vnode *v, unsigned long f_offset,
10
             unsigned long npages, void *pagebuf);
11
int vfs_write(struct vnode *v, unsigned long f_offset,
12
              unsigned long npages, void *pagebuf);
13
int sys_read(struct tcb *sender, int fd, void *buf, int count);
14
int sys_write(struct tcb *sender, int fd, void *buf, int count);
15
int sys_lseek(struct tcb *sender, int fd, off_t offset, int whence);
16
int sys_close(struct tcb *sender, int fd);
17
int sys_fsync(struct tcb *sender, int fd);
18
int file_open(struct tcb *opener, int fd);
19
 
20
int vfs_open_bypath(const char *pathname, unsigned long *vnum, unsigned long *length);
21
 
22
struct vm_file *do_open2(struct tcb *task, int fd, unsigned long vnum, unsigned long length);
23
int flush_file_pages(struct vm_file *f);
24
int read_file_pages(struct vm_file *vmfile, unsigned long pfn_start,
25
                    unsigned long pfn_end);
26
 
27
struct vm_file *vfs_file_create(void);
28
 
29
 
30
extern struct link vm_file_list;
31
 
32
#endif /* __MM0_FILE_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.