INLINE f3853_t *get_safe_token(running_device *device) { assert( device != NULL ); assert( device->token != NULL ); assert( device->type == DEVICE_GET_INFO_NAME(f3853) ); return ( f3853_t * ) device->token; }
/* makes sure that the passed in device is the right type */ INLINE msm6242_t *get_safe_token(const device_config *device) { assert(device != NULL); assert(device->token != NULL); assert(device->type == DEVICE_GET_INFO_NAME(msm6242)); return (msm6242_t *)device->token; }
/* makes sure that the passed in device is the right type */ INLINE mc6845_t *get_safe_token(const device_config *device) { assert(device != NULL); assert(device->token != NULL); assert((device->type == DEVICE_GET_INFO_NAME(mc6845)) || (device->type == DEVICE_GET_INFO_NAME(mc6845_1)) || (device->type == DEVICE_GET_INFO_NAME(c6545_1)) || (device->type == DEVICE_GET_INFO_NAME(r6545_1)) || (device->type == DEVICE_GET_INFO_NAME(h46505)) || (device->type == DEVICE_GET_INFO_NAME(hd6845)) || (device->type == DEVICE_GET_INFO_NAME(sy6545_1))); return (mc6845_t *)device->token; }
INLINE ppi8255_t *get_safe_token(running_device *device) { assert( device != NULL ); assert( device->token != NULL ); assert( device->type == DEVICE_GET_INFO_NAME(ppi8255) ); return ( ppi8255_t * ) device->token; }
INLINE pic8259_t *get_safe_token(const device_config *device) { assert( device != NULL ); assert( device->token != NULL ); assert( device->type == DEVICE_GET_INFO_NAME(pic8259) ); return ( pic8259_t *) device->token; }