Previous 15994 Revisions Next

r2174 Sunday 30th March, 2008 at 22:25:16 UTC by Nathan Woods
Changed selectors from MESS_DEVINFO_PTR_[INIT|EXIT] to
MESS_DEVINFO_PTR_[START|STOP]. Also changed related structures.
[src/mess]device.c device.h image.c
[src/mess/devices]appldriv.c basicdsk.c bitbngr.c cartslot.c cassette.c chd_cd.c coco_vhd.c dsk.c harddriv.c idedrive.c mflopimg.c
[src/mess/drivers]a2600.c a7800.c abc80x.c apexc.c atarist.c gamecom.c gamepock.c gb.c geneve.c intv.c nc.c nes.c oric.c pc8801.c pdp1.c pokemini.c ql.c sg1000.c sms.c svi318.c thomson.c ti85.c ti990_10.c ti99_4p.c ti99_4x.c ti99_8.c tx0.c vc20.c wswan.c
[src/mess/formats]thom_dsk.c
[src/mess/machine]amigafdc.c cbm.c cbmserb.c

src/mess/devices/harddriv.c
r2173r2174
277277      case MESS_DEVINFO_INT_CREATE_OPTCOUNT:         info->i = 1; break;
278278
279279      /* --- the following bits of info are returned as pointers to data or functions --- */
280      case MESS_DEVINFO_PTR_INIT:                  info->init = DEVICE_START_NAME(mess_hd); break;
280      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(mess_hd); break;
281281      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_mess_hd; break;
282282      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_mess_hd; break;
283283      case MESS_DEVINFO_PTR_CREATE_OPTGUIDE:         info->p = (void *) mess_hd_option_guide; break;
src/mess/devices/cassette.c
r2173r2174
385385      case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE:   info->i = CASSETTE_PLAY; break;
386386
387387      /* --- the following bits of info are returned as pointers to data or functions --- */
388      case MESS_DEVINFO_PTR_INIT:                  info->init = DEVICE_START_NAME(cassette); break;
388      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(cassette); break;
389389      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_cassette; break;
390390      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_cassette; break;
391391      case MESS_DEVINFO_PTR_DISPLAY:               info->display = device_display_cassette; break;
src/mess/devices/idedrive.c
r2173r2174
3131   parent_devclass.get_info = harddisk_device_getinfo;
3232
3333   if (parent_init)
34      *parent_init = (device_start_func) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_INIT);
34      *parent_init = (device_start_func) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_START);
3535   if (parent_load)
3636      *parent_load = (device_load_handler) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_LOAD);
3737   if (parent_unload)
r2173r2174
161161   switch(state)
162162   {
163163      /* --- the following bits of info are returned as pointers to data or functions --- */
164      case MESS_DEVINFO_PTR_INIT:               info->init = DEVICE_START_NAME(ide_hd); break;
164      case MESS_DEVINFO_PTR_START:               info->start = DEVICE_START_NAME(ide_hd); break;
165165      case MESS_DEVINFO_PTR_LOAD:               info->load = ide_hd_load; break;
166166      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = ide_hd_unload; break;
167167      case MESS_DEVINFO_PTR_VALIDITY_CHECK:      info->validity_check = ide_hd_validity_check; break;
src/mess/devices/cartslot.c
r2173r2174
205205      case MESS_DEVINFO_INT_MUST_BE_LOADED:         info->i = must_be_loaded; break;
206206
207207      /* --- the following bits of info are returned as pointers to data or functions --- */
208      case MESS_DEVINFO_PTR_INIT:                  info->init = (count > 0) ? DEVICE_START_NAME(cartslot_specified) : NULL; break;
208      case MESS_DEVINFO_PTR_START:                  info->start = (count > 0) ? DEVICE_START_NAME(cartslot_specified) : NULL; break;
209209      case MESS_DEVINFO_PTR_LOAD:                  info->load = (count > 0) ? device_load_cartslot_specified : NULL; break;
210210      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = (count > 0) ? device_unload_cartslot_specified : NULL; break;
211211
src/mess/devices/chd_cd.c
r2173r2174
217217      case MESS_DEVINFO_INT_CREATE_OPTCOUNT:         info->i = 1; break;
218218
219219      /* --- the following bits of info are returned as pointers to data or functions --- */
220      case MESS_DEVINFO_PTR_INIT:                  info->init = DEVICE_START_NAME(mess_cd); break;
220      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(mess_cd); break;
221221      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_mess_cd; break;
222222      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_mess_cd; break;
223223      case MESS_DEVINFO_PTR_CREATE_OPTGUIDE:         info->p = (void *) mess_cd_option_guide; break;
src/mess/devices/mflopimg.c
r2173r2174
433433         break;
434434
435435      /* --- the following bits of info are returned as pointers to data or functions --- */
436      case MESS_DEVINFO_PTR_INIT:            info->init = DEVICE_START_NAME(floppy); break;
436      case MESS_DEVINFO_PTR_START:            info->start = DEVICE_START_NAME(floppy); break;
437437      case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_floppy; break;
438438      case MESS_DEVINFO_PTR_CREATE:         info->create = device_create_floppy; break;
439439      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = device_unload_floppy; break;
src/mess/devices/dsk.c
r2173r2174
544544      case MESS_DEVINFO_INT_CREATABLE:                  info->i = 0; break;
545545
546546      /* --- the following bits of info are returned as pointers to data or functions --- */
547      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(dsk_floppy); break;
547      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(dsk_floppy); break;
548548      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_dsk_floppy; break;
549549      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_dsk_floppy; break;
550550
src/mess/devices/appldriv.c
r2173r2174
282282
283283   image_alloctag(device, APPLE525TAG, sizeof(struct apple525_disk));
284284
285   parent_init = (device_start_func) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_INIT);
285   parent_init = (device_start_func) mess_device_get_info_fct(&parent_devclass, MESS_DEVINFO_PTR_START);
286286   parent_init(device);
287287}
288288
r2173r2174
326326      case MESS_DEVINFO_STR_DEV_TAG:         strcpy(info->s = device_temp_str(), APPLE525TAG); break;
327327
328328      /* --- the following bits of info are returned as pointers to data or functions --- */
329      case MESS_DEVINFO_PTR_INIT:            info->init = DEVICE_START_NAME(apple525_floppy); break;
329      case MESS_DEVINFO_PTR_START:            info->start = DEVICE_START_NAME(apple525_floppy); break;
330330      case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_apple525_floppy; break;
331331      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = device_unload_apple525_floppy; break;
332332      case MESS_DEVINFO_PTR_FLOPPY_OPTIONS:   info->p = (void *) floppyoptions_apple2; break;
src/mess/devices/basicdsk.c
r2173r2174
586586      case MESS_DEVINFO_INT_CREATABLE:               info->i = 1; break;
587587
588588      /* --- the following bits of info are returned as pointers to data or functions --- */
589      case MESS_DEVINFO_PTR_INIT:                  info->init = DEVICE_START_NAME(basicdsk_floppy); break;
589      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(basicdsk_floppy); break;
590590      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_basicdsk_floppy; break;
591591
592592      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/devices/coco_vhd.c
r2173r2174
246246      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
247247
248248      /* --- the following bits of info are returned as pointers to data or functions --- */
249      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(coco_vhd); break;
249      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(coco_vhd); break;
250250      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_coco_vhd; break;
251251
252252      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/devices/bitbngr.c
r2173r2174
167167      case MESS_DEVINFO_INT_CREATABLE:               info->i = 1; break;
168168
169169      /* --- the following bits of info are returned as pointers to data or functions --- */
170      case MESS_DEVINFO_PTR_INIT:                  info->init = DEVICE_START_NAME(bitbanger); break;
170      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(bitbanger); break;
171171
172172      /* --- the following bits of info are returned as NULL-terminated strings --- */
173173      case MESS_DEVINFO_STR_DEV_FILE:               strcpy(info->s = device_temp_str(), __FILE__); break;
src/mess/image.c
r2173r2174
158158      tagpool_init(&machine->images_data->slots[indx].tagpool);
159159      machine->images_data->slots[indx].dev = dev->devconfig;
160160
161      if (dev->init != NULL)
161      if (dev->start != NULL)
162162      {
163         dev->init(machine->images_data->slots[indx].dev);
163         dev->start(machine->images_data->slots[indx].dev);
164164      }
165165      indx++;
166166   }
r2173r2174
200200         /* identify the image */
201201         image = &machine->images_data->slots[indx];
202202
203         /* call the exit handler if appropriate */
204         if (dev->exit != NULL)
205            dev->exit(image->dev);
203         /* call the stop handler if appropriate */
204         if (dev->stop != NULL)
205            dev->stop(image->dev);
206206
207207         /* free the tagpool */
208208         tagpool_exit(&image->tagpool);
src/mess/device.c
r2173r2174
361361      mess_device->io_device.must_be_loaded      = mess_device_get_info_int(&mess_device->io_device.devclass, MESS_DEVINFO_INT_MUST_BE_LOADED) ? 1 : 0;
362362      mess_device->io_device.load_at_init         = mess_device_get_info_int(&mess_device->io_device.devclass, MESS_DEVINFO_INT_LOAD_AT_INIT) ? 1 : 0;
363363
364      mess_device->io_device.init               = (device_start_func) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_INIT);
365      mess_device->io_device.exit               = (device_stop_func) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_EXIT);
364      mess_device->io_device.start            = (device_start_func) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_START);
365      mess_device->io_device.stop               = (device_stop_func) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_STOP);
366366      mess_device->io_device.load               = (device_load_handler) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_LOAD);
367367      mess_device->io_device.create            = (device_create_handler) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_CREATE);
368368      mess_device->io_device.unload            = (device_unload_handler) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_UNLOAD);
src/mess/device.h
r2173r2174
5050   /* --- the following bits of info are returned as pointers to data or functions --- */
5151   MESS_DEVINFO_PTR_FIRST = 0x10000,
5252
53   MESS_DEVINFO_PTR_INIT,
54   MESS_DEVINFO_PTR_EXIT,
53   MESS_DEVINFO_PTR_START,
54   MESS_DEVINFO_PTR_STOP,
5555   MESS_DEVINFO_PTR_LOAD,
5656   MESS_DEVINFO_PTR_UNLOAD,
5757   MESS_DEVINFO_PTR_CREATE,
r2173r2174
112112   char *s;                                 /* generic strings */
113113   double   d;                                 /* generic floating points */
114114
115   device_start_func init;
116   device_stop_func exit;
115   device_start_func start;
116   device_stop_func stop;
117117   device_load_handler load;
118118   device_create_handler create;
119119   device_unload_handler unload;
r2173r2174
257257   unsigned int multiple : 1;
258258
259259   /* image handling callbacks */
260   device_start_func init;
261   device_stop_func exit;
260   device_start_func start;
261   device_stop_func stop;
262262   device_load_handler load;
263263   device_create_handler create;
264264   device_unload_handler unload;
src/mess/machine/cbm.c
r2173r2174
333333      case MESS_DEVINFO_STR_FILE_EXTENSIONS:      strcpy(info->s = device_temp_str(), "crt"); break;
334334
335335      /* --- the following bits of info are returned as pointers to data or functions --- */
336      case MESS_DEVINFO_PTR_INIT:               info->init = DEVICE_START_NAME(cbm_rom); break;
336      case MESS_DEVINFO_PTR_START:               info->start = DEVICE_START_NAME(cbm_rom); break;
337337      case MESS_DEVINFO_PTR_LOAD:               info->load = device_load_cbm_rom; break;
338338      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = device_unload_cbm_rom; break;
339339
src/mess/machine/cbmserb.c
r2173r2174
413413      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
414414
415415      /* --- the following bits of info are returned as pointers to data or functions --- */
416      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(cbm_drive); break;
417      case MESS_DEVINFO_PTR_EXIT:                     info->exit = DEVICE_STOP_NAME(cbm_drive); break;
416      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(cbm_drive); break;
417      case MESS_DEVINFO_PTR_STOP:                     info->stop = DEVICE_STOP_NAME(cbm_drive); break;
418418      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_cbm_drive; break;
419419
420420      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/machine/amigafdc.c
r2173r2174
758758      case MESS_DEVINFO_INT_CREATABLE:            info->i = 0; break;
759759
760760      /* --- the following bits of info are returned as pointers to data or functions --- */
761      case MESS_DEVINFO_PTR_INIT:               info->init = DEVICE_START_NAME(amiga_fdc); break;
761      case MESS_DEVINFO_PTR_START:               info->start = DEVICE_START_NAME(amiga_fdc); break;
762762      case MESS_DEVINFO_PTR_LOAD:               info->load = device_load_amiga_fdc; break;
763763      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = device_unload_amiga_fdc; break;
764764
src/mess/formats/thom_dsk.c
r2173r2174
927927   case MESS_DEVINFO_INT_CREATABLE:
928928      info->i = 1;
929929      break;
930   case MESS_DEVINFO_PTR_INIT:
931      info->init = DEVICE_START_NAME(thom_floppy);
930   case MESS_DEVINFO_PTR_START:
931      info->start = DEVICE_START_NAME(thom_floppy);
932932      break;
933933   case MESS_DEVINFO_PTR_LOAD:
934934      info->load = thom_floppy_load;
src/mess/drivers/wswan.c
r2173r2174
179179      case MESS_DEVINFO_INT_MUST_BE_LOADED:   info->i = 1; break;
180180
181181      /* --- the following bits of info are returned as pointers to data or functions --- */
182      case MESS_DEVINFO_PTR_INIT:         info->init = DEVICE_START_NAME(wswan_cart); break;
182      case MESS_DEVINFO_PTR_START:         info->start = DEVICE_START_NAME(wswan_cart); break;
183183      case MESS_DEVINFO_PTR_LOAD:         info->load = device_load_wswan_cart; break;
184184
185185      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/pdp1.c
r2173r2174
512512      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
513513
514514      /* --- the following bits of info are returned as pointers to data or functions --- */
515      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(pdp1_tape); break;
515      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(pdp1_tape); break;
516516      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_pdp1_tape; break;
517517      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_pdp1_tape; break;
518518      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = pdp1_get_open_mode; break;
src/mess/drivers/nc.c
r2173r2174
17471747      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
17481748
17491749      /* --- the following bits of info are returned as pointers to data or functions --- */
1750      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(nc_pcmcia_card); break;
1750      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(nc_pcmcia_card); break;
17511751      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nc_pcmcia_card; break;
17521752      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_nc_pcmcia_card; break;
17531753
r2173r2174
17711771      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
17721772
17731773      /* --- the following bits of info are returned as pointers to data or functions --- */
1774      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(serial_device); break;
1774      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
17751775      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nc_serial; break;
17761776      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
17771777
src/mess/drivers/pokemini.c
r2173r2174
8080   switch( state ) {
8181   case MESS_DEVINFO_INT_COUNT:         info->i = 1; break;
8282   case MESS_DEVINFO_INT_MUST_BE_LOADED:   info->i = 0; break;
83   case MESS_DEVINFO_PTR_INIT:         info->init = DEVICE_START_NAME(pokemini_cart); break;
83   case MESS_DEVINFO_PTR_START:         info->start = DEVICE_START_NAME(pokemini_cart); break;
8484   case MESS_DEVINFO_PTR_LOAD:         info->load = device_load_pokemini_cart; break;
8585   case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy( info->s = device_temp_str(), "min"); break;
8686   default:            cartslot_device_getinfo( devclass, state, info ); break;
src/mess/drivers/nes.c
r2173r2174
395395      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
396396
397397      /* --- the following bits of info are returned as pointers to data or functions --- */
398      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(nes_disk); break;
398      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(nes_disk); break;
399399      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nes_disk; break;
400400      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_nes_disk; break;
401401
src/mess/drivers/ti99_8.c
r2173r2174
550550      case MESS_DEVINFO_INT_COUNT:                     info->i = 3; break;
551551
552552      /* --- the following bits of info are returned as pointers to data or functions --- */
553      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(mess_hd); break;
553      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
554554      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
555555      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
556556
r2173r2174
639639      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
640640
641641      /* --- the following bits of info are returned as pointers to data or functions --- */
642      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(smartmedia); break;
642      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
643643      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
644644      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
645645
src/mess/drivers/gb.c
r2173r2174
635635      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
636636
637637      /* --- the following bits of info are returned as pointers to data or functions --- */
638      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(gb_cart); break;
638      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(gb_cart); break;
639639      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_gb_cart; break;
640640
641641      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/gamecom.c
r2173r2174
128128   case MESS_DEVINFO_INT_COUNT:
129129      info->i = 1;
130130      break;
131   case MESS_DEVINFO_PTR_INIT:
132      info->init = DEVICE_START_NAME(gamecom_cart);
131   case MESS_DEVINFO_PTR_START:
132      info->start = DEVICE_START_NAME(gamecom_cart);
133133      break;
134134   case MESS_DEVINFO_PTR_LOAD:
135135      info->load = device_load_gamecom_cart;
src/mess/drivers/thomson.c
r2173r2174
287287      info->i = 1;
288288      break;
289289
290   case MESS_DEVINFO_PTR_INIT:
291      info->init = DEVICE_START_NAME(thom_serial);
290   case MESS_DEVINFO_PTR_START:
291      info->start = DEVICE_START_NAME(thom_serial);
292292      break;
293293   case MESS_DEVINFO_PTR_LOAD:
294294      info->load = thom_serial_load;
src/mess/drivers/apexc.c
r2173r2174
861861      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
862862
863863      /* --- the following bits of info are returned as pointers to data or functions --- */
864      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(apexc_tape); break;
864      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(apexc_tape); break;
865865      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_apexc_tape; break;
866866      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = apexc_get_open_mode; break;
867867
src/mess/drivers/atarist.c
r2173r2174
21172117      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
21182118
21192119      /* --- the following bits of info are returned as pointers to data or functions --- */
2120      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(serial_device); break;
2120      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
21212121      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_atarist_serial; break;
21222122      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
21232123
r2173r2174
21362136      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
21372137
21382138      /* --- the following bits of info are returned as pointers to data or functions --- */
2139      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(serial_device); break;
2139      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
21402140      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_atarist_serial; break;
21412141      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
21422142
src/mess/drivers/geneve.c
r2173r2174
556556      case MESS_DEVINFO_INT_COUNT:                     info->i = 3; break;
557557
558558      /* --- the following bits of info are returned as pointers to data or functions --- */
559      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(mess_hd); break;
559      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
560560      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
561561      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
562562
r2173r2174
621621      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
622622
623623      /* --- the following bits of info are returned as pointers to data or functions --- */
624      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(smartmedia); break;
624      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
625625      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
626626      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
627627
src/mess/drivers/sg1000.c
r2173r2174
855855      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
856856
857857      /* --- the following bits of info are returned as pointers to data or functions --- */
858      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(serial_device); break;
858      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
859859      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_sf7000_serial; break;
860860      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
861861
src/mess/drivers/tx0.c
r2173r2174
406406      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
407407
408408      /* --- the following bits of info are returned as pointers to data or functions --- */
409      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(tx0_tape); break;
409      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(tx0_tape); break;
410410      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tx0_tape; break;
411411      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tx0_tape; break;
412412      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = tx0_tape_get_open_mode; break;
r2173r2174
450450      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
451451
452452      /* --- the following bits of info are returned as pointers to data or functions --- */
453      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(tx0_magtape); break;
453      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(tx0_magtape); break;
454454      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tx0_magtape; break;
455455      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tx0_magtape; break;
456456
src/mess/drivers/pc8801.c
r2173r2174
571571      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
572572
573573      /* --- the following bits of info are returned as pointers to data or functions --- */
574      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(d88image_floppy); break;
574      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(d88image_floppy); break;
575575      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_d88image_floppy; break;
576576
577577      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/a2600.c
r2173r2174
20092009      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
20102010
20112011      /* --- the following bits of info are returned as pointers to data or functions --- */
2012      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(a2600_cart); break;
2012      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(a2600_cart); break;
20132013      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a2600_cart; break;
20142014
20152015      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/oric.c
r2173r2174
570570      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
571571
572572      /* --- the following bits of info are returned as pointers to data or functions --- */
573      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(oric_floppy); break;
573      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(oric_floppy); break;
574574      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_oric_floppy; break;
575575
576576      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/vc20.c
r2173r2174
792792      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
793793
794794      /* --- the following bits of info are returned as pointers to data or functions --- */
795      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(vc20_rom); break;
795      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(vc20_rom); break;
796796      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_vc20_rom; break;
797797
798798      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/ql.c
r2173r2174
11281128      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
11291129
11301130      /* --- the following bits of info are returned as pointers to data or functions --- */
1131      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(serial_device); break;
1131      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
11321132      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ql_serial; break;
11331133      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
11341134
src/mess/drivers/ti990_10.c
r2173r2174
297297      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
298298
299299      /* --- the following bits of info are returned as pointers to data or functions --- */
300      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(ti990_hd); break;
300      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti990_hd); break;
301301      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti990_hd; break;
302302      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti990_hd; break;
303303
r2173r2174
319319      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
320320
321321      /* --- the following bits of info are returned as pointers to data or functions --- */
322      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(ti990_tape); break;
322      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti990_tape); break;
323323      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti990_tape; break;
324324      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti990_tape; break;
325325
src/mess/drivers/abc80x.c
r2173r2174
10681068      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
10691069
10701070      /* --- the following bits of info are returned as pointers to data or functions --- */
1071      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(serial_device); break;
1071      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
10721072      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_abc800_serial; break;
10731073      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
10741074
src/mess/drivers/a7800.c
r2173r2174
346346      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
347347
348348      /* --- the following bits of info are returned as pointers to data or functions --- */
349      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(a7800_cart); break;
349      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(a7800_cart); break;
350350      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a7800_cart; break;
351351      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = a7800_partialhash; break;
352352
src/mess/drivers/intv.c
r2173r2174
435435      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
436436
437437      /* --- the following bits of info are returned as pointers to data or functions --- */
438      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(intv_cart); break;
438      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(intv_cart); break;
439439      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_intv_cart; break;
440440
441441      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/sms.c
r2173r2174
509509      case MESS_DEVINFO_INT_MUST_BE_LOADED:      info->i = 0; break;
510510
511511      /* --- the following bits of info are returned as pointers to data or functions --- */
512      case MESS_DEVINFO_PTR_INIT:            info->init = DEVICE_START_NAME(sms_cart); break;
512      case MESS_DEVINFO_PTR_START:            info->start = DEVICE_START_NAME(sms_cart); break;
513513      case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_sms_cart; break;
514514
515515      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/ti85.c
r2173r2174
491491      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
492492
493493      /* --- the following bits of info are returned as pointers to data or functions --- */
494      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(ti85_serial); break;
494      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti85_serial); break;
495495      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti85_serial; break;
496496      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti85_serial; break;
497497
r2173r2174
533533      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
534534
535535      /* --- the following bits of info are returned as pointers to data or functions --- */
536      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(ti85_serial); break;
536      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti85_serial); break;
537537      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti85_serial; break;
538538      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti85_serial; break;
539539
src/mess/drivers/svi318.c
r2173r2174
513513         break;
514514
515515      /* --- the following bits of info are returned as pointers to data or functions --- */
516      case MESS_DEVINFO_PTR_INIT:
517         info->init = DEVICE_START_NAME(svi318_cart);
516      case MESS_DEVINFO_PTR_START:
517         info->start = DEVICE_START_NAME(svi318_cart);
518518         break;
519519      case MESS_DEVINFO_PTR_LOAD:
520520         info->load = device_load_svi318_cart;
src/mess/drivers/ti99_4p.c
r2173r2174
345345      case MESS_DEVINFO_INT_COUNT:                     info->i = 3; break;
346346
347347      /* --- the following bits of info are returned as pointers to data or functions --- */
348      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(mess_hd); break;
348      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
349349      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
350350      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
351351
r2173r2174
424424      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
425425
426426      /* --- the following bits of info are returned as pointers to data or functions --- */
427      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(smartmedia); break;
427      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
428428      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
429429      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
430430   }
src/mess/drivers/ti99_4x.c
r2173r2174
781781      case MESS_DEVINFO_INT_COUNT:                     info->i = 3; break;
782782
783783      /* --- the following bits of info are returned as pointers to data or functions --- */
784      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(ti99_cart); break;
784      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti99_cart); break;
785785      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_cart; break;
786786      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_cart; break;
787787
r2173r2174
820820      case MESS_DEVINFO_INT_COUNT:                     info->i = 3; break;
821821
822822      /* --- the following bits of info are returned as pointers to data or functions --- */
823      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(mess_hd); break;
823      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
824824      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
825825      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
826826
r2173r2174
906906      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
907907
908908      /* --- the following bits of info are returned as pointers to data or functions --- */
909      case MESS_DEVINFO_PTR_INIT:                     info->init = DEVICE_START_NAME(smartmedia); break;
909      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
910910      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
911911      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
912912
src/mess/drivers/gamepock.c
r2173r2174
8484   switch( state ) {
8585   case MESS_DEVINFO_INT_COUNT:                              info->i = 1; break;
8686   case MESS_DEVINFO_INT_MUST_BE_LOADED:                     info->i = 0; break;
87   case MESS_DEVINFO_PTR_INIT:                              info->init = DEVICE_START_NAME(gamepock_cart); break;
87   case MESS_DEVINFO_PTR_START:                              info->start = DEVICE_START_NAME(gamepock_cart); break;
8888   case MESS_DEVINFO_PTR_LOAD:                              info->load = device_load_gamepock_cart; break;
8989   case MESS_DEVINFO_STR_FILE_EXTENSIONS:                     strcpy( info->s = device_temp_str(), "bin" ); break;
9090   default:                                       cartslot_device_getinfo(devclass, state, info); break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team