Re: [edk2] Device path protocol

2013-01-31 Thread satish kondapalli
Thanks Andrew.. On Wed, Jan 30, 2013 at 11:25 PM, Andrew Fish wrote: > Sateesh, > > There are two classes of drivers in EFI: > 1) Device Drivers > 2) Bus drivers > > A device driver, like your example, adds a protocol to an existing handle. > A Bus driver adds child handles. > > In your case I t

Re: [edk2] Device path protocol

2013-01-30 Thread Andrew Fish
Sateesh, There are two classes of drivers in EFI: 1) Device Drivers 2) Bus drivers A device driver, like your example, adds a protocol to an existing handle. A Bus driver adds child handles. In your case I think you will find that there already is a device path on the PciIo handle that was cr

[edk2] Device path protocol

2013-01-29 Thread satish kondapalli
Hi, I am writing option ROM driver for my PCIe device. How to add Device path protocol to my device. 1) Here is the my driver binding protocol: EFI_DRIVER_BINDING_PROTOCOL gSpDriverBinding = { SpDriverBindingSupported, SpDriverBindingStart, SpDriverBindingStop, 0xa, NULL, NULL };