static int device_init_apple525_floppy(mess_image *image) { device_init_handler parent_init; if (!image_alloctag(image, APPLE525TAG, sizeof(struct apple525_disk))) return INIT_FAIL; parent_init = (device_init_handler) device_get_info_fct(&parent_devclass, DEVINFO_PTR_INIT); return parent_init(image); }
static int device_init_cassette(mess_image *image) { const struct IODevice *dev; if (!image_alloctag(image, CASSETTE_TAG, sizeof(struct mess_cassetteimg))) return INIT_FAIL; /* set to default state */ dev = device_find(Machine->devices, IO_CASSETTE); get_cassimg(image)->state = get_default_state(dev); return INIT_PASS; }
int device_init_mess_hd(mess_image *image) { struct mess_hd *hd; hd = image_alloctag(image, MESSHDTAG, sizeof(struct mess_hd)); if (!hd) return INIT_FAIL; hd->hard_disk_handle = NULL; chd_set_interface(&mess_hard_disk_interface); return INIT_PASS; }
int device_init_mess_cd(mess_image *image) { struct mess_cd *cd; cd = image_alloctag(image, MESSCDTAG, sizeof(struct mess_cd)); if (!cd) return INIT_FAIL; cd->cdrom_handle = NULL; chd_set_interface(&mess_cdrom_interface); return INIT_PASS; }
static DEVICE_INIT( apple525_floppy ) { if (!image_alloctag(image, APPLE525TAG, sizeof(struct apple525_disk))) return INIT_FAIL; return parent_init(image); }
static int device_init_floppy(mess_image *image) { if (!image_alloctag(image, FLOPPY_TAG, sizeof(struct mess_flopimg))) return INIT_FAIL; return floppy_drive_init(image, &mess_floppy_interface); }