1 #ifndef DOS_FILEHANDLER_H
    2 #define DOS_FILEHANDLER_H
    3 
    4 /*
    5 	dos filehandler definitions
    6 
    7 	Copyright © 2002 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef EXEC_PORTS_H
   11 # include <exec/ports.h>
   12 #endif
   13 
   14 #ifndef DOS_DOS_H
   15 # include <dos/dos.h>
   16 #endif
   17 
   18 #pragma pack(2)
   19 
   20 
   21 struct DosEnvec
   22 {
   23 	ULONG de_TableSize;
   24 	ULONG de_SizeBlock;
   25 	ULONG de_SecOrg;
   26 	ULONG de_Surfaces;
   27 	ULONG de_SectorPerBlock;
   28 	ULONG de_BlocksPerTrack;
   29 	ULONG de_Reserved;
   30 	ULONG de_PreAlloc;
   31 	ULONG de_Interleave;
   32 	ULONG de_LowCyl;
   33 	ULONG de_HighCyl;
   34 	ULONG de_NumBuffers;
   35 	ULONG de_BufMemType;
   36 	ULONG de_MaxTransfer;
   37 	ULONG de_Mask;
   38 	LONG  de_BootPri;
   39 	ULONG de_DosType;
   40 	ULONG de_Baud;
   41 	ULONG de_Control;
   42 	ULONG de_BootBlocks;
   43 };
   44 
   45 
   46 #define DE_TABLESIZE     0
   47 #define DE_SIZEBLOCK     1
   48 #define DE_SECORG        2
   49 #define DE_NUMHEADS      3
   50 #define DE_SECSPERBLK    4
   51 #define DE_BLKSPERTRACK  5
   52 #define DE_RESERVEDBLKS  6
   53 #define DE_PREFAC        7
   54 #define DE_INTERLEAVE    8
   55 #define DE_LOWCYL        9
   56 #define DE_UPPERCYL      10
   57 #define DE_NUMBUFFERS    11
   58 #define DE_MEMBUFTYPE    12
   59 #define DE_BUFMEMTYPE    12
   60 #define DE_MAXTRANSFER   13
   61 #define DE_MASK          14
   62 #define DE_BOOTPRI       15
   63 #define DE_DOSTYPE       16
   64 #define DE_BAUD          17
   65 #define DE_CONTROL       18
   66 #define DE_BOOTBLOCKS    19
   67 
   68 
   69 struct FileSysStartupMsg
   70 {
   71 	ULONG fssm_Unit;
   72 	BSTR  fssm_Device;
   73 	BPTR  fssm_Environ;
   74 	ULONG fssm_Flags;
   75 };
   76 
   77 
   78 struct DeviceNode
   79 {
   80 	BPTR            dn_Next;
   81 	ULONG           dn_Type;
   82 	struct MsgPort *dn_Task;
   83 	BPTR            dn_Lock;
   84 	BSTR            dn_Handler;
   85 	ULONG           dn_StackSize;
   86 	LONG            dn_Priority;
   87 	BPTR            dn_Startup;
   88 	BPTR            dn_SegList;
   89 	BPTR            dn_GlobalVec;
   90 	BSTR            dn_Name;
   91 };
   92 
   93 
   94 #pragma pack()
   95 
   96 #endif /* DOS_FILEHANDLER_H */