def METHOD_NAME(vm, params, char_devices, serials):
    """
    Get buses list and serial devices list
    :param vm: VM object to be operated
    :param params: test params for the device
    :param char_devices: CharDevice list
    :param serials: serial device
    :return: buses list and serial device object list
    """
    buses = []
    serial_devices = []
    for index, serial_id in enumerate(serials):
        chardev_id = char_devices[index].get_qid()
        params['serial_name_%s' % serial_id] = serial_id
        devices = add_virtserial_device(vm, params, serial_id, chardev_id)
        for device in devices:
            if device.child_bus:
                buses.append(device)
            else:
                serial_devices.append(device)
    return buses, serial_devices