Ignore:
Timestamp:
May 2, 2013, 6:38:04 PM (11 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.