File nut/include/dev/blockdev.h


Included Files


Preprocessor definitions

#define DEV_BLOCKDEV_H_

#define NUTBLKDEV_MEDIAAVAIL 0x1200

#define NUTBLKDEV_MEDIACHANGE 0x1201

#define NUTBLKDEV_INFO 0x1202

#define NUTBLKDEV_SEEK 0x1203


Typedef BLKPAR_SEEK

typedef struct _BLKPAR_SEEK BLKPAR_SEEK
struct _BLKPAR_SEEK  
   {  
      NUTFILE* par_nfp;  
      uint32_t par_blknum;  
   }  

Typedef BLKPAR_INFO

typedef struct _BLKPAR_INFO BLKPAR_INFO
struct _BLKPAR_INFO  
   {  
      NUTFILE* par_nfp;  
      uint32_t par_nblks;  
      uint32_t par_blksz;  
      uint8_t* par_blkbp;  
   }  

Typedef NUTBLOCKIO

typedef struct _NUTBLOCKIO NUTBLOCKIO
See: Type struct _NUTBLOCKIO

Type struct _NUTBLOCKIO

struct _NUTBLOCKIO
struct _NUTBLOCKIO  
   {  
      void* blkio_info;  
      uint32_t blkio_blk_cnt;  
      uint32_t blkio_blk_siz;  
      uint32_t blkio_vol_bot;  
      uint32_t blkio_vol_top;  
      int (*blkio_read)(NUTDEVICE*,uint32_t,void*,int);  
      int (*blkio_write)(NUTDEVICE*,uint32_t,const void*,int);  
      int (*blkio_write_P)(NUTDEVICE*,uint32_t,const prog_char*,int);  
      int (*blkio_ioctl)(NUTDEVICE*,int,void*);  
   }