Introduction   Client Library API Reference   IDL Interface   File List   Index  

types.h File Reference

DROPS Block Device Driver Interface, API types. More...

Go to the source code of this file.

Data Structures

struct  l4blk_sg_phys_elem
struct  l4blk_sg_ds_elem
struct  l4blk_blk_request
struct  l4blk_request
struct  l4blk_disk_geometry
struct  l4blk_disk_period

Defines

#define L4BLK_REQUEST_READ   0x00000001
#define L4BLK_REQUEST_WRITE   0x00000002
#define L4BLK_BLKSIZE   1024
 blocksize
#define L4BLK_REQUEST_METADATA   0x00000001
#define L4BLK_SG_PHYS   0x00000001
#define L4BLK_SG_DS   0x00000002
#define L4BLK_UNPROCESSED   0x00000000
#define L4BLK_DONE   0x00000001
#define L4BLK_ERROR   0x00000002
#define L4BLK_SKIPPED   0x00000003
#define L4BLK_INVALID_DRIVER   (-1)
 invalid driver handle
#define L4BLK_INVALID_STREAM   (-1)
#define L4BLK_CTRL_NUM_DISKS   0x00000001
#define L4BLK_CTRL_DISK_SIZE   0x00000002
#define L4BLK_CTRL_DISK_GEOM   0x00000003
#define L4BLK_CTRL_RREAD_PART   0x00000004
#define L4BLK_CTRL_MAX_SG_LEN   0x00000005
#define L4BLK_CTRL_STREAM_PERIOD   0x00000006
#define L4BLK_CTRL_DRV_IRQ   0x00008000

Typedefs

typedef l4_uint32_t l4blk_driver_id_t
typedef l4_uint32_t l4blk_driver_t
typedef L4_CV void(* l4blk_setup_notify_callback_fn_t )(void)
typedef l4_uint32_t l4blk_stream_t
typedef struct l4blk_request l4blk_request_t
typedef L4_CV void(* l4blk_callback_fn_t )(l4blk_request_t *request, int status, int error)
typedef struct l4blk_sg_phys_elem l4blk_sg_phys_elem_t
typedef struct l4blk_sg_ds_elem l4blk_sg_ds_elem_t
typedef struct l4blk_blk_request l4blk_blk_request_t
typedef struct l4blk_disk_geometry l4blk_disk_geometry_t
typedef struct l4blk_disk_period l4blk_disk_period_t


Detailed Description

DROPS Block Device Driver Interface, API types.

Date:
08/30/2003
Author:
Lars Reuther <reuther@os.inf.tu-dresden.de>

Definition in file types.h.


Define Documentation

#define L4BLK_BLKSIZE   1024

blocksize

Definition at line 165 of file types.h.

#define L4BLK_SG_PHYS   0x00000001

l4blk_sg_phys_elem_t, the scatter-gather list contains the phys. addresses of the buffers

Definition at line 173 of file types.h.

#define L4BLK_SG_DS   0x00000002

l4blk_sg_ds_elem_t, the scatter-gather list contains dataspace regions which describe the buffers

Definition at line 178 of file types.h.

#define L4BLK_INVALID_DRIVER   (-1)

invalid driver handle

Definition at line 198 of file types.h.


Generic Block Interface Reference Manual, written by Lars Reuther  © 2000-2003