Esempio n. 1
0
 /// <summary>
 ///     Searches for a device vendor based on the passed <see cref="PCIAddress" /> instance.
 /// </summary>
 /// <param name="address">
 ///     An instance of <see cref="PCIAddress" /> class containing information required to search for a
 ///     device vendor.
 /// </param>
 /// <returns>An instance of <see cref="PCIVendor" /> class if a device vendor is found; otherwise null.</returns>
 public static PCIVendor GetVendor(PCIAddress address)
 {
     return(GetVendor(address.VendorId));
 }
Esempio n. 2
0
 /// <summary>
 ///     Searches for a device based on the passed <see cref="PCIAddress" /> instance.
 /// </summary>
 /// <param name="address">
 ///     An instance of <see cref="PCIAddress" /> class containing information required to search for a
 ///     device.
 /// </param>
 /// <returns>An instance of <see cref="PCIDevice" /> class if a device is found; otherwise null.</returns>
 public static PCIDevice GetDevice(PCIAddress address)
 {
     return(GetDevice(address.VendorId, address.DeviceId));
 }
Esempio n. 3
0
 /// <summary>
 ///     Searches for a device subsystem based on the passed <see cref="PCIAddress" /> instance.
 /// </summary>
 /// <param name="address">
 ///     An instance of <see cref="PCIAddress" /> class containing information required to search for a
 ///     device subsystem.
 /// </param>
 /// <returns>An instance of <see cref="PCISubSystem" /> class if a subsystem is found; otherwise null.</returns>
 public static PCISubSystem GetSubSystem(PCIAddress address)
 {
     return(GetSubSystem(address.VendorId, address.DeviceId, address.SubSystem.VendorId,
                         address.SubSystem.DeviceId));
 }