static void dgnbeta_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* floppy */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 4; break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_coco; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ case DEVINFO_STR_NAME+0: strcpy(info->s = device_temp_str(), "floppydisk0"); break; case DEVINFO_STR_NAME+1: strcpy(info->s = device_temp_str(), "floppydisk1"); break; case DEVINFO_STR_NAME+2: strcpy(info->s = device_temp_str(), "floppydisk2"); break; case DEVINFO_STR_NAME+3: strcpy(info->s = device_temp_str(), "floppydisk3"); break; case DEVINFO_STR_SHORT_NAME+0: strcpy(info->s = device_temp_str(), "flop0"); break; case DEVINFO_STR_SHORT_NAME+1: strcpy(info->s = device_temp_str(), "flop1"); break; case DEVINFO_STR_SHORT_NAME+2: strcpy(info->s = device_temp_str(), "flop2"); break; case DEVINFO_STR_SHORT_NAME+3: strcpy(info->s = device_temp_str(), "flop3"); break; case DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "Floppy #0"); break; case DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "Floppy #1"); break; case DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "Floppy #2"); break; case DEVINFO_STR_DESCRIPTION+3: strcpy(info->s = device_temp_str(), "Floppy #3"); break; default: floppy_device_getinfo(devclass, state, info); break; } }
static void adam_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* floppy */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 4; break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_adam; break; default: floppy_device_getinfo(devclass, state, info); break; } }
void apple525_device_getinfo(struct IODevice *dev, int spinfract_dividend, int spinfract_divisor) { floppy_device_getinfo(dev, floppyoptions_apple2); dev->count = 2; dev->tag = APPLE525TAG; parent_init = dev->init; parent_load = dev->load; parent_unload = dev->unload; dev->init = device_init_apple525_floppy; dev->load = device_load_apple525_floppy; dev->unload = device_unload_apple525_floppy; dev->user2 = (void *) spinfract_dividend; dev->user3 = (void *) spinfract_divisor; }
void apple525_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 2; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ case DEVINFO_STR_DEV_TAG: strcpy(info->s = device_temp_str(), APPLE525TAG); break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_INIT: info->init = device_init_apple525_floppy; break; case DEVINFO_PTR_LOAD: info->load = device_load_apple525_floppy; break; case DEVINFO_PTR_UNLOAD: info->unload = device_unload_apple525_floppy; break; case DEVINFO_PTR_FLOPPY_OPTIONS: info->p = (void *) floppyoptions_apple2; break; default: floppy_device_getinfo(devclass, state, info); break; } }
static void adam_floppy_getinfo(struct IODevice *dev) { /* floppy */ floppy_device_getinfo(dev, floppyoptions_adam); dev->count = 4; }
static void compis_floppy_getinfo(struct IODevice *dev) { /* floppy */ floppy_device_getinfo(dev, floppyoptions_compis); dev->count = 2; }
static void ti99_4_floppy_getinfo(struct IODevice *dev) { /* floppy */ floppy_device_getinfo(dev, floppyoptions_ti99); dev->count = 4; }