18c2ecf20Sopenharmony_ciWhat:           /sys/.../<device>/mdev_supported_types/
28c2ecf20Sopenharmony_ciDate:           October 2016
38c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
48c2ecf20Sopenharmony_ciDescription:
58c2ecf20Sopenharmony_ci                This directory contains list of directories of currently
68c2ecf20Sopenharmony_ci		supported mediated device types and their details for
78c2ecf20Sopenharmony_ci		<device>. Supported type attributes are defined by the
88c2ecf20Sopenharmony_ci		vendor driver who registers with Mediated device framework.
98c2ecf20Sopenharmony_ci		Each supported type is a directory whose name is created
108c2ecf20Sopenharmony_ci		by adding the device driver string as a prefix to the
118c2ecf20Sopenharmony_ci		string provided by the vendor driver.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciWhat:           /sys/.../<device>/mdev_supported_types/<type-id>/
148c2ecf20Sopenharmony_ciDate:           October 2016
158c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
168c2ecf20Sopenharmony_ciDescription:
178c2ecf20Sopenharmony_ci                This directory gives details of supported type, like name,
188c2ecf20Sopenharmony_ci		description, available_instances, device_api etc.
198c2ecf20Sopenharmony_ci		'device_api' and 'available_instances' are mandatory
208c2ecf20Sopenharmony_ci		attributes to be provided by vendor driver. 'name',
218c2ecf20Sopenharmony_ci		'description' and other vendor driver specific attributes
228c2ecf20Sopenharmony_ci		are optional.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/create
258c2ecf20Sopenharmony_ciDate:           October 2016
268c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
278c2ecf20Sopenharmony_ciDescription:
288c2ecf20Sopenharmony_ci		Writing UUID to this file will create mediated device of
298c2ecf20Sopenharmony_ci		type <type-id> for parent device <device>. This is a
308c2ecf20Sopenharmony_ci		write-only file.
318c2ecf20Sopenharmony_ci		For example::
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci		  # echo "83b8f4f2-509f-382f-3c1e-e6bfe0fa1001" >	\
348c2ecf20Sopenharmony_ci		       /sys/devices/foo/mdev_supported_types/foo-1/create
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/devices/
378c2ecf20Sopenharmony_ciDate:           October 2016
388c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
398c2ecf20Sopenharmony_ciDescription:
408c2ecf20Sopenharmony_ci		This directory contains symbolic links pointing to mdev
418c2ecf20Sopenharmony_ci		devices sysfs entries which are created of this <type-id>.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/available_instances
448c2ecf20Sopenharmony_ciDate:           October 2016
458c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
468c2ecf20Sopenharmony_ciDescription:
478c2ecf20Sopenharmony_ci		Reading this attribute will show the number of mediated
488c2ecf20Sopenharmony_ci		devices of type <type-id> that can be created. This is a
498c2ecf20Sopenharmony_ci		readonly file.
508c2ecf20Sopenharmony_ciUsers:
518c2ecf20Sopenharmony_ci		Userspace applications interested in creating mediated
528c2ecf20Sopenharmony_ci		device of that type. Userspace application should check
538c2ecf20Sopenharmony_ci		the number of available instances could be created before
548c2ecf20Sopenharmony_ci		creating mediated device of this type.
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/device_api
578c2ecf20Sopenharmony_ciDate:           October 2016
588c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
598c2ecf20Sopenharmony_ciDescription:
608c2ecf20Sopenharmony_ci		Reading this attribute will show VFIO device API supported
618c2ecf20Sopenharmony_ci		by this type. For example, "vfio-pci" for a PCI device,
628c2ecf20Sopenharmony_ci		"vfio-platform" for platform device.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/name
658c2ecf20Sopenharmony_ciDate:           October 2016
668c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
678c2ecf20Sopenharmony_ciDescription:
688c2ecf20Sopenharmony_ci		Reading this attribute will show human readable name of the
698c2ecf20Sopenharmony_ci		mediated device that will get created of type <type-id>.
708c2ecf20Sopenharmony_ci		This is optional attribute. For example: "Grid M60-0Q"
718c2ecf20Sopenharmony_ciUsers:
728c2ecf20Sopenharmony_ci		Userspace applications interested in knowing the name of
738c2ecf20Sopenharmony_ci		a particular <type-id> that can help in understanding the
748c2ecf20Sopenharmony_ci		type of mediated device.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciWhat:           /sys/.../mdev_supported_types/<type-id>/description
778c2ecf20Sopenharmony_ciDate:           October 2016
788c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
798c2ecf20Sopenharmony_ciDescription:
808c2ecf20Sopenharmony_ci		Reading this attribute will show description of the type of
818c2ecf20Sopenharmony_ci		mediated device that will get created of type <type-id>.
828c2ecf20Sopenharmony_ci		This is optional attribute. For example:
838c2ecf20Sopenharmony_ci		"2 heads, 512M FB, 2560x1600 maximum resolution"
848c2ecf20Sopenharmony_ciUsers:
858c2ecf20Sopenharmony_ci		Userspace applications interested in knowing the details of
868c2ecf20Sopenharmony_ci		a particular <type-id> that can help in understanding the
878c2ecf20Sopenharmony_ci		features provided by that type of mediated device.
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ciWhat:           /sys/.../<device>/<UUID>/
908c2ecf20Sopenharmony_ciDate:           October 2016
918c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
928c2ecf20Sopenharmony_ciDescription:
938c2ecf20Sopenharmony_ci		This directory represents device directory of mediated
948c2ecf20Sopenharmony_ci		device. It contains all the attributes related to mediated
958c2ecf20Sopenharmony_ci		device.
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ciWhat:           /sys/.../<device>/<UUID>/mdev_type
988c2ecf20Sopenharmony_ciDate:           October 2016
998c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
1008c2ecf20Sopenharmony_ciDescription:
1018c2ecf20Sopenharmony_ci		This is symbolic link pointing to supported type, <type-id>
1028c2ecf20Sopenharmony_ci		directory of which this mediated device is created.
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ciWhat:           /sys/.../<device>/<UUID>/remove
1058c2ecf20Sopenharmony_ciDate:           October 2016
1068c2ecf20Sopenharmony_ciContact:        Kirti Wankhede <kwankhede@nvidia.com>
1078c2ecf20Sopenharmony_ciDescription:
1088c2ecf20Sopenharmony_ci		Writing '1' to this file destroys the mediated device. The
1098c2ecf20Sopenharmony_ci		vendor driver can fail the remove() callback if that device
1108c2ecf20Sopenharmony_ci		is active and the vendor driver doesn't support hot unplug.
1118c2ecf20Sopenharmony_ci		Example::
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci		  # echo 1 > /sys/bus/mdev/devices/<UUID>/remove
114