1 #ifndef	LIBRARIES_MOUNT_H
    2 #define	LIBRARIES_MOUNT_H
    3 
    4 #ifndef	EXEC_TYPES_H
    5 #include <exec/types.h>
    6 #endif
    7 
    8 #define	MOUNTATTR_Dummy			(TAG_USER +0x01010000)
    9 /*
   10  * The Device ptr for the NotifyUnit
   11  *     Data: struct Device*
   12  * Function: MountCreateNotifyUnitTagList(), MountGetNotifyUnitAttr()
   13  */
   14 #define	MOUNTATTR_DEVICE		(MOUNTATTR_Dummy+0)
   15 /*
   16  * The Unit ptr for the NotifyUnit
   17  *     Data: struct Unit*
   18  * Function: MountCreateNotifyUnitTagList(), MountGetNotifyUnitAttr()
   19  */
   20 #define	MOUNTATTR_UNIT			(MOUNTATTR_Dummy+1)
   21 /*
   22  * The interrupt for a notifynode
   23  * Data: struct Interrupt*
   24  */
   25 #define	MOUNTATTR_INTERRUPT		(MOUNTATTR_Dummy+1)
   26 /*
   27  * The Task for a notifynode
   28  * Data: struct Task*
   29  */
   30 #define	MOUNTATTR_TASK			(MOUNTATTR_Dummy+2)
   31 /*
   32  * The IORequest for a notifynode
   33  * Data: struct IORequest*
   34  */
   35 #define	MOUNTATTR_IOREQUEST		(MOUNTATTR_Dummy+3)
   36 /*
   37  * The ChangeStatus
   38  * Data: ULONG (0 or -1)
   39  */
   40 #define	MOUNTATTR_CHANGESTATE		(MOUNTATTR_Dummy+4)
   41 /*
   42  * The ProtStatus
   43  *     Data: ULONG (0 or -1)
   44  * Function: MountGetNotifyUnitAttr()
   45  */
   46 #define	MOUNTATTR_PROTSTATE		(MOUNTATTR_Dummy+5)
   47 /*
   48  * Copies the DriveGeometry to the passed data ptr
   49  *     Data: struct DriveGeometry *
   50  * Function: MountGetNotifyUnitAttr()
   51  */
   52 #define	MOUNTATTR_DRIVEGEOMETRY		(MOUNTATTR_Dummy+6)
   53 
   54 /*
   55  * Refreshes the drivegeometry(totalsectors,sectorsize...) and protstatus
   56  * to reflect the current drive state. Only used by MountMountTagList() at
   57  * the moment.
   58  * Data: Boolean
   59  */
   60 #define	MOUNTATTR_UPDATEUNITCONFIG	(MOUNTATTR_Dummy+7)
   61 
   62 /*
   63  * Set the mount mode for an unit mount operation.
   64  * Data: Mode
   65  *       MOUNTMODE_AUTO 
   66  *       MOUNTMODE_YES
   67  *       MOUNTMODE_NO
   68  */
   69 #define	MOUNTATTR_MOUNTMODE		(MOUNTATTR_Dummy+8)
   70 
   71 /*
   72  * Get more informations why some function failed
   73  * Data: MOUNTERROR_?
   74  */
   75 #define	MOUNTATTR_ERROR			(MOUNTATTR_Dummy+9)
   76 
   77 /*
   78  * No ISO9660 mounting for cdroms
   79  * Data: Boolean
   80  */
   81 #define	MOUNTATTR_NOISO9660		(MOUNTATTR_Dummy+10)
   82 /*
   83  * No RDB mounting
   84  * Data: Boolean
   85  */
   86 #define	MOUNTATTR_NORDB			(MOUNTATTR_Dummy+11)
   87 /*
   88  * No MBR mounting
   89  * Data: Boolean
   90  */
   91 #define	MOUNTATTR_NOMBR			(MOUNTATTR_Dummy+12)
   92 /*
   93  * No FAT mounting
   94  * Data: Boolean
   95  */
   96 #define	MOUNTATTR_NOFAT			(MOUNTATTR_Dummy+13)
   97 /*
   98  * No MAC mounting
   99  * Data: Boolean
  100  */
  101 #define	MOUNTATTR_NOMAC			(MOUNTATTR_Dummy+14)
  102 /*
  103  * No GUID mounting
  104  * Data: Boolean
  105  */
  106 #define	MOUNTATTR_NOGUID		(MOUNTATTR_Dummy+15)
  107 /*
  108  * Force mounting stand-alone filesystem (without partition-table layout)
  109  * Data: Boolean
  110  */
  111 #define	MOUNTATTR_FORCENOLAYOUT	(MOUNTATTR_Dummy+16)
  112 #define	MOUNTATTR_FORCENOLAYUOT	MOUNTATTR_FORCENOLAYOUT
  113 /*
  114  * Drive name for no partition table case
  115  * Data: STRPTR
  116  */
  117 #define	MOUNTATTR_DRIVENAME		(MOUNTATTR_Dummy+17)
  118 /*
  119  * Filesystem for no partition table case
  120  * Data: ULONG
  121  */
  122 #define	MOUNTATTR_FILESYSTEM	(MOUNTATTR_Dummy+18)
  123 /*
  124  * Number of buffers for no partition table case
  125  * Data: ULONG
  126  */
  127 #define	MOUNTATTR_NUMBUFFERS	(MOUNTATTR_Dummy+19)
  128 /*
  129  * No RAW FS autodetection and mounting
  130  * Data: Boolean
  131  */
  132 #define MOUNTATTR_NORAWFS       (MOUNTATTR_Dummy+20)
  133 
  134 /*****************************************************************************/
  135 
  136 /*
  137  * MOUNTATTR_MOUNTMODE
  138  * values
  139  */
  140 
  141 #define	MOUNTMODE_AUTO	0
  142 #define	MOUNTMODE_NO	1
  143 #define	MOUNTMODE_YES	2
  144 
  145 
  146 /*****************************************************************************/
  147 
  148 /*
  149  * MOUNTATTR_ERROR
  150  * values
  151  */
  152 #define	MOUNTERROR_OK			0
  153 #define	MOUNTERROR_MEMORY		1
  154 #define	MOUNTERROR_QUERY_NOUNITNUM	2
  155 #define	MOUNTERROR_SIGNAL		3
  156 #define	MOUNTERROR_TIMER		4
  157 
  158 
  159 #endif