Changeset 237 for soft/giet_vm/libs


Ignore:
Timestamp:
May 2, 2013, 6:38:04 PM (12 years ago)
Author:
meunier
Message:

Adding a syscall to allow a user to know the block size with which the block device has been configured.

Location:
soft/giet_vm/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/stdio.c

    r232 r237  
    3535#define SYSCALL_IOC_READ        0x16
    3636#define SYSCALL_IOC_COMPLETED   0x17
     37#define SYSCALL_IOC_BLOCK_SIZE  0x18
    3738#define SYSCALL_VOBJ_GET_VBASE  0x1A
    3839#define SYSCALL_NIC_WRITE       0x1B
     
    548549
    549550
     551//////////////////////////////////////////////////////////////////////////////////
     552// giet_ioc_block_size()
     553//////////////////////////////////////////////////////////////////////////////////
     554// This blocking function returns the block_size (in bytes) of the block device
     555//////////////////////////////////////////////////////////////////////////////////
     556unsigned int giet_ioc_block_size() {
     557    return sys_call(SYSCALL_IOC_BLOCK_SIZE, 0, 0, 0, 0);
     558}
     559
     560
    550561/////  Frame buffer device related system calls  /////
    551562
  • soft/giet_vm/libs/stdio.h

    r232 r237  
    3434unsigned int giet_ioc_write(unsigned int lba, void * buffer, unsigned int count);
    3535unsigned int giet_ioc_completed();
     36unsigned int giet_ioc_block_size();
    3637
    3738/* Frame buffer device related functions */
Note: See TracChangeset for help on using the changeset viewer.