| [src/mess] | device.c device.h messopts.c messopts.h mesvalid.c |
| [src/mess/devices] | appldriv.c appldriv.h basicdsk.c basicdsk.h bitbngr.c bitbngr.h cartslot.c cartslot.h cassette.c cassette.h chd_cd.c chd_cd.h coco_vhd.c coco_vhd.h dsk.c dsk.h harddriv.c harddriv.h idedrive.c idedrive.h mflopimg.c mflopimg.h printer.c printer.h snapquik.c snapquik.h sonydriv.c sonydriv.h z80bin.c z80bin.h |
| [src/mess/drivers] | 3do.c a2600.c a7800.c abc80.c abc80x.c adam.c amiga.c amstrad.c apexc.c apf.c apple1.c apple2.c apple2gs.c apple3.c arcadia.c astrocde.c at.c atari.c atarist.c atom.c bbc.c bebox.c c128.c c16.c c64.c c65.c cbmb.c cgenie.c coco.c coleco.c compis.c concept.c coupe.c crvision.c dai.c dgn_beta.c einstein.c electron.c enterp.c exidy.c galaxy.c gamecom.c gamepock.c gb.c genesis.c geneve.c intv.c ip20.c ip22.c jaguar.c jupiter.c kaypro.c kc.c lisa.c lviv.c lynx.c mac.c mbee.c mc10.c mekd2.c microtan.c msx.c mtx.c mz700.c n64.c nascom1.c nc.c nes.c odyssey2.c oric.c osborne1.c osi.c pc.c pc8801.c pce.c pcw.c pcw16.c pdp1.c pet.c pmd85.c pokemini.c primo.c psx.c ql.c saturn.c sg1000.c sms.c snes.c sord.c spectrum.c studio2.c super80.c svi318.c sym1.c thomson.c ti85.c ti990_10.c ti990_4.c ti99_4p.c ti99_4x.c ti99_8.c tm990189.c tmc1800.c tmc2000e.c tmc600.c trs80.c tutor.c tx0.c vc20.c vc4000.c vectrex.c vip.c vtech1.c vtech2.c wswan.c x68k.c zx.c |
| [src/mess/formats] | thom_cas.c thom_cas.h thom_dsk.c thom_dsk.h |
| [src/mess/includes] | cbm.h cbmserb.h kim1.h vc1541.h vc20tape.h |
| [src/mess/machine] | 99_ide.c 99_ide.h amigafdc.c amigafdc.h cbm.c cbmserb.c kim1.c vc1541.c vc20tape.c |
| [src/mess/osd/winui] | messui.c messui.h optionsms.c optionsms.h softwarepicker.c softwarepicker.h |
src/mess/devices/snapquik.h
| r1828 | r1829 | |
| 27 | 27 | #define SNAPSHOT_LOAD(name) int snapshot_load_##name(mess_image *image, const char *file_type, int snapshot_size) |
| 28 | 28 | #define QUICKLOAD_LOAD(name) int quickload_load_##name(mess_image *image, const char *file_type, int quickload_size) |
| 29 | 29 | |
| 30 | | void snapshot_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 31 | | void quickload_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 30 | void snapshot_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 31 | void quickload_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | #endif /* SNAPQUIK_H */ |
src/mess/devices/sonydriv.c
| r1828 | r1829 | |
| 51 | 51 | #define LOG_SONY_EXTRA 0 |
| 52 | 52 | #endif |
| 53 | 53 | |
| 54 | | static const device_class parent_devclass = { floppy_device_getinfo, NULL }; |
| 54 | static const mess_device_class parent_devclass = { floppy_device_getinfo, NULL }; |
| 55 | 55 | |
| 56 | 56 | /* |
| 57 | 57 | These lines are normally connected to the PHI0-PHI3 lines of the IWM |
| r1828 | r1829 | |
| 503 | 503 | |
| 504 | 504 | |
| 505 | 505 | |
| 506 | | void sonydriv_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 506 | void sonydriv_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 507 | 507 | { |
| 508 | 508 | switch(state) |
| 509 | 509 | { |
src/mess/devices/idedrive.c
| r1828 | r1829 | |
| 20 | 20 | device_load_handler *parent_load, |
| 21 | 21 | device_unload_handler *parent_unload) |
| 22 | 22 | { |
| 23 | | const device_class *devclass = &image_device(image)->devclass; |
| 24 | | device_class parent_devclass; |
| 23 | const mess_device_class *devclass = &image_device(image)->devclass; |
| 24 | mess_device_class parent_devclass; |
| 25 | 25 | |
| 26 | 26 | *which_bus = image_index_in_device(image); |
| 27 | 27 | *which_address = (int) mess_device_get_info_int(devclass, DEVINFO_INT_IDEDRIVE_ADDRESS); |
| r1828 | r1829 | |
| 121 | 121 | ide_hd_validity_check - check this device's validity |
| 122 | 122 | -------------------------------------------------*/ |
| 123 | 123 | |
| 124 | | static int ide_hd_validity_check(const device_class *devclass) |
| 124 | static int ide_hd_validity_check(const mess_device_class *devclass) |
| 125 | 125 | { |
| 126 | 126 | int error = 0; |
| 127 | 127 | int which_address; |
| r1828 | r1829 | |
| 159 | 159 | ide_harddisk_device_getinfo - Get info proc |
| 160 | 160 | -------------------------------------------------*/ |
| 161 | 161 | |
| 162 | | void ide_harddisk_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 162 | void ide_harddisk_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 163 | 163 | { |
| 164 | 164 | switch(state) |
| 165 | 165 | { |
src/mess/devices/appldriv.c
| r1828 | r1829 | |
| 26 | 26 | UINT8 track_data[APPLE2_NIBBLE_SIZE * APPLE2_SECTOR_COUNT]; |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | | static const device_class parent_devclass = { floppy_device_getinfo, NULL }; |
| 29 | static const mess_device_class parent_devclass = { floppy_device_getinfo, NULL }; |
| 30 | 30 | static int apple525_enable_mask = 1; |
| 31 | 31 | |
| 32 | 32 | |
| r1828 | r1829 | |
| 316 | 316 | |
| 317 | 317 | |
| 318 | 318 | |
| 319 | | void apple525_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 319 | void apple525_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 320 | 320 | { |
| 321 | 321 | switch(state) |
| 322 | 322 | { |
src/mess/devices/basicdsk.h
| r1828 | r1829 | |
| 53 | 53 | have a deleted data mark, if ddam==0, the sector will have a data mark */ |
| 54 | 54 | void basicdsk_set_ddam(mess_image *img, UINT8 physical_track, UINT8 physical_side, UINT8 sector_id,UINT8 ddam); |
| 55 | 55 | |
| 56 | | void legacybasicdsk_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 56 | void legacybasicdsk_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 57 | 57 | |
| 58 | 58 | #define CONFIG_DEVICE_FLOPPY_BASICDSK(count, file_extensions, load) \ |
| 59 | 59 | CONFIG_DEVICE_BASE(IO_FLOPPY, (count), (file_extensions), DEVICE_LOAD_RESETS_NONE, \ |
src/mess/devices/snapquik.c
| r1828 | r1829 | |
| 84 | 84 | |
| 85 | 85 | /* ----------------------------------------------------------------------- */ |
| 86 | 86 | |
| 87 | | static void snapquick_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 87 | static void snapquick_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 88 | 88 | { |
| 89 | 89 | switch(state) |
| 90 | 90 | { |
| r1828 | r1829 | |
| 105 | 105 | |
| 106 | 106 | |
| 107 | 107 | |
| 108 | | void snapshot_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 108 | void snapshot_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 109 | 109 | { |
| 110 | 110 | switch(state) |
| 111 | 111 | { |
| r1828 | r1829 | |
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | |
| 124 | | void quickload_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 124 | void quickload_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 125 | 125 | { |
| 126 | 126 | switch(state) |
| 127 | 127 | { |
src/mess/includes/vc1541.h
| r1828 | r1829 | |
| 44 | 44 | DEVINFO_PTR_VC1541_CONFIG = MESS_DEVINFO_PTR_DEV_SPECIFIC |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | | void vc1541_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 48 | | void c2031_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 49 | | void c1551_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 50 | | void c1571_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 47 | void vc1541_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 48 | void c2031_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 49 | void c1551_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 50 | void c1571_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 51 | 51 | |
| 52 | 52 | MACHINE_DRIVER_EXTERN( cpu_vc1540 ); |
| 53 | 53 | MACHINE_DRIVER_EXTERN( cpu_vc1541 ); |
src/mess/includes/vc20tape.h
| r1828 | r1829 | |
| 11 | 11 | /*----------- defined in machine/vc20tape.c -----------*/ |
| 12 | 12 | |
| 13 | 13 | /* put this into your gamedriver */ |
| 14 | | void vc20tape_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 14 | void vc20tape_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); |
| 15 | 15 | |
| 16 | 16 | /* the function which should be called by change on readline */ |
| 17 | 17 | extern void vc20_tape_open (write8_handler read_callback); |
src/mess/device.c
| r1828 | r1829 | |
| 89 | 89 | |
| 90 | 90 | |
| 91 | 91 | |
| 92 | | static const char *internal_device_instancename(const device_class *devclass, int id, |
| 92 | static const char *internal_device_instancename(const mess_device_class *devclass, int id, |
| 93 | 93 | UINT32 base, const char *(*get_dev_typename)(iodevice_t)) |
| 94 | 94 | { |
| 95 | 95 | iodevice_t type; |
| r1828 | r1829 | |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | |
| 122 | | const char *device_instancename(const device_class *devclass, int id) |
| 122 | const char *device_instancename(const mess_device_class *devclass, int id) |
| 123 | 123 | { |
| 124 | 124 | return internal_device_instancename(devclass, id, MESS_DEVINFO_STR_NAME, device_typename); |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | |
| 128 | 128 | |
| 129 | | const char *device_briefinstancename(const device_class *devclass, int id) |
| 129 | const char *device_briefinstancename(const mess_device_class *devclass, int id) |
| 130 | 130 | { |
| 131 | 131 | return internal_device_instancename(devclass, id, MESS_DEVINFO_STR_SHORT_NAME, device_brieftypename); |
| 132 | 132 | } |
src/mess/device.h
| r1828 | r1829 | |
| 54 | 54 | MESS_DEVINFO_PTR_GET_DISPOSITIONS, |
| 55 | 55 | MESS_DEVINFO_PTR_CREATE_OPTGUIDE, |
| 56 | 56 | MESS_DEVINFO_PTR_CREATE_OPTSPEC, |
| 57 | | MESS_DEVINFO_PTR_VALIDITY_CHECK = MESS_DEVINFO_PTR_CREATE_OPTSPEC + MESS_DEVINFO_CREATE_OPTMAX, /* R/O: int (*validity_check)(const device_class *devclass) */ |
| 57 | MESS_DEVINFO_PTR_VALIDITY_CHECK = MESS_DEVINFO_PTR_CREATE_OPTSPEC + MESS_DEVINFO_CREATE_OPTMAX, /* R/O: int (*validity_check)(const mess_device_class *devclass) */ |
| 58 | 58 | |
| 59 | 59 | MESS_DEVINFO_PTR_DEV_SPECIFIC = 0x18000, /* R/W: Device-specific values start here */ |
| 60 | 60 | |
| r1828 | r1829 | |
| 128 | 128 | { |
| 129 | 129 | device_getinfo_handler get_info; |
| 130 | 130 | const game_driver *gamedrv; |
| 131 | | } device_class; |
| 131 | } mess_device_class; |
| 132 | 132 | |
| 133 | 133 | |
| 134 | 134 | |
| r1828 | r1829 | |
| 138 | 138 | * |
| 139 | 139 | *************************************/ |
| 140 | 140 | |
| 141 | | INLINE INT64 mess_device_get_info_int(const device_class *devclass, UINT32 state) |
| 141 | INLINE INT64 mess_device_get_info_int(const mess_device_class *devclass, UINT32 state) |
| 142 | 142 | { |
| 143 | 143 | union devinfo info; |
| 144 | 144 | info.i = 0; |
| r1828 | r1829 | |
| 148 | 148 | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | | INLINE void *mess_device_get_info_ptr(const device_class *devclass, UINT32 state) |
| 151 | INLINE void *mess_device_get_info_ptr(const mess_device_class *devclass, UINT32 state) |
| 152 | 152 | { |
| 153 | 153 | union devinfo info; |
| 154 | 154 | info.p = NULL; |
| r1828 | r1829 | |
| 156 | 156 | return info.p; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | | INLINE genf *mess_device_get_info_fct(const device_class *devclass, UINT32 state) |
| 159 | INLINE genf *mess_device_get_info_fct(const mess_device_class *devclass, UINT32 state) |
| 160 | 160 | { |
| 161 | 161 | union devinfo info; |
| 162 | 162 | info.f = NULL; |
| r1828 | r1829 | |
| 164 | 164 | return info.f; |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | | INLINE const char *mess_device_get_info_string(const device_class *devclass, UINT32 state) |
| 167 | INLINE const char *mess_device_get_info_string(const mess_device_class *devclass, UINT32 state) |
| 168 | 168 | { |
| 169 | 169 | union devinfo info; |
| 170 | 170 | info.s = NULL; |
| r1828 | r1829 | |
| 172 | 172 | return info.s; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | | INLINE double mess_device_get_info_double(const device_class *devclass, UINT32 state) |
| 175 | INLINE double mess_device_get_info_double(const mess_device_class *devclass, UINT32 state) |
| 176 | 176 | { |
| 177 | 177 | union devinfo info; |
| 178 | 178 | info.d = 0.0; |
| r1828 | r1829 | |
| 186 | 186 | return cpuintrf_temp_str(); |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | | const char *device_instancename(const device_class *devclass, int id); |
| 190 | | const char *device_briefinstancename(const device_class *devclass, int id); |
| 189 | const char *device_instancename(const mess_device_class *devclass, int id); |
| 190 | const char *device_briefinstancename(const mess_device_class *devclass, int id); |
| 191 | 191 | |
| 192 | 192 | |
| 193 | 193 | |
| r1828 | r1829 | |
| 229 | 229 | |
| 230 | 230 | struct IODevice |
| 231 | 231 | { |
| 232 | | device_class devclass; |
| 232 | mess_device_class devclass; |
| 233 | 233 | |
| 234 | 234 | /* the basics */ |
| 235 | 235 | const char *tag; |
src/mess/mesvalid.c
| r1828 | r1829 | |
| 20 | 20 | * |
| 21 | 21 | *************************************/ |
| 22 | 22 | |
| 23 | | static int validate_device(const device_class *devclass) |
| 23 | static int validate_device(const mess_device_class *devclass) |
| 24 | 24 | { |
| 25 | 25 | int error = 0; |
| 26 | 26 | int is_invalid, i; |
| r1828 | r1829 | |
| 30 | 30 | char *s1; |
| 31 | 31 | char *s2; |
| 32 | 32 | iodevice_t devtype; |
| 33 | | int (*validity_check)(const device_class *devclass); |
| 33 | int (*validity_check)(const mess_device_class *devclass); |
| 34 | 34 | |
| 35 | 35 | /* critical information */ |
| 36 | 36 | devtype = (iodevice_t) (int) mess_device_get_info_int(devclass, MESS_DEVINFO_INT_TYPE); |
| r1828 | r1829 | |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /* is there a custom validity check? */ |
| 175 | | validity_check = (int (*)(const device_class *)) mess_device_get_info_fct(devclass, MESS_DEVINFO_PTR_VALIDITY_CHECK); |
| 175 | validity_check = (int (*)(const mess_device_class *)) mess_device_get_info_fct(devclass, MESS_DEVINFO_PTR_VALIDITY_CHECK); |
| 176 | 176 | if (validity_check) |
| 177 | 177 | { |
| 178 | 178 | if (validity_check(devclass)) |
| r1828 | r1829 | |
| 190 | 190 | int i; |
| 191 | 191 | struct SystemConfigurationParamBlock cfg; |
| 192 | 192 | device_getinfo_handler handlers[64]; |
| 193 | | device_class devclass; |
| 193 | mess_device_class devclass; |
| 194 | 194 | int count_overrides[sizeof(handlers) / sizeof(handlers[0])]; |
| 195 | 195 | |
| 196 | 196 | if (drv->sysconfig_ctor) |
src/mess/osd/winui/optionsms.h
| r1828 | r1829 | |
| 41 | 41 | void SetHashDirs(const char *dir); |
| 42 | 42 | const char *GetHashDirs(void); |
| 43 | 43 | |
| 44 | | void SetSelectedSoftware(int driver_index, const device_class *devclass, int device_inst, const char *software); |
| 45 | | const char *GetSelectedSoftware(int driver_index, const device_class *devclass, int device_inst); |
| 44 | void SetSelectedSoftware(int driver_index, const mess_device_class *devclass, int device_inst, const char *software); |
| 45 | const char *GetSelectedSoftware(int driver_index, const mess_device_class *devclass, int device_inst); |
| 46 | 46 | |
| 47 | 47 | void SetExtraSoftwarePaths(int driver_index, const char *extra_paths); |
| 48 | 48 | const char *GetExtraSoftwarePaths(int driver_index); |
src/mess/osd/winui/messui.c
| r1828 | r1829 | |
| 425 | 425 | |
| 426 | 426 | |
| 427 | 427 | // this is a wrapper call to wrap the idiosycracies of SetSelectedSoftware() |
| 428 | | static void InternalSetSelectedSoftware(int nGame, const device_class *devclass, int device_inst, const char *pszSoftware) |
| 428 | static void InternalSetSelectedSoftware(int nGame, const mess_device_class *devclass, int device_inst, const char *pszSoftware) |
| 429 | 429 | { |
| 430 | 430 | if (!pszSoftware) |
| 431 | 431 | pszSoftware = ""; |
| r1828 | r1829 | |
| 440 | 440 | |
| 441 | 441 | |
| 442 | 442 | // Places the specified image in the specified slot; nID = -1 means don't matter |
| 443 | | static void MessSpecifyImage(int nGame, const device_class *devclass, int nID, LPCSTR pszFilename) |
| 443 | static void MessSpecifyImage(int nGame, const mess_device_class *devclass, int nID, LPCSTR pszFilename) |
| 444 | 444 | { |
| 445 | 445 | const struct IODevice *devices; |
| 446 | 446 | const struct IODevice *dev; |
| r1828 | r1829 | |
| 498 | 498 | |
| 499 | 499 | |
| 500 | 500 | |
| 501 | | static void MessRemoveImage(int nGame, device_class devclass, LPCSTR pszFilename) |
| 501 | static void MessRemoveImage(int nGame, mess_device_class devclass, LPCSTR pszFilename) |
| 502 | 502 | { |
| 503 | 503 | int i, nPos; |
| 504 | 504 | const struct IODevice *devices; |
| r1828 | r1829 | |
| 967 | 967 | static void SoftwarePicker_LeavingItem(HWND hwndSoftwarePicker, int nItem) |
| 968 | 968 | { |
| 969 | 969 | int nGame; |
| 970 | | device_class devclass; |
| 970 | mess_device_class devclass; |
| 971 | 971 | LPCSTR pszFullName; |
| 972 | 972 | HWND hwndList; |
| 973 | 973 | |
| r1828 | r1829 | |
| 990 | 990 | LPCSTR pszName; |
| 991 | 991 | LPSTR s; |
| 992 | 992 | int nGame; |
| 993 | | device_class devclass; |
| 993 | mess_device_class devclass; |
| 994 | 994 | HWND hwndList; |
| 995 | 995 | |
| 996 | 996 | hwndList = GetDlgItem(GetMainWindow(), IDC_LIST); |
| r1828 | r1829 | |
| 1268 | 1268 | |
| 1269 | 1269 | |
| 1270 | 1270 | #ifdef UNUSED_FUNCTION |
| 1271 | | void MessCopyDeviceOption(core_options *opts, const game_driver *gamedrv, const device_class *devclass, int device_index, int global_index) |
| 1271 | void MessCopyDeviceOption(core_options *opts, const game_driver *gamedrv, const mess_device_class *devclass, int device_index, int global_index) |
| 1272 | 1272 | { |
| 1273 | 1273 | const char *dev_name; |
| 1274 | 1274 | const char *opt_value; |
src/mess/osd/winui/softwarepicker.c
| r1828 | r1829 | |
| 33 | 33 | |
| 34 | 34 | struct FileInfo |
| 35 | 35 | { |
| 36 | | device_class devclass; |
| 36 | mess_device_class devclass; |
| 37 | 37 | |
| 38 | 38 | // hash information |
| 39 | 39 | char szHash[HASH_BUF_SIZE]; |
| r1828 | r1829 | |
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | |
| 138 | | device_class SoftwarePicker_LookupDevice(HWND hwndPicker, int nIndex) |
| 138 | mess_device_class SoftwarePicker_LookupDevice(HWND hwndPicker, int nIndex) |
| 139 | 139 | { |
| 140 | 140 | struct SoftwarePickerInfo *pPickerInfo; |
| 141 | 141 | pPickerInfo = GetSoftwarePickerInfo(hwndPicker); |
| 142 | 142 | if ((nIndex < 0) || (nIndex >= pPickerInfo->nIndexLength)) |
| 143 | 143 | { |
| 144 | | device_class dummy; |
| 144 | mess_device_class dummy; |
| 145 | 145 | memset(&dummy, 0, sizeof(dummy)); |
| 146 | 146 | return dummy; |
| 147 | 147 | } |
| r1828 | r1829 | |
| 169 | 169 | iodevice_t SoftwarePicker_GetImageType(HWND hwndPicker, int nIndex) |
| 170 | 170 | { |
| 171 | 171 | struct SoftwarePickerInfo *pPickerInfo; |
| 172 | | const device_class *devclass; |
| 172 | const mess_device_class *devclass; |
| 173 | 173 | |
| 174 | 174 | pPickerInfo = GetSoftwarePickerInfo(hwndPicker); |
| 175 | 175 | if ((nIndex < 0) || (nIndex >= pPickerInfo->nIndexLength)) |
| r1828 | r1829 | |
| 395 | 395 | int nIndex, nSize, devindex; |
| 396 | 396 | LPCSTR pszExtension = NULL, s; |
| 397 | 397 | const struct IODevice *devices = NULL; |
| 398 | | device_class devclass = {0,}; |
| 398 | mess_device_class devclass = {0,}; |
| 399 | 399 | |
| 400 | 400 | // first check to see if it is already here |
| 401 | 401 | if (SoftwarePicker_LookupIndex(hwndPicker, pszFilename) >= 0) |
src/mess/osd/winui/optionsms.c
| r1828 | r1829 | |
| 140 | 140 | options_set_string(MameUIGlobal(), OPTION_HASHPATH, paths, OPTION_PRIORITY_CMDLINE); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | | void SetSelectedSoftware(int driver_index, const device_class *devclass, int device_inst, const char *software) |
| 143 | void SetSelectedSoftware(int driver_index, const mess_device_class *devclass, int device_inst, const char *software) |
| 144 | 144 | { |
| 145 | 145 | const char *opt_name = device_instancename(devclass, device_inst); |
| 146 | 146 | core_options *o; |
| r1828 | r1829 | |
| 158 | 158 | options_free(o); |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | | const char *GetSelectedSoftware(int driver_index, const device_class *devclass, int device_inst) |
| 161 | const char *GetSelectedSoftware(int driver_index, const mess_device_class *devclass, int device_inst) |
| 162 | 162 | { |
| 163 | 163 | const char *opt_name = device_instancename(devclass, device_inst); |
| 164 | 164 | const char *software; |
src/mess/osd/winui/softwarepicker.h
| r1828 | r1829 | |
| 5 | 5 | //============================================================ |
| 6 | 6 | |
| 7 | 7 | LPCSTR SoftwarePicker_LookupFilename(HWND hwndPicker, int nIndex); |
| 8 | | device_class SoftwarePicker_LookupDevice(HWND hwndPicker, int nIndex); |
| 8 | mess_device_class SoftwarePicker_LookupDevice(HWND hwndPicker, int nIndex); |
| 9 | 9 | int SoftwarePicker_LookupIndex(HWND hwndPicker, LPCSTR pszFilename); |
| 10 | 10 | iodevice_t SoftwarePicker_GetImageType(HWND hwndPicker, int nIndex); |
| 11 | 11 | BOOL SoftwarePicker_AddFile(HWND hwndPicker, LPCSTR pszFilename); |
src/mess/messopts.c
| r1828 | r1829 | |
| 42 | 42 | option, by device and index |
| 43 | 43 | -------------------------------------------------*/ |
| 44 | 44 | |
| 45 | | const char *mess_get_device_option(const device_class *devclass, int device_index) |
| 45 | const char *mess_get_device_option(const mess_device_class *devclass, int device_index) |
| 46 | 46 | { |
| 47 | 47 | const char *result = NULL; |
| 48 | 48 | const char *dev_name; |
| r1828 | r1829 | |
| 66 | 66 | -------------------------------------------------*/ |
| 67 | 67 | |
| 68 | 68 | static void mess_enumerate_devices(core_options *opts, const game_driver *gamedrv, |
| 69 | | void (*proc)(core_options *opts, const game_driver *gamedrv, const device_class *devclass, int device_index, int global_index)) |
| 69 | void (*proc)(core_options *opts, const game_driver *gamedrv, const mess_device_class *devclass, int device_index, int global_index)) |
| 70 | 70 | { |
| 71 | 71 | struct SystemConfigurationParamBlock cfg; |
| 72 | 72 | device_getinfo_handler handlers[64]; |
| 73 | 73 | int count_overrides[ARRAY_LENGTH(handlers)]; |
| 74 | 74 | int i, j, count, index = 0; |
| 75 | | device_class devclass; |
| 75 | mess_device_class devclass; |
| 76 | 76 | |
| 77 | 77 | /* retrieve getinfo handlers */ |
| 78 | 78 | memset(&cfg, 0, sizeof(cfg)); |
| r1828 | r1829 | |
| 110 | 110 | -------------------------------------------------*/ |
| 111 | 111 | |
| 112 | 112 | static void add_device_options_for_device(core_options *opts, const game_driver *gamedrv, |
| 113 | | const device_class *devclass, int device_index, int global_index) |
| 113 | const mess_device_class *devclass, int device_index, int global_index) |
| 114 | 114 | { |
| 115 | 115 | options_entry this_entry[2]; |
| 116 | 116 | const char *dev_name; |
| r1828 | r1829 | |
| 204 | 204 | -------------------------------------------------*/ |
| 205 | 205 | |
| 206 | 206 | static void extract_device_options_for_device(core_options *opts, const game_driver *gamedrv, |
| 207 | | const device_class *devclass, int device_index, int global_index) |
| 207 | const mess_device_class *devclass, int device_index, int global_index) |
| 208 | 208 | { |
| 209 | 209 | mess_image *image; |
| 210 | 210 | iodevice_t dev_type; |
src/mess/machine/vc1541.c
| r1828 | r1829 | |
| 1068 | 1068 | MACHINE_DRIVER_END |
| 1069 | 1069 | |
| 1070 | 1070 | |
| 1071 | | void vc1541_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1071 | void vc1541_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1072 | 1072 | { |
| 1073 | 1073 | switch(state) |
| 1074 | 1074 | { |
| r1828 | r1829 | |
| 1092 | 1092 | |
| 1093 | 1093 | |
| 1094 | 1094 | |
| 1095 | | void c2031_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1095 | void c2031_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1096 | 1096 | { |
| 1097 | 1097 | vc1541_device_getinfo(devclass, state, info); |
| 1098 | 1098 | } |
| 1099 | 1099 | |
| 1100 | 1100 | |
| 1101 | 1101 | |
| 1102 | | void c1551_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1102 | void c1551_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1103 | 1103 | { |
| 1104 | 1104 | switch(state) |
| 1105 | 1105 | { |
| r1828 | r1829 | |
| 1112 | 1112 | |
| 1113 | 1113 | |
| 1114 | 1114 | |
| 1115 | | void c1571_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1115 | void c1571_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1116 | 1116 | { |
| 1117 | 1117 | vc1541_device_getinfo(devclass, state, info); |
| 1118 | 1118 | } |
src/mess/formats/thom_cas.h
| r1828 | r1829 | |
| 24 | 24 | |
| 25 | 25 | CASSETTE_FORMATLIST_EXTERN( to7_cassette_formats ); |
| 26 | 26 | |
| 27 | | extern void to7_cassette_getinfo( const device_class *devclass, |
| 27 | extern void to7_cassette_getinfo( const mess_device_class *devclass, |
| 28 | 28 | UINT32 state, union devinfo *info ); |
| 29 | 29 | |
| 30 | 30 | |
| r1828 | r1829 | |
| 40 | 40 | |
| 41 | 41 | CASSETTE_FORMATLIST_EXTERN( mo5_cassette_formats ); |
| 42 | 42 | |
| 43 | | extern void mo5_cassette_getinfo( const device_class *devclass, |
| 43 | extern void mo5_cassette_getinfo( const mess_device_class *devclass, |
| 44 | 44 | UINT32 state, union devinfo *info ); |
| 45 | 45 | |
| 46 | 46 | #endif |
src/mess/formats/thom_cas.c
| r1828 | r1829 | |
| 986 | 986 | |
| 987 | 987 | /********************* devices ************************/ |
| 988 | 988 | |
| 989 | | void to7_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 989 | void to7_cassette_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 990 | 990 | { |
| 991 | 991 | switch ( state ) |
| 992 | 992 | { |
| r1828 | r1829 | |
| 1010 | 1010 | } |
| 1011 | 1011 | |
| 1012 | 1012 | |
| 1013 | | void mo5_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 1013 | void mo5_cassette_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 1014 | 1014 | { |
| 1015 | 1015 | switch ( state ) |
| 1016 | 1016 | { |
src/mess/drivers/vip.c
| r1828 | r1829 | |
| 225 | 225 | return INIT_PASS; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | | static void vip_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 228 | static void vip_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 229 | 229 | { |
| 230 | 230 | /* quickload */ |
| 231 | 231 | switch(state) |
| r1828 | r1829 | |
| 240 | 240 | } |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | | static void vip_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 243 | static void vip_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 244 | 244 | { |
| 245 | 245 | /* cassette */ |
| 246 | 246 | switch(state) |
src/mess/drivers/zx.c
| r1828 | r1829 | |
| 528 | 528 | 44100 /* sample frequency */ |
| 529 | 529 | }; |
| 530 | 530 | |
| 531 | | static void zx80_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 531 | static void zx80_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 532 | 532 | { |
| 533 | 533 | /* cassette */ |
| 534 | 534 | switch(state) |
| r1828 | r1829 | |
| 553 | 553 | CONFIG_RAM(16 * 1024) |
| 554 | 554 | SYSTEM_CONFIG_END |
| 555 | 555 | |
| 556 | | static void zx81_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 556 | static void zx81_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 557 | 557 | { |
| 558 | 558 | /* cassette */ |
| 559 | 559 | switch(state) |
src/mess/drivers/pdp1.c
| r1828 | r1829 | |
| 427 | 427 | /* space filled with our font */ |
| 428 | 428 | ROM_END |
| 429 | 429 | |
| 430 | | static void pdp1_punchtape_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 430 | static void pdp1_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 431 | 431 | { |
| 432 | 432 | /* punchtape */ |
| 433 | 433 | switch(state) |
| r1828 | r1829 | |
| 447 | 447 | } |
| 448 | 448 | } |
| 449 | 449 | |
| 450 | | static void pdp1_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 450 | static void pdp1_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 451 | 451 | { |
| 452 | 452 | /* printer */ |
| 453 | 453 | switch(state) |
| r1828 | r1829 | |
| 468 | 468 | } |
| 469 | 469 | } |
| 470 | 470 | |
| 471 | | static void pdp1_cylinder_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 471 | static void pdp1_cylinder_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 472 | 472 | { |
| 473 | 473 | /* cylinder */ |
| 474 | 474 | switch(state) |
src/mess/drivers/apple2gs.c
| r1828 | r1829 | |
| 213 | 213 | * Floppy disk devices |
| 214 | 214 | * ----------------------------------------------------------------------- */ |
| 215 | 215 | |
| 216 | | static void apple2gs_floppy35_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 216 | static void apple2gs_floppy35_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 217 | 217 | { |
| 218 | 218 | /* 3.5" floppy */ |
| 219 | 219 | switch(state) |
| r1828 | r1829 | |
| 235 | 235 | |
| 236 | 236 | |
| 237 | 237 | |
| 238 | | static void apple2gs_floppy525_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 238 | static void apple2gs_floppy525_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 239 | 239 | { |
| 240 | 240 | /* 5.25" floppy */ |
| 241 | 241 | switch(state) |
src/mess/drivers/mac.c
| r1828 | r1829 | |
| 281 | 281 | ROM_LOAD16_WORD( "classic.rom", 0x00000, 0x40000, CRC(b14ddcde) SHA1(f710e73e8e0f99d9d0e9e79e71f67a6c3648bf06) ) |
| 282 | 282 | ROM_END |
| 283 | 283 | |
| 284 | | static void mac128512_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 284 | static void mac128512_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 285 | 285 | { |
| 286 | 286 | /* floppy */ |
| 287 | 287 | switch(state) |
| r1828 | r1829 | |
| 293 | 293 | } |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | | static void mac_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 296 | static void mac_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 297 | 297 | { |
| 298 | 298 | /* floppy */ |
| 299 | 299 | switch(state) |
| r1828 | r1829 | |
| 305 | 305 | } |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | | static void mac_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 308 | static void mac_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 309 | 309 | { |
| 310 | 310 | /* harddisk */ |
| 311 | 311 | switch(state) |
src/mess/drivers/atari.c
| r1828 | r1829 | |
| 860 | 860 | ROM_LOAD("5200a.rom", 0xf800, 0x0800, CRC(c2ba2613) SHA1(1d2a3f00109d75d2d79fecb565775eb95b7d04d5)) |
| 861 | 861 | ROM_END |
| 862 | 862 | |
| 863 | | static void atari_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 863 | static void atari_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 864 | 864 | { |
| 865 | 865 | /* floppy */ |
| 866 | 866 | switch(state) |
| r1828 | r1829 | |
| 884 | 884 | CONFIG_DEVICE(atari_floppy_getinfo) |
| 885 | 885 | SYSTEM_CONFIG_END |
| 886 | 886 | |
| 887 | | static void a400_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 887 | static void a400_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 888 | 888 | { |
| 889 | 889 | /* cartslot */ |
| 890 | 890 | switch(state) |
| r1828 | r1829 | |
| 909 | 909 | CONFIG_DEVICE(a400_cartslot_getinfo) |
| 910 | 910 | SYSTEM_CONFIG_END |
| 911 | 911 | |
| 912 | | static void a800_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 912 | static void a800_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 913 | 913 | { |
| 914 | 914 | /* cartslot */ |
| 915 | 915 | switch(state) |
| r1828 | r1829 | |
| 934 | 934 | CONFIG_DEVICE(a800_cartslot_getinfo) |
| 935 | 935 | SYSTEM_CONFIG_END |
| 936 | 936 | |
| 937 | | static void a5200_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 937 | static void a5200_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 938 | 938 | { |
| 939 | 939 | /* cartslot */ |
| 940 | 940 | switch(state) |
src/mess/drivers/nc.c
| r1828 | r1829 | |
| 1722 | 1722 | ROM_LOAD("nc200.rom", 0x010000, 0x080000, CRC(bb8180e7) SHA1(fb5c93b0a3e199202c6a12548d2617f7a09bae47)) |
| 1723 | 1723 | ROM_END |
| 1724 | 1724 | |
| 1725 | | static void nc_common_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1725 | static void nc_common_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1726 | 1726 | { |
| 1727 | 1727 | /* printer */ |
| 1728 | 1728 | switch(state) |
| r1828 | r1829 | |
| 1734 | 1734 | } |
| 1735 | 1735 | } |
| 1736 | 1736 | |
| 1737 | | static void nc_common_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1737 | static void nc_common_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1738 | 1738 | { |
| 1739 | 1739 | /* cartslot */ |
| 1740 | 1740 | switch(state) |
| r1828 | r1829 | |
| 1754 | 1754 | } |
| 1755 | 1755 | } |
| 1756 | 1756 | |
| 1757 | | static void nc_common_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1757 | static void nc_common_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1758 | 1758 | { |
| 1759 | 1759 | /* serial */ |
| 1760 | 1760 | switch(state) |
| r1828 | r1829 | |
| 1787 | 1787 | CONFIG_RAM_DEFAULT(64 * 1024) |
| 1788 | 1788 | SYSTEM_CONFIG_END |
| 1789 | 1789 | |
| 1790 | | static void nc200_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1790 | static void nc200_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1791 | 1791 | { |
| 1792 | 1792 | /* floppy */ |
| 1793 | 1793 | switch(state) |
src/mess/drivers/adam.c
| r1828 | r1829 | |
| 686 | 686 | //ROM_LOAD ("master68.rom", 0x0100, 0x0E4, CRC(619a47b8)) /* Replacement 6801 Master ROM */ |
| 687 | 687 | ROM_END |
| 688 | 688 | |
| 689 | | static void adam_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 689 | static void adam_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 690 | 690 | { |
| 691 | 691 | /* cartslot */ |
| 692 | 692 | switch(state) |
| r1828 | r1829 | |
| 698 | 698 | } |
| 699 | 699 | } |
| 700 | 700 | |
| 701 | | static void adam_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 701 | static void adam_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 702 | 702 | { |
| 703 | 703 | /* floppy */ |
| 704 | 704 | switch(state) |
src/mess/drivers/cbmb.c
| r1828 | r1829 | |
| 705 | 705 | static DRIVER_INIT( cbm600pal ) { cbm600pal_driver_init(); } |
| 706 | 706 | static DRIVER_INIT( cbm700 ) { cbm700_driver_init(); } |
| 707 | 707 | |
| 708 | | static void cbmb_cbmcartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 708 | static void cbmb_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 709 | 709 | { |
| 710 | 710 | switch(state) |
| 711 | 711 | { |
| r1828 | r1829 | |
| 716 | 716 | } |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | | static void cbmb_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 719 | static void cbmb_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 720 | 720 | { |
| 721 | 721 | switch(state) |
| 722 | 722 | { |
| r1828 | r1829 | |
| 742 | 742 | #endif |
| 743 | 743 | SYSTEM_CONFIG_END |
| 744 | 744 | |
| 745 | | static void cbm500_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 745 | static void cbm500_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 746 | 746 | { |
| 747 | 747 | switch(state) |
| 748 | 748 | { |
src/mess/drivers/sord.c
| r1828 | r1829 | |
| 691 | 691 | FIRST_SECTOR_ID([1])) |
| 692 | 692 | FLOPPY_OPTIONS_END |
| 693 | 693 | |
| 694 | | static void sordm5_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 694 | static void sordm5_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 695 | 695 | { |
| 696 | 696 | /* printer */ |
| 697 | 697 | switch(state) |
| r1828 | r1829 | |
| 703 | 703 | } |
| 704 | 704 | } |
| 705 | 705 | |
| 706 | | static void sordm5_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 706 | static void sordm5_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 707 | 707 | { |
| 708 | 708 | /* cassette */ |
| 709 | 709 | switch(state) |
| r1828 | r1829 | |
| 725 | 725 | CONFIG_DEVICE(cartslot_device_getinfo) |
| 726 | 726 | SYSTEM_CONFIG_END |
| 727 | 727 | |
| 728 | | static void srdm5fd5_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 728 | static void srdm5fd5_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 729 | 729 | { |
| 730 | 730 | /* floppy */ |
| 731 | 731 | switch(state) |
src/mess/drivers/mbee.c
| r1828 | r1829 | |
| 325 | 325 | |
| 326 | 326 | ***************************************************************************/ |
| 327 | 327 | |
| 328 | | static void mbee_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 328 | static void mbee_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 329 | 329 | { |
| 330 | 330 | /* cassette */ |
| 331 | 331 | switch(state) |
| r1828 | r1829 | |
| 337 | 337 | } |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | | static void mbee_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 340 | static void mbee_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 341 | 341 | { |
| 342 | 342 | /* cartslot */ |
| 343 | 343 | switch(state) |
| r1828 | r1829 | |
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | | static void mbee_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 358 | static void mbee_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 359 | 359 | { |
| 360 | 360 | /* floppy */ |
| 361 | 361 | switch(state) |
src/mess/drivers/coco.c
| r1828 | r1829 | |
| 929 | 929 | * |
| 930 | 930 | *************************************/ |
| 931 | 931 | |
| 932 | | static void coco_bitbanger_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 932 | static void coco_bitbanger_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 933 | 933 | { |
| 934 | 934 | /* bitbanger port */ |
| 935 | 935 | switch(state) |
| r1828 | r1829 | |
| 946 | 946 | |
| 947 | 947 | |
| 948 | 948 | |
| 949 | | static void coco_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 949 | static void coco_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 950 | 950 | { |
| 951 | 951 | /* cassette */ |
| 952 | 952 | switch(state) |
| r1828 | r1829 | |
| 966 | 966 | |
| 967 | 967 | |
| 968 | 968 | |
| 969 | | static void coco_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 969 | static void coco_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 970 | 970 | { |
| 971 | 971 | /* floppy */ |
| 972 | 972 | switch(state) |
| r1828 | r1829 | |
| 997 | 997 | |
| 998 | 998 | |
| 999 | 999 | |
| 1000 | | static void coco_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1000 | static void coco_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1001 | 1001 | { |
| 1002 | 1002 | switch(state) |
| 1003 | 1003 | { |
| r1828 | r1829 | |
| 1017 | 1017 | |
| 1018 | 1018 | |
| 1019 | 1019 | |
| 1020 | | static void coco3_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1020 | static void coco3_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1021 | 1021 | { |
| 1022 | 1022 | switch(state) |
| 1023 | 1023 | { |
| r1828 | r1829 | |
| 1037 | 1037 | |
| 1038 | 1038 | |
| 1039 | 1039 | |
| 1040 | | static void coco_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1040 | static void coco_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1041 | 1041 | { |
| 1042 | 1042 | switch(state) |
| 1043 | 1043 | { |
| r1828 | r1829 | |
| 1053 | 1053 | |
| 1054 | 1054 | |
| 1055 | 1055 | |
| 1056 | | static void coco3_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1056 | static void coco3_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1057 | 1057 | { |
| 1058 | 1058 | switch(state) |
| 1059 | 1059 | { |
| r1828 | r1829 | |
| 1073 | 1073 | * |
| 1074 | 1074 | **************************************/ |
| 1075 | 1075 | |
| 1076 | | static void dragon_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1076 | static void dragon_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1077 | 1077 | { |
| 1078 | 1078 | /* printer port */ |
| 1079 | 1079 | switch(state) |
src/mess/drivers/nes.c
| r1828 | r1829 | |
| 339 | 339 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 340 | 340 | MACHINE_DRIVER_END |
| 341 | 341 | |
| 342 | | static void nes_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 342 | static void nes_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 343 | 343 | { |
| 344 | 344 | /* cartslot */ |
| 345 | 345 | switch(state) |
| r1828 | r1829 | |
| 363 | 363 | CONFIG_DEVICE(nes_cartslot_getinfo) |
| 364 | 364 | SYSTEM_CONFIG_END |
| 365 | 365 | |
| 366 | | static void famicom_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 366 | static void famicom_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 367 | 367 | { |
| 368 | 368 | /* cartslot */ |
| 369 | 369 | switch(state) |
| r1828 | r1829 | |
| 382 | 382 | } |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | | static void famicom_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 385 | static void famicom_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 386 | 386 | { |
| 387 | 387 | /* floppy */ |
| 388 | 388 | switch(state) |
src/mess/drivers/ti99_8.c
| r1828 | r1829 | |
| 489 | 489 | |
| 490 | 490 | #define rom_ti99_8e rom_ti99_8 |
| 491 | 491 | |
| 492 | | static void ti99_8_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 492 | static void ti99_8_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 493 | 493 | { |
| 494 | 494 | /* cassette */ |
| 495 | 495 | switch(state) |
| r1828 | r1829 | |
| 501 | 501 | } |
| 502 | 502 | } |
| 503 | 503 | |
| 504 | | static void ti99_8_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 504 | static void ti99_8_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 505 | 505 | { |
| 506 | 506 | /* cartslot */ |
| 507 | 507 | switch(state) |
| r1828 | r1829 | |
| 522 | 522 | } |
| 523 | 523 | } |
| 524 | 524 | |
| 525 | | static void ti99_8_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 525 | static void ti99_8_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 526 | 526 | { |
| 527 | 527 | /* floppy */ |
| 528 | 528 | switch(state) |
| r1828 | r1829 | |
| 537 | 537 | } |
| 538 | 538 | } |
| 539 | 539 | |
| 540 | | static void ti99_8_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 540 | static void ti99_8_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 541 | 541 | { |
| 542 | 542 | /* harddisk */ |
| 543 | 543 | switch(state) |
| r1828 | r1829 | |
| 560 | 560 | } |
| 561 | 561 | } |
| 562 | 562 | |
| 563 | | static void ti99_8_parallel_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 563 | static void ti99_8_parallel_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 564 | 564 | { |
| 565 | 565 | /* parallel */ |
| 566 | 566 | switch(state) |
| r1828 | r1829 | |
| 581 | 581 | } |
| 582 | 582 | } |
| 583 | 583 | |
| 584 | | static void ti99_8_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 584 | static void ti99_8_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 585 | 585 | { |
| 586 | 586 | /* serial */ |
| 587 | 587 | switch(state) |
| r1828 | r1829 | |
| 603 | 603 | } |
| 604 | 604 | |
| 605 | 605 | #if 0 |
| 606 | | static void ti99_8_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 606 | static void ti99_8_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 607 | 607 | { |
| 608 | 608 | /* quickload */ |
| 609 | 609 | switch(state) |
| r1828 | r1829 | |
| 626 | 626 | } |
| 627 | 627 | #endif |
| 628 | 628 | |
| 629 | | static void ti99_8_memcard_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 629 | static void ti99_8_memcard_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 630 | 630 | { |
| 631 | 631 | /* memcard */ |
| 632 | 632 | switch(state) |
src/mess/drivers/gb.c
| r1828 | r1829 | |
| 625 | 625 | MDRV_PALETTE_INIT(gbc) |
| 626 | 626 | MACHINE_DRIVER_END |
| 627 | 627 | |
| 628 | | static void gameboy_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 628 | static void gameboy_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 629 | 629 | { |
| 630 | 630 | /* cartslot */ |
| 631 | 631 | switch(state) |
| r1828 | r1829 | |
| 645 | 645 | } |
| 646 | 646 | } |
| 647 | 647 | |
| 648 | | static void gameboy_cartslot_getinfo_gb(const device_class *devclass, UINT32 state, union devinfo *info) |
| 648 | static void gameboy_cartslot_getinfo_gb(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 649 | 649 | { |
| 650 | 650 | switch(state) |
| 651 | 651 | { |
| r1828 | r1829 | |
| 701 | 701 | MDRV_SOUND_ROUTE(1, "right", 0.50) |
| 702 | 702 | MACHINE_DRIVER_END |
| 703 | 703 | |
| 704 | | static void megaduck_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 704 | static void megaduck_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 705 | 705 | { |
| 706 | 706 | /* cartslot */ |
| 707 | 707 | switch(state) |
src/mess/drivers/concept.c
| r1828 | r1829 | |
| 299 | 299 | #endif |
| 300 | 300 | FLOPPY_OPTIONS_END |
| 301 | 301 | |
| 302 | | static void concept_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 302 | static void concept_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 303 | 303 | { |
| 304 | 304 | /* floppy */ |
| 305 | 305 | switch(state) |
| r1828 | r1829 | |
| 314 | 314 | } |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | | static void concept_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 317 | static void concept_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 318 | 318 | { |
| 319 | 319 | /* Hard Drive */ |
| 320 | 320 | switch(state) |
src/mess/drivers/pcw16.c
| r1828 | r1829 | |
| 1445 | 1445 | ROM_END |
| 1446 | 1446 | |
| 1447 | 1447 | #ifdef UNUSED_FUNCTION |
| 1448 | | static void pcw16_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1448 | static void pcw16_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1449 | 1449 | { |
| 1450 | 1450 | /* printer */ |
| 1451 | 1451 | switch(state) |
| r1828 | r1829 | |
| 1458 | 1458 | } |
| 1459 | 1459 | #endif |
| 1460 | 1460 | |
| 1461 | | static void pcw16_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1461 | static void pcw16_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1462 | 1462 | { |
| 1463 | 1463 | /* floppy */ |
| 1464 | 1464 | switch(state) |
src/mess/drivers/msx.c
| r1828 | r1829 | |
| 2134 | 2134 | MSX_LAYOUT_SLOT (3, 0, 0, 4, RAM, 0x10000, 0x0000) /* 64KB RAM */ |
| 2135 | 2135 | MSX_LAYOUT_END |
| 2136 | 2136 | |
| 2137 | | static void msx_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2137 | static void msx_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2138 | 2138 | { |
| 2139 | 2139 | /* floppy */ |
| 2140 | 2140 | switch(state) |
| r1828 | r1829 | |
| 2152 | 2152 | } |
| 2153 | 2153 | } |
| 2154 | 2154 | |
| 2155 | | static void msx_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2155 | static void msx_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2156 | 2156 | { |
| 2157 | 2157 | /* cartslot */ |
| 2158 | 2158 | switch(state) |
| r1828 | r1829 | |
| 2171 | 2171 | } |
| 2172 | 2172 | } |
| 2173 | 2173 | |
| 2174 | | static void msx_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2174 | static void msx_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2175 | 2175 | { |
| 2176 | 2176 | /* cassette */ |
| 2177 | 2177 | switch(state) |
| r1828 | r1829 | |
| 2186 | 2186 | } |
| 2187 | 2187 | } |
| 2188 | 2188 | |
| 2189 | | static void msx_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2189 | static void msx_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2190 | 2190 | { |
| 2191 | 2191 | /* printer */ |
| 2192 | 2192 | switch(state) |
src/mess/drivers/tmc600.c
| r1828 | r1829 | |
| 399 | 399 | return INIT_PASS; |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | | static void tmc600_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 402 | static void tmc600_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 403 | 403 | { |
| 404 | 404 | /* cassette */ |
| 405 | 405 | switch(state) |
| r1828 | r1829 | |
| 411 | 411 | } |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | | static void tmc600_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 414 | static void tmc600_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 415 | 415 | { |
| 416 | 416 | /* floppy */ |
| 417 | 417 | switch(state) |
| r1828 | r1829 | |
| 429 | 429 | } |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | | static void tmc600_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 432 | static void tmc600_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 433 | 433 | { |
| 434 | 434 | /* printer */ |
| 435 | 435 | switch(state) |
| r1828 | r1829 | |
| 441 | 441 | } |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | | static void tmc600_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 444 | static void tmc600_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 445 | 445 | { |
| 446 | 446 | /* quickload */ |
| 447 | 447 | switch(state) |
src/mess/drivers/tm990189.c
| r1828 | r1829 | |
| 975 | 975 | |
| 976 | 976 | INPUT_PORTS_END |
| 977 | 977 | |
| 978 | | static void tm990_189_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 978 | static void tm990_189_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 979 | 979 | { |
| 980 | 980 | /* cassette */ |
| 981 | 981 | switch(state) |
| r1828 | r1829 | |
| 987 | 987 | } |
| 988 | 988 | } |
| 989 | 989 | |
| 990 | | static void tm990_189_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 990 | static void tm990_189_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 991 | 991 | { |
| 992 | 992 | /* serial */ |
| 993 | 993 | switch(state) |
src/mess/drivers/thomson.c
| r1828 | r1829 | |
| 210 | 210 | |
| 211 | 211 | /* ------------ cartridge ------------ */ |
| 212 | 212 | |
| 213 | | static void to7_cartridge_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 213 | static void to7_cartridge_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 214 | 214 | { |
| 215 | 215 | switch ( state ) { |
| 216 | 216 | case MESS_DEVINFO_INT_COUNT: |
| r1828 | r1829 | |
| 227 | 227 | } |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | | static void mo5_cartridge_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 230 | static void mo5_cartridge_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 231 | 231 | { |
| 232 | 232 | switch ( state ) { |
| 233 | 233 | case MESS_DEVINFO_INT_COUNT: |
| r1828 | r1829 | |
| 247 | 247 | |
| 248 | 248 | /* ------------ printer ------------ */ |
| 249 | 249 | |
| 250 | | static void thom_printer_getinfo ( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 250 | static void thom_printer_getinfo ( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 251 | 251 | { |
| 252 | 252 | switch ( state ) { |
| 253 | 253 | case MESS_DEVINFO_INT_COUNT: |
| r1828 | r1829 | |
| 268 | 268 | { "modem", "modm", "Modem" } |
| 269 | 269 | }; |
| 270 | 270 | |
| 271 | | static void thom_serial_getinfo ( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 271 | static void thom_serial_getinfo ( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 272 | 272 | { |
| 273 | 273 | switch ( state ) { |
| 274 | 274 | case MESS_DEVINFO_INT_COUNT: |
src/mess/drivers/lynx.c
| r1828 | r1829 | |
| 390 | 390 | return 0; |
| 391 | 391 | } |
| 392 | 392 | |
| 393 | | static void lynx_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 393 | static void lynx_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 394 | 394 | { |
| 395 | 395 | /* cartslot */ |
| 396 | 396 | switch(state) |
| r1828 | r1829 | |
| 409 | 409 | } |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | | static void lynx_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 412 | static void lynx_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 413 | 413 | { |
| 414 | 414 | /* quickload */ |
| 415 | 415 | switch(state) |
src/mess/drivers/cgenie.c
| r1828 | r1829 | |
| 422 | 422 | |
| 423 | 423 | ROM_END |
| 424 | 424 | |
| 425 | | static void cgenie_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 425 | static void cgenie_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 426 | 426 | { |
| 427 | 427 | /* floppy */ |
| 428 | 428 | switch(state) |
| r1828 | r1829 | |
| 440 | 440 | } |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | | static void cgenie_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 443 | static void cgenie_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 444 | 444 | { |
| 445 | 445 | /* cassette */ |
| 446 | 446 | switch(state) |
src/mess/drivers/abc80.c
| r1828 | r1829 | |
| 515 | 515 | |
| 516 | 516 | /* System Configuration */ |
| 517 | 517 | |
| 518 | | static void abc80_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 518 | static void abc80_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 519 | 519 | { |
| 520 | 520 | /* printer */ |
| 521 | 521 | switch(state) |
| r1828 | r1829 | |
| 528 | 528 | } |
| 529 | 529 | |
| 530 | 530 | #if 0 |
| 531 | | static void abc80_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 531 | static void abc80_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 532 | 532 | { |
| 533 | 533 | // cassette |
| 534 | 534 | switch(state) |
| r1828 | r1829 | |
| 544 | 544 | } |
| 545 | 545 | #endif |
| 546 | 546 | |
| 547 | | static void abc80_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 547 | static void abc80_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 548 | 548 | { |
| 549 | 549 | /* floppy */ |
| 550 | 550 | switch(state) |
src/mess/drivers/apexc.c
| r1828 | r1829 | |
| 833 | 833 | /* space filled with our font */ |
| 834 | 834 | ROM_END |
| 835 | 835 | |
| 836 | | static void apexc_cylinder_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 836 | static void apexc_cylinder_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 837 | 837 | { |
| 838 | 838 | /* cylinder */ |
| 839 | 839 | switch(state) |
| r1828 | r1829 | |
| 855 | 855 | } |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | | static void apexc_punchtape_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 858 | static void apexc_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 859 | 859 | { |
| 860 | 860 | /* punchtape */ |
| 861 | 861 | switch(state) |
src/mess/drivers/spectrum.c
| r1828 | r1829 | |
| 2279 | 2279 | ROM_CART_LOAD(0, "rom", 0x0000, 0x4000, ROM_NOCLEAR | ROM_NOMIRROR | ROM_OPTIONAL) |
| 2280 | 2280 | ROM_END |
| 2281 | 2281 | |
| 2282 | | static void spectrum_common_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2282 | static void spectrum_common_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2283 | 2283 | { |
| 2284 | 2284 | /* cassette */ |
| 2285 | 2285 | switch(state) |
| r1828 | r1829 | |
| 2292 | 2292 | } |
| 2293 | 2293 | } |
| 2294 | 2294 | |
| 2295 | | static void spectrum_common_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2295 | static void spectrum_common_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2296 | 2296 | { |
| 2297 | 2297 | /* snapshot */ |
| 2298 | 2298 | switch(state) |
| r1828 | r1829 | |
| 2307 | 2307 | } |
| 2308 | 2308 | } |
| 2309 | 2309 | |
| 2310 | | static void spectrum_common_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2310 | static void spectrum_common_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2311 | 2311 | { |
| 2312 | 2312 | /* quickload */ |
| 2313 | 2313 | switch(state) |
| r1828 | r1829 | |
| 2333 | 2333 | CONFIG_DEVICE(cartslot_device_getinfo) |
| 2334 | 2334 | SYSTEM_CONFIG_END |
| 2335 | 2335 | |
| 2336 | | static void specpls3_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2336 | static void specpls3_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2337 | 2337 | { |
| 2338 | 2338 | /* floppy */ |
| 2339 | 2339 | switch(state) |
| r1828 | r1829 | |
| 2350 | 2350 | CONFIG_DEVICE(specpls3_floppy_getinfo) |
| 2351 | 2351 | SYSTEM_CONFIG_END |
| 2352 | 2352 | |
| 2353 | | static void ts2068_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2353 | static void ts2068_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2354 | 2354 | { |
| 2355 | 2355 | /* cartslot */ |
| 2356 | 2356 | switch(state) |
src/mess/drivers/super80.c
| r1828 | r1829 | |
| 1047 | 1047 | return INIT_PASS; |
| 1048 | 1048 | } |
| 1049 | 1049 | |
| 1050 | | static void super80_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1050 | static void super80_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1051 | 1051 | { |
| 1052 | 1052 | /* quickload */ |
| 1053 | 1053 | switch(state) |
| r1828 | r1829 | |
| 1081 | 1081 | return INIT_PASS; |
| 1082 | 1082 | } |
| 1083 | 1083 | |
| 1084 | | static void super80_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1084 | static void super80_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1085 | 1085 | { |
| 1086 | 1086 | /* cartslot */ |
| 1087 | 1087 | switch(state) |
| r1828 | r1829 | |
| 1099 | 1099 | } |
| 1100 | 1100 | } |
| 1101 | 1101 | |
| 1102 | | static void super80_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1102 | static void super80_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1103 | 1103 | { |
| 1104 | 1104 | /* cassette */ |
| 1105 | 1105 | switch(state) |
src/mess/drivers/atarist.c
| r1828 | r1829 | |
| 2007 | 2007 | return INIT_FAIL; |
| 2008 | 2008 | } |
| 2009 | 2009 | |
| 2010 | | static void atarist_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2010 | static void atarist_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2011 | 2011 | { |
| 2012 | 2012 | /* floppy */ |
| 2013 | 2013 | switch(state) |
| r1828 | r1829 | |
| 2025 | 2025 | } |
| 2026 | 2026 | } |
| 2027 | 2027 | |
| 2028 | | static void atarist_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2028 | static void atarist_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2029 | 2029 | { |
| 2030 | 2030 | /* printer */ |
| 2031 | 2031 | switch(state) |
| r1828 | r1829 | |
| 2056 | 2056 | return INIT_FAIL; |
| 2057 | 2057 | } |
| 2058 | 2058 | |
| 2059 | | static void atarist_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2059 | static void atarist_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2060 | 2060 | { |
| 2061 | 2061 | /* serial */ |
| 2062 | 2062 | switch(state) |
| r1828 | r1829 | |
| 2075 | 2075 | } |
| 2076 | 2076 | } |
| 2077 | 2077 | |
| 2078 | | static void megaste_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2078 | static void megaste_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2079 | 2079 | { |
| 2080 | 2080 | /* serial */ |
| 2081 | 2081 | switch(state) |
| r1828 | r1829 | |
| 2112 | 2112 | return INIT_FAIL; |
| 2113 | 2113 | } |
| 2114 | 2114 | |
| 2115 | | static void atarist_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 2115 | static void atarist_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 2116 | 2116 | { |
| 2117 | 2117 | switch( state ) |
| 2118 | 2118 | { |
src/mess/drivers/geneve.c
| r1828 | r1829 | |
| 524 | 524 | ROM_LOAD_OPTIONAL("spchrom.bin", 0x0000, 0x8000, CRC(58b155f7) SHA1(382292295c00dff348d7e17c5ce4da12a1d87763)) /* system speech ROM */ |
| 525 | 525 | ROM_END |
| 526 | 526 | |
| 527 | | static void geneve_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 527 | static void geneve_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 528 | 528 | { |
| 529 | 529 | /* floppy */ |
| 530 | 530 | switch(state) |
| r1828 | r1829 | |
| 542 | 542 | } |
| 543 | 543 | } |
| 544 | 544 | |
| 545 | | static void geneve_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 545 | static void geneve_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 546 | 546 | { |
| 547 | 547 | /* harddisk */ |
| 548 | 548 | switch(state) |
| r1828 | r1829 | |
| 565 | 565 | } |
| 566 | 566 | } |
| 567 | 567 | |
| 568 | | static void geneve_parallel_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 568 | static void geneve_parallel_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 569 | 569 | { |
| 570 | 570 | /* parallel */ |
| 571 | 571 | switch(state) |
| r1828 | r1829 | |
| 586 | 586 | } |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | | static void geneve_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 589 | static void geneve_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 590 | 590 | { |
| 591 | 591 | /* serial */ |
| 592 | 592 | switch(state) |
| r1828 | r1829 | |
| 607 | 607 | } |
| 608 | 608 | } |
| 609 | 609 | |
| 610 | | static void geneve_memcard_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 610 | static void geneve_memcard_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 611 | 611 | { |
| 612 | 612 | /* memcard */ |
| 613 | 613 | switch(state) |
src/mess/drivers/sg1000.c
| r1828 | r1829 | |
| 689 | 689 | return INIT_PASS; |
| 690 | 690 | } |
| 691 | 691 | |
| 692 | | static void sg1000_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 692 | static void sg1000_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 693 | 693 | { |
| 694 | 694 | switch( state ) |
| 695 | 695 | { |
| r1828 | r1829 | |
| 749 | 749 | return INIT_PASS; |
| 750 | 750 | } |
| 751 | 751 | |
| 752 | | static void sc3000_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 752 | static void sc3000_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 753 | 753 | { |
| 754 | 754 | switch( state ) |
| 755 | 755 | { |
| r1828 | r1829 | |
| 762 | 762 | } |
| 763 | 763 | } |
| 764 | 764 | |
| 765 | | static void sc3000_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 765 | static void sc3000_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 766 | 766 | { |
| 767 | 767 | switch(state) |
| 768 | 768 | { |
| r1828 | r1829 | |
| 772 | 772 | } |
| 773 | 773 | } |
| 774 | 774 | |
| 775 | | static void sc3000_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 775 | static void sc3000_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 776 | 776 | { |
| 777 | 777 | switch(state) |
| 778 | 778 | { |
| r1828 | r1829 | |
| 782 | 782 | } |
| 783 | 783 | } |
| 784 | 784 | |
| 785 | | static void sf7000_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 785 | static void sf7000_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 786 | 786 | { |
| 787 | 787 | switch(state) |
| 788 | 788 | { |
| r1828 | r1829 | |
| 811 | 811 | return INIT_FAIL; |
| 812 | 812 | } |
| 813 | 813 | |
| 814 | | static void sf7000_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 814 | static void sf7000_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 815 | 815 | { |
| 816 | 816 | switch(state) |
| 817 | 817 | { |
| r1828 | r1829 | |
| 845 | 845 | return INIT_FAIL; |
| 846 | 846 | } |
| 847 | 847 | |
| 848 | | static void sf7000_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 848 | static void sf7000_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 849 | 849 | { |
| 850 | 850 | /* serial */ |
| 851 | 851 | switch(state) |
src/mess/drivers/tx0.c
| r1828 | r1829 | |
| 383 | 383 | /* space filled with our font */ |
| 384 | 384 | ROM_END |
| 385 | 385 | |
| 386 | | static void tx0_punchtape_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 386 | static void tx0_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 387 | 387 | { |
| 388 | 388 | /* punchtape */ |
| 389 | 389 | switch(state) |
| r1828 | r1829 | |
| 403 | 403 | } |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | | static void tx0_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 406 | static void tx0_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 407 | 407 | { |
| 408 | 408 | /* printer */ |
| 409 | 409 | switch(state) |
| r1828 | r1829 | |
| 424 | 424 | } |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | | static void tx0_magtape_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 427 | static void tx0_magtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 428 | 428 | { |
| 429 | 429 | /* magtape */ |
| 430 | 430 | switch(state) |
src/mess/drivers/ip22.c
| r1828 | r1829 | |
| 1551 | 1551 | 32768 /* data cache size */ |
| 1552 | 1552 | }; |
| 1553 | 1553 | |
| 1554 | | static void ip22_chdcd_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1554 | static void ip22_chdcd_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1555 | 1555 | { |
| 1556 | 1556 | /* CHD CD-ROM */ |
| 1557 | 1557 | switch(state) |
| r1828 | r1829 | |
| 1564 | 1564 | } |
| 1565 | 1565 | |
| 1566 | 1566 | #ifdef UNUSED_FUNCTION |
| 1567 | | static void ip22_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1567 | static void ip22_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1568 | 1568 | { |
| 1569 | 1569 | /* harddisk */ |
| 1570 | 1570 | switch(state) |
src/mess/drivers/c128.c
| r1828 | r1829 | |
| 1224 | 1224 | MDRV_SOUND_CONFIG(c128_sound_interface) |
| 1225 | 1225 | MACHINE_DRIVER_END |
| 1226 | 1226 | |
| 1227 | | static void c128_cbmcartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1227 | static void c128_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1228 | 1228 | { |
| 1229 | 1229 | switch(state) |
| 1230 | 1230 | { |
| r1828 | r1829 | |
| 1235 | 1235 | } |
| 1236 | 1236 | } |
| 1237 | 1237 | |
| 1238 | | static void c64_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1238 | static void c64_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1239 | 1239 | { |
| 1240 | 1240 | switch(state) |
| 1241 | 1241 | { |
src/mess/drivers/lviv.c
| r1828 | r1829 | |
| 449 | 449 | MACHINE_DRIVER_END |
| 450 | 450 | |
| 451 | 451 | |
| 452 | | static void lviv_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 452 | static void lviv_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 453 | 453 | { |
| 454 | 454 | /* cassette */ |
| 455 | 455 | switch(state) |
| r1828 | r1829 | |
| 467 | 467 | } |
| 468 | 468 | } |
| 469 | 469 | |
| 470 | | static void lviv_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 470 | static void lviv_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 471 | 471 | { |
| 472 | 472 | /* snapshot */ |
| 473 | 473 | switch(state) |
src/mess/drivers/exidy.c
| r1828 | r1829 | |
| 868 | 868 | ROM_CART_LOAD(0, "rom", 0xc000, 0x2000, ROM_NOMIRROR | ROM_OPTIONAL) |
| 869 | 869 | ROM_END |
| 870 | 870 | |
| 871 | | static void exidy_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 871 | static void exidy_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 872 | 872 | { |
| 873 | 873 | /* printer */ |
| 874 | 874 | switch(state) |
| r1828 | r1829 | |
| 880 | 880 | } |
| 881 | 881 | } |
| 882 | 882 | |
| 883 | | static void exidy_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 883 | static void exidy_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 884 | 884 | { |
| 885 | 885 | /* floppy */ |
| 886 | 886 | switch(state) |
| r1828 | r1829 | |
| 898 | 898 | } |
| 899 | 899 | } |
| 900 | 900 | |
| 901 | | static void exidy_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 901 | static void exidy_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 902 | 902 | { |
| 903 | 903 | /* cassette */ |
| 904 | 904 | switch(state) |
src/mess/drivers/pet.c
| r1828 | r1829 | |
| 924 | 924 | #define rom_cbm80 rom_pet80 |
| 925 | 925 | #define rom_cbm80pal rom_pet80pal |
| 926 | 926 | |
| 927 | | static void pet_cbmcartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 927 | static void pet_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 928 | 928 | { |
| 929 | 929 | switch(state) |
| 930 | 930 | { |
| r1828 | r1829 | |
| 935 | 935 | } |
| 936 | 936 | } |
| 937 | 937 | |
| 938 | | static void pet_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 938 | static void pet_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 939 | 939 | { |
| 940 | 940 | switch(state) |
| 941 | 941 | { |
| r1828 | r1829 | |
| 952 | 952 | } |
| 953 | 953 | } |
| 954 | 954 | |
| 955 | | static void pet1_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 955 | static void pet1_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 956 | 956 | { |
| 957 | 957 | switch(state) |
| 958 | 958 | { |
| r1828 | r1829 | |
| 989 | 989 | CONFIG_RAM_DEFAULT(32 * 1024) |
| 990 | 990 | SYSTEM_CONFIG_END |
| 991 | 991 | |
| 992 | | static void pet4_cbmcartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 992 | static void pet4_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 993 | 993 | { |
| 994 | 994 | switch(state) |
| 995 | 995 | { |
src/mess/drivers/a2600.c
| r1828 | r1829 | |
| 1999 | 1999 | |
| 2000 | 2000 | #define rom_a2600p rom_a2600 |
| 2001 | 2001 | |
| 2002 | | static void a2600_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2002 | static void a2600_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 2003 | 2003 | { |
| 2004 | 2004 | /* cartslot */ |
| 2005 | 2005 | switch(state) |
| r1828 | r1829 | |
| 2019 | 2019 | } |
| 2020 | 2020 | } |
| 2021 | 2021 | |
| 2022 | | static void a2600_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 2022 | static void a2600_cassette_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) { |
| 2023 | 2023 | switch( state ) { |
| 2024 | 2024 | case MESS_DEVINFO_INT_COUNT: |
| 2025 | 2025 | info->i = 1; |
src/mess/drivers/c16.c
| r1828 | r1829 | |
| 796 | 796 | DRIVER_INIT( c364 ) { c16_driver_init(); } |
| 797 | 797 | #endif |
| 798 | 798 | |
| 799 | | static void c16cart_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 799 | static void c16cart_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 800 | 800 | { |
| 801 | 801 | switch(state) |
| 802 | 802 | { |
| r1828 | r1829 | |
| 813 | 813 | } |
| 814 | 814 | } |
| 815 | 815 | |
| 816 | | static void c16_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 816 | static void c16_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 817 | 817 | { |
| 818 | 818 | switch(state) |
| 819 | 819 | { |
src/mess/drivers/oric.c
| r1828 | r1829 | |
| 521 | 521 | ROM_LOAD_OPTIONAL ("8ddoshi.rom",0x014100, 0x0200, CRC(66309641) SHA1(9c2e82b3c4d385ade6215fcb89f8b92e6fd2bf4b)) |
| 522 | 522 | ROM_END |
| 523 | 523 | |
| 524 | | static void oric_common_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 524 | static void oric_common_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 525 | 525 | { |
| 526 | 526 | /* cassette */ |
| 527 | 527 | switch(state) |
| r1828 | r1829 | |
| 537 | 537 | } |
| 538 | 538 | } |
| 539 | 539 | |
| 540 | | static void oric_common_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 540 | static void oric_common_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 541 | 541 | { |
| 542 | 542 | /* printer */ |
| 543 | 543 | switch(state) |
| r1828 | r1829 | |
| 554 | 554 | CONFIG_DEVICE(oric_common_printer_getinfo) |
| 555 | 555 | SYSTEM_CONFIG_END |
| 556 | 556 | |
| 557 | | static void oric1_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 557 | static void oric1_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 558 | 558 | { |
| 559 | 559 | /* floppy */ |
| 560 | 560 | switch(state) |
| r1828 | r1829 | |
| 580 | 580 | CONFIG_DEVICE(oric1_floppy_getinfo) |
| 581 | 581 | SYSTEM_CONFIG_END |
| 582 | 582 | |
| 583 | | static void prav8_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 583 | static void prav8_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 584 | 584 | { |
| 585 | 585 | /* floppy */ |
| 586 | 586 | switch(state) |
src/mess/drivers/enterp.c
| r1828 | r1829 | |
| 582 | 582 | |
| 583 | 583 | ***************************************************************************/ |
| 584 | 584 | |
| 585 | | static void ep128_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 585 | static void ep128_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 586 | 586 | { |
| 587 | 587 | /* floppy */ |
| 588 | 588 | switch(state) |
| r1828 | r1829 | |
| 595 | 595 | } |
| 596 | 596 | |
| 597 | 597 | #if 0 |
| 598 | | static void ep128_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 598 | static void ep128_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 599 | 599 | { |
| 600 | 600 | /* floppy */ |
| 601 | 601 | switch(state) |
src/mess/drivers/atom.c
| r1828 | r1829 | |
| 308 | 308 | ROM_LOAD ("atomicw.rom",0x018000,0x1000, CRC(a3fd737d) SHA1(d418d9322c69c49106ed2c268ad0864c0f2c4c1b)) |
| 309 | 309 | ROM_END |
| 310 | 310 | |
| 311 | | static void atom_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 311 | static void atom_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 312 | 312 | { |
| 313 | 313 | /* cassette */ |
| 314 | 314 | switch(state) |
| r1828 | r1829 | |
| 320 | 320 | } |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | | static void atom_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 323 | static void atom_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 324 | 324 | { |
| 325 | 325 | /* floppy */ |
| 326 | 326 | switch(state) |
| r1828 | r1829 | |
| 338 | 338 | } |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | | static void atom_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 341 | static void atom_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 342 | 342 | { |
| 343 | 343 | /* printer */ |
| 344 | 344 | switch(state) |
| r1828 | r1829 | |
| 350 | 350 | } |
| 351 | 351 | } |
| 352 | 352 | |
| 353 | | static void atom_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 353 | static void atom_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 354 | 354 | { |
| 355 | 355 | /* quickload */ |
| 356 | 356 | switch(state) |
src/mess/drivers/at.c
| r1828 | r1829 | |
| 674 | 674 | ROM_LOAD("cga.chr", 0x00000, 0x01000, CRC(42009069) SHA1(ed08559ce2d7f97f68b9f540bddad5b6295294dd)) |
| 675 | 675 | ROM_END |
| 676 | 676 | |
| 677 | | static void ibmat_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 677 | static void ibmat_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 678 | 678 | { |
| 679 | 679 | /* printer */ |
| 680 | 680 | switch(state) |
| r1828 | r1829 | |
| 686 | 686 | } |
| 687 | 687 | } |
| 688 | 688 | |
| 689 | | static void ibmat_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 689 | static void ibmat_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 690 | 690 | { |
| 691 | 691 | /* floppy */ |
| 692 | 692 | switch(state) |
| r1828 | r1829 | |
| 701 | 701 | } |
| 702 | 702 | } |
| 703 | 703 | |
| 704 | | static void ibmat_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 704 | static void ibmat_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 705 | 705 | { |
| 706 | 706 | /* harddisk */ |
| 707 | 707 | switch(state) |
src/mess/drivers/apf.c
| r1828 | r1829 | |
| 684 | 684 | ROM_CART_LOAD(0, "bin", 0x8000, 0x2000, ROM_OPTIONAL) |
| 685 | 685 | ROM_END |
| 686 | 686 | |
| 687 | | static void apfimag_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 687 | static void apfimag_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 688 | 688 | { |
| 689 | 689 | /* cassette */ |
| 690 | 690 | switch(state) |
| r1828 | r1829 | |
| 699 | 699 | } |
| 700 | 700 | } |
| 701 | 701 | |
| 702 | | static void apfimag_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 702 | static void apfimag_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 703 | 703 | { |
| 704 | 704 | /* floppy */ |
| 705 | 705 | switch(state) |
src/mess/drivers/vc20.c
| r1828 | r1829 | |
| 781 | 781 | #endif |
| 782 | 782 | MACHINE_DRIVER_END |
| 783 | 783 | |
| 784 | | static void cbmvc20_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 784 | static void cbmvc20_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 785 | 785 | { |
| 786 | 786 | switch(state) |
| 787 | 787 | { |
| r1828 | r1829 | |
| 799 | 799 | } |
| 800 | 800 | } |
| 801 | 801 | |
| 802 | | static void vc20_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 802 | static void vc20_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 803 | 803 | { |
| 804 | 804 | switch(state) |
| 805 | 805 | { |
src/mess/drivers/ql.c
| r1828 | r1829 | |
| 1080 | 1080 | return INIT_FAIL; |
| 1081 | 1081 | } |
| 1082 | 1082 | |
| 1083 | | static void ql_microdrive_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1083 | static void ql_microdrive_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1084 | 1084 | { |
| 1085 | 1085 | switch(state) |
| 1086 | 1086 | { |
| r1828 | r1829 | |
| 1119 | 1119 | return INIT_FAIL; |
| 1120 | 1120 | } |
| 1121 | 1121 | |
| 1122 | | static void ql_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1122 | static void ql_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1123 | 1123 | { |
| 1124 | 1124 | /* serial */ |
| 1125 | 1125 | switch(state) |
| r1828 | r1829 | |
| 1154 | 1154 | return INIT_FAIL; |
| 1155 | 1155 | } |
| 1156 | 1156 | |
| 1157 | | static void ql_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) |
| 1157 | static void ql_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) |
| 1158 | 1158 | { |
| 1159 | 1159 | switch( state ) |
| 1160 | 1160 | { |
src/mess/drivers/ti990_10.c
| r1828 | r1829 | |
| 284 | 284 | VDT911_KEY_PORTS |
| 285 | 285 | INPUT_PORTS_END |
| 286 | 286 | |
| 287 | | static void ti990_10_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 287 | static void ti990_10_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 288 | 288 | { |
| 289 | 289 | /* harddisk */ |
| 290 | 290 | switch(state) |
| r1828 | r1829 | |
| 306 | 306 | } |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | | static void ti990_10_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 309 | static void ti990_10_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 310 | 310 | { |
| 311 | 311 | /* cassette */ |
| 312 | 312 | switch(state) |
src/mess/drivers/apple1.c
| r1828 | r1829 | |
| 263 | 263 | ROM_LOAD("apple1.vid", 0x0000, 0x0200, CRC(a7e567fc) SHA1(b18aae0a2d4f92f5a7e22640719bbc4652f3f4ee)) |
| 264 | 264 | ROM_END |
| 265 | 265 | |
| 266 | | static void apple1_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 266 | static void apple1_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 267 | 267 | { |
| 268 | 268 | /* snapshot */ |
| 269 | 269 | switch(state) |
| r1828 | r1829 | |
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | | static void apple1_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 281 | static void apple1_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 282 | 282 | { |
| 283 | 283 | /* cassette */ |
| 284 | 284 | switch(state) |
src/mess/drivers/abc80x.c
| r1828 | r1829 | |
| 907 | 907 | |
| 908 | 908 | /* System Configuration */ |
| 909 | 909 | |
| 910 | | static void abc800_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 910 | static void abc800_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 911 | 911 | { |
| 912 | 912 | /* cassette */ |
| 913 | 913 | switch(state) |
| r1828 | r1829 | |
| 919 | 919 | } |
| 920 | 920 | } |
| 921 | 921 | |
| 922 | | static void abc800_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 922 | static void abc800_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 923 | 923 | { |
| 924 | 924 | /* floppy */ |
| 925 | 925 | switch(state) |
| r1828 | r1829 | |
| 937 | 937 | } |
| 938 | 938 | } |
| 939 | 939 | |
| 940 | | static void abc800_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 940 | static void abc800_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 941 | 941 | { |
| 942 | 942 | /* printer */ |
| 943 | 943 | switch(state) |
| r1828 | r1829 | |
| 968 | 968 | return INIT_FAIL; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | | static void abc800_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 971 | static void abc800_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 972 | 972 | { |
| 973 | 973 | /* serial */ |
| 974 | 974 | switch(state) |
src/mess/drivers/tmc2000e.c
| r1828 | r1829 | |
| 203 | 203 | |
| 204 | 204 | /* System Configuration */ |
| 205 | 205 | |
| 206 | | static void tmc2000e_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 206 | static void tmc2000e_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 207 | 207 | { |
| 208 | 208 | /* cassette */ |
| 209 | 209 | switch(state) |
| r1828 | r1829 | |
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | | static void tmc2000e_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 218 | static void tmc2000e_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 219 | 219 | { |
| 220 | 220 | /* floppy */ |
| 221 | 221 | switch(state) |
| r1828 | r1829 | |
| 233 | 233 | } |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | | static void tmc2000e_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 236 | static void tmc2000e_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 237 | 237 | { |
| 238 | 238 | /* printer */ |
| 239 | 239 | switch(state) |
src/mess/drivers/crvision.c
| r1828 | r1829 | |
| 511 | 511 | return INIT_PASS; |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | | static void crvision_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 514 | static void crvision_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 515 | 515 | { |
| 516 | 516 | /* cartslot */ |
| 517 | 517 | switch(state) |
| r1828 | r1829 | |
| 530 | 530 | } |
| 531 | 531 | } |
| 532 | 532 | |
| 533 | | static void crvision_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 533 | static void crvision_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 534 | 534 | { |
| 535 | 535 | /* cassette */ |
| 536 | 536 | switch(state) |
src/mess/drivers/tmc1800.c
| r1828 | r1829 | |
| 356 | 356 | |
| 357 | 357 | /* System Configuration */ |
| 358 | 358 | |
| 359 | | static void tmc1800_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 359 | static void tmc1800_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 360 | 360 | { |
| 361 | 361 | /* cassette */ |
| 362 | 362 | switch(state) |
| r1828 | r1829 | |
| 374 | 374 | CONFIG_DEVICE(tmc1800_cassette_getinfo) |
| 375 | 375 | SYSTEM_CONFIG_END |
| 376 | 376 | |
| 377 | | static void tmc2000_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 377 | static void tmc2000_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 378 | 378 | { |
| 379 | 379 | /* cassette */ |
| 380 | 380 | switch(state) |
src/mess/drivers/bebox.c
| r1828 | r1829 | |
| 146 | 146 | ROM_LOAD( "bootnub.rom", 0x000000, 0x4000, CRC(5348d09a) SHA1(1b637a3d7a2b072aa128dd5c037bbb440d525c1a) ) |
| 147 | 147 | ROM_END |
| 148 | 148 | |
| 149 | | static void bebox_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 149 | static void bebox_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 150 | 150 | { |
| 151 | 151 | /* floppy */ |
| 152 | 152 | switch(state) |
| r1828 | r1829 | |
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | | static void bebox_cdrom_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 164 | static void bebox_cdrom_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 165 | 165 | { |
| 166 | 166 | /* cdrom */ |
| 167 | 167 | switch(state) |
| r1828 | r1829 | |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | | static void bebox_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 176 | static void bebox_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 177 | 177 | { |
| 178 | 178 | /* harddisk */ |
| 179 | 179 | switch(state) |
src/mess/drivers/a7800.c
| r1828 | r1829 | |
| 335 | 335 | ROM_LOAD ("7800pal.rom", 0xc000, 0x4000, CRC(d5b61170) SHA1(5a140136a16d1d83e4ff32a19409ca376a8df874)) |
| 336 | 336 | ROM_END |
| 337 | 337 | |
| 338 | | static void a7800_ntsc_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 338 | static void a7800_ntsc_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 339 | 339 | { |
| 340 | 340 | /* cartslot */ |
| 341 | 341 | switch(state) |
| r1828 | r1829 | |
| 360 | 360 | CONFIG_DEVICE(a7800_ntsc_cartslot_getinfo) |
| 361 | 361 | SYSTEM_CONFIG_END |
| 362 | 362 | |
| 363 | | static void a7800_pal_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 363 | static void a7800_pal_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 364 | 364 | { |
| 365 | 365 | /* cartslot */ |
| 366 | 366 | switch(state) |
src/mess/drivers/nascom1.c
| r1828 | r1829 | |
| 324 | 324 | * |
| 325 | 325 | *************************************/ |
| 326 | 326 | |
| 327 | | static void nascom1_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 327 | static void nascom1_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 328 | 328 | { |
| 329 | 329 | /* cassette */ |
| 330 | 330 | switch(state) |
| r1828 | r1829 | |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | |
| 349 | | static void nascom1_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 349 | static void nascom1_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 350 | 350 | { |
| 351 | 351 | switch(state) |
| 352 | 352 | { |
| r1828 | r1829 | |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | |
| 367 | | static void nascom2_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 367 | static void nascom2_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 368 | 368 | { |
| 369 | 369 | /* floppy */ |
| 370 | 370 | switch(state) |
src/mess/drivers/mtx.c
| r1828 | r1829 | |
| 286 | 286 | * |
| 287 | 287 | *************************************/ |
| 288 | 288 | |
| 289 | | static void mtx_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 289 | static void mtx_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 290 | 290 | { |
| 291 | 291 | switch(state) |
| 292 | 292 | { |
| r1828 | r1829 | |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | |
| 301 | | static void mtx_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 301 | static void mtx_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 302 | 302 | { |
| 303 | 303 | switch(state) |
| 304 | 304 | { |
src/mess/drivers/microtan.c
| r1828 | r1829 | |
| 260 | 260 | // initialized in init_microtan |
| 261 | 261 | ROM_END |
| 262 | 262 | |
| 263 | | static void microtan_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 263 | static void microtan_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 264 | 264 | { |
| 265 | 265 | /* cassette */ |
| 266 | 266 | switch(state) |
| r1828 | r1829 | |
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | | static void microtan_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 275 | static void microtan_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 276 | 276 | { |
| 277 | 277 | /* snapshot */ |
| 278 | 278 | switch(state) |
| r1828 | r1829 | |
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | | static void microtan_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 293 | static void microtan_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 294 | 294 | { |
| 295 | 295 | /* quickload */ |
| 296 | 296 | switch(state) |
src/mess/drivers/einstein.c
| r1828 | r1829 | |
| 1768 | 1768 | ROM_LOAD("charrom.rom",0x012000, 0x0800, NO_DUMP) |
| 1769 | 1769 | ROM_END |
| 1770 | 1770 | |
| 1771 | | static void einstein_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1771 | static void einstein_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1772 | 1772 | { |
| 1773 | 1773 | /* printer */ |
| 1774 | 1774 | switch(state) |
| r1828 | r1829 | |
| 1780 | 1780 | } |
| 1781 | 1781 | } |
| 1782 | 1782 | |
| 1783 | | static void einstein_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1783 | static void einstein_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1784 | 1784 | { |
| 1785 | 1785 | /* floppy */ |
| 1786 | 1786 | switch(state) |
src/mess/drivers/intv.c
| r1828 | r1829 | |
| 399 | 399 | ROM_LOAD( "4c52.u34", 0x0000, 0x0800, CRC(cbeb2e96) SHA1(f0e17adcd278fb376c9f90833c7fbbb60193dbe3)) |
| 400 | 400 | ROM_END |
| 401 | 401 | |
| 402 | | static void intv_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 402 | static void intv_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 403 | 403 | { |
| 404 | 404 | /* cartslot */ |
| 405 | 405 | switch(state) |
| r1828 | r1829 | |
| 423 | 423 | CONFIG_DEVICE(intv_cartslot_getinfo) |
| 424 | 424 | SYSTEM_CONFIG_END |
| 425 | 425 | |
| 426 | | static void intvkbd_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 426 | static void intvkbd_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 427 | 427 | { |
| 428 | 428 | /* cartslot */ |
| 429 | 429 | switch(state) |
| r1828 | r1829 | |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | #ifdef UNUSED_FUNCTION |
| 445 | | static void intvkbd_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 445 | static void intvkbd_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 446 | 446 | { |
| 447 | 447 | /* cassette */ |
| 448 | 448 | switch(state) |
src/mess/drivers/jupiter.c
| r1828 | r1829 | |
| 199 | 199 | ROM_LOAD ("jupiter.hi", 0x1000, 0x1000, CRC(4009f636) SHA1(98c5d4bcd74bcf014268cf4c00b2007ea5cc21f3)) |
| 200 | 200 | ROM_END |
| 201 | 201 | |
| 202 | | static void jupiter_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 202 | static void jupiter_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 203 | 203 | { |
| 204 | 204 | /* cartslot */ |
| 205 | 205 | switch(state) |
| r1828 | r1829 | |
| 217 | 217 | } |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | | static void jupiter_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 220 | static void jupiter_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 221 | 221 | { |
| 222 | 222 | /* cassette */ |
| 223 | 223 | switch(state) |
src/mess/drivers/osborne1.c
| r1828 | r1829 | |
| 181 | 181 | ROM_LOAD( "osbchr.bin", 0x0000, 0x800, BAD_DUMP CRC(6c1eab0d) SHA1(b04459d377a70abc9155a5486003cb795342c801) ) |
| 182 | 182 | ROM_END |
| 183 | 183 | |
| 184 | | static void osborne1_floppy_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 184 | static void osborne1_floppy_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) { |
| 185 | 185 | switch( state ) { |
| 186 | 186 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; |
| 187 | 187 | case MESS_DEVINFO_PTR_LOAD: info->load = device_load_osborne1_floppy; break; |
src/mess/drivers/vtech1.c
| r1828 | r1829 | |
| 394 | 394 | System Config |
| 395 | 395 | ******************************************************************************/ |
| 396 | 396 | |
| 397 | | static void vtech1_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 397 | static void vtech1_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 398 | 398 | { |
| 399 | 399 | /* printer */ |
| 400 | 400 | switch(state) |
| r1828 | r1829 | |
| 406 | 406 | } |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | | static void vtech1_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 409 | static void vtech1_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 410 | 410 | { |
| 411 | 411 | /* cassette */ |
| 412 | 412 | switch(state) |
| r1828 | r1829 | |
| 421 | 421 | } |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | | static void vtech1_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 424 | static void vtech1_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 425 | 425 | { |
| 426 | 426 | /* snapshot */ |
| 427 | 427 | switch(state) |
| r1828 | r1829 | |
| 439 | 439 | } |
| 440 | 440 | } |
| 441 | 441 | |
| 442 | | static void vtech1_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 442 | static void vtech1_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 443 | 443 | { |
| 444 | 444 | /* floppy */ |
| 445 | 445 | switch(state) |
src/mess/drivers/amstrad.c
| r1828 | r1829 | |
| 3089 | 3089 | * |
| 3090 | 3090 | *************************************/ |
| 3091 | 3091 | |
| 3092 | | static void cpc6128_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3092 | static void cpc6128_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3093 | 3093 | { |
| 3094 | 3094 | /* floppy */ |
| 3095 | 3095 | switch(state) |
| r1828 | r1829 | |
| 3102 | 3102 | } |
| 3103 | 3103 | |
| 3104 | 3104 | |
| 3105 | | static void cpc6128_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3105 | static void cpc6128_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3106 | 3106 | { |
| 3107 | 3107 | /* cassette */ |
| 3108 | 3108 | switch(state) |
| r1828 | r1829 | |
| 3117 | 3117 | } |
| 3118 | 3118 | |
| 3119 | 3119 | |
| 3120 | | static void cpc6128_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3120 | static void cpc6128_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3121 | 3121 | { |
| 3122 | 3122 | /* printer */ |
| 3123 | 3123 | switch(state) |
| r1828 | r1829 | |
| 3130 | 3130 | } |
| 3131 | 3131 | |
| 3132 | 3132 | |
| 3133 | | static void cpcplus_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3133 | static void cpcplus_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3134 | 3134 | { |
| 3135 | 3135 | /* cartslot */ |
| 3136 | 3136 | switch(state) |
| r1828 | r1829 | |
| 3150 | 3150 | } |
| 3151 | 3151 | |
| 3152 | 3152 | |
| 3153 | | static void cpcplus_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3153 | static void cpcplus_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3154 | 3154 | { |
| 3155 | 3155 | /* snapshot */ |
| 3156 | 3156 | switch(state) |
| r1828 | r1829 | |
| 3166 | 3166 | } |
| 3167 | 3167 | |
| 3168 | 3168 | |
| 3169 | | static void aleste_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3169 | static void aleste_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3170 | 3170 | { |
| 3171 | 3171 | /* floppy */ |
| 3172 | 3172 | switch(state) |
src/mess/drivers/sms.c
| r1828 | r1829 | |
| 499 | 499 | |
| 500 | 500 | #define rom_gamegeaj rom_gamegear |
| 501 | 501 | |
| 502 | | static void sms_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 502 | static void sms_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 503 | 503 | { |
| 504 | 504 | /* cartslot */ |
| 505 | 505 | switch(state) |
| r1828 | r1829 | |
| 523 | 523 | CONFIG_DEVICE(sms_cartslot_getinfo) |
| 524 | 524 | SYSTEM_CONFIG_END |
| 525 | 525 | |
| 526 | | static void sg1000_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 526 | static void sg1000_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) { |
| 527 | 527 | /* cartslot */ |
| 528 | 528 | switch(state) { |
| 529 | 529 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; |
| r1828 | r1829 | |
| 535 | 535 | CONFIG_DEVICE(sg1000_cartslot_getinfo) |
| 536 | 536 | SYSTEM_CONFIG_END |
| 537 | 537 | |
| 538 | | static void smssdisp_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 538 | static void smssdisp_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) { |
| 539 | 539 | switch(state) { |
| 540 | 540 | case MESS_DEVINFO_INT_COUNT: info->i = 5; break; |
| 541 | 541 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; |
| r1828 | r1829 | |
| 547 | 547 | CONFIG_DEVICE(smssdisp_cartslot_getinfo) |
| 548 | 548 | SYSTEM_CONFIG_END |
| 549 | 549 | |
| 550 | | static void gamegear_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 550 | static void gamegear_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 551 | 551 | { |
| 552 | 552 | switch(state) |
| 553 | 553 | { |
src/mess/drivers/tutor.c
| r1828 | r1829 | |
| 598 | 598 | ROM_LOAD("tutor2.bin", 0x8000, 0x4000, CRC(05f228f5) SHA1(46a14a45f6f9e2c30663a2b87ce60c42768a78d0)) /* BASIC ROM */ |
| 599 | 599 | ROM_END |
| 600 | 600 | |
| 601 | | static void tutor_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 601 | static void tutor_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 602 | 602 | { |
| 603 | 603 | /* cartslot */ |
| 604 | 604 | switch(state) |
| r1828 | r1829 | |
| 617 | 617 | } |
| 618 | 618 | } |
| 619 | 619 | |
| 620 | | static void tutor_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 620 | static void tutor_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 621 | 621 | { |
| 622 | 622 | /* cassette */ |
| 623 | 623 | switch(state) |
| r1828 | r1829 | |
| 629 | 629 | } |
| 630 | 630 | } |
| 631 | 631 | |
| 632 | | static void tutor_parallel_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 632 | static void tutor_parallel_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 633 | 633 | { |
| 634 | 634 | /* parallel */ |
| 635 | 635 | switch(state) |
src/mess/drivers/trs80.c
| r1828 | r1829 | |
| 452 | 452 | ROM_LOAD("trs80m1.chr", 0x0800, 0x0400, CRC(0033f2b9) SHA1(0d2cd4197d54e2e872b515bbfdaa98efe502eda7)) |
| 453 | 453 | ROM_END |
| 454 | 454 | |
| 455 | | static void trs80_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 455 | static void trs80_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 456 | 456 | { |
| 457 | 457 | /* cassette */ |
| 458 | 458 | switch(state) |
| r1828 | r1829 | |
| 473 | 473 | } |
| 474 | 474 | } |
| 475 | 475 | |
| 476 | | static void trs80_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 476 | static void trs80_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 477 | 477 | { |
| 478 | 478 | /* quickload */ |
| 479 | 479 | switch(state) |
| r1828 | r1829 | |
| 497 | 497 | SYSTEM_CONFIG_END |
| 498 | 498 | |
| 499 | 499 | |
| 500 | | static void trs8012_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 500 | static void trs8012_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 501 | 501 | { |
| 502 | 502 | /* floppy */ |
| 503 | 503 | switch(state) |
src/mess/drivers/primo.c
| r1828 | r1829 | |
| 344 | 344 | 22050 /* sample frequency */ |
| 345 | 345 | }; |
| 346 | 346 | |
| 347 | | static void primo_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 347 | static void primo_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 348 | 348 | { |
| 349 | 349 | /* cassette */ |
| 350 | 350 | switch(state) |
| r1828 | r1829 | |
| 363 | 363 | } |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | | static void primo_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 366 | static void primo_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 367 | 367 | { |
| 368 | 368 | /* snapshot */ |
| 369 | 369 | switch(state) |
| r1828 | r1829 | |
| 378 | 378 | } |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | | static void primo_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 381 | static void primo_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 382 | 382 | { |
| 383 | 383 | /* quickload */ |
| 384 | 384 | switch(state) |
| r1828 | r1829 | |
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | | static void primo_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 396 | static void primo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 397 | 397 | { |
| 398 | 398 | /* cartslot */ |
| 399 | 399 | switch(state) |
| r1828 | r1829 | |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | #ifdef UNUSED_FUNCTION |
| 412 | | static void primo_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 412 | static void primo_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 413 | 413 | { |
| 414 | 414 | /* snapshot */ |
| 415 | 415 | switch(state) |
src/mess/drivers/ti85.c
| r1828 | r1829 | |
| 463 | 463 | ROMX_LOAD( "ti83pv112.bin", 0x10000, 0x80000, CRC(ddca5026) SHA1(6615df5554076b6b81bd128bf847d2ff046e556b), ROM_BIOS(3) ) |
| 464 | 464 | ROM_END |
| 465 | 465 | |
| 466 | | static void ti85_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 466 | static void ti85_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 467 | 467 | { |
| 468 | 468 | /* snapshot */ |
| 469 | 469 | switch(state) |
| r1828 | r1829 | |
| 478 | 478 | } |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | | static void ti85_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 481 | static void ti85_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 482 | 482 | { |
| 483 | 483 | /* serial */ |
| 484 | 484 | switch(state) |
| r1828 | r1829 | |
| 505 | 505 | CONFIG_DEVICE(ti85_snapshot_getinfo) |
| 506 | 506 | SYSTEM_CONFIG_END |
| 507 | 507 | |
| 508 | | static void ti86_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 508 | static void ti86_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 509 | 509 | { |
| 510 | 510 | /* snapshot */ |
| 511 | 511 | switch(state) |
| r1828 | r1829 | |
| 520 | 520 | } |
| 521 | 521 | } |
| 522 | 522 | |
| 523 | | static void ti86_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 523 | static void ti86_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 524 | 524 | { |
| 525 | 525 | /* serial */ |
| 526 | 526 | switch(state) |
src/mess/drivers/c64.c
| r1828 | r1829 | |
| 779 | 779 | #define rom_max rom_ultimax |
| 780 | 780 | #define rom_cbm4064 rom_pet64 |
| 781 | 781 | |
| 782 | | static void c64_cbmcartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 782 | static void c64_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 783 | 783 | { |
| 784 | 784 | switch(state) |
| 785 | 785 | { |
| r1828 | r1829 | |
| 790 | 790 | } |
| 791 | 791 | } |
| 792 | 792 | |
| 793 | | static void c64_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 793 | static void c64_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 794 | 794 | { |
| 795 | 795 | switch(state) |
| 796 | 796 | { |
| r1828 | r1829 | |
| 820 | 820 | CONFIG_DEVICE(vc1541_device_getinfo) |
| 821 | 821 | SYSTEM_CONFIG_END |
| 822 | 822 | |
| 823 | | static void ultimax_cbmcartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 823 | static void ultimax_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 824 | 824 | { |
| 825 | 825 | switch(state) |
| 826 | 826 | { |
src/mess/drivers/svi318.c
| r1828 | r1829 | |
| 484 | 484 | ROMX_LOAD ("svi806se.rom", 0x0000, 0x1000, CRC(daea8956) SHA1(3f16d5513ad35692488ae7d864f660e76c6e8ed3), ROM_BIOS(2)) |
| 485 | 485 | ROM_END |
| 486 | 486 | |
| 487 | | static void svi318_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 487 | static void svi318_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 488 | 488 | { |
| 489 | 489 | /* printer */ |
| 490 | 490 | switch(state) |
| r1828 | r1829 | |
| 500 | 500 | } |
| 501 | 501 | } |
| 502 | 502 | |
| 503 | | static void svi318_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 503 | static void svi318_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 504 | 504 | { |
| 505 | 505 | /* cassette */ |
| 506 | 506 | switch(state) |
| r1828 | r1829 | |
| 521 | 521 | } |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | | static void svi318_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 524 | static void svi318_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 525 | 525 | { |
| 526 | 526 | /* cartslot */ |
| 527 | 527 | switch(state) |
| r1828 | r1829 | |
| 553 | 553 | } |
| 554 | 554 | } |
| 555 | 555 | |
| 556 | | static void svi318_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 556 | static void svi318_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 557 | 557 | { |
| 558 | 558 | /* floppy */ |
| 559 | 559 | switch(state) |
src/mess/drivers/ti99_4p.c
| r1828 | r1829 | |
| 303 | 303 | ROM_END |
| 304 | 304 | |
| 305 | 305 | #ifdef UNUSED_FUNCTION |
| 306 | | static void ti99_4p_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 306 | static void ti99_4p_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 307 | 307 | { |
| 308 | 308 | /* cassette */ |
| 309 | 309 | switch(state) |
| r1828 | r1829 | |
| 316 | 316 | } |
| 317 | 317 | #endif |
| 318 | 318 | |
| 319 | | static void ti99_4p_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 319 | static void ti99_4p_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 320 | 320 | { |
| 321 | 321 | /* floppy */ |
| 322 | 322 | switch(state) |
| r1828 | r1829 | |
| 331 | 331 | } |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | | static void ti99_4p_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 334 | static void ti99_4p_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 335 | 335 | { |
| 336 | 336 | /* harddisk */ |
| 337 | 337 | switch(state) |
| r1828 | r1829 | |
| 353 | 353 | } |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | | static void ti99_4p_parallel_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 356 | static void ti99_4p_parallel_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 357 | 357 | { |
| 358 | 358 | /* parallel */ |
| 359 | 359 | switch(state) |
| r1828 | r1829 | |
| 371 | 371 | } |
| 372 | 372 | } |
| 373 | 373 | |
| 374 | | static void ti99_4p_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 374 | static void ti99_4p_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 375 | 375 | { |
| 376 | 376 | /* serial */ |
| 377 | 377 | switch(state) |
| r1828 | r1829 | |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | #if 0 |
| 393 | | static void ti99_4p_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 393 | static void ti99_4p_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 394 | 394 | { |
| 395 | 395 | /* quickload */ |
| 396 | 396 | switch(state) |
| r1828 | r1829 | |
| 410 | 410 | } |
| 411 | 411 | #endif |
| 412 | 412 | |
| 413 | | static void ti99_4p_memcard_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 413 | static void ti99_4p_memcard_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 414 | 414 | { |
| 415 | 415 | /* memcard */ |
| 416 | 416 | switch(state) |
src/mess/drivers/pc.c
| r1828 | r1829 | |
| 1678 | 1678 | ROM_LOAD("cga.chr", 0x00000, 0x01000, CRC(42009069) SHA1(ed08559ce2d7f97f68b9f540bddad5b6295294dd)) |
| 1679 | 1679 | ROM_END |
| 1680 | 1680 | |
| 1681 | | static void ibmpc_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1681 | static void ibmpc_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1682 | 1682 | { |
| 1683 | 1683 | /* floppy */ |
| 1684 | 1684 | switch(state) |
| r1828 | r1829 | |
| 1693 | 1693 | } |
| 1694 | 1694 | } |
| 1695 | 1695 | |
| 1696 | | static void ibmpc_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1696 | static void ibmpc_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1697 | 1697 | { |
| 1698 | 1698 | /* printer */ |
| 1699 | 1699 | switch(state) |
| r1828 | r1829 | |
| 1705 | 1705 | } |
| 1706 | 1706 | } |
| 1707 | 1707 | |
| 1708 | | static void ibmpc_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1708 | static void ibmpc_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1709 | 1709 | { |
| 1710 | 1710 | /* harddisk */ |
| 1711 | 1711 | switch(state) |
src/mess/drivers/pce.c
| r1828 | r1829 | |
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | | static void pce_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 228 | static void pce_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 229 | 229 | { |
| 230 | 230 | /* cartslot */ |
| 231 | 231 | switch(state) |
| r1828 | r1829 | |
| 245 | 245 | } |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | | static void pce_chdcd_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { |
| 248 | static void pce_chdcd_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) { |
| 249 | 249 | switch( state ) { |
| 250 | 250 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; |
| 251 | 251 | default: cdrom_device_getinfo(devclass, state, info); |
src/mess/drivers/ti99_4x.c
| r1828 | r1829 | |
| 755 | 755 | * are emulated. |
| 756 | 756 | */ |
| 757 | 757 | |
| 758 | | static void ti99_4_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 758 | static void ti99_4_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 759 | 759 | { |
| 760 | 760 | /* cassette */ |
| 761 | 761 | switch(state) |
| r1828 | r1829 | |
| 767 | 767 | } |
| 768 | 768 | } |
| 769 | 769 | |
| 770 | | static void ti99_4_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 770 | static void ti99_4_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 771 | 771 | { |
| 772 | 772 | /* cartslot */ |
| 773 | 773 | switch(state) |
| r1828 | r1829 | |
| 789 | 789 | } |
| 790 | 790 | } |
| 791 | 791 | |
| 792 | | static void ti99_4_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 792 | static void ti99_4_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 793 | 793 | { |
| 794 | 794 | /* floppy */ |
| 795 | 795 | switch(state) |
| r1828 | r1829 | |
| 806 | 806 | } |
| 807 | 807 | } |
| 808 | 808 | |
| 809 | | static void ti99_4_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 809 | static void ti99_4_harddisk_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 810 | 810 | { |
| 811 | 811 | /* harddisk */ |
| 812 | 812 | switch(state) |
| r1828 | r1829 | |
| 829 | 829 | } |
| 830 | 830 | } |
| 831 | 831 | |
| 832 | | static void ti99_4_parallel_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 832 | static void ti99_4_parallel_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 833 | 833 | { |
| 834 | 834 | /* parallel */ |
| 835 | 835 | switch(state) |
| r1828 | r1829 | |
| 850 | 850 | } |
| 851 | 851 | } |
| 852 | 852 | |
| 853 | | static void ti99_4_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 853 | static void ti99_4_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 854 | 854 | { |
| 855 | 855 | /* serial */ |
| 856 | 856 | switch(state) |
| r1828 | r1829 | |
| 872 | 872 | } |
| 873 | 873 | |
| 874 | 874 | #if 0 |
| 875 | | static void ti99_4_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 875 | static void ti99_4_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 876 | 876 | { |
| 877 | 877 | /* quickload */ |
| 878 | 878 | switch(state) |
| r1828 | r1829 | |
| 892 | 892 | } |
| 893 | 893 | #endif |
| 894 | 894 | |
| 895 | | static void ti99_4_memcard_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 895 | static void ti99_4_memcard_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 896 | 896 | { |
| 897 | 897 | /* memcard */ |
| 898 | 898 | switch(state) |
src/mess/drivers/vc4000.c
| r1828 | r1829 | |
| 274 | 274 | return INIT_PASS; |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | | static void vc4000_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 277 | static void vc4000_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 278 | 278 | { |
| 279 | 279 | /* cartslot */ |
| 280 | 280 | switch(state) |
| r1828 | r1829 | |
| 330 | 330 | return INIT_PASS; |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | | static void vc4000_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 333 | static void vc4000_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 334 | 334 | { |
| 335 | 335 | /* quickload */ |
| 336 | 336 | switch(state) |
src/mess/drivers/bbc.c
| r1828 | r1829 | |
| 809 | 809 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 810 | 810 | MACHINE_DRIVER_END |
| 811 | 811 | |
| 812 | | static void bbc_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 812 | static void bbc_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 813 | 813 | { |
| 814 | 814 | /* cartslot */ |
| 815 | 815 | switch(state) |
| r1828 | r1829 | |
| 827 | 827 | } |
| 828 | 828 | } |
| 829 | 829 | |
| 830 | | static void bbc_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 830 | static void bbc_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 831 | 831 | { |
| 832 | 832 | /* floppy */ |
| 833 | 833 | switch(state) |
| r1828 | r1829 | |
| 845 | 845 | } |
| 846 | 846 | } |
| 847 | 847 | |
| 848 | | static void bbc_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { |
| 848 | static void bbc_cassette_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) { |
| 849 | 849 | switch( state ) { |
| 850 | 850 | case MESS_DEVINFO_INT_COUNT: |
| 851 | 851 | info->i = 1; |
| r1828 | r1829 | |
| 859 | 859 | } |
| 860 | 860 | } |
| 861 | 861 | |
| 862 | | static void bbc_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 862 | static void bbc_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 863 | 863 | { |
| 864 | 864 | /* printer */ |
| 865 | 865 | switch(state) |
src/mess/drivers/compis.c
| r1828 | r1829 | |
| 240 | 240 | ROM_LOAD ("compis.rom", 0xf0000, 0x10000, CRC(89877688) SHA1(7daa1762f24e05472eafc025879da90fe61d0225)) |
| 241 | 241 | ROM_END |
| 242 | 242 | |
| 243 | | static void compis_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 243 | static void compis_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 244 | 244 | { |
| 245 | 245 | /* printer */ |
| 246 | 246 | switch(state) |
| r1828 | r1829 | |
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | | static void compis_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 255 | static void compis_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 256 | 256 | { |
| 257 | 257 | /* floppy */ |
| 258 | 258 | switch(state) |
src/mess/drivers/vtech2.c
| r1828 | r1829 | |
| 522 | 522 | |
| 523 | 523 | ***************************************************************************/ |
| 524 | 524 | |
| 525 | | static void laser_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 525 | static void laser_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 526 | 526 | { |
| 527 | 527 | /* cassette */ |
| 528 | 528 | switch(state) |
| r1828 | r1829 | |
| 537 | 537 | } |
| 538 | 538 | } |
| 539 | 539 | |
| 540 | | static void laser_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 540 | static void laser_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 541 | 541 | { |
| 542 | 542 | /* cartslot */ |
| 543 | 543 | switch(state) |
| r1828 | r1829 | |
| 556 | 556 | } |
| 557 | 557 | } |
| 558 | 558 | |
| 559 | | static void laser_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 559 | static void laser_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 560 | 560 | { |
| 561 | 561 | /* floppy */ |
| 562 | 562 | switch(state) |
src/mess/drivers/kc.c
| r1828 | r1829 | |
| 420 | 420 | ROM_LOAD("caos__e0.853", 0x12000, 0x2000, CRC(52bc2199) SHA1(207d3e1c4ebf82ac7553ed0a0850b627b9796d4b)) |
| 421 | 421 | ROM_END |
| 422 | 422 | |
| 423 | | static void kc85_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 423 | static void kc85_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 424 | 424 | { |
| 425 | 425 | /* cassette */ |
| 426 | 426 | switch(state) |
| r1828 | r1829 | |
| 432 | 432 | } |
| 433 | 433 | } |
| 434 | 434 | |
| 435 | | static void kc85_quickload_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 435 | static void kc85_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 436 | 436 | { |
| 437 | 437 | /* quickload */ |
| 438 | 438 | switch(state) |
| r1828 | r1829 | |
| 453 | 453 | CONFIG_DEVICE(kc85_quickload_getinfo) |
| 454 | 454 | SYSTEM_CONFIG_END |
| 455 | 455 | |
| 456 | | static void kc85d_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 456 | static void kc85d_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 457 | 457 | { |
| 458 | 458 | /* floppy */ |
| 459 | 459 | switch(state) |