You need implement/produce EXT_SCSI_PASS_THRU at your driver. Then upper layer 
driver, such as ScsiBus driver, could consume it and produce SCSI_IO for all 
attached devices.

As for how to enumerate device at physical layer, it depends on your SCSI 
CONTROLLER's implementation. I suppose it should have a PORT STATUS register 
besides PORT LINK STATUS register. You can use it to do enumeration.

PS: in OptionRomPkg\AtapiPassThruDxe directory, there is an example for your 
reference. This module is used to provide an example on how to write SCSI 
controller oprom. It's done by simulating SCSI devices with Atapi devices.

Thanks
Feng

From: Murali Selvaraj [mailto:murali.selvaraj2...@gmail.com]
Sent: Thursday, September 19, 2013 01:59
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Access PCI Express to SCSI controller

Hi All,

My Intel board is connected with PCI Express to SCSI controller and three SCSI 
devices connected on PCI (SCSI controller)device.
>From EFI shell I would like to Display connected SCSI devices details (SCSI 
>device size,Speed of the Device)


I have started to implement as a UEFI driver for that requirement .From PCI 
configuration I could dump PCI Express Capability Structure for my device with
a help of Capabilities Pointer.Then I could find Device/Port Type and Maximum 
Speed and Link Speed from PCI Express Capability Structure.I have printed this 
information on EFI shell using my driver.

Next I would like to identify the connected SCSI device.Do I need to implement 
extended scsi passthrough protocol to find the connected SCSI devices?

Or else from PCI Express Capability Structure shall we able to display SCSI 
devices? or Do I include any specific protols to my driver.

Please share your suggestion and guide me to implement my driver.

Thanks
Murali.S



------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to