Added FDC37c655 SuperIO chip for Intel Premiere/PCI.

This commit is contained in:
TomW 2015-07-12 14:22:47 +01:00
commit e590bd9ca2
6 changed files with 167 additions and 2 deletions

View file

@ -40,6 +40,7 @@ typedef struct FDC
int inread;
int dskchg_activelow;
int enable_3f1;
} FDC;
static FDC fdc;
@ -376,6 +377,8 @@ uint8_t fdc_read(uint16_t addr, void *priv)
switch (addr&7)
{
case 1: /*???*/
if (!fdc.enable_3f1)
return 0xff;
// temp=0x50;
temp = 0x70;
if (fdc.dor & 1)
@ -950,6 +953,7 @@ void fdc_init()
{
timer_add(fdc_callback, &disctime, &disctime, NULL);
fdc.dskchg_activelow = 0;
fdc.enable_3f1 = 1;
}
void fdc_add()
@ -981,3 +985,8 @@ void fdc_set_dskchg_activelow()
{
fdc.dskchg_activelow = 1;
}
void fdc_3f1_enable(int enable)
{
fdc.enable_3f1 = enable;
}