Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
cpmfs.h
Go to the documentation of this file.
1 /* Re-CP/M: CP/M-like own implementation + Z80 emulator
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2016-2019 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef __XEMU_RECPM_CPMFS_H_INCLUDED
20 #define __XEMU_RECPM_CPMFS_H_INCLUDED
21 
22 // These must be this way, ALWAYS! Only one should be used from the DMA stuffs, and file find functions should return with
23 // these values (low two bits only) to the BDOS level at least!
24 #define CPMFS_SF_STORE_IN_DMA0 0x10
25 #define CPMFS_SF_STORE_IN_DMA1 0x11
26 #define CPMFS_SF_STORE_IN_DMA2 0x12
27 #define CPMFS_SF_STORE_IN_DMA3 0x13
28 // The rest of the options are regular bit mask, though
29 #define CPMFS_SF_JOKERY 0x20
30 #define CPMFS_SF_INPUT_IS_FCB 0x40
31 
32 extern int current_drive;
33 
34 extern void cpmfs_init ( void );
35 extern void cpmfs_uninit ( void );
36 extern void cpmfs_close_all_files ( void );
37 extern int cpmfs_mount_drive ( int drive, const char *dir_path, int dirbase_part_only );
38 extern char *cpmfs_search_file_get_result_path ( void );
39 extern int cpmfs_search_file ( void );
40 extern int cpmfs_search_file_setup ( int drive, const Uint8 *input, int options );
41 
42 #endif
cpmfs_close_all_files
void cpmfs_close_all_files(void)
Definition: cpmfs.c:82
cpmfs_init
void cpmfs_init(void)
Definition: cpmfs.c:67
cpmfs_search_file_get_result_path
char * cpmfs_search_file_get_result_path(void)
Definition: cpmfs.c:154
dir_path
char dir_path[PATH_MAX]
Definition: cpmfs.c:47
cpmfs_uninit
void cpmfs_uninit(void)
Definition: cpmfs.c:91
Uint8
uint8_t Uint8
Definition: fat32.c:51
drive
char * drive
Definition: commodore_geos.c:151
current_drive
int current_drive
Definition: cpmfs.c:58
options
int options
Definition: cpmfs.c:41
cpmfs_mount_drive
int cpmfs_mount_drive(int drive, const char *dir_path, int dirbase_part_only)
Definition: cpmfs.c:101
cpmfs_search_file_setup
int cpmfs_search_file_setup(int drive, const Uint8 *input, int options)
Definition: cpmfs.c:285
cpmfs_search_file
int cpmfs_search_file(void)
Definition: cpmfs.c:219