linux-imx/Documentation/ABI/testing/configfs-spear-pcie-gadget
Mauro Carvalho Chehab 3443333284 docs: ABI: testing: make the files compatible with ReST output
Some files over there won't parse well by Sphinx.

Fix them.

Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # for IIO
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/58cf3c2d611e0197fb215652719ebd82ca2658db.1604042072.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-30 13:07:01 +01:00

1.3 KiB

What: /config/pcie-gadget Date: Feb 2011 KernelVersion: 2.6.37 Contact: Pratyush Anand pratyush.anand@gmail.com Description:

Interface is used to configure selected dual mode PCIe controller
as device and then program its various registers to configure it
as a particular device type.
This interfaces can be used to show spear's PCIe device capability.

Nodes are only visible when configfs is mounted. To mount configfs
in /config directory use::

  # mount -t configfs none /config/

For nth PCIe Device Controller /config/pcie-gadget.n/:

=============== ======================================================
link		used to enable ltssm and read its status.
int_type	used to configure and read type of supported interrupt
no_of_msi	used to configure number of MSI vector needed and
		to read no of MSI granted.
inta		write 1 to assert INTA and 0 to de-assert.
send_msi	write MSI vector to be sent.
vendor_id	used to write and read vendor id (hex)
device_id	used to write and read device id (hex)
bar0_size	used to write and read bar0_size
bar0_address	used to write and read bar0 mapped area in hex.
bar0_rw_offset	used to write and read offset of bar0 where bar0_data
		will be written or read.
bar0_data	used to write and read data at bar0_rw_offset.
=============== ======================================================