mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Removed clock and flags as fundamental device parameters.
This commit is contained in:
parent
99675196a8
commit
85112f6f1c
@ -92,8 +92,6 @@ device_config *device_list_add(device_config **listheadptr, device_type type, co
|
||||
/* populate all fields */
|
||||
device->next = NULL;
|
||||
device->type = type;
|
||||
device->flags = 0;
|
||||
device->clock = 0;
|
||||
device->static_config = NULL;
|
||||
device->inline_config = (info.i == 0) ? NULL : (device->tag + strlen(tag) + 1);
|
||||
device->token = NULL;
|
||||
@ -222,7 +220,7 @@ void device_list_start(running_machine *machine)
|
||||
assert(config->start != NULL);
|
||||
|
||||
/* call the start function */
|
||||
config->token = (*config->start)(machine, config->clock, config->flags, config->static_config, config->inline_config);
|
||||
config->token = (*config->start)(machine, config->static_config, config->inline_config);
|
||||
assert(config->token != NULL);
|
||||
|
||||
/* fatal error if this fails */
|
||||
|
@ -79,7 +79,7 @@ typedef union _deviceinfo deviceinfo;
|
||||
/* device interface function types */
|
||||
typedef void (*device_get_info_func)(running_machine *machine, void *token, UINT32 state, deviceinfo *info);
|
||||
typedef void (*device_set_info_func)(running_machine *machine, void *token, UINT32 state, const deviceinfo *info);
|
||||
typedef void *(*device_start_func)(running_machine *machine, UINT32 clock, UINT32 flags, const void *static_config, const void *inline_config);
|
||||
typedef void *(*device_start_func)(running_machine *machine, const void *static_config, const void *inline_config);
|
||||
typedef void (*device_stop_func)(running_machine *machine, void *token);
|
||||
typedef void (*device_reset_func)(running_machine *machine, void *token);
|
||||
|
||||
|
@ -378,12 +378,6 @@ struct _machine_config
|
||||
#define MDRV_DEVICE_MODIFY(_tag, _type) \
|
||||
device = device_list_find_by_tag(&machine->devicelist, _type, _tag);\
|
||||
|
||||
#define MDRV_DEVICE_CLOCK(_clock) \
|
||||
device->clock = (_clock); \
|
||||
|
||||
#define MDRV_DEVICE_FLAGS(_flags) \
|
||||
device->flags = (_flags); \
|
||||
|
||||
#define MDRV_DEVICE_CONFIG(_config) \
|
||||
device->static_config = &(_config); \
|
||||
|
||||
|
@ -445,7 +445,7 @@ void mc6845_update(mc6845_t *mc6845, mame_bitmap *bitmap, const rectangle *clipr
|
||||
|
||||
|
||||
/* device interface */
|
||||
static void *mc6845_start(running_machine *machine, UINT32 clock, UINT32 flags, const void *static_config, const void *inline_config)
|
||||
static void *mc6845_start(running_machine *machine, const void *static_config, const void *inline_config)
|
||||
{
|
||||
return mc6845_config(static_config);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user