configfs-spear-pcie-gadget 1.2 KB

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