162306a36Sopenharmony_ciWhat: /config/pcie-gadget 262306a36Sopenharmony_ciDate: Feb 2011 362306a36Sopenharmony_ciKernelVersion: 2.6.37 462306a36Sopenharmony_ciContact: Pratyush Anand <pratyush.anand@gmail.com> 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci Interface is used to configure selected dual mode PCIe controller 862306a36Sopenharmony_ci as device and then program its various registers to configure it 962306a36Sopenharmony_ci as a particular device type. 1062306a36Sopenharmony_ci This interfaces can be used to show spear's PCIe device capability. 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci Nodes are only visible when configfs is mounted. To mount configfs 1362306a36Sopenharmony_ci in /config directory use:: 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci # mount -t configfs none /config/ 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci For nth PCIe Device Controller /config/pcie-gadget.n/: 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci =============== ====================================================== 2062306a36Sopenharmony_ci link used to enable ltssm and read its status. 2162306a36Sopenharmony_ci int_type used to configure and read type of supported interrupt 2262306a36Sopenharmony_ci no_of_msi used to configure number of MSI vector needed and 2362306a36Sopenharmony_ci to read no of MSI granted. 2462306a36Sopenharmony_ci inta write 1 to assert INTA and 0 to de-assert. 2562306a36Sopenharmony_ci send_msi write MSI vector to be sent. 2662306a36Sopenharmony_ci vendor_id used to write and read vendor id (hex) 2762306a36Sopenharmony_ci device_id used to write and read device id (hex) 2862306a36Sopenharmony_ci bar0_size used to write and read bar0_size 2962306a36Sopenharmony_ci bar0_address used to write and read bar0 mapped area in hex. 3062306a36Sopenharmony_ci bar0_rw_offset used to write and read offset of bar0 where bar0_data 3162306a36Sopenharmony_ci will be written or read. 3262306a36Sopenharmony_ci bar0_data used to write and read data at bar0_rw_offset. 3362306a36Sopenharmony_ci =============== ====================================================== 34