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

int13ext.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  driveparams
 Drive parameters. More...

struct  diskaddrpacket
 internal structure to work with int13 extensions More...


Defines

#define NO_CTLDOS_MEMORY   -2
 "Can't allocate DPMI DOS memory for control structures."

#define NO_BUFDOS_MEMORY   -3
 "Can't allocate DPMI DOS memory for real-mode buffer."

#define BUFF_SIZE   0x10000

Typedefs

typedef unsigned char U8B
typedef unsigned short U16B
typedef unsigned long U32B
typedef unsigned long long U64B

Functions

int int13ext_check ()
 returns -1 if installed, 0 otherwise

int int13ext_getdrvparams (int drv, struct driveparams *DParam)
 returns 0 if all goes ok, >0 int13 error, <0 DJGPP error

int int13ext_read (int drv, struct driveparams *DParam, U64B block, U64B nblocks, void *buffer)
 returns 0 if all goes ok, >0 int13 error, <0 DJGPP error

int int13ext_write (int drv, struct driveparams *DParam, U64B block, U64B nblocks, void *buffer)
 returns 0 if all goes ok, >0 int13 error, <0 DJGPP error


Variables

driveparams packed
 Drive parameters.


Detailed Description

INT13EXT.H

Placed in public domain by techtonik, 2003 <techtonik@users.sourceforge.net>

DJGPP int13 BIOS extensions interface

Definition in file int13ext.h.


Define Documentation

#define BUFF_SIZE   0x10000
 

Definition at line 18 of file int13ext.h.

#define NO_BUFDOS_MEMORY   -3
 

"Can't allocate DPMI DOS memory for real-mode buffer."

Definition at line 17 of file int13ext.h.

Referenced by int13ext_read(), and int13ext_write().

#define NO_CTLDOS_MEMORY   -2
 

"Can't allocate DPMI DOS memory for control structures."

Definition at line 16 of file int13ext.h.

Referenced by int13ext_getdrvparams(), int13ext_read(), and int13ext_write().


Typedef Documentation

typedef unsigned short U16B
 

Definition at line 21 of file int13ext.h.

typedef unsigned long U32B
 

Definition at line 22 of file int13ext.h.

Referenced by int13ext_read(), and int13ext_write().

typedef unsigned long long U64B
 

Definition at line 23 of file int13ext.h.

Referenced by int13ext_read(), and int13ext_write().

typedef unsigned char U8B
 

Definition at line 20 of file int13ext.h.


Function Documentation

int int13ext_check  ) 
 

returns -1 if installed, 0 otherwise

Definition at line 20 of file int13ext.c.

Referenced by main().

int int13ext_getdrvparams int  drv,
struct driveparams DParam
 

returns 0 if all goes ok, >0 int13 error, <0 DJGPP error

Definition at line 43 of file int13ext.c.

References driveparams::crsize, and NO_CTLDOS_MEMORY.

int int13ext_read int  drv,
struct driveparams DParam,
U64B  block,
U64B  nblocks,
void *  buffer
 

returns 0 if all goes ok, >0 int13 error, <0 DJGPP error

Definition at line 75 of file int13ext.c.

References diskaddrpacket::buffer_offset, diskaddrpacket::buffer_segment, driveparams::bytes_per_sect, diskaddrpacket::nblocks, NO_BUFDOS_MEMORY, NO_CTLDOS_MEMORY, diskaddrpacket::packetsize, diskaddrpacket::startblock, U32B, and U64B.

int int13ext_write int  drv,
struct driveparams DParam,
U64B  block,
U64B  nblocks,
void *  buffer
 

returns 0 if all goes ok, >0 int13 error, <0 DJGPP error

Definition at line 140 of file int13ext.c.

References diskaddrpacket::buffer_offset, diskaddrpacket::buffer_segment, driveparams::bytes_per_sect, diskaddrpacket::nblocks, NO_BUFDOS_MEMORY, NO_CTLDOS_MEMORY, diskaddrpacket::packetsize, diskaddrpacket::startblock, U32B, and U64B.


Variable Documentation

struct diskaddrpacket packed
 

Drive parameters.


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