Previous 15994 Revisions Next

r2279 Saturday 5th April, 2008 at 19:16:58 UTC by Nathan Woods
Removed IODevice parameter from getdispositions
[src/mess]device.c device.h
[src/mess/drivers]apexc.c
[src/mess/includes]pdp1.h tx0.h
[src/mess/machine]pdp1.c tx0.c

src/mess/includes/pdp1.h
r2278r2279
162162
163163INTERRUPT_GEN( pdp1_interrupt );
164164
165void pdp1_get_open_mode(const struct IODevice *dev, int id,
166   unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
165void pdp1_get_open_mode(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
167166
168167typedef struct lightpen_t
169168{
src/mess/includes/tx0.h
r2278r2279
1717MACHINE_START( tx0 );
1818MACHINE_RESET( tx0 );
1919
20void tx0_tape_get_open_mode(const struct IODevice *dev, int id,
21   unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
20void tx0_tape_get_open_mode(int id,   unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
2221DEVICE_START( tx0_tape );
2322DEVICE_IMAGE_LOAD( tx0_tape );
2423DEVICE_IMAGE_UNLOAD( tx0_tape );
src/mess/device.c
r2278r2279
458458      getdispositions = (device_getdispositions_func) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_GET_DISPOSITIONS);
459459      if (getdispositions != NULL)
460460      {
461         getdispositions(&mess_device->io_device, i, &readable, &writeable, &creatable);
461         getdispositions(i, &readable, &writeable, &creatable);
462462      }
463463      else
464464      {
src/mess/device.h
r2278r2279
9797typedef void (*device_image_unload_func)(const device_config *image);
9898typedef int (*device_image_verify_func)(const UINT8 *buf, size_t size);
9999typedef void (*device_image_partialhash_func)(char *, const unsigned char *, unsigned long, unsigned int);
100typedef void (*device_getdispositions_func)(const struct IODevice *dev, int id,
101   unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
100typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
102101typedef void (*device_display_func)(const device_config *image);
103102typedef const char *(*device_getname_func)(const struct IODevice *dev, int id, char *buf, size_t bufsize);
104103
src/mess/machine/pdp1.c
r2278r2279
352352   perforated tape handling
353353*/
354354
355void pdp1_get_open_mode(const struct IODevice *dev, int id,
356   unsigned int *readable, unsigned int *writeable, unsigned int *creatable)
355void pdp1_get_open_mode(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable)
357356{
358357   /* unit 0 is read-only, unit 1 is write-only */
359358   if (id)
src/mess/machine/tx0.c
r2278r2279
180180   perforated tape handling
181181*/
182182
183void tx0_tape_get_open_mode(const struct IODevice *dev, int id,
184   unsigned int *readable, unsigned int *writeable, unsigned int *creatable)
183void tx0_tape_get_open_mode(int id,   unsigned int *readable, unsigned int *writeable, unsigned int *creatable)
185184{
186185   /* unit 0 is read-only, unit 1 is write-only */
187186   if (id)
src/mess/drivers/apexc.c
r2278r2279
149149
150150
151151
152static void apexc_get_open_mode(const struct IODevice *dev, int id,
152static void apexc_get_open_mode(int id,
153153   unsigned int *readable, unsigned int *writeable, unsigned int *creatable)
154154{
155155   /* unit 0 is read-only, unit 1 is write-only */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team