diff options
author | Leo C | 2016-05-30 23:58:57 +0200 |
---|---|---|
committer | Leo C | 2016-05-30 23:58:57 +0200 |
commit | 4122fe90c2fffbec62a431ac15fb4b373aecb1ea (patch) | |
tree | c959ecd891d334dfc19791830da866d93b3f30e7 /include/z180-serv.h | |
parent | 7429bfac795f648892a4fc226bc92a40afc2cb83 (diff) | |
download | z180-stamp-4122fe90c2fffbec62a431ac15fb4b373aecb1ea.zip |
attach/detach working (minus options)
Diffstat (limited to 'include/z180-serv.h')
-rw-r--r-- | include/z180-serv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/z180-serv.h b/include/z180-serv.h index 5385ecd..b6a65b0 100644 --- a/include/z180-serv.h +++ b/include/z180-serv.h @@ -25,9 +25,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; |