1b9500546SPratyush AnandWhat: /config/pcie-gadget 2b9500546SPratyush AnandDate: Feb 2011 3b9500546SPratyush AnandKernelVersion: 2.6.37 4e34caddeSPratyush AnandContact: Pratyush Anand <pratyush.anand@gmail.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 1334433332SMauro Carvalho Chehab in /config directory use:: 1434433332SMauro Carvalho Chehab 15b9500546SPratyush Anand # mount -t configfs none /config/ 16b9500546SPratyush Anand 1734433332SMauro Carvalho Chehab For nth PCIe Device Controller /config/pcie-gadget.n/: 1834433332SMauro Carvalho Chehab 1934433332SMauro Carvalho Chehab =============== ====================================================== 2034433332SMauro Carvalho Chehab link used to enable ltssm and read its status. 2134433332SMauro Carvalho Chehab int_type used to configure and read type of supported interrupt 2234433332SMauro Carvalho Chehab no_of_msi used to configure number of MSI vector needed and 23b9500546SPratyush Anand to read no of MSI granted. 2434433332SMauro Carvalho Chehab inta write 1 to assert INTA and 0 to de-assert. 2534433332SMauro Carvalho Chehab send_msi write MSI vector to be sent. 2634433332SMauro Carvalho Chehab vendor_id used to write and read vendor id (hex) 2734433332SMauro Carvalho Chehab device_id used to write and read device id (hex) 2834433332SMauro Carvalho Chehab bar0_size used to write and read bar0_size 2934433332SMauro Carvalho Chehab bar0_address used to write and read bar0 mapped area in hex. 3034433332SMauro Carvalho Chehab bar0_rw_offset used to write and read offset of bar0 where bar0_data 3134433332SMauro Carvalho Chehab will be written or read. 3234433332SMauro Carvalho Chehab bar0_data used to write and read data at bar0_rw_offset. 3334433332SMauro Carvalho Chehab =============== ====================================================== 34