PCI_IO is used to access MMIO/IO at a PCI controller. PCI_ROOT_BRIDGE_IO is 
used to access PCI root bridge controller.

For your case, I think you should use PCI_IO which is installed at SAS 
controller to enumerate attached SAS devices.

You can refer to AtaAtapiPassThru driver in MdeModulePkg, which is used to 
enumerate attached devices at IDE/AHCI controller.

From: Murali Selvaraj [mailto:[email protected]]
Sent: Sunday, September 15, 2013 14:54
To: [email protected]
Subject: [edk2] PCI-SAS Device Enumeration and Display

Hi All,

Please go through the below information and share valuable comments and 
suggestions.

Mockup :

My board connected to PCIe based SAS controller and it has three SAS devices 
connected with the pcie board.

My Driver Design :

The driver will enumerate and display the connected SATA devices details as 
below.


Name of the SATA Device

Size of SATA Device

Speed




Query :

>From PCI I/O protocol service I could able to read vendorid and deviceid from 
>PCI configuration space.
Next I would like to display the connected SAS devices.

As per my PCIe device ,I can see PCI I/O space and Memory space register from 
PCI'e configuration space.
>From this registers and this I/O space shall we able to identify the connected 
>devices?

Do we need PCI_ROOT_BRIDGE_IO_PROTOCOL to enumerate SAS devices or Is PCI I/O 
protocol enough for our driver?

Please share any sample code if it's available .It would be useful for me to 
proceed further.
I am using EDK2 source.


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/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to