[PATCH] Add device enumeration interface (v3)

Emil Velikov emil.l.velikov at gmail.com
Wed Jun 3 08:48:14 PDT 2015


Hi Frank,

On 1 June 2015 at 04:06, Min, Frank <Frank.Min at amd.com> wrote:
> Hi Emil,
> Here is the pseudo code:
>
> int drmGetPciDevices(drmPciDevicePtr devSet, uint16_t vendorId)
> {
>         If(devSet == NULL && vendorId == 0)
>                 Probe all the graphic device and return the number of it
>         Else If(devSet != NULL && vendorId != 0)
>                 Probe the specific vender graphic device and return it in the array devSet
>         Else If(devSet ==NULL && vendorId != 0)
>                 Probe the specific vendorId graphic device and return the number of it
>         Else
>                 Should not happen
> }
>
I believe that you misread my original question - I requested
pseudo-code of the API should be used.

Thanks
Emil


More information about the dri-devel mailing list