Re: [edk2] Multi images in OptionROM

2014-12-12 Thread Ramesh R .
Is all there 3 option roms are made for same device/controller ? Thanks, Ramesh From: tiger...@via-alliance.com [mailto:tiger...@via-alliance.com] Sent: 12 December 2014 13:16 To: edk2-devel@lists.sourceforge.net Subject: [edk2] Multi images in OptionROM Hi, experts: I have a question about Opti

[edk2] File System issue in Shell.

2014-11-19 Thread Ramesh R .
Issue : When the directory has to many files in the HDD, LS shell command takes long time to display the directory info. Root cause : This slowness issue looks like Shell 2.0 issue. The delay is because the shell 2.0 tries to get all the file protocol handles of each directory even though it i

[edk2] ShiftState Sync between SimpleTextInEx

2014-10-14 Thread Ramesh R .
Hi, SimpleTextEx Protocol has the Getstate and SetState function for the syncing the toggle state key's between the SimpleTextIn devices. But why it doesn't have any interface to sync the ShiftState Key's between SimpleTextIn devices? In Windows, If We press the Shift Key from Ps2 keyboar

Re: [edk2] Get number from keyboard

2014-09-08 Thread Ramesh R .
Below function will do the string to HEX value conversion. EFI_STATUS StrtoHex ( CHAR16 *String, UINT64 *HexValue ) { UINT64 Value = 0; //Checking for ASCII value between '0' and 'F' while (TRUE) { if(*String >= '0' && *String <= '9') { Value *= HEX_TEN;

Re: [edk2] making UEFI driver part of optrom

2014-08-06 Thread Ramesh R .
Hi Sushma, It’s depend on the platform BIOS to decide which option rom needs to be invoked. May be the BIOS you are having invokes only Legacy option rom if it’s exists and doesn’t launch the UEFI option rom. I mean to say from the option rom we can’t control which option rom needs to be lau

Re: [edk2] GOP issue

2014-07-30 Thread Ramesh R .
&Size, &GraphicInfo); //check status ... //try set mode Status = GraphicProtocol->SetMode(GraphicProtocol, GraphicMode); //check status ... GraphicMode++; } Any other point ? Thanks Ramesh and Sergey Rafael R. Machado

Re: [edk2] GOP issue

