2022-11-13 02:15:47 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (C) 2019 Intel Corporation.
|
|
|
|
# All rights reserved.
|
|
|
|
|
2022-07-05 07:30:17 +00:00
|
|
|
from .helpers import deprecated_alias
|
|
|
|
|
|
|
|
|
|
|
|
@deprecated_alias('enable_vmd')
|
|
|
|
def vmd_enable(client):
|
2019-07-01 11:54:57 +00:00
|
|
|
"""Enable VMD enumeration."""
|
2022-07-05 07:30:17 +00:00
|
|
|
return client.call('vmd_enable')
|
2022-07-05 08:50:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
def vmd_remove_device(client, addr):
|
|
|
|
"""Remove a device behind VMD"""
|
|
|
|
return client.call('vmd_remove_device', {'addr': addr})
|
2022-07-05 13:33:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
def vmd_rescan(client):
|
|
|
|
"""Force a rescan of the devices behind VMD"""
|
|
|
|
return client.call('vmd_rescan')
|