1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
/*
* KCemu -- The emulator for the KC85 homecomputer series and much more.
* Copyright (C) 1997-2010 Torsten Paul
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __libdisk_libdiskp_h
#define __libdisk_libdiskp_h
#include "libdisk/libdisk.h"
typedef struct libdisk_dpb
{
int spt;
int bsh;
int blm;
int exm;
int dsm;
int drm;
int al0;
int al1;
int cks;
int ofs;
int psh;
int phm;
int eot;
int gap;
int ntr;
} libdisk_dpb_t;
typedef struct libdisk_loader
{
const char * (*get_name)(void);
int (*open)(libdisk_prop_t *prop, const char *path);
void (*close)(libdisk_prop_t *prop);
int (*read_sector)(libdisk_prop_t *prop, unsigned char *buf, int len);
int (*write_sector)(libdisk_prop_t *prop, unsigned char *buf, int len);
} libdisk_loader_t;
#define MAX_DISK_LOADERS (10)
int libdisk_register_loader(libdisk_loader_t *loader);
void loader_dir_init(void);
void loader_cdm_init(void);
void loader_td0_init(void);
void loader_22dsk_init(void);
#endif /* __libdisk_libdiskp_h */
|