2014-07-30 Thread Ramesh R .
14-07-30 6:10 GMT-03:00 Ramesh R. mailto:rame...@ami.com>>: Hi Rafael, How did you get the supported Video modes ? Did you use GOP protocol Query mode API to get the supported modes ? Thanks, Ramesh From: Rafael Machado [mailto:rafaelrodrigues.mach...@gmail.com<mailto:rafaelrodrigues.mac

Re: [edk2] GOP issue

2014-07-30 Thread Ramesh R .
Hi Rafael, How did you get the supported Video modes ? Did you use GOP protocol Query mode API to get the supported modes ? Thanks, Ramesh From: Rafael Machado [mailto:rafaelrodrigues.mach...@gmail.com] Sent: Wednesday, July 30, 2014 1:07 AM To: edk2-devel Subject: [edk2] GOP issue Hi everyo

Re: [edk2] DMA memory regions and device behavior

2014-01-27 Thread Ramesh R .
Hi Stephen, Get the MemoryMap using GetMemoryMap function calls and run the memory test , where the memory type belongs to "EfiConventionalMemory" type. Other memory type regions are used for the different purpose. Please check EFI_MEMORY_TYPE and table 25 in the UEFI Spec. Thanks, Ramesh

Re: [edk2] What happens to RegisterProtocolNotify() if CloseEvent() is called?

2014-01-15 Thread Ramesh R .
Hello Michael, CloseEvent is enough to kill the event notification and it's right method to do it. After CloseEvent called, the event will not be triggered when the protocol is installed again. Thanks, Ramesh From: Michael Lorer [michael.lo...@opus.de]

Re: [edk2] How can I get Current Directory?

2014-01-11 Thread Ramesh R .
Below function Call. gBS->OpenProtocol( ImageHandle, &gEfiShellProtocolGuid, (VOID **)&tEfiShellProtocol, ImageHandle, NULL,

Re: [edk2] gBS->LocateProtocol

2013-12-02 Thread Ramesh R .
Nishit, Could you please attach your draft source where the locate protocol works and doesn't work. That might give us some idea where are going wrong. Thanks, Ramesh From: Nishit Patira [mailto:nishitpat...@gmail.com] Sent: Tuesday, December 03, 2013 9:39 AM To: edk2-devel@lists.sourceforge.

Re: [edk2] how to get DISK geometry

2013-10-21 Thread Ramesh R .
Hi, BLOCKIO has some of the disk geometry information. typedef struct { UINT32 MediaId; BOOLEAN RemovableMedia; BOOLEAN MediaPresent; BOOLEAN LogicalPartition; BOOLEAN ReadOnly; BOOLEAN WriteCaching; UINT32 BlockSize; UINT32 IoAlign; EFI_LBA LastBlock; EFI_LBA LowestAlignedLba; //added in Revis

Re: [edk2] ConsoleIn behavior with Shell

2013-10-18 Thread Ramesh R .
okes, instead of the shell, then I think it could confirm that the shell is not hindering the capture. -Jaben -Original Message- From: Ramesh R. [mailto:rame...@ami.com] Sent: Thursday, October 17, 2013 9:50 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ConsoleIn behavior with She

Re: [edk2] problem in openprotocol

2013-10-17 Thread Ramesh R .
to use interface at below scenario. Do you agree? Andrew, do you have any comment on this topic? From: Ramesh R. [mailto:rame...@ami.com] Sent: Friday, October 18, 2013 13:58 To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: Re: [edk2] problem in openprotoco

Re: [edk2] problem in openprotocol

2013-10-17 Thread Ramesh R .
ic? From: Ramesh R. [mailto:rame...@ami.com] Sent: Friday, October 18, 2013 13:58 To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: Re: [edk2] problem in openprotocol Agree. It's a good point. But OpenProtocol with BY_DRIVER attribute is not possible

Re: [edk2] problem in openprotocol

2013-10-17 Thread Ramesh R .
From: Ramesh R. [mailto:rame...@ami.com] Sent: Friday, October 18, 2013 12:54 To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: Re: [edk2] problem in openprotocol Hi Parmeshwr, Do you need to write the data into all the DISK ? If so Use LocateHandleBu

Re: [edk2] problem in openprotocol

2013-10-17 Thread Ramesh R .
i Ramesh, This much I did but problem occurred when I do openprotocol with BY_DRIVER so it gives error. Regards Param From: Ramesh R. [mailto:rame...@ami.com] Sent: Friday, October 18, 2013 10:24 AM To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: Re

Re: [edk2] problem in openprotocol

2013-10-17 Thread Ramesh R .
Hi Parmeshwr, Do you need to write the data into all the DISK ? If so Use LocateHandleBuffer to get all the DiskIO handle and use the HandleProtocol on each handle to get the DiskIO protocol. Thanks, Ramesh From: parmeshwr_pra...@dell.com [mailto:parmeshwr_pra...@dell.com] Sent: Friday, Oct

Re: [edk2] ConsoleIn behavior with Shell

2013-10-17 Thread Ramesh R .
t time. I would guess that the ReadKey gets called after your application ends and then it handles the information from the key that was pressed during the application's time. -Jaben -Original Message----- From: Ramesh R. [mailto:rame...@ami.com] Sent: Thursday, October 17, 2013 9:39 AM

Re: [edk2] ConsoleIn behavior with Shell

2013-10-17 Thread Ramesh R .
Hi All & Jaben, Do you have any comments on the below observation? Thanks, Ramesh -Original Message- From: Ramesh R. [mailto:rame...@ami.com] Sent: Friday, October 11, 2013 11:01 PM To: edk2-devel@lists.sourceforge.net Cc: Rashmi Prakash Subject: Re: [edk2] ConsoleIn behavior

Re: [edk2] ConsoleIn behavior with Shell

2013-10-11 Thread Ramesh R .
TRL-S comes via the events, there is nothing happening inside the shell. Your application is started around line 1607 in shell.c -Jaben -Original Message----- From: Ramesh R. [mailto:rame...@ami.com] Sent: Monday, October 07, 2013 9:52 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [

Re: [edk2] ConsoleIn behavior with Shell

2013-10-07 Thread Ramesh R .
ll Ramesh, I cannot think of why that would happen. Which revision of the shell are you using? Is there anything odd about the launch of the application? For example redirecting input to/from a file or anything like that? -Jaben -Original Message----- From: Ramesh R. [mailto:rame...@ami

Re: [edk2] ConsoleIn behavior with Shell

2013-10-07 Thread Ramesh R .
via: Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key); How are you reading the keystrokes? Which SimpleTextIn protocol instance are you using? -Jaben -Original Message- From: Ramesh R. [mailto:rame...@ami.com] Sent: Monday, October 07, 2013 8:25 AM To: edk2-devel@l

[edk2] ConsoleIn behavior with Shell

2013-10-07 Thread Ramesh R .
Hi, We have shell Application that would read the ConsoleIn ( Keyboard) device data on every 500ms. Most of the time application is not receiving the data by using SimpletextEx ReadKey Protocol, Looks like Shell gets the data before application does. The reason why we are saying Shell gets t

Re: [edk2] SetTimer Granularity in uEFI

2013-09-16 Thread Ramesh R .
p 16, 2013 at 5:49 PM, Ramesh R. mailto:rame...@ami.com>> wrote: Hello Ranga, The Legacy environment assumed that 18.4 times Timer 0 gets generated per Second. It means Timer 0 IRQ raised for every 54ms. By using the HPET timer we could change the timer frequency to lesser values a

Re: [edk2] SetTimer Granularity in uEFI

2013-09-16 Thread Ramesh R .
Hello Ranga, The Legacy environment assumed that 18.4 times Timer 0 gets generated per Second. It means Timer 0 IRQ raised for every 54ms. By using the HPET timer we could change the timer frequency to lesser values and when we switch to Legacy environment we could change it back to 54ms as

Re: [edk2] UEFI driver for USB to Serial Adapter

2013-07-26 Thread Ramesh R .
For DOS environment, you need another driver that would take care of the redirection. Means CSM alone will not help. As Legacy environment doesn’t use the protocol interface, For writing and reading into serial device you need to create your own interface for that. Thanks, Ramesh From: Manime

Re: [edk2] UEFI driver for USB to Serial Adapter

2013-07-26 Thread Ramesh R .
Selvaraj [mailto:manimehalai.selva...@lntinfotech.com] Sent: Thursday, July 25, 2013 2:55 PM To: Ramesh R.; 'edk2-devel@lists.sourceforge.net' Subject: RE: UEFI driver for USB to Serial Adapter Hi Ramesh, Thanks for the information. I want to confirm, that the requirement requires writin

Re: [edk2] Partition Driver

2013-07-19 Thread Ramesh R .
Thanks Tian. Understood. Thanks, Ramesh -Original Message- From: Tian, Feng [mailto:feng.t...@intel.com] Sent: Friday, July 19, 2013 10:36 AM To: Ramesh R.; edk2-devel@lists.sourceforge.net Cc: Tian, Feng Subject: RE: Partition Driver No. ScsiBus is a BUS driver. it would enumerate

Re: [edk2] Partition Driver

2013-07-18 Thread Ramesh R .
eng.t...@intel.com] Sent: Thursday, July 18, 2013 7:34 AM To: Ramesh R.; edk2-devel@lists.sourceforge.net Cc: Tian, Feng Subject: RE: Partition Driver Partition driver in fact consuming BlockIo, BlockIo2, DiskIo and DevicePath. Why some of them are opened with BY_DRIVER and others are opened

[edk2] Partition Driver

2013-07-17 Thread Ramesh R .
Hi All, Partition driver consuming only the DiskIO , so it should be doing the EFI_OPEN_PROTOCOL_BY_DRIVER attribute only for the DiskIO protocol. Is there any reason why Partition driver does EFI_OPEN_PROTOCOL_BY_DRIVER attribute for the DevicePath protocol? Status = gBS->OpenProtocol (

[edk2] Partition Driver

2013-07-16 Thread Ramesh R .
Hi All, Partition driver consuming only the DiskIO , so it should be doing the EFI_OPEN_PROTOCOL_BY_DRIVER attribute only for the DiskIO protocol. Is there any reason why Partition driver does EFI_OPEN_PROTOCOL_BY_DRIVER attribute for the DevicePath protocol? Status = gBS->OpenProtocol (