Previous 15994 Revisions Next

r14585 Thursday 23rd February, 2012 at 14:23:19 UTC by Miodrag Milanović
- removed need for *_dev.lst files (no whatsnew)
- enforced short names for slot card devices
- updated validation, romverify and listxml output accordingly
- slotoptions now also contain shortnames so it's possible to link
slot option and device
- updated all slot card devices to have shortname
[ROOT]makefile
[src/build]build.mak makedev.c
[src/emu]audit.c clifront.c info.c validity.c validity.h
[src/emu/imagedev]floppy.h
[src/emu/machine]ctronics.h idectrl.h nscsi_cd.h nscsi_hd.h
[src/ldplayer]ldplayer_dev.lst
[src/mame]mame_dev.lst tiny_dev.lst
[src/mess]mess_dev.lst tiny_dev.lst
[src/mess/machine]3c503.h c64_comal80.h c64_dela_ep64.h c64_dinamic.h c64_easy_calc_result.h c64_easyflash.h c64_epyx_fast_load.h c64_exos.h c64_fun_play.h c64_georam.h c64_ieee488.h c64_mach5.h c64_magic_desk.h c64_magic_formel.h c64_mikro_assembler.h c64_multiscreen.h c64_ocean.h c64_pagefox.h c64_rex.h c64_ross.h c64_silverrock.h c64_simons_basic.h c64_stardos.h c64_std.h c64_structured_basic.h c64_super_explode.h c64_super_games.h c64_system3.h c64_vw64.h c64_warp_speed.h c64_westermann.h c64_zaxxon.h cntr_covox.h coco_232.h coco_multi.h coco_orch90.h coco_pak.c coco_pak.h comx_joy.h comx_ram.h isa_adlib.h isa_com.h isa_fdc.h isa_gblaster.h isa_gus.h isa_ide.h isa_mpu401.h isa_sblaster.h lux4105.h ne1000.h ne2000.h null_modem.h pc_lpt.h s100_wunderbus.h ser_mouse.h terminal.h vic1010.h vic10std.h vic1110.h vic1111.h vic1112.h vic1210.h vic20std.h wangpc_lores.h

src/build/makedev.c
r14584r14585
1/***************************************************************************
2
3    makedev.c
4
5    Create and sort the driver list.
6
7****************************************************************************
8
9    Copyright Aaron Giles
10    All rights reserved.
11
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
38***************************************************************************/
39
40#include <stdio.h>
41#include <stdlib.h>
42#include <ctype.h>
43#include "corefile.h"
44
45
46#define MAX_DEVICES 65536
47#define MAX_IGNORE  512
48
49static const char *devlist[MAX_DEVICES];
50static int devcount;
51static const char *ignorelst[MAX_IGNORE];
52static int ignorecount;
53
54
55//-------------------------------------------------
56//  driver_sort_callback - compare two items in
57//  a string array
58//-------------------------------------------------
59
60int sort_callback(const void *elem1, const void *elem2)
61{
62   const char **item1 = (const char **)elem1;
63   const char **item2 = (const char **)elem2;
64   return strcmp(*item1, *item2);
65}
66
67//-------------------------------------------------
68//  isignored - return info if item is in ignore
69//  list or not
70//-------------------------------------------------
71
72bool isignored(const char *drivname)
73{
74   if (ignorecount>0) {
75      for(int i=0;i<ignorecount;i++) {
76         if (strcmp(ignorelst[i],drivname)==0) return true;
77      }
78   }
79   return false;
80}
81
82//-------------------------------------------------
83//  parse_file - parse a single file, may be
84//  called recursively
85//-------------------------------------------------
86
87int parse_file(const char *srcfile)
88{
89   // read source file
90   void *buffer;
91   UINT32 length;
92   file_error filerr = core_fload(srcfile, &buffer, &length);
93   if (filerr != FILERR_NONE)
94   {
95      fprintf(stderr, "Unable to read source file '%s'\n", srcfile);
96      return 1;
97   }
98
99   // rip through it to find all drivers
100   char *srcptr = (char *)buffer;
101   char *endptr = srcptr + length;
102   int linenum = 1;
103   bool in_comment = false;
104   while (srcptr < endptr)
105   {
106      char c = *srcptr++;
107
108      // count newlines
109      if (c == 13 || c == 10)
110      {
111         if (c == 13 && *srcptr == 10)
112            srcptr++;
113         linenum++;
114         continue;
115      }
116
117      // skip any spaces
118      if (isspace(c))
119         continue;
120
121      // look for end of C comment
122      if (in_comment && c == '*' && *srcptr == '/')
123      {
124         srcptr++;
125         in_comment = false;
126         continue;
127      }
128
129      // skip anything else inside a C comment
130      if (in_comment)
131         continue;
132
133      // look for start of C comment
134      if (c == '/' && *srcptr == '*')
135      {
136         srcptr++;
137         in_comment = true;
138         continue;
139      }
140
141      // if we hit a C++ comment, scan to the end of line
142      if (c == '/' && *srcptr == '/')
143      {
144         while (srcptr < endptr && *srcptr != 13 && *srcptr != 10)
145            srcptr++;
146         continue;
147      }
148
149      // look for an import directive
150      if (c == '#')
151      {
152         char filename[256];
153         filename[0] = 0;
154         for (int pos = 0; srcptr < endptr && pos < ARRAY_LENGTH(filename) - 1 && !isspace(*srcptr); pos++)
155         {
156            filename[pos] = *srcptr++;
157            filename[pos+1] = 0;
158         }
159         fprintf(stderr, "Importing devices from '%s'\n", filename);
160         parse_file(filename);
161         continue;
162      }
163      if (c == '!')
164      {
165         char drivname[256];
166         drivname[0] = 0;
167         for (int pos = 0; srcptr < endptr && pos < ARRAY_LENGTH(drivname) - 1 && !isspace(*srcptr); pos++)
168         {
169            drivname[pos] = *srcptr++;
170            drivname[pos+1] = 0;
171         }
172         fprintf(stderr, "Place device '%s' to ignore list\n", drivname);
173         char *name = (char *)malloc(strlen(drivname) + 1);
174         strcpy(name, drivname);
175         ignorelst[ignorecount++] = name;
176         continue;
177      }
178
179      // otherwise treat as a device name
180      char drivname[32];
181      drivname[0] = 0;
182      srcptr--;
183      for (int pos = 0; srcptr < endptr && pos < ARRAY_LENGTH(drivname) - 1 && !isspace(*srcptr); pos++)
184      {
185         drivname[pos] = *srcptr++;
186         drivname[pos+1] = 0;
187      }
188
189      // verify the name as valid
190      for (char *drivch = drivname; *drivch != 0; drivch++)
191      {
192         if ((*drivch >= 'A' && *drivch <= 'Z') || (*drivch >= '0' && *drivch <= '9') || *drivch == '_')
193            continue;
194         fprintf(stderr, "%s:%d - Invalid character '%c' in device type \"%s\"\n", srcfile, linenum, *drivch, drivname);
195         return 1;
196      }
197
198      // add it to the list
199      if(!isignored(drivname))
200      {
201         char *name = (char *)malloc(strlen(drivname) + 1);
202         strcpy(name, drivname);
203         devlist[devcount++] = name;
204      }
205   }
206
207   osd_free(buffer);
208
209   return 0;
210}
211
212
213//-------------------------------------------------
214//  main - primary entry point
215//-------------------------------------------------
216
217int main(int argc, char *argv[])
218{
219   // needs at least 1 argument
220   if (argc < 2)
221   {
222      fprintf(stderr,
223         "Usage:\n"
224         "  makedev <source.lst>\n"
225      );
226      return 0;
227   }
228
229   // extract arguments
230   const char *srcfile = argv[1];
231
232   // parse the root file, exit early upon failure
233   devcount = 0;
234   if (parse_file(srcfile))
235      return 1;
236
237   // output a count
238   if (devcount == 0)
239   {
240      fprintf(stderr, "No devices found\n");
241   } else {
242      fprintf(stderr, "%d devices found\n", devcount);
243   }
244
245   // sort the list
246   qsort(devlist, devcount, sizeof(*devlist), sort_callback);
247
248   // start with a header
249   printf("#include \"emu.h\"\n\n");
250
251   // output the list of externs first
252   for (int index = 0; index < devcount; index++)
253      printf("extern const device_type %s;\n", devlist[index]);
254   printf("\n");
255
256   // then output the array
257   printf("const device_type * s_devices_sorted[] =\n");
258   printf("{\n");
259   for (int index = 0; index < devcount; index++)
260      printf("\t&%s%s\n", devlist[index], (index == devcount - 1) ? "" : ",");
261   printf("};\n");
262   printf("\n");
263
264   // also output a global count
265   printf("int m_device_count = %d;\n", devcount);
266
267   return 0;
268}
src/build/build.mak
r14584r14585
2121FILE2STR_TARGET = $(BUILDOUT)/file2str$(BUILD_EXE)
2222MAKEDEP_TARGET = $(BUILDOUT)/makedep$(BUILD_EXE)
2323MAKELIST_TARGET = $(BUILDOUT)/makelist$(BUILD_EXE)
24MAKEDEV_TARGET = $(BUILDOUT)/makedev$(BUILD_EXE)
2524PNG2BDC_TARGET = $(BUILDOUT)/png2bdc$(BUILD_EXE)
2625VERINFO_TARGET = $(BUILDOUT)/verinfo$(BUILD_EXE)
2726
r14584r14585
2928FILE2STR = $(subst /,\,$(FILE2STR_TARGET))
3029MAKEDEP = $(subst /,\,$(MAKEDEP_TARGET))
3130MAKELIST = $(subst /,\,$(MAKELIST_TARGET))
32MAKEDEV = $(subst /,\,$(MAKEDEV_TARGET))
3331PNG2BDC = $(subst /,\,$(PNG2BDC_TARGET))
3432VERINFO = $(subst /,\,$(VERINFO_TARGET))
3533else
3634FILE2STR = $(FILE2STR_TARGET)
3735MAKEDEP = $(MAKEDEP_TARGET)
3836MAKELIST = $(MAKELIST_TARGET)
39MAKEDEV = $(MAKEDEV_TARGET)
4037PNG2BDC = $(PNG2BDC_TARGET)
4138VERINFO = $(VERINFO_TARGET)
4239endif
r14584r14585
4643   $(FILE2STR_TARGET) \
4744   $(MAKEDEP_TARGET) \
4845   $(MAKELIST_TARGET) \
49   $(MAKEDEV_TARGET) \
5046   $(PNG2BDC_TARGET) \
5147   $(VERINFO_TARGET) \
5248
r14584r14585
9288
9389
9490#-------------------------------------------------
95# makedev
96#-------------------------------------------------
97
98MAKEDEVOBJS = \
99   $(BUILDOBJ)/makedev.o \
100
101$(MAKEDEV_TARGET): $(MAKEDEVOBJS) $(LIBUTIL) $(LIBOCORE) $(ZLIB)
102   @echo Linking $@...
103   $(LD) $(LDFLAGS) $^ $(LIBS) -o $@
104
105
106
107#-------------------------------------------------
10891# png2bdc
10992#-------------------------------------------------
11093
src/mame/tiny_dev.lst
r14584r14585
1/******************************************************************************
2
3    tiny_dev.lst
4
5    List of all enabled devices in the system. This file is parsed by
6    makedev.exe, sorted, and output as C code describing the devices.
7
8****************************************************************************
9
10    Copyright Aaron Giles
11    All rights reserved.
12
13    Redistribution and use in source and binary forms, with or without
14    modification, are permitted provided that the following conditions are
15    met:
16
17        * Redistributions of source code must retain the above copyright
18          notice, this list of conditions and the following disclaimer.
19        * Redistributions in binary form must reproduce the above copyright
20          notice, this list of conditions and the following disclaimer in
21          the documentation and/or other materials provided with the
22          distribution.
23        * Neither the name 'MAME' nor the names of its contributors may be
24          used to endorse or promote products derived from this software
25          without specific prior written permission.
26
27    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
28    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
31    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
36    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37    POSSIBILITY OF SUCH DAMAGE.
38
39******************************************************************************/
src/mame/mame_dev.lst
r14584r14585
1/******************************************************************************
2
3    mame_dev.lst
4
5    List of all enabled devices in the system. This file is parsed by
6    makedev.exe, sorted, and output as C code describing the devices.
7
8****************************************************************************
9
10    Copyright Aaron Giles
11    All rights reserved.
12
13    Redistribution and use in source and binary forms, with or without
14    modification, are permitted provided that the following conditions are
15    met:
16
17        * Redistributions of source code must retain the above copyright
18          notice, this list of conditions and the following disclaimer.
19        * Redistributions in binary form must reproduce the above copyright
20          notice, this list of conditions and the following disclaimer in
21          the documentation and/or other materials provided with the
22          distribution.
23        * Neither the name 'MAME' nor the names of its contributors may be
24          used to endorse or promote products derived from this software
25          without specific prior written permission.
26
27    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
28    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
31    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
36    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37    POSSIBILITY OF SUCH DAMAGE.
38
39******************************************************************************/
40
41BSMT2000
42H63484
43NAMCO_50XX
44NAMCO_51XX
45NAMCO_52XX
46NAMCO_53XX
47NAMCO_54XX
48NAMCO_62XX
49MIE
50PHILLIPS_22VP931
51PIONEER_LDV1000
52PIONEER_PR8210
53SIMUTREK_SPECIAL
src/emu/clifront.c
r14584r14585
732732//  verifyroms - verify the ROM sets of one or
733733//  more games
734734//-------------------------------------------------
735extern int m_device_count;
736extern const device_type *s_devices_sorted[];
737
738735void cli_frontend::verifyroms(const char *gamename)
739736{
740737   // determine which drivers to output;
r14584r14585
797794   }
798795
799796   driver_enumerator dummy_drivlist(m_options);
800   dummy_drivlist.next();
801   machine_config &config = dummy_drivlist.config();
802   device_t *owner = &config.root_device();
803   // check if all are listed, note that empty one is included
804   for (int i = 0; i < m_device_count; i++)
797   typedef tagmap_t<FPTR> int_map;
798   int_map device_map;
799   while (dummy_drivlist.next())
805800   {
806      device_type type = *s_devices_sorted[i];
807      device_t *dev = (*type)(config, "dummy", owner, 0);
808      dev->config_complete();
801      machine_config &config = dummy_drivlist.config();
802      device_iterator iter(config.root_device());
803      for (device_t *dev = iter.first(); dev != NULL; dev = iter.next())
804      {         
805         if ((strlen(dev->shortname())>0) && dev->rom_region() != NULL && (device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE)) {
806            if (mame_strwildcmp(gamename, dev->shortname()) == 0)
807            {
808               matched++;
809809
810      if (mame_strwildcmp(gamename, dev->shortname()) == 0)
811      {
812         matched++;
810               // audit the ROMs in this set
811               media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST);
813812
814         // audit the ROMs in this set
815         media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST);
813               // if not found, count that and leave it at that
814               if (summary == media_auditor::NOTFOUND) {
815                  notfound++;
816               }
817               // else display information about what we discovered
818               else
819               {
820                  // output the summary of the audit
821                  astring summary_string;
822                  auditor.summarize(dev->shortname(),&summary_string);
823                  mame_printf_info("%s", summary_string.cstr());
816824
817         // if not found, count that and leave it at that
818         if (summary == media_auditor::NOTFOUND)
819            notfound++;
825                  // display information about what we discovered
826                  mame_printf_info("romset %s ", dev->shortname());
820827
821         // else display information about what we discovered
822         else
828                  // switch off of the result
829                  switch (summary)
830                  {
831                     case media_auditor::INCORRECT:
832                        mame_printf_info("is bad\n");
833                        incorrect++;
834                        break;
835
836                     case media_auditor::CORRECT:
837                        mame_printf_info("is good\n");
838                        correct++;
839                        break;
840
841                     case media_auditor::BEST_AVAILABLE:
842                        mame_printf_info("is best available\n");
843                        correct++;
844                        break;
845
846                     default:
847                        break;
848                  }
849               }                 
850            }
851         }
852      }     
853     
854      slot_interface_iterator slotiter(config.root_device());
855      for (const device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next())
856      {
857         const slot_interface* intf = slot->get_slot_interfaces();
858         for (int i = 0; intf && intf[i].name != NULL; i++)
823859         {
824            // output the summary of the audit
825            astring summary_string;
826            auditor.summarize(dev->shortname(),&summary_string);
827            mame_printf_info("%s", summary_string.cstr());
860            astring temptag("_");
861            temptag.cat(intf[i].name);
862            device_t *dev = const_cast<machine_config &>(config).device_add(&config.root_device(), temptag.cstr(), intf[i].devtype, 0);
828863
829            // display information about what we discovered
830            mame_printf_info("romset %s ", dev->shortname());
864            // notify this device and all its subdevices that they are now configured
865            device_iterator subiter(*dev);
866            for (device_t *device = subiter.first(); device != NULL; device = subiter.next())
867               if (!device->configured())
868                  device->config_complete();
869           
870            if (dev->rom_region() != NULL && device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE) {
871               if (mame_strwildcmp(gamename, dev->shortname()) == 0)
872               {
873                  matched++;
831874
832            // switch off of the result
833            switch (summary)
834            {
835               case media_auditor::INCORRECT:
836                  mame_printf_info("is bad\n");
837                  incorrect++;
838                  break;
875                  // audit the ROMs in this set
876                  media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST);
839877
840               case media_auditor::CORRECT:
841                  mame_printf_info("is good\n");
842                  correct++;
843                  break;
878                  // if not found, count that and leave it at that
879                  if (summary == media_auditor::NOTFOUND)
880                     notfound++;
844881
845               case media_auditor::BEST_AVAILABLE:
846                  mame_printf_info("is best available\n");
847                  correct++;
848                  break;
882                  // else display information about what we discovered
883                  else
884                  {
885                     // output the summary of the audit
886                     astring summary_string;
887                     auditor.summarize(dev->shortname(),&summary_string);
888                     mame_printf_info("%s", summary_string.cstr());
849889
850               default:
851                  break;
890                     // display information about what we discovered
891                     mame_printf_info("romset %s ", dev->shortname());
892
893                     // switch off of the result
894                     switch (summary)
895                     {
896                        case media_auditor::INCORRECT:
897                           mame_printf_info("is bad\n");
898                           incorrect++;
899                           break;
900
901                        case media_auditor::CORRECT:
902                           mame_printf_info("is good\n");
903                           correct++;
904                           break;
905
906                        case media_auditor::BEST_AVAILABLE:
907                           mame_printf_info("is best available\n");
908                           correct++;
909                           break;
910
911                        default:
912                           break;
913                     }
914                  }
915               }
852916            }
917
918            const_cast<machine_config &>(config).device_remove(&config.root_device(), temptag.cstr());
919            global_free(dev);
853920         }
854      }
855
856      global_free(dev);
921      }   
857922   }
858923
859924   // clear out any cached files
src/emu/validity.c
r14584r14585
6060//  TYPE DEFINITIONS
6161//**************************************************************************
6262
63extern const device_type *s_devices_sorted[];
64extern int m_device_count;
65
66
67
6863//**************************************************************************
6964//  INLINE FUNCTIONS
7065//**************************************************************************
r14584r14585
302297      validate_display();
303298      validate_gfx();
304299      validate_devices();
305      validate_slots();
306300   }
307301   catch (emu_fatalerror &err)
308302   {
r14584r14585
706700      if (items_since_region == 0)
707701         mame_printf_warning("Empty ROM region '%s' (warning)\n", last_region_name);
708702
709      // make sure each device is listed in the device list if it loads ROMs
710      if (m_current_device != NULL && total_files > 0)
711      {
712         // scan the list of devices for this device type
713         bool found = false;
714         for (int i = 0; i < m_device_count; i++)
715            if (m_current_device->type() == *s_devices_sorted[i])
716            {
717               found = true;
718               break;
719            }
720703
721         // if not found, report an error
722         if (!found)
723            mame_printf_error("Device %s is not listed in device list (mame_dev.lst / mess_dev.lst)\n", m_current_device->shortname());
724      }
725
726704      // reset the current device
727705      m_current_device = NULL;
728706   }
r14584r14585
11161094
11171095      // if we have a ROM region, we must have a shortname
11181096      if (device->rom_region() != NULL && strcmp(device->shortname(), "") == 0)
1119         mame_printf_error("Device %s has ROM definition but does not have short name defined\n", device->name());
1097         mame_printf_error("Device has ROM definition but does not have short name defined\n");
11201098
11211099      // check for device-specific validity check
11221100      device->validity_check(*this);
r14584r14585
11241102      // done with this device
11251103      m_current_device = NULL;
11261104   }
1127}
1128
1129
1130//-------------------------------------------------
1131//  validate_slots - run per-slot validity
1132//  checks
1133//-------------------------------------------------
1134
1135void validity_checker::validate_slots()
1136{
1137   // iterate over slots
1138   slot_interface_iterator iter(m_current_config->root_device());
1139   for (const device_slot_interface *slot = iter.first(); slot != NULL; slot = iter.next())
1105   
1106   // if device is slot cart device, we must have a shortname
1107   int_map slot_device_map;
1108   slot_interface_iterator slotiter(m_current_config->root_device());
1109   for (const device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next())
11401110   {
1141      // iterate over interfaces
1142      const slot_interface *intf = slot->get_slot_interfaces();
1143      for (int j = 0; intf && intf[j].name != NULL; j++)
1111      const slot_interface* intf = slot->get_slot_interfaces();
1112      for (int i = 0; intf && intf[i].name != NULL; i++)
11441113      {
1145         // instantiate the device
1146         device_t *dev = (*intf[j].devtype)(*m_current_config, "dummy", &m_current_config->root_device(), 0);
1147         dev->config_complete();
1114         astring temptag("_");
1115         temptag.cat(intf[i].name);
1116         device_t *dev = const_cast<machine_config &>(*m_current_config).device_add(&m_current_config->root_device(), temptag.cstr(), intf[i].devtype, 0);
11481117
1149         // if a ROM region is present
1150         if (dev->rom_region() != NULL)
1151         {
1152            bool has_romfiles = false;
1153            for (const rom_entry *romp = rom_first_region(*dev); !ROMENTRY_ISEND(romp); romp++)
1154               if (ROMENTRY_ISFILE(romp))
1155               {
1156                  has_romfiles = true;
1157                  break;
1158               }
1118         // notify this device and all its subdevices that they are now configured
1119         device_iterator subiter(*dev);
1120         for (device_t *device = subiter.first(); device != NULL; device = subiter.next())
1121            if (!device->configured())
1122               device->config_complete();
11591123
1160            if (has_romfiles)
1161            {
1162               // scan the list of devices for this device type
1163               bool found = false;
1164               for (int i = 0; i < m_device_count; i++)
1165                  if (dev->type() == *s_devices_sorted[i])
1166                  {
1167                     found = true;
1168                     break;
1169                  }
1170
1171               // if not found, report an error
1172               if (!found)
1173                  mame_printf_error("Device %s in slot %s is not listed in device list (mame_dev.lst / mess_dev.lst)\n", dev->shortname(), intf[j].name);
1174            }
1124         if (strcmp(dev->shortname(), "") == 0) {
1125            if (slot_device_map.add(dev->name(), 0, false) != TMERR_DUPLICATE)
1126               mame_printf_error("Device '%s' is slot cart device but does not have short name defined\n",dev->name());
11751127         }
1128
1129         const_cast<machine_config &>(*m_current_config).device_remove(&m_current_config->root_device(), temptag.cstr());
11761130         global_free(dev);
11771131      }
11781132   }
1133   
11791134}
11801135
11811136
src/emu/validity.h
r14584r14585
9797   void validate_condition(input_condition &condition, device_t &device, int_map &port_map);
9898   void validate_inputs();
9999   void validate_devices();
100   void validate_slots();
101100
102101   // output helpers
103102   void build_output_prefix(astring &string);
src/emu/imagedev/floppy.h
r14584r14585
165165   floppy_35_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
166166   virtual ~floppy_35_dd();
167167   virtual void handled_variants(UINT32 *variants, int &var_count) const;
168
168   virtual void device_config_complete() { m_shortname = "floppy_35_dd"; }
169169protected:
170170   virtual void setup_characteristics();
171171};
r14584r14585
175175   floppy_35_dd_nosd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
176176   virtual ~floppy_35_dd_nosd();
177177   virtual void handled_variants(UINT32 *variants, int &var_count) const;
178
178   virtual void device_config_complete() { m_shortname = "floppy_35_dd_nosd"; }
179179protected:
180180   virtual void setup_characteristics();
181181};
r14584r14585
185185   floppy_35_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
186186   virtual ~floppy_35_hd();
187187   virtual void handled_variants(UINT32 *variants, int &var_count) const;
188
188   virtual void device_config_complete() { m_shortname = "floppy_35_hd"; }
189189protected:
190190   virtual void setup_characteristics();
191191};
r14584r14585
195195   floppy_35_ed(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
196196   virtual ~floppy_35_ed();
197197   virtual void handled_variants(UINT32 *variants, int &var_count) const;
198
198   virtual void device_config_complete() { m_shortname = "floppy_35_ed"; }
199199protected:
200200   virtual void setup_characteristics();
201201};
r14584r14585
205205   floppy_525_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
206206   virtual ~floppy_525_dd();
207207   virtual void handled_variants(UINT32 *variants, int &var_count) const;
208
208   virtual void device_config_complete() { m_shortname = "floppy_525_dd"; }
209209protected:
210210   virtual void setup_characteristics();
211211};
src/emu/info.c
r14584r14585
180180"\t\t\t<!ELEMENT slotoption EMPTY>\n"
181181"\t\t\t\t<!ATTLIST slotoption name CDATA #REQUIRED>\n"
182182"\t\t\t\t<!ATTLIST slotoption description CDATA #REQUIRED>\n"
183"\t\t\t\t<!ATTLIST slotoption shortname CDATA #REQUIRED>\n"
183184"\t\t\t\t<!ATTLIST slotoption default (yes|no) \"no\">\n"
184185"\t\t<!ELEMENT softwarelist EMPTY>\n"
185186"\t\t\t<!ATTLIST softwarelist name CDATA #REQUIRED>\n"
r14584r14585
187188"\t\t\t<!ATTLIST softwarelist filter CDATA #IMPLIED>\n"
188189"\t\t<!ELEMENT ramoption (#PCDATA)>\n"
189190"\t\t\t<!ATTLIST ramoption default CDATA #IMPLIED>\n"
190"\t<!ELEMENT device (description, rom*, chip*, display*, sound?, input?, dipswitch*, configuration*, adjuster*, device*, slot*)>\n"
191"\t\t<!ATTLIST device name CDATA #IMPLIED>\n"
192"\t\t<!ELEMENT description (#PCDATA)>\n"
193"\t\t<!ELEMENT rom EMPTY>\n"
194"\t\t\t<!ATTLIST rom name CDATA #REQUIRED>\n"
195"\t\t\t<!ATTLIST rom bios CDATA #IMPLIED>\n"
196"\t\t\t<!ATTLIST rom size CDATA #REQUIRED>\n"
197"\t\t\t<!ATTLIST rom crc CDATA #IMPLIED>\n"
198"\t\t\t<!ATTLIST rom sha1 CDATA #IMPLIED>\n"
199"\t\t\t<!ATTLIST rom merge CDATA #IMPLIED>\n"
200"\t\t\t<!ATTLIST rom region CDATA #IMPLIED>\n"
201"\t\t\t<!ATTLIST rom offset CDATA #IMPLIED>\n"
202"\t\t\t<!ATTLIST rom status (baddump|nodump|good) \"good\">\n"
203"\t\t\t<!ATTLIST rom optional (yes|no) \"no\">\n"
204"\t\t<!ELEMENT chip EMPTY>\n"
205"\t\t\t<!ATTLIST chip name CDATA #REQUIRED>\n"
206"\t\t\t<!ATTLIST chip tag CDATA #IMPLIED>\n"
207"\t\t\t<!ATTLIST chip type (cpu|audio) #REQUIRED>\n"
208"\t\t\t<!ATTLIST chip clock CDATA #IMPLIED>\n"
209"\t\t<!ELEMENT display EMPTY>\n"
210"\t\t\t<!ATTLIST display type (raster|vector|lcd|unknown) #REQUIRED>\n"
211"\t\t\t<!ATTLIST display rotate (0|90|180|270) #REQUIRED>\n"
212"\t\t\t<!ATTLIST display flipx (yes|no) \"no\">\n"
213"\t\t\t<!ATTLIST display width CDATA #IMPLIED>\n"
214"\t\t\t<!ATTLIST display height CDATA #IMPLIED>\n"
215"\t\t\t<!ATTLIST display refresh CDATA #REQUIRED>\n"
216"\t\t\t<!ATTLIST display pixclock CDATA #IMPLIED>\n"
217"\t\t\t<!ATTLIST display htotal CDATA #IMPLIED>\n"
218"\t\t\t<!ATTLIST display hbend CDATA #IMPLIED>\n"
219"\t\t\t<!ATTLIST display hbstart CDATA #IMPLIED>\n"
220"\t\t\t<!ATTLIST display vtotal CDATA #IMPLIED>\n"
221"\t\t\t<!ATTLIST display vbend CDATA #IMPLIED>\n"
222"\t\t\t<!ATTLIST display vbstart CDATA #IMPLIED>\n"
223"\t\t<!ELEMENT sound EMPTY>\n"
224"\t\t\t<!ATTLIST sound channels CDATA #REQUIRED>\n"
225"\t\t<!ELEMENT input (control*)>\n"
226"\t\t\t<!ATTLIST input service (yes|no) \"no\">\n"
227"\t\t\t<!ATTLIST input tilt (yes|no) \"no\">\n"
228"\t\t\t<!ATTLIST input players CDATA #REQUIRED>\n"
229"\t\t\t<!ATTLIST input buttons CDATA #IMPLIED>\n"
230"\t\t\t<!ATTLIST input coins CDATA #IMPLIED>\n"
231"\t\t\t<!ELEMENT control EMPTY>\n"
232"\t\t\t\t<!ATTLIST control type CDATA #REQUIRED>\n"
233"\t\t\t\t<!ATTLIST control minimum CDATA #IMPLIED>\n"
234"\t\t\t\t<!ATTLIST control maximum CDATA #IMPLIED>\n"
235"\t\t\t\t<!ATTLIST control sensitivity CDATA #IMPLIED>\n"
236"\t\t\t\t<!ATTLIST control keydelta CDATA #IMPLIED>\n"
237"\t\t\t\t<!ATTLIST control reverse (yes|no) \"no\">\n"
238"\t\t\t\t<!ATTLIST control ways CDATA #IMPLIED>\n"
239"\t\t\t\t<!ATTLIST control ways2 CDATA #IMPLIED>\n"
240"\t\t\t\t<!ATTLIST control ways3 CDATA #IMPLIED>\n"
241"\t\t<!ELEMENT dipswitch (dipvalue*)>\n"
242"\t\t\t<!ATTLIST dipswitch name CDATA #REQUIRED>\n"
243"\t\t\t<!ATTLIST dipswitch tag CDATA #REQUIRED>\n"
244"\t\t\t<!ATTLIST dipswitch mask CDATA #REQUIRED>\n"
245"\t\t\t<!ELEMENT dipvalue EMPTY>\n"
246"\t\t\t\t<!ATTLIST dipvalue name CDATA #REQUIRED>\n"
247"\t\t\t\t<!ATTLIST dipvalue value CDATA #REQUIRED>\n"
248"\t\t\t\t<!ATTLIST dipvalue default (yes|no) \"no\">\n"
249"\t\t<!ELEMENT configuration (confsetting*)>\n"
250"\t\t\t<!ATTLIST configuration name CDATA #REQUIRED>\n"
251"\t\t\t<!ATTLIST configuration tag CDATA #REQUIRED>\n"
252"\t\t\t<!ATTLIST configuration mask CDATA #REQUIRED>\n"
253"\t\t\t<!ELEMENT confsetting EMPTY>\n"
254"\t\t\t\t<!ATTLIST confsetting name CDATA #REQUIRED>\n"
255"\t\t\t\t<!ATTLIST confsetting value CDATA #REQUIRED>\n"
256"\t\t\t\t<!ATTLIST confsetting default (yes|no) \"no\">\n"
257"\t\t<!ELEMENT adjuster EMPTY>\n"
258"\t\t\t<!ATTLIST adjuster name CDATA #REQUIRED>\n"
259"\t\t\t<!ATTLIST adjuster default CDATA #REQUIRED>\n"
260"\t\t<!ELEMENT device (instance*, extension*)>\n"
261"\t\t\t<!ATTLIST device type CDATA #REQUIRED>\n"
262"\t\t\t<!ATTLIST device tag CDATA #IMPLIED>\n"
263"\t\t\t<!ATTLIST device mandatory CDATA #IMPLIED>\n"
264"\t\t\t<!ATTLIST device interface CDATA #IMPLIED>\n"
265"\t\t\t<!ELEMENT instance EMPTY>\n"
266"\t\t\t\t<!ATTLIST instance name CDATA #REQUIRED>\n"
267"\t\t\t\t<!ATTLIST instance briefname CDATA #REQUIRED>\n"
268"\t\t\t<!ELEMENT extension EMPTY>\n"
269"\t\t\t\t<!ATTLIST extension name CDATA #REQUIRED>\n"
270"\t\t<!ELEMENT slot (slotoption*)>\n"
271"\t\t\t<!ATTLIST slot name CDATA #REQUIRED>\n"
272"\t\t\t<!ELEMENT slotoption EMPTY>\n"
273"\t\t\t\t<!ATTLIST slotoption name CDATA #REQUIRED>\n"
274"\t\t\t\t<!ATTLIST slotoption description CDATA #REQUIRED>\n"
275"\t\t\t\t<!ATTLIST slotoption default (yes|no) \"no\">\n"
276191"]>";
277192
278193
r14584r14585
498413   slot_map desc;
499414   const game_driver &driver = m_drivlist.driver();
500415
501   bool display_all = (driver_list::total() == m_drivlist.count() + 1);
502416   // first, run through slot devices
503417   while (m_drivlist.next())
504418   {
505419      device_iterator deviter(m_drivlist.config().root_device());
506420      deviter.first();
507      for (device_t *device = deviter.next(); device != NULL; device = deviter.next())
421      for (device_t *device = deviter.next(); device != NULL; device = deviter.next()) {
508422         if (device->rom_region() != NULL && device->shortname()!= NULL)
509423         {
510424            if (desc.add(device->name(), &driver, FALSE) != TMERR_DUPLICATE)
511425               output_one_device(*device, device->tag(), emulator_info::get_xml_top());
512426         }
513
514      if (display_all)
427      }
428      slot_interface_iterator iter(m_drivlist.config().root_device());
429      for (const device_slot_interface *slot = iter.first(); slot != NULL; slot = iter.next())
515430      {
516         slot_interface_iterator iter(m_drivlist.config().root_device());
517         for (const device_slot_interface *slot = iter.first(); slot != NULL; slot = iter.next())
431         const slot_interface* intf = slot->get_slot_interfaces();
432         for (int i = 0; intf && intf[i].name != NULL; i++)
518433         {
519            const slot_interface* intf = slot->get_slot_interfaces();
520            for (int i = 0; intf && intf[i].name != NULL; i++)
521            {
522               astring temptag("_");
523               temptag.cat(intf[i].name);
524               device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), temptag.cstr(), intf[i].devtype, 0);
434            astring temptag("_");
435            temptag.cat(intf[i].name);
436            device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), temptag.cstr(), intf[i].devtype, 0);
525437
526               // notify this device and all its subdevices that they are now configured
527               device_iterator subiter(*dev);
528               for (device_t *device = subiter.first(); device != NULL; device = subiter.next())
529                  if (!device->configured())
530                     device->config_complete();
438            // notify this device and all its subdevices that they are now configured
439            device_iterator subiter(*dev);
440            for (device_t *device = subiter.first(); device != NULL; device = subiter.next())
441               if (!device->configured())
442                  device->config_complete();
531443
532               if (desc.add(dev->name(), &driver, FALSE) != TMERR_DUPLICATE)
533                  output_one_device(*dev, temptag.cstr(), "device");
444            if (desc.add(dev->name(), &driver, FALSE) != TMERR_DUPLICATE)
445               output_one_device(*dev, temptag.cstr(), emulator_info::get_xml_top());
534446
535               const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), temptag.cstr());
536               global_free(dev);
537            }
447            const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), temptag.cstr());
448            global_free(dev);
538449         }
539450      }
540451   }
r14584r14585
13721283         for (int i = 0; intf && intf[i].name != NULL; i++)
13731284         {
13741285            device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), "dummy", intf[i].devtype, 0);
1286            if (!dev->configured())
1287               dev->config_complete();
1288
13751289            fprintf(m_output, "\t\t\t<slotoption");
13761290            fprintf(m_output, " name=\"%s\"", xml_normalize_string(intf[i].name));
13771291            fprintf(m_output, " description=\"%s\"", xml_normalize_string(dev->name()));
1292            fprintf(m_output, " shortname=\"%s\"", xml_normalize_string(dev->shortname()));
13781293            if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()))
13791294            {
13801295               if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()) == intf[i].name)
src/emu/audit.c
r14584r14585
516516      // iterate up the parent chain
517517      for (int drvindex = m_enumerator.find(m_enumerator.driver().parent); drvindex != -1; drvindex = m_enumerator.find(m_enumerator.driver(drvindex).parent))
518518      {
519         device_iterator deviter(m_enumerator.config().root_device());
519         device_iterator deviter(m_enumerator.config(drvindex).root_device());
520520         for (device_t *scandevice = deviter.first(); scandevice != NULL; scandevice = deviter.next())
521521            for (const rom_entry *region = rom_first_region(*scandevice); region; region = rom_next_region(region))
522522               for (const rom_entry *rom = rom_first_file(region); rom; rom = rom_next_file(rom))
src/emu/machine/idectrl.h
r14584r14585
9696    // device-level overrides
9797    virtual void device_start();
9898   virtual void device_reset();
99   virtual void device_config_complete() { m_shortname = "hdd"; }
99100
100101   void ide_build_features();
101102   virtual bool is_ready() { return (m_disk != NULL); }
r14584r14585
117118    // device-level overrides
118119    virtual void device_start();
119120   virtual void device_reset();
121   virtual void device_config_complete() { m_shortname = "hdd_image"; }
120122   // optional information overrides
121123   virtual machine_config_constructor device_mconfig_additions() const;
122124};
src/emu/machine/ctronics.h
r14584r14585
132132    // device-level overrides
133133    virtual void device_start();
134134    virtual void device_reset();
135   virtual void device_config_complete() { m_shortname = "centronics_printer"; }
135136private:
136137   printer_image_device *m_printer;
137138   centronics_device *m_owner;
src/emu/machine/nscsi_hd.h
r14584r14585
1818protected:
1919   virtual void device_start();
2020   virtual void device_reset();
21   virtual void device_config_complete() { m_shortname = "scsi_harddisk"; }
2122
2223   virtual void scsi_command();
2324   virtual UINT8 scsi_get_data(int id, int pos);
src/emu/machine/nscsi_cd.h
r14584r14585
1818protected:
1919   virtual void device_start();
2020   virtual void device_reset();
21   virtual void device_config_complete() { m_shortname = "scsi_cdrom"; }
2122
2223   virtual void scsi_command();
2324   virtual UINT8 scsi_get_data(int id, int pos);
src/mess/tiny_dev.lst
r14584r14585
1/******************************************************************************
2
3    tiny_dev.lst
4
5    List of all enabled devices in the system. This file is parsed by
6    makedev.exe, sorted, and output as C code describing the devices.
7
8****************************************************************************
9
10    Copyright Aaron Giles
11    All rights reserved.
12
13    Redistribution and use in source and binary forms, with or without
14    modification, are permitted provided that the following conditions are
15    met:
16
17        * Redistributions of source code must retain the above copyright
18          notice, this list of conditions and the following disclaimer.
19        * Redistributions in binary form must reproduce the above copyright
20          notice, this list of conditions and the following disclaimer in
21          the documentation and/or other materials provided with the
22          distribution.
23        * Neither the name 'MAME' nor the names of its contributors may be
24          used to endorse or promote products derived from this software
25          without specific prior written permission.
26
27    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
28    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
31    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
36    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37    POSSIBILITY OF SUCH DAMAGE.
38
39******************************************************************************/
src/mess/mess_dev.lst
r14584r14585
1/******************************************************************************
2
3    mess_dev.lst
4
5    List of all enabled devices in the system. This file is parsed by
6    makedev.exe, sorted, and output as C code describing the devices.
7
8****************************************************************************
9
10    Copyright Aaron Giles
11    All rights reserved.
12
13    Redistribution and use in source and binary forms, with or without
14    modification, are permitted provided that the following conditions are
15    met:
16
17        * Redistributions of source code must retain the above copyright
18          notice, this list of conditions and the following disclaimer.
19        * Redistributions in binary form must reproduce the above copyright
20          notice, this list of conditions and the following disclaimer in
21          the documentation and/or other materials provided with the
22          distribution.
23        * Neither the name 'MAME' nor the names of its contributors may be
24          used to endorse or promote products derived from this software
25          without specific prior written permission.
26
27    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
28    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
31    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
36    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37    POSSIBILITY OF SUCH DAMAGE.
38
39******************************************************************************/
40
41ABC77
42ABC99
43AT_KEYBOARD_CONTROLLER
44BETA_DISK
45C1540
46C1541
47C1541C
48C1541II
49SX1541
50OC118
51C1551
52C1570
53C1571
54C1571CR
55C1563
56C1581
57C2040
58C3040
59C4040
60C8050
61C8250
62C8250LP
63C8280
64D9060
65D9090
66SFD1001
67C2031
68MINI_CHIEF
69SOFTBOX
70SERIAL_BOX
71COCO_FDC
72COCO_FDC_V11
73CP400_FDC
74DRAGON_FDC
75SDTANDY_FDC
76COMX_CLM
77COMX_EB
78COMX_FD
79COMX_EPR
80COMX_THM
81COMX_PRN
82COMXPL80
83S100_DJ2DB
84S100_DJDMA
85S100_MM65K16S
86EGRET
87CUDA
88MACKBD
89ECB_GRIP21
90HD61830
91INTERPOD
92ISA8_CGA
93ISA8_CGA_MC1502
94ISA8_HDC
95ISA8_MDA
96ISA8_EGA
97ISA8_SVGA_ET4K
98ISA8_SVGA_S3
99ISA8_SVGA_CIRRUS
100ISA8_HERCULES
101ISA8_FINALCHS
102ISA8_IBM_MFC
103AHA1542
104IBM_VGA
105IQ151_DISC2
106IQ151_MS151A
107IQ151_MINIGRAF
108IQ151_VIDEO32
109IQ151_VIDEO64
110KB_KEYTRONIC
111LUXOR_55_10828
112LUXOR_55_21046
113NUBUS_48GC
114NUBUS_824GC
115NUBUS_CB264
116NUBUS_VIKBW
117NUBUS_SPECPDQ
118NUBUS_M2HIRES
119NUBUS_SPEC8S3
120NUBUS_ASNTMC3NB
121NUBUS_RADIUSTPD
122NUBUS_WSPORTRAIT
123NUBUS_APPLEENET
124PC1512_KEYBOARD
125S1410
126SED1330
127TF20
128UPD7220
129ABC_FD2
130ABC_UNI800
131ABC_SIO
132ABC_SLUTPROV
133CPC_SSA1  // uses internal SP0256 ROM
134CPC_DKSPEECH  // uses internal SP0256 ROM
135CPC_MFACE2
136C64_XL80
137KC_D004
138WDXT_GEN
139APRICOT_KEYBOARD
140V1050_KEYBOARD
141VICTOR9K_KEYBOARD
142TANDY2K_KEYBOARD
143WANGPC_KEYBOARD
144TI99_FDC
145TI99_BWG
146TI99_HFDC
147TI99_P_CODE
148TI99_MYARCMEM
149TI99_EVPC
150TI99_RS232
151TI99_SPEECH
152TI99_SPEECH8
src/mess/machine/c64_super_explode.h
r14584r14585
3737   virtual void device_start();
3838   virtual void device_reset();
3939   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
40   virtual void device_config_complete() { m_shortname = "c64_super_explode"; }
4041 
4142   // device_c64_expansion_card_interface overrides
4243   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/s100_wunderbus.h
r14584r14585
5050   // device-level overrides
5151   virtual void device_start();
5252   virtual void device_reset();
53   virtual void device_config_complete() { m_shortname = "s100_wunderbus"; }
5354
5455   // device_s100_card_interface overrides
5556   virtual void s100_vi0_w(int state);
src/mess/machine/isa_fdc.h
r14584r14585
3131        // device-level overrides
3232        virtual void device_start();
3333        virtual void device_reset();
34
34      virtual void device_config_complete() { m_shortname = "isa_fdc"; }
3535private:
3636        // internal state
3737public:
src/mess/machine/c64_silverrock.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_silverrock"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/coco_pak.c
r14584r14585
139139{
140140}
141141
142//-------------------------------------------------
143//  device_config_complete - perform any
144//  operations now that the configuration is
145//  complete
146//-------------------------------------------------
147
148void coco_pak_banked_device::device_config_complete()
149{
150   m_shortname = "cocopak_banked";
151}
152
142153/*-------------------------------------------------
143154    device_reset - device-specific startup
144155-------------------------------------------------*/
src/mess/machine/coco_pak.h
r14584r14585
5353protected:
5454        // device-level overrides
5555      virtual void device_reset();
56      virtual void device_config_complete();
5657      virtual DECLARE_WRITE8_MEMBER(write);
5758private:
5859      void banked_pak_set_bank(UINT32 bank);
src/mess/machine/wangpc_lores.h
r14584r14585
4444   // device-level overrides
4545   virtual void device_start();
4646   virtual void device_reset();
47   virtual void device_config_complete() { m_shortname = "wangpc_lores"; }
4748
4849   // device_wangpcbus_card_interface overrides
4950   virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask);
src/mess/machine/ne1000.h
r14584r14585
2222protected:
2323   virtual void device_start();
2424   virtual void device_reset();
25   virtual void device_config_complete() { m_shortname = "ne1000"; }
2526private:
2627   required_device<dp8390d_device> m_dp8390;
2728   UINT8 m_board_ram[8*1024];
src/mess/machine/c64_ocean.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_ocean"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_warp_speed.h
r14584r14585
4141   // device-level overrides
4242   virtual void device_start();
4343   virtual void device_reset();
44   virtual void device_config_complete() { m_shortname = "c64_warp_speed"; }
4445 
4546   // device_c64_expansion_card_interface overrides
4647   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_system3.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_system3"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_fun_play.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_fun_play"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_exos.h
r14584r14585
3535protected:
3636   // device-level overrides
3737   virtual void device_start();
38   virtual void device_config_complete() { m_shortname = "c64_exos"; }
3839 
3940   // device_c64_expansion_card_interface overrides
4041   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/3c503.h
r14584r14585
2727protected:
2828   virtual void device_start();
2929   virtual void device_reset();
30   virtual void device_config_complete() { m_shortname = "el2_3c503"; }
3031private:
3132   required_device<dp8390d_device> m_dp8390;
3233   UINT8 m_board_ram[8*1024];
src/mess/machine/c64_pagefox.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_pagefox"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/coco_orch90.h
r14584r14585
2525protected:
2626        // device-level overrides
2727        virtual void device_start();
28      virtual void device_config_complete() { m_shortname = "coco_orch90"; }
2829      virtual DECLARE_WRITE8_MEMBER(write);
2930private:
3031        // internal state
src/mess/machine/c64_mach5.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_mach5"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/lux4105.h
r14584r14585
4545    // device-level overrides
4646    virtual void device_start();
4747   virtual void device_reset();
48   virtual void device_config_complete() { m_shortname = "luxor_4105"; }
4849
4950   // device_abc1600bus_interface overrides
5051   virtual void abc1600bus_cs(UINT8 data);
src/mess/machine/ne2000.h
r14584r14585
2020protected:
2121   virtual void device_start();
2222   virtual void device_reset();
23   virtual void device_config_complete() { m_shortname = "ne2000"; }
2324private:
2425   required_device<dp8390d_device> m_dp8390;
2526   UINT8 m_board_ram[16*1024];
src/mess/machine/coco_232.h
r14584r14585
2626protected:
2727        // device-level overrides
2828        virtual void device_start();
29      virtual void device_config_complete() { m_shortname = "coco_232"; }
2930      virtual DECLARE_READ8_MEMBER(read);
3031      virtual DECLARE_WRITE8_MEMBER(write);
3132private:
src/mess/machine/c64_simons_basic.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_simons_basic"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/isa_com.h
r14584r14585
3232        // device-level overrides
3333        virtual void device_start();
3434        virtual void device_reset();
35
35      virtual void device_config_complete() { m_shortname = "isa_com"; }
3636private:
3737        // internal state
3838   ins8250_uart_device *m_uart[4];
r14584r14585
5454
5555      // optional information overrides
5656      virtual machine_config_constructor device_mconfig_additions() const;
57      virtual void device_config_complete() { m_shortname = "isa_com_at"; }
5758};
5859
5960
src/mess/machine/c64_westermann.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_westermann"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/comx_ram.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "comx_ram"; }
3940
4041   // device_comx_expansion_card_interface overrides
4142   virtual UINT8 comx_mrd_r(offs_t offset, int *extrom);
src/mess/machine/isa_sblaster.h
r14584r14585
8181protected:
8282        // device-level overrides
8383        virtual void device_start();
84
84      virtual void device_config_complete() { m_shortname = "isa_sblaster1_0"; }
8585private:
8686        // internal state
8787};
r14584r14585
9797protected:
9898        // device-level overrides
9999        virtual void device_start();
100
100      virtual void device_config_complete() { m_shortname = "isa_sblaster1_5"; }
101101private:
102102        // internal state
103103};
src/mess/machine/pc_lpt.h
r14584r14585
7272        // device-level overrides
7373        virtual void device_start();
7474        virtual void device_reset();
75
75      virtual void device_config_complete() { m_shortname = "isa_lpt"; }
7676private:
7777        // internal state
7878      bool m_is_primary;
src/mess/machine/c64_vw64.h
r14584r14585
3737   virtual void device_start();
3838   virtual void device_reset();
3939   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
40   virtual void device_config_complete() { m_shortname = "c64_vizawrite"; }
4041 
4142   // device_c64_expansion_card_interface overrides
4243   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/vic1010.h
r14584r14585
4949protected:
5050    // device-level overrides
5151    virtual void device_start();
52   virtual void device_config_complete() { m_shortname = "vic1010"; }
5253
5354   // optional information overrides
5455   virtual machine_config_constructor device_mconfig_additions() const;
src/mess/machine/coco_multi.h
r14584r14585
3939   // device-level overrides
4040   virtual void device_start();
4141   virtual void device_reset();
42   virtual void device_config_complete() { m_shortname = "coco_multipak"; }
4243   virtual DECLARE_READ8_MEMBER(read);
4344   virtual DECLARE_WRITE8_MEMBER(write);
4445
src/mess/machine/c64_ieee488.h
r14584r14585
5353   // device-level overrides
5454   virtual void device_start();
5555   virtual void device_reset();
56   virtual void device_config_complete() { m_shortname = "c64_ieee488"; }
5657 
5758   // device_c64_expansion_card_interface overrides
5859   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_multiscreen.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_multiscreen"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/comx_joy.h
r14584r14585
3939   // device-level overrides
4040   virtual void device_start();
4141   virtual void device_reset();
42   virtual void device_config_complete() { m_shortname = "comx_joy"; }
4243
4344   // device_comx_expansion_card_interface overrides
4445   virtual UINT8 comx_io_r(offs_t offset);
src/mess/machine/vic1110.h
r14584r14585
3838protected:
3939    // device-level overrides
4040    virtual void device_start();
41   virtual void device_config_complete() { m_shortname = "vic1110"; }
4142
4243   // device_vic20_expansion_card_interface overrides
4344   virtual UINT8 vic20_blk1_r(address_space &space, offs_t offset);
src/mess/machine/c64_stardos.h
r14584r14585
4141protected:
4242   // device-level overrides
4343   virtual void device_start();
44   virtual void device_config_complete() { m_shortname = "c64_stardos"; }
4445 
4546   // device_c64_expansion_card_interface overrides
4647   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_ross.h
r14584r14585
3737   // device-level overrides
3838   virtual void device_start();
3939   virtual void device_reset();
40   virtual void device_config_complete() { m_shortname = "c64_ross"; }
4041 
4142   // device_c64_expansion_card_interface overrides
4243   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_comal80.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_comal80"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/cntr_covox.h
r14584r14585
2626protected:
2727    // device-level overrides
2828    virtual void device_start();
29   virtual void device_config_complete() { m_shortname = "covox"; }
2930private:
3031   device_t *m_dac;
3132};
r14584r14585
4950protected:
5051    // device-level overrides
5152    virtual void device_start();
53   virtual void device_config_complete() { m_shortname = "covox_stereo"; }
5254private:
5355   device_t *m_dac_left;
5456   device_t *m_dac_right;
src/mess/machine/isa_ide.h
r14584r14585
2929        // device-level overrides
3030        virtual void device_start();
3131        virtual void device_reset();
32
32      virtual void device_config_complete() { m_shortname = "isa_ide"; }
3333private:
3434        // internal state
3535      bool m_is_primary;
src/mess/machine/vic1111.h
r14584r14585
3535protected:
3636    // device-level overrides
3737    virtual void device_start();
38   virtual void device_config_complete() { m_shortname = "vic1111"; }
3839
3940   // device_vic20_expansion_card_interface overrides
4041   virtual UINT8 vic20_blk1_r(address_space &space, offs_t offset);
src/mess/machine/c64_mikro_assembler.h
r14584r14585
3535protected:
3636   // device-level overrides
3737   virtual void device_start();
38   virtual void device_config_complete() { m_shortname = "c64_mikro_assembler"; }
3839 
3940   // device_c64_expansion_card_interface overrides
4041   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_rex.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_rex"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/vic10std.h
r14584r14585
3535protected:
3636    // device-level overrides
3737    virtual void device_start();
38   virtual void device_config_complete() { m_shortname = "vic10_standard"; }
3839 
3940   // device_vic10_expansion_card_interface overrides
4041   virtual UINT8 vic10_exram_r(address_space &space, offs_t offset);
src/mess/machine/vic1210.h
r14584r14585
3636protected:
3737    // device-level overrides
3838    virtual void device_start();
39   virtual void device_config_complete() { m_shortname = "vic1210"; }
3940
4041   // device_vic20_expansion_card_interface overrides
4142   virtual UINT8 vic20_ram1_r(address_space &space, offs_t offset);
src/mess/machine/vic1112.h
r14584r14585
5151    // device-level overrides
5252    virtual void device_start();
5353   virtual void device_reset();
54   virtual void device_config_complete() { m_shortname = "vic1112"; }
5455
5556   // device_vic20_expansion_card_interface overrides
5657   virtual UINT8 vic20_io2_r(address_space &space, offs_t offset);
src/mess/machine/c64_dinamic.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_dinamic"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/ser_mouse.h
r14584r14585
5151   virtual void set_frame() { set_data_frame(7, 1, SERIAL_PARITY_NONE); }
5252   virtual void mouse_trans(int dx, int dy, int nb, int mbc);
5353   virtual void device_reset() {m_old_rts = 0; serial_mouse_device::device_reset();}
54   virtual void device_config_complete() { m_shortname = "microsoft_mouse"; }
5455private:
5556   void check_state();
5657   UINT8 m_old_rts;
r14584r14585
6667protected:
6768   virtual void set_frame() { set_data_frame(8, 1, SERIAL_PARITY_NONE); }
6869   virtual void mouse_trans(int dx, int dy, int nb, int mbc);
70   virtual void device_config_complete() { m_shortname = "mouse_systems_mouse"; }
6971private:
7072   void check_state() { set_mouse_enable((m_dtr && m_rts)?true:false); }
7173};
src/mess/machine/terminal.h
r14584r14585
6161protected:
6262   virtual void device_start() { m_owner = dynamic_cast<serial_port_device *>(owner()); }
6363   virtual void device_reset() { m_owner->out_rx(1); m_rbit = 1; }
64   virtual void device_config_complete() { m_shortname = "serial_terminal"; }
6465private:
6566   required_device<device_t> m_terminal;
6667   serial_port_device *m_owner;
src/mess/machine/c64_easyflash.h
r14584r14585
4343   // device-level overrides
4444   virtual void device_start();
4545   virtual void device_reset();
46   virtual void device_config_complete() { m_shortname = "c64_easyflash"; }
4647 
4748   // device_c64_expansion_card_interface overrides
4849   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/isa_mpu401.h
r14584r14585
2727        // device-level overrides
2828        virtual void device_start();
2929        virtual void device_reset();
30
30      virtual void device_config_complete() { m_shortname = "isa_mpu401"; }
3131private:
3232        // internal state
3333};
src/mess/machine/null_modem.h
r14584r14585
1717protected:
1818   virtual void device_start() { m_owner = dynamic_cast<serial_port_device *>(owner()); }
1919   virtual void device_reset() { m_owner->out_rx(1); m_rbit = 1; }
20   virtual void device_config_complete() { m_shortname = "null_modem"; }
2021private:
2122   serial_port_device *m_owner;
2223   required_device<bitbanger_device> m_bitbanger;
src/mess/machine/c64_zaxxon.h
r14584r14585
3535protected:
3636   // device-level overrides
3737   virtual void device_start();
38   virtual void device_config_complete() { m_shortname = "c64_zaxxon"; }
3839 
3940   // device_c64_expansion_card_interface overrides
4041   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_georam.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_georam"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/isa_gus.h
r14584r14585
268268        virtual void device_start();
269269        virtual void device_reset();
270270        virtual void device_stop();
271
271      virtual void device_config_complete() { m_shortname = "isa_gus"; }
272272private:
273273        gf1_device* m_gf1;
274274        acia6850_device* m_midi;
src/mess/machine/vic20std.h
r14584r14585
3535protected:
3636    // device-level overrides
3737    virtual void device_start();
38   virtual void device_config_complete() { m_shortname = "vic20_standard"; }
3839
3940   // device_vic20_expansion_card_interface overrides
4041   virtual UINT8 vic20_blk1_r(address_space &space, offs_t offset);
src/mess/machine/c64_easy_calc_result.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_easy_calc_result"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_magic_desk.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_magic_desk"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_std.h
r14584r14585
3636protected:
3737   // device-level overrides
3838   virtual void device_start();
39   virtual void device_config_complete() { m_shortname = "c64_standard"; }
3940
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_dela_ep64.h
r14584r14585
3939 
4040protected:
4141   // device-level overrides
42   virtual void device_config_complete() { m_shortname = "ep64"; }
42   virtual void device_config_complete() { m_shortname = "c64_dela_ep64"; }
4343   virtual void device_start();
4444   virtual void device_reset();
4545 
src/mess/machine/c64_magic_formel.h
r14584r14585
4848   // device-level overrides
4949   virtual void device_start();
5050   virtual void device_reset();
51   virtual void device_config_complete() { m_shortname = "c64_magic_formel"; }
5152 
5253   // device_c64_expansion_card_interface overrides
5354   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/isa_adlib.h
r14584r14585
2626        // device-level overrides
2727        virtual void device_start();
2828        virtual void device_reset();
29
29   virtual void device_config_complete() { m_shortname = "isa_adlib"; }
3030private:
3131        // internal state
3232};
src/mess/machine/c64_epyx_fast_load.h
r14584r14585
3737   virtual void device_start();
3838   virtual void device_reset();
3939   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
40   virtual void device_config_complete() { m_shortname = "c64_epyx_fast_load"; }
4041 
4142   // device_c64_expansion_card_interface overrides
4243   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/c64_super_games.h
r14584r14585
3636   // device-level overrides
3737   virtual void device_start();
3838   virtual void device_reset();
39   virtual void device_config_complete() { m_shortname = "c64_super_games"; }
3940 
4041   // device_c64_expansion_card_interface overrides
4142   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/mess/machine/isa_gblaster.h
r14584r14585
2626        // device-level overrides
2727        virtual void device_start();
2828        virtual void device_reset();
29
29      virtual void device_config_complete() { m_shortname = "isa_gblaster"; }
3030private:
3131        // internal state
3232};
src/mess/machine/c64_structured_basic.h
r14584r14585
3737   // device-level overrides
3838   virtual void device_start();
3939   virtual void device_reset();
40   virtual void device_config_complete() { m_shortname = "c64_structured_basic"; }
4041 
4142   // device_c64_expansion_card_interface overrides
4243   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
src/ldplayer/ldplayer_dev.lst
r14584r14585
1/******************************************************************************
2
3    ldplayer_dev.lst
4
5    List of all enabled devices in the system. This file is parsed by
6    makedev.exe, sorted, and output as C code describing the devices.
7
8****************************************************************************
9
10    Copyright Aaron Giles
11    All rights reserved.
12
13    Redistribution and use in source and binary forms, with or without
14    modification, are permitted provided that the following conditions are
15    met:
16
17        * Redistributions of source code must retain the above copyright
18          notice, this list of conditions and the following disclaimer.
19        * Redistributions in binary form must reproduce the above copyright
20          notice, this list of conditions and the following disclaimer in
21          the documentation and/or other materials provided with the
22          distribution.
23        * Neither the name 'MAME' nor the names of its contributors may be
24          used to endorse or promote products derived from this software
25          without specific prior written permission.
26
27    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
28    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
31    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
36    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37    POSSIBILITY OF SUCH DAMAGE.
38
39******************************************************************************/
40
41PIONEER_LDV1000
42PIONEER_PR8210
No newline at end of file
makefile
r14584r14585
591591EMUINFOOBJ = $(OBJ)/$(TARGET)/$(TARGET).o
592592DRIVLISTSRC = $(OBJ)/$(TARGET)/$(SUBTARGET)/drivlist.c
593593DRIVLISTOBJ = $(OBJ)/$(TARGET)/$(SUBTARGET)/drivlist.o
594DEVLISTSRC = $(OBJ)/$(TARGET)/$(SUBTARGET)/devlist.c
595DEVLISTOBJ = $(OBJ)/$(TARGET)/$(SUBTARGET)/devlist.o
596594
597595
598596
r14584r14585
733731
734732ifndef EXECUTABLE_DEFINED
735733
736$(EMULATOR): $(VERSIONOBJ) $(EMUINFOOBJ) $(DRIVLISTOBJ) $(DEVLISTOBJ) $(DRVLIBS) $(LIBOSD) $(LIBCPU) $(LIBEMU) $(LIBDASM) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(SOFTFLOAT) $(JPEG_LIB) $(FLAC_LIB) $(7Z_LIB) $(FORMATS_LIB) $(ZLIB) $(LIBOCORE) $(RESFILE)
734$(EMULATOR): $(VERSIONOBJ) $(EMUINFOOBJ) $(DRIVLISTOBJ) $(DRVLIBS) $(LIBOSD) $(LIBCPU) $(LIBEMU) $(LIBDASM) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(SOFTFLOAT) $(JPEG_LIB) $(FLAC_LIB) $(7Z_LIB) $(FORMATS_LIB) $(ZLIB) $(LIBOCORE) $(RESFILE)
737735   $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ)
738736   @echo Linking $@...
739737   $(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $^ $(LIBS) -o $@
r14584r14585
776774   @echo Compiling $<...
777775   $(CC) $(CDEFS) $(CFLAGS) -c $< -o $@
778776
779$(DEVLISTOBJ): $(DEVLISTSRC)
780   @echo Compiling $<...
781   $(CC) $(CDEFS) $(CFLAGS) -c $< -o $@
782
783777$(DRIVLISTSRC): $(SRC)/$(TARGET)/$(SUBTARGET).lst $(MAKELIST_TARGET)
784778   @echo Building driver list $<...
785779   @$(MAKELIST) $< >$@
786780
787$(DEVLISTSRC): $(SRC)/$(TARGET)/$(SUBTARGET)_dev.lst $(MAKEDEV_TARGET)
788   @echo Building device list $<...
789   @$(MAKEDEV) $< >$@
790
791781$(OBJ)/%.a:
792782   @echo Archiving $@...
793783   $(RM) $@

Previous 15994 Revisions Next


© 1998-2018 The MESS Team