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