Rafael,

Why don’t you directly locate all handles at which BlockIo protocols are 
installed? After you get these handles, you can get device path from these 
handles to know which one is you want to access.

Thanks
Feng

From: Rafael Machado [mailto:rafaelrodrigues.mach...@gmail.com]
Sent: Monday, October 27, 2014 18:40
To: edk2-devel
Subject: [edk2] Get BlockIo protocol from Ata Device based on Port and 
Multiplier Port

Hi everyone.

I have a system, that has a Storage device.
This device can be detected at Port 0, Multiplier 0 by the 
EFI_ATA_PASS_THRU_PROTOCOL.GetNextDevice()

typedef EFI_STATUS
(EFIAPI *EFI_ATA_PASS_THRU_GET_NEXT_DEVICE) (
IN EFI_ATA_PASS_THRU_PROTOCOL *This,
IN UINT16 Port,
IN OUT UINT16 *PortMultiplierPort
);

Now I need to know the EFI_BLOCK_IO_PROTOCOL "instance" that I need to use to 
access this device.
Is there a way to do this ?

Thanks and Regards
Rafael R. Machado
------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to