Main Page | Data Structures | File List | Data Fields | Globals

int13ext.h

Go to the documentation of this file.
00001 00009 #ifndef _INT13EXT_H_ 00010 #define _INT13EXT_H_ 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 #define NO_CTLDOS_MEMORY -2 00017 #define NO_BUFDOS_MEMORY -3 00018 #define BUFF_SIZE 0x10000 00019 00020 typedef unsigned char U8B; 00021 typedef unsigned short U16B; 00022 typedef unsigned long U32B; 00023 typedef unsigned long long U64B; 00024 00026 struct driveparams { 00027 U16B crsize; 00028 U16B infoflags; 00029 U32B cyl_num; 00030 U32B head_num; 00031 U32B sect_num; 00032 U64B LBA_sect_num; 00033 U16B bytes_per_sect; 00034 } __attribute__((packed)); 00035 00037 int int13ext_check(); 00038 00040 int int13ext_getdrvparams(int drv, struct driveparams* DParam); 00041 00043 struct diskaddrpacket { 00044 U8B packetsize; 00045 U8B reserved0; 00046 U16B nblocks; 00047 U16B buffer_offset; 00048 U16B buffer_segment; 00049 U64B startblock; 00052 } __attribute__((packed)); 00053 00055 int int13ext_read(int drv, struct driveparams *DParam, U64B block, U64B nblocks, void *buffer); 00056 00058 int int13ext_write(int drv, struct driveparams *DParam, U64B block, U64B nblocks, void *buffer); 00059 00060 #ifdef __cplusplus 00061 } 00062 #endif 00063 00064 #endif

Generated on Thu Jun 17 16:28:55 2004 for int13ext by doxygen 1.3.7