Ignore:
Timestamp:
Jan 19, 2016, 11:23:02 AM (8 years ago)
Author:
alain
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/sys_handler.h

    r733 r760  
    105105typedef struct nic_chbuf_s
    106106{
    107     unsigned long long   buf_desc[X_SIZE*Y_SIZE];     // kernel chbuf descriptor
    108     unsigned int         xmax;                        // nb clusters in a row
    109     unsigned int         ymax;                        // nb clusters in a column
     107    unsigned long long   buf_desc[X_SIZE*Y_SIZE];    // kernel chbuf descriptor
     108    unsigned int         xmax;                       // nb clusters in a row
     109    unsigned int         ymax;                       // nb clusters in a column
    110110} nic_chbuf_t;
     111
     112
     113//////////////////////////////////////////////////////////////////////////////
     114//           File system related syscall handlers
     115//////////////////////////////////////////////////////////////////////////////
     116
     117extern int _sys_fat_read( unsigned int fd_id,        // file descriptor index
     118                          unsigned int vaddr,        // buffer vbase     
     119                          unsigned int count );      // number of bytes
     120
     121extern int _sys_fat_pread(unsigned int fd_id,        // file descriptor index
     122                          unsigned int vaddr,        // buffer vbase
     123                          unsigned int count,        // number of bytes
     124                          unsigned int offset );     // bytes to skip in file
     125
     126extern int _sys_fat_write( unsigned int fd_id,       // file descriptor index
     127                           unsigned int vaddr,       // buffer vbase
     128                           unsigned int count );     // number of bytes
     129
     130extern int _sys_fat_mmap( unsigned int fd_id,        // file descriptor index
     131                          unsigned int count,        // number of pages
     132                          unsigned int offset,       // pages to skip in file
     133                          unsigned int prot );       // protection modes
     134
     135extern int _sys_fat_munmap( unsigned int vaddr,      // buffer vbase
     136                            unsigned int count );    // number of pages
    111137
    112138
Note: See TracChangeset for help on using the changeset viewer.