| 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 |
| r2278 | r2279 | |
|---|---|---|
| 162 | 162 | |
| 163 | 163 | INTERRUPT_GEN( pdp1_interrupt ); |
| 164 | 164 | |
| 165 | void pdp1_get_open_mode(const struct IODevice *dev, int id, | |
| 166 | unsigned int *readable, unsigned int *writeable, unsigned int *creatable); | |
| 165 | void pdp1_get_open_mode(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable); | |
| 167 | 166 | |
| 168 | 167 | typedef struct lightpen_t |
| 169 | 168 | { |
| r2278 | r2279 | |
|---|---|---|
| 17 | 17 | MACHINE_START( tx0 ); |
| 18 | 18 | MACHINE_RESET( tx0 ); |
| 19 | 19 | |
| 20 | void tx0_tape_get_open_mode(const struct IODevice *dev, int id, | |
| 21 | unsigned int *readable, unsigned int *writeable, unsigned int *creatable); | |
| 20 | void tx0_tape_get_open_mode(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable); | |
| 22 | 21 | DEVICE_START( tx0_tape ); |
| 23 | 22 | DEVICE_IMAGE_LOAD( tx0_tape ); |
| 24 | 23 | DEVICE_IMAGE_UNLOAD( tx0_tape ); |
| r2278 | r2279 | |
|---|---|---|
| 458 | 458 | getdispositions = (device_getdispositions_func) mess_device_get_info_fct(&mess_device->io_device.devclass, MESS_DEVINFO_PTR_GET_DISPOSITIONS); |
| 459 | 459 | if (getdispositions != NULL) |
| 460 | 460 | { |
| 461 | getdispositions( | |
| 461 | getdispositions( | |
| 462 | 462 | } |
| 463 | 463 | else |
| 464 | 464 | { |
| r2278 | r2279 | |
|---|---|---|
| 97 | 97 | typedef void (*device_image_unload_func)(const device_config *image); |
| 98 | 98 | typedef int (*device_image_verify_func)(const UINT8 *buf, size_t size); |
| 99 | 99 | typedef void (*device_image_partialhash_func)(char *, const unsigned char *, unsigned long, unsigned int); |
| 100 | typedef void (*device_getdispositions_func)(const struct IODevice *dev, int id, | |
| 101 | unsigned int *readable, unsigned int *writeable, unsigned int *creatable); | |
| 100 | typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable); | |
| 102 | 101 | typedef void (*device_display_func)(const device_config *image); |
| 103 | 102 | typedef const char *(*device_getname_func)(const struct IODevice *dev, int id, char *buf, size_t bufsize); |
| 104 | 103 |
| r2278 | r2279 | |
|---|---|---|
| 352 | 352 | perforated tape handling |
| 353 | 353 | */ |
| 354 | 354 | |
| 355 | void pdp1_get_open_mode(const struct IODevice *dev, int id, | |
| 356 | unsigned int *readable, unsigned int *writeable, unsigned int *creatable) | |
| 355 | void pdp1_get_open_mode(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable) | |
| 357 | 356 | { |
| 358 | 357 | /* unit 0 is read-only, unit 1 is write-only */ |
| 359 | 358 | if (id) |
| r2278 | r2279 | |
|---|---|---|
| 180 | 180 | perforated tape handling |
| 181 | 181 | */ |
| 182 | 182 | |
| 183 | void tx0_tape_get_open_mode(const struct IODevice *dev, int id, | |
| 184 | unsigned int *readable, unsigned int *writeable, unsigned int *creatable) | |
| 183 | void tx0_tape_get_open_mode(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable) | |
| 185 | 184 | { |
| 186 | 185 | /* unit 0 is read-only, unit 1 is write-only */ |
| 187 | 186 | if (id) |
| r2278 | r2279 | |
|---|---|---|
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | |
| 152 | static void apexc_get_open_mode( | |
| 152 | static void apexc_get_open_mode( | |
| 153 | 153 | unsigned int *readable, unsigned int *writeable, unsigned int *creatable) |
| 154 | 154 | { |
| 155 | 155 | /* unit 0 is read-only, unit 1 is write-only */ |
| Previous | 15994 Revisions | Next |