Re: [edk2] Multiple Protocols on same driver...

2013-09-04 Thread David F.
gt; *To:* [email protected] > *Subject:* Re: [edk2] Multiple Protocols on same driver... > > ** ** > > Using ATA passthru, say you get a device using protocol block_io ... now > you use LocalDevicePath to look for the ATA PassThru, it gives you the > device hand

Re: [edk2] Multiple Protocols on same driver...

2013-09-04 Thread Tim Lewis
David - Yes, you work your way back from the device path node that has the Block I/O installed on it. Tim From: David F. [mailto:[email protected]] Sent: Wednesday, September 04, 2013 4:47 PM To: [email protected] Subject: Re: [edk2] Multiple Protocols on same driver... Using

Re: [edk2] Multiple Protocols on same driver...

2013-09-04 Thread David F.
Using ATA passthru, say you get a device using protocol block_io ... now you use LocalDevicePath to look for the ATA PassThru, it gives you the device handle with one of the ATA PassThru protocols available on that handle. But where is the other one / how would I find it? Or is it simply if you'

Re: [edk2] Multiple Protocols on same driver...

2013-09-04 Thread Andrew Fish
On Sep 4, 2013, at 3:11 PM, "David F." wrote: > Hi, > > So when a driver produces two protocol interfaces to access the device using > the same protocol GUID. How do you open each instance? > They are produced on different handles, as only a single protocol GUID can exist per handle. > S

[edk2] Multiple Protocols on same driver...

2013-09-04 Thread David F.
Hi, So when a driver produces two protocol interfaces to access the device using the same protocol GUID. How do you open each instance? Say you look for all BlkIo protocol devices via HandleBuffer, then want to look if an ATA or SCSI passthru is attached as well, so use same handle, but ATA pass