1 What: /config/pcie-gadget 1 What: /config/pcie-gadget 2 Date: Feb 2011 2 Date: Feb 2011 3 KernelVersion: 2.6.37 3 KernelVersion: 2.6.37 4 Contact: Pratyush Anand <pratyush.anand@ 4 Contact: Pratyush Anand <pratyush.anand@gmail.com> 5 Description: 5 Description: 6 6 7 Interface is used to configure selecte 7 Interface is used to configure selected dual mode PCIe controller 8 as device and then program its various 8 as device and then program its various registers to configure it 9 as a particular device type. 9 as a particular device type. 10 This interfaces can be used to show sp 10 This interfaces can be used to show spear's PCIe device capability. 11 11 12 Nodes are only visible when configfs i 12 Nodes are only visible when configfs is mounted. To mount configfs 13 in /config directory use:: 13 in /config directory use:: 14 14 15 # mount -t configfs none /config/ 15 # mount -t configfs none /config/ 16 16 17 For nth PCIe Device Controller /config 17 For nth PCIe Device Controller /config/pcie-gadget.n/: 18 18 19 =============== ====================== 19 =============== ====================================================== 20 link used to enable ltssm a 20 link used to enable ltssm and read its status. 21 int_type used to configure and 21 int_type used to configure and read type of supported interrupt 22 no_of_msi used to configure numb 22 no_of_msi used to configure number of MSI vector needed and 23 to read no of MSI gran 23 to read no of MSI granted. 24 inta write 1 to assert INTA 24 inta write 1 to assert INTA and 0 to de-assert. 25 send_msi write MSI vector to be 25 send_msi write MSI vector to be sent. 26 vendor_id used to write and read 26 vendor_id used to write and read vendor id (hex) 27 device_id used to write and read 27 device_id used to write and read device id (hex) 28 bar0_size used to write and read 28 bar0_size used to write and read bar0_size 29 bar0_address used to write and read 29 bar0_address used to write and read bar0 mapped area in hex. 30 bar0_rw_offset used to write and read 30 bar0_rw_offset used to write and read offset of bar0 where bar0_data 31 will be written or rea 31 will be written or read. 32 bar0_data used to write and read 32 bar0_data used to write and read data at bar0_rw_offset. 33 =============== ====================== 33 =============== ======================================================
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.