Andrew,
As part of the loop of opening Block_Io devices I put in:
SAFE_OPEN_PROTOCOL_LIB_HANDLE *namehandle;
EFI_COMPONENT_NAME2_PROTOCOL *name;
if ((namehandle=SafeOpenProtocol(handlepointer[i],
&gEfiComponentName2ProtocolGuid, (void**)&name, NULL))!=NULL) {
CHAR16 *drivername;
name->GetDriverName(name, "en-us", &drivername);
CHAR16 *controllername;
name->GetControllerName(name, handlepointer[i], NULL, "en-us",
&controllername);
printf("driver:%ws controller:%ws\n", drivername, controllername);
SafeCloseProtocol(namehandle);
}
else printf("no name protocol\n");
and all that prints is "no name protocol" for all block devices.
Note that the "SafeOpenProtocol" in this case is just emulated, it's
actually opening BY_HANDLE_PROTOCOL. I left that method in there if the
hang issues is ever fixed/figured out.
On Fri, Sep 6, 2013 at 10:19 AM, David F. <[email protected]> wrote:
> Sergey,
>
> Yes, thanks, that be nice but the problem is there is no Pass Thru or Scsi
> IO interfaces found. Used LocateHandleBuffer and nothing was returned
> (not found), tried for all 3, ATA Pass Thru, SCSI Pass Thru, and Scsi IO.
> I'd like to see those be "required" when those type of devices exist.
>
> Andrew,
>
> Thanks, I'll check that part out, but still really need those pass thru
> type commands. Very useful on systems.
>
>
>
>
>
> On Fri, Sep 6, 2013 at 9:56 AM, Andrew Fish <[email protected]> wrote:
>
>>
>> On Sep 5, 2013, at 7:22 PM, David F. <[email protected]> wrote:
>>
>> > Well, without any passthru support, I'm not sure how I'm, as an
>> application, supposed to get the device names of the various hard drives
>> and dvd drives in the system? Also, how you would be able to burn a CD/DVD
>> and send the various commands to setup for the burn. I see the Visual
>> BIOS on the system has all the name, so there must be a way without
>> essentially turning off all UEFI services and writing a raw DOS like
>> program to directly program the SATA/PATA controllers like the old days?
>> Strange?
>> >
>> > Does anyone have the answer??
>> >
>>
>> What is returned for the ComponentName? This should be the human readable
>> name of the device.
>>
>>
>> https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/ComponentName.h
>>
>> https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/ComponentName2.h
>>
>> Thanks,
>>
>> Andrew Fish
>>
>> > TIA!!
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> > Discover the easy way to master current and previous Microsoft
>> technologies
>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk_______________________________________________
>> > edk2-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
>> _______________________________________________
>> edk2-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>
>
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel