Add PS/1 XTIDE variant to HDD controller list.
This commit is contained in:
parent
a3ae6a6eed
commit
56b9c33780
6 changed files with 38 additions and 15 deletions
28
src/xtide.c
28
src/xtide.c
|
|
@ -90,6 +90,17 @@ static void *xtide_at_init()
|
|||
return xtide;
|
||||
}
|
||||
|
||||
static void *xtide_ps1_init()
|
||||
{
|
||||
xtide_t *xtide = malloc(sizeof(xtide_t));
|
||||
memset(xtide, 0, sizeof(xtide_t));
|
||||
|
||||
rom_init(&xtide->bios_rom, "ide_at_1_1_5.bin", 0xc8000, 0x4000, 0x3fff, 0, MEM_MAPPING_EXTERNAL);
|
||||
device_add(&ide_device);
|
||||
|
||||
return xtide;
|
||||
}
|
||||
|
||||
static void xtide_close(void *p)
|
||||
{
|
||||
xtide_t *xtide = (xtide_t *)p;
|
||||
|
|
@ -107,6 +118,11 @@ static int xtide_at_available()
|
|||
return rom_present("ide_at.bin");
|
||||
}
|
||||
|
||||
static int xtide_ps1_available()
|
||||
{
|
||||
return rom_present("ide_at_1_1_5.bin");
|
||||
}
|
||||
|
||||
device_t xtide_device =
|
||||
{
|
||||
"XTIDE",
|
||||
|
|
@ -131,3 +147,15 @@ device_t xtide_at_device =
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
device_t xtide_ps1_device =
|
||||
{
|
||||
"XTIDE (PS/1)",
|
||||
DEVICE_PS1,
|
||||
xtide_ps1_init,
|
||||
xtide_close,
|
||||
xtide_ps1_available,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue