|
|
| version 1.9, 2005/02/12 12:40:38 | version 1.10, 2005/03/05 06:02:28 |
|---|---|
| Line 58 static BRESULT setidentify(IDEDRV drv) { | Line 58 static BRESULT setidentify(IDEDRV drv) { |
| UINT32 size; | UINT32 size; |
| sxsi = sxsi_getptr(drv->sxsidrv); | sxsi = sxsi_getptr(drv->sxsidrv); |
| if ((sxsi == NULL) || (sxsi->fname[0] == '\0')) { | if ((sxsi == NULL) || (!(sxsi->flag & SXSIFLAG_READY))) { |
| return(FAILURE); | return(FAILURE); |
| } | } |
| Line 797 static void devinit(IDEDRV drv, REG8 sxs | Line 797 static void devinit(IDEDRV drv, REG8 sxs |
| SXSIDEV sxsi; | SXSIDEV sxsi; |
| ZeroMemory(drv, sizeof(_IDEDRV)); | ZeroMemory(drv, sizeof(_IDEDRV)); |
| drv->sxsidrv = sxsidrv; | |
| sxsi = sxsi_getptr(sxsidrv); | sxsi = sxsi_getptr(sxsidrv); |
| if ((sxsi != NULL) && (sxsi->fname[0] != '\0')) { | if ((sxsi != NULL) && |
| drv->sxsidrv = sxsidrv; | (sxsi->devtype == SXSIDEV_HDD) && (sxsi->flag & SXSIFLAG_READY)) { |
| drv->status = IDESTAT_DRDY | IDESTAT_DSC; | drv->status = IDESTAT_DRDY | IDESTAT_DSC; |
| drv->error = IDEERR_AMNF; | drv->error = IDEERR_AMNF; |
| drv->device = IDETYPE_HDD; | drv->device = IDETYPE_HDD; |
| Line 836 void ideio_reset(void) { | Line 837 void ideio_reset(void) { |
| drv->device = IDETYPE_CDROM; | drv->device = IDETYPE_CDROM; |
| #endif | #endif |
| #if 0 | |
| ideio.dev[0].drv[0].status = IDE_READY | IDE_SEEKCOMPLETE; | |
| ideio.dev[0].drv[0].error = 1; | |
| ideio.dev[1].drv[0].status = IDE_READY | IDE_SEEKCOMPLETE; | |
| ideio.dev[1].drv[0].error = 1; | |
| ideio.dev[0].drv[0].sxsidrv = 0x00; | |
| ideio.dev[0].drv[1].sxsidrv = 0x01; | |
| ideio.dev[1].drv[0].sxsidrv = 0x02; | |
| ideio.dev[1].drv[1].sxsidrv = 0x03; | |
| #endif | |
| CopyMemory(mem + 0xd0000, idebios, sizeof(idebios)); | CopyMemory(mem + 0xd0000, idebios, sizeof(idebios)); |
| TRACEOUT(("use simulate ide.rom")); | TRACEOUT(("use simulate ide.rom")); |
| } | } |
| Line 881 void ideio_bind(void) { | Line 870 void ideio_bind(void) { |
| } | } |
| } | } |
| void ideio_notify(REG8 sxsidrv, UINT action) { | |
| (void)sxsidrv; | |
| (void)action; | |
| } | |
| #endif /* SUPPORT_IDEIO */ | #endif /* SUPPORT_IDEIO */ |