162306a36Sopenharmony_ciWhat:           /sys/.../<device>/mdev_supported_types/
262306a36Sopenharmony_ciDate:           October 2016
362306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci                This directory contains list of directories of currently
662306a36Sopenharmony_ci		supported mediated device types and their details for
762306a36Sopenharmony_ci		<device>. Supported type attributes are defined by the
862306a36Sopenharmony_ci		vendor driver who registers with Mediated device framework.
962306a36Sopenharmony_ci		Each supported type is a directory whose name is created
1062306a36Sopenharmony_ci		by adding the device driver string as a prefix to the
1162306a36Sopenharmony_ci		string provided by the vendor driver.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciWhat:           /sys/.../<device>/mdev_supported_types/<type-id>/
1462306a36Sopenharmony_ciDate:           October 2016
1562306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
1662306a36Sopenharmony_ciDescription:
1762306a36Sopenharmony_ci                This directory gives details of supported type, like name,
1862306a36Sopenharmony_ci		description, available_instances, device_api etc.
1962306a36Sopenharmony_ci		'device_api' and 'available_instances' are mandatory
2062306a36Sopenharmony_ci		attributes to be provided by vendor driver. 'name',
2162306a36Sopenharmony_ci		'description' and other vendor driver specific attributes
2262306a36Sopenharmony_ci		are optional.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/create
2562306a36Sopenharmony_ciDate:           October 2016
2662306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
2762306a36Sopenharmony_ciDescription:
2862306a36Sopenharmony_ci		Writing UUID to this file will create mediated device of
2962306a36Sopenharmony_ci		type <type-id> for parent device <device>. This is a
3062306a36Sopenharmony_ci		write-only file.
3162306a36Sopenharmony_ci		For example::
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci		  # echo "83b8f4f2-509f-382f-3c1e-e6bfe0fa1001" >	\
3462306a36Sopenharmony_ci		       /sys/devices/foo/mdev_supported_types/foo-1/create
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/devices/
3762306a36Sopenharmony_ciDate:           October 2016
3862306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
3962306a36Sopenharmony_ciDescription:
4062306a36Sopenharmony_ci		This directory contains symbolic links pointing to mdev
4162306a36Sopenharmony_ci		devices sysfs entries which are created of this <type-id>.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/available_instances
4462306a36Sopenharmony_ciDate:           October 2016
4562306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
4662306a36Sopenharmony_ciDescription:
4762306a36Sopenharmony_ci		Reading this attribute will show the number of mediated
4862306a36Sopenharmony_ci		devices of type <type-id> that can be created. This is a
4962306a36Sopenharmony_ci		readonly file.
5062306a36Sopenharmony_ciUsers:
5162306a36Sopenharmony_ci		Userspace applications interested in creating mediated
5262306a36Sopenharmony_ci		device of that type. Userspace application should check
5362306a36Sopenharmony_ci		the number of available instances could be created before
5462306a36Sopenharmony_ci		creating mediated device of this type.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/device_api
5762306a36Sopenharmony_ciDate:           October 2016
5862306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
5962306a36Sopenharmony_ciDescription:
6062306a36Sopenharmony_ci		Reading this attribute will show VFIO device API supported
6162306a36Sopenharmony_ci		by this type. For example, "vfio-pci" for a PCI device,
6262306a36Sopenharmony_ci		"vfio-platform" for platform device.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/name
6562306a36Sopenharmony_ciDate:           October 2016
6662306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
6762306a36Sopenharmony_ciDescription:
6862306a36Sopenharmony_ci		Reading this attribute will show human readable name of the
6962306a36Sopenharmony_ci		mediated device that will get created of type <type-id>.
7062306a36Sopenharmony_ci		This is optional attribute. For example: "Grid M60-0Q"
7162306a36Sopenharmony_ciUsers:
7262306a36Sopenharmony_ci		Userspace applications interested in knowing the name of
7362306a36Sopenharmony_ci		a particular <type-id> that can help in understanding the
7462306a36Sopenharmony_ci		type of mediated device.
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/description
7762306a36Sopenharmony_ciDate:           October 2016
7862306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
7962306a36Sopenharmony_ciDescription:
8062306a36Sopenharmony_ci		Reading this attribute will show description of the type of
8162306a36Sopenharmony_ci		mediated device that will get created of type <type-id>.
8262306a36Sopenharmony_ci		This is optional attribute. For example:
8362306a36Sopenharmony_ci		"2 heads, 512M FB, 2560x1600 maximum resolution"
8462306a36Sopenharmony_ciUsers:
8562306a36Sopenharmony_ci		Userspace applications interested in knowing the details of
8662306a36Sopenharmony_ci		a particular <type-id> that can help in understanding the
8762306a36Sopenharmony_ci		features provided by that type of mediated device.
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ciWhat:           /sys/.../<device>/<UUID>/
9062306a36Sopenharmony_ciDate:           October 2016
9162306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
9262306a36Sopenharmony_ciDescription:
9362306a36Sopenharmony_ci		This directory represents device directory of mediated
9462306a36Sopenharmony_ci		device. It contains all the attributes related to mediated
9562306a36Sopenharmony_ci		device.
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ciWhat:           /sys/.../<device>/<UUID>/mdev_type
9862306a36Sopenharmony_ciDate:           October 2016
9962306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
10062306a36Sopenharmony_ciDescription:
10162306a36Sopenharmony_ci		This is symbolic link pointing to supported type, <type-id>
10262306a36Sopenharmony_ci		directory of which this mediated device is created.
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ciWhat:           /sys/.../<device>/<UUID>/remove
10562306a36Sopenharmony_ciDate:           October 2016
10662306a36Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
10762306a36Sopenharmony_ciDescription:
10862306a36Sopenharmony_ci		Writing '1' to this file destroys the mediated device. The
10962306a36Sopenharmony_ci		vendor driver can fail the remove() callback if that device
11062306a36Sopenharmony_ci		is active and the vendor driver doesn't support hot unplug.
11162306a36Sopenharmony_ci		Example::
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ci		  # echo 1 > /sys/bus/mdev/devices/<UUID>/remove
114