18c2ecf20Sopenharmony_ciWhat:		/config/pcie-gadget
28c2ecf20Sopenharmony_ciDate:		Feb 2011
38c2ecf20Sopenharmony_ciKernelVersion:	2.6.37
48c2ecf20Sopenharmony_ciContact:	Pratyush Anand <pratyush.anand@gmail.com>
58c2ecf20Sopenharmony_ciDescription:
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci	Interface is used to configure selected dual mode PCIe controller
88c2ecf20Sopenharmony_ci	as device and then program its various registers to configure it
98c2ecf20Sopenharmony_ci	as a particular device type.
108c2ecf20Sopenharmony_ci	This interfaces can be used to show spear's PCIe device capability.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci	Nodes are only visible when configfs is mounted. To mount configfs
138c2ecf20Sopenharmony_ci	in /config directory use::
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci	  # mount -t configfs none /config/
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci	For nth PCIe Device Controller /config/pcie-gadget.n/:
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci	=============== ======================================================
208c2ecf20Sopenharmony_ci	link		used to enable ltssm and read its status.
218c2ecf20Sopenharmony_ci	int_type	used to configure and read type of supported interrupt
228c2ecf20Sopenharmony_ci	no_of_msi	used to configure number of MSI vector needed and
238c2ecf20Sopenharmony_ci			to read no of MSI granted.
248c2ecf20Sopenharmony_ci	inta		write 1 to assert INTA and 0 to de-assert.
258c2ecf20Sopenharmony_ci	send_msi	write MSI vector to be sent.
268c2ecf20Sopenharmony_ci	vendor_id	used to write and read vendor id (hex)
278c2ecf20Sopenharmony_ci	device_id	used to write and read device id (hex)
288c2ecf20Sopenharmony_ci	bar0_size	used to write and read bar0_size
298c2ecf20Sopenharmony_ci	bar0_address	used to write and read bar0 mapped area in hex.
308c2ecf20Sopenharmony_ci	bar0_rw_offset	used to write and read offset of bar0 where bar0_data
318c2ecf20Sopenharmony_ci			will be written or read.
328c2ecf20Sopenharmony_ci	bar0_data	used to write and read data at bar0_rw_offset.
338c2ecf20Sopenharmony_ci	=============== ======================================================
34