]>
cloudbase.mooo.com Git - z180-stamp.git/blob - include/z180-serv.h
2 * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
4 * SPDX-License-Identifier: GPL-2.0+
14 void setup_z180_serv(void);
15 void restart_z180_serv(void);
18 /* CP/M drive interface */
20 /* TODO: Variable Disk Format */
21 #define CONFIG_CPM_DISKSIZE (8*1024*1024L)
23 typedef uint8_t drv_opt_t
;
25 #define DRV_OPT_RO (1<<0) /* Drive is write protected */
26 #define DRV_OPT_DEBUG (1<<1) /* Debug this drive */
27 #define DRV_OPT_REATTATCH (1<<7) /* Change existing attachment */
29 typedef uint8_t drv_flag_t
;
30 #define DRV_FLG_OPEN (1<<0) /* Drive is logged in from CP/M */
31 #define DRV_FLG_DIRTY (2<<0) /* Unwritten data */
43 int drv_detach(uint8_t drv
);
44 int drv_attach(uint8_t drv
, const char *filename
, drv_opt_t options
);
46 #endif /* Z180_SERV_H */