It seems I found a way to do it : using device_slot_interface
This way user could select device connected on serial port using MAME options

Is it the right way to do it ?