Back to home page

OSCL-LXR

 
 

    


0001 What:           /config/pcie-gadget
0002 Date:           Feb 2011
0003 KernelVersion:  2.6.37
0004 Contact:        Pratyush Anand <pratyush.anand@gmail.com>
0005 Description:
0006 
0007         Interface is used to configure selected dual mode PCIe controller
0008         as device and then program its various registers to configure it
0009         as a particular device type.
0010         This interfaces can be used to show spear's PCIe device capability.
0011 
0012         Nodes are only visible when configfs is mounted. To mount configfs
0013         in /config directory use::
0014 
0015           # mount -t configfs none /config/
0016 
0017         For nth PCIe Device Controller /config/pcie-gadget.n/:
0018 
0019         =============== ======================================================
0020         link            used to enable ltssm and read its status.
0021         int_type        used to configure and read type of supported interrupt
0022         no_of_msi       used to configure number of MSI vector needed and
0023                         to read no of MSI granted.
0024         inta            write 1 to assert INTA and 0 to de-assert.
0025         send_msi        write MSI vector to be sent.
0026         vendor_id       used to write and read vendor id (hex)
0027         device_id       used to write and read device id (hex)
0028         bar0_size       used to write and read bar0_size
0029         bar0_address    used to write and read bar0 mapped area in hex.
0030         bar0_rw_offset  used to write and read offset of bar0 where bar0_data
0031                         will be written or read.
0032         bar0_data       used to write and read data at bar0_rw_offset.
0033         =============== ======================================================