X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/cb4fb1ed02b59f798368a76f2596d7c24125e68a..b52f6676247f00de026b41ecd88d2f826a8d06cb:/include/z180-serv.h diff --git a/include/z180-serv.h b/include/z180-serv.h index 5385ecd..3b4a462 100644 --- a/include/z180-serv.h +++ b/include/z180-serv.h @@ -7,6 +7,7 @@ #ifndef Z180_SERV_H #define Z180_SERV_H +#include #include #include "ff.h" @@ -25,9 +26,13 @@ typedef uint8_t drv_opt_t; #define DRV_OPT_DEBUG (1<<1) /* Debug this drive */ #define DRV_OPT_REATTATCH (1<<7) /* Change existing attachment */ +typedef uint8_t drv_flag_t; +#define DRV_FLG_OPEN (1<<0) /* Drive is logged in from CP/M */ +#define DRV_FLG_DIRTY (2<<0) /* Unwritten data */ + struct cpm_drive_s { drv_opt_t opt; - bool dirty; + drv_flag_t flags; uint32_t dph; char *img_name; FIL fd;