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 13*34433332SMauro Carvalho Chehab in /config directory use:: 14*34433332SMauro Carvalho Chehab 15b9500546SPratyush Anand # mount -t configfs none /config/ 16b9500546SPratyush Anand 17*34433332SMauro Carvalho Chehab For nth PCIe Device Controller /config/pcie-gadget.n/: 18*34433332SMauro Carvalho Chehab 19*34433332SMauro Carvalho Chehab =============== ====================================================== 20*34433332SMauro Carvalho Chehab link used to enable ltssm and read its status. 21*34433332SMauro Carvalho Chehab int_type used to configure and read type of supported interrupt 22*34433332SMauro Carvalho Chehab no_of_msi used to configure number of MSI vector needed and 23b9500546SPratyush Anand to read no of MSI granted. 24*34433332SMauro Carvalho Chehab inta write 1 to assert INTA and 0 to de-assert. 25*34433332SMauro Carvalho Chehab send_msi write MSI vector to be sent. 26*34433332SMauro Carvalho Chehab vendor_id used to write and read vendor id (hex) 27*34433332SMauro Carvalho Chehab device_id used to write and read device id (hex) 28*34433332SMauro Carvalho Chehab bar0_size used to write and read bar0_size 29*34433332SMauro Carvalho Chehab bar0_address used to write and read bar0 mapped area in hex. 30*34433332SMauro Carvalho Chehab bar0_rw_offset used to write and read offset of bar0 where bar0_data 31*34433332SMauro Carvalho Chehab will be written or read. 32*34433332SMauro Carvalho Chehab bar0_data used to write and read data at bar0_rw_offset. 33*34433332SMauro Carvalho Chehab =============== ====================================================== 34