File:  [RetroPC.NET] / np2 / fdd / sxsi.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Fri Oct 17 02:58:29 2003 JST (22 years ago) by yui
Branches: mie
CVS tags: start, rel_036, VER_0_70
Neko Project II


enum {
	HDDTYPE_SASI,
	HDDTYPE_SCSI,
	HDDTYPE_NONE
};

typedef struct {
	long	totals;
	UINT16	tracks;
	UINT16	size;
	BYTE	sectors;
	BYTE	surfaces;
	UINT16	type;
	UINT32	headersize;
	char	fname[MAX_PATH];
	void	*fh;
} _SXSIHDD, *SXSIHDD;


#ifdef __cplusplus
extern "C" {
#endif

extern	_SXSIHDD	sxsi_hd[4];

void sxsi_initialize(void);

SXSIHDD sxsi_getptr(BYTE drv);
const char *sxsi_getname(BYTE drv);
BOOL sxsi_hddopen(BYTE drv, const char *file);

void sxsi_open(void);
void sxsi_flash(void);
void sxsi_trash(void);

BYTE sxsi_read(BYTE drv, long pos, BYTE *buf, UINT16 size);
BYTE sxsi_write(BYTE drv, long pos, const BYTE *buf, UINT16 size);
BYTE sxsi_format(BYTE drv, long pos);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>