/* Copyright 2006 Theo Berkau12This file is part of Yabause.34Yabause is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2 of the License, or7(at your option) any later version.89Yabause is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with Yabause; if not, write to the Free Software16Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*/1819#ifndef BIOS_H20#define BIOS_H2122#include "sh2core.h"2324typedef struct25{26char filename[12];27char comment[11];28u8 language;29u8 year;30u8 month;31u8 day;32u8 hour;33u8 minute;34u8 week;35u32 datasize;36u16 blocksize;37} saveinfo_struct;3839typedef struct40{41u8 id;42char name[32];43} deviceinfo_struct;4445void BiosInit(void);46int FASTCALL BiosHandleFunc(SH2_struct * sh);4748deviceinfo_struct *BupGetDeviceList(int *numdevices);49int BupGetStats(u32 device, u32 *freespace, u32 *maxspace);50saveinfo_struct *BupGetSaveList(u32 device, int *numsaves);51int BupDeleteSave(u32 device, const char *savename);52void BupFormat(u32 device);53int BupCopySave(u32 srcdevice, u32 dstdevice, const char *savename);54int BupImportSave(u32 device, const char *filename);55int BupExportSave(u32 device, const char *savename, const char *filename);56#endif57585960