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