€•:DŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ1/translations/zh_CN/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ1/translations/zh_TW/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ1/translations/it_IT/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ1/translations/ja_JP/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ1/translations/ko_KR/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ1/translations/pt_BR/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ1/translations/sp_SP/PCI/endpoint/pci-endpoint-cfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒK/var/lib/git/docbuild/linux/Documentation/PCI/endpoint/pci-endpoint-cfs.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ'Configuring PCI Endpoint Using CONFIGFS”h]”hŒ'Configuring PCI Endpoint Using CONFIGFS”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ field_list”“”)”}”(hhh]”hŒfield”“”)”}”(hhh]”(hŒ field_name”“”)”}”(hŒAuthor”h]”hŒAuthor”…””}”(hhéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hçhhäh³hÇh´KubhŒ field_body”“”)”}”(hŒ'Kishon Vijay Abraham I ”h]”hŒ paragraph”“”)”}”(hŒ&Kishon Vijay Abraham I ”h]”(hŒKishon Vijay Abraham I <”…””}”(hhÿh²hh³Nh´NubhŒ reference”“”)”}”(hŒ kishon@ti.com”h]”hŒ kishon@ti.com”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:kishon@ti.com”uh1jhhÿubhŒ>”…””}”(hhÿh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khhùubah}”(h]”h ]”h"]”h$]”h&]”uh1h÷hhäubeh}”(h]”h ]”h"]”h$]”h&]”uh1hâh³hÇh´Khhßh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhhÊh²hh³hÇh´Kubhþ)”}”(hŒôThe PCI Endpoint Core exposes configfs entry (pci_ep) to configure the PCI endpoint function and to bind the endpoint function with the endpoint controller. (For introducing other mechanisms to configure the PCI Endpoint Function refer to [1]).”h]”hŒôThe PCI Endpoint Core exposes configfs entry (pci_ep) to configure the PCI endpoint function and to bind the endpoint function with the endpoint controller. (For introducing other mechanisms to configure the PCI Endpoint Function refer to [1]).”…””}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´K hhÊh²hubhÉ)”}”(hhh]”(hÎ)”}”(hŒMounting configfs”h]”hŒMounting configfs”…””}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjCh²hh³hÇh´Kubhþ)”}”(hŒThe PCI Endpoint Core layer creates pci_ep directory in the mounted configfs directory. configfs can be mounted using the following command::”h]”hŒŒThe PCI Endpoint Core layer creates pci_ep directory in the mounted configfs directory. configfs can be mounted using the following command:”…””}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KhjCh²hubhŒ literal_block”“”)”}”(hŒ)mount -t configfs none /sys/kernel/config”h]”hŒ)mount -t configfs none /sys/kernel/config”…””}”hjdsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jbh³hÇh´KhjCh²hubeh}”(h]”Œmounting-configfs”ah ]”h"]”Œmounting configfs”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒDirectory Structure”h]”hŒDirectory Structure”…””}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjzh²hh³hÇh´Kubhþ)”}”(hXThe pci_ep configfs has two directories at its root: controllers and functions. Every EPC device present in the system will have an entry in the *controllers* directory and every EPF driver present in the system will have an entry in the *functions* directory. ::”h]”(hŒ‘The pci_ep configfs has two directories at its root: controllers and functions. Every EPC device present in the system will have an entry in the ”…””}”(hj‹h²hh³Nh´NubhŒemphasis”“”)”}”(hŒ *controllers*”h]”hŒ controllers”…””}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj‹ubhŒP directory and every EPF driver present in the system will have an entry in the ”…””}”(hj‹h²hh³Nh´Nubj”)”}”(hŒ *functions*”h]”hŒ functions”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj‹ubhŒ directory.”…””}”(hj‹h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khjzh²hubjc)”}”(hŒH/sys/kernel/config/pci_ep/ .. controllers/ .. functions/”h]”hŒH/sys/kernel/config/pci_ep/ .. controllers/ .. functions/”…””}”hj¿sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jbh³hÇh´Khjzh²hubeh}”(h]”Œdirectory-structure”ah ]”h"]”Œdirectory structure”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒCreating EPF Device”h]”hŒCreating EPF Device”…””}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÕh²hh³hÇh´K$ubhþ)”}”(hŒEvery registered EPF driver will be listed in controllers directory. The entries corresponding to EPF driver will be created by the EPF core. ::”h]”hŒEvery registered EPF driver will be listed in controllers directory. The entries corresponding to EPF driver will be created by the EPF core.”…””}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´K&hjÕh²hubjc)”}”(hX/sys/kernel/config/pci_ep/functions/ .. / ... / ... / ... / .. / ... / ... /”h]”hX/sys/kernel/config/pci_ep/functions/ .. / ... / ... / ... / .. / ... / ... /”…””}”hjôsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jbh³hÇh´K*hjÕh²hubhþ)”}”(hŒ~In order to create a of the type probed by , the user has to create a directory inside .”h]”hŒ~In order to create a of the type probed by , the user has to create a directory inside .”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´K3hjÕh²hubhþ)”}”(hŒíEvery directory consists of the following entries that can be used to configure the standard configuration header of the endpoint function. (These entries are created by the framework when any new is created) ::”h]”hŒêEvery directory consists of the following entries that can be used to configure the standard configuration header of the endpoint function. (These entries are created by the framework when any new is created)”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´K6hjÕh²hubjc)”}”(hX?.. / ... / ... vendorid ... deviceid ... revid ... progif_code ... subclass_code ... baseclass_code ... cache_line_size ... subsys_vendor_id ... subsys_id ... interrupt_pin ... / ... primary/ ... / ... secondary/ ... /”h]”hX?.. / ... / ... vendorid ... deviceid ... revid ... progif_code ... subclass_code ... baseclass_code ... cache_line_size ... subsys_vendor_id ... subsys_id ... interrupt_pin ... / ... primary/ ... / ... secondary/ ... /”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jbh³hÇh´K directory can have a list of symbolic links () to other . These symbolic links should be created by the user to represent the virtual functions that are bound to the physical function. In the above directory structure is a physical function and is a virtual function. An EPF device once it's linked to another EPF device, cannot be linked to an EPC device.”h]”hXºThe directory can have a list of symbolic links () to other . These symbolic links should be created by the user to represent the virtual functions that are bound to the physical function. In the above directory structure is a physical function and is a virtual function. An EPF device once it’s linked to another EPF device, cannot be linked to an EPC device.”…””}”(hj:h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KThjÕh²hubeh}”(h]”Œcreating-epf-device”ah ]”h"]”Œcreating epf device”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K$ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ EPC Device”h]”hŒ EPC Device”…””}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjPh²hh³hÇh´K\ubhþ)”}”(hŒEvery registered EPC device will be listed in controllers directory. The entries corresponding to EPC device will be created by the EPC core. ::”h]”hŒEvery registered EPC device will be listed in controllers directory. The entries corresponding to EPC device will be created by the EPC core.”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´K^hjPh²hubjc)”}”(hX>/sys/kernel/config/pci_ep/controllers/ .. / ... / ... / ... start .. / ... / ... / ... start”h]”hX>/sys/kernel/config/pci_ep/controllers/ .. / ... / ... / ... start .. / ... / ... / ... start”…””}”hjosbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jbh³hÇh´KbhjPh²hubhþ)”}”(hXThe directory will have a list of symbolic links to . These symbolic links should be created by the user to represent the functions present in the endpoint device. Only that represents a physical function can be linked to an EPC device.”h]”hXThe directory will have a list of symbolic links to . These symbolic links should be created by the user to represent the functions present in the endpoint device. Only that represents a physical function can be linked to an EPC device.”…””}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KlhjPh²hubhþ)”}”(hXThe directory will also have a *start* field. Once "1" is written to this field, the endpoint device will be ready to establish the link with the host. This is usually done after all the EPF devices are created and linked with the EPC device. ::”h]”(hŒ,The directory will also have a ”…””}”(hj‹h²hh³Nh´Nubj”)”}”(hŒ*start*”h]”hŒstart”…””}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j“hj‹ubhŒÐ field. Once “1†is written to this field, the endpoint device will be ready to establish the link with the host. This is usually done after all the EPF devices are created and linked with the EPC device.”…””}”(hj‹h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KqhjPh²hubjc)”}”(hX_| controllers/ | / | | start | functions/ | / | / | vendorid | deviceid | revid | progif_code | subclass_code | baseclass_code | cache_line_size | subsys_vendor_id | subsys_id | interrupt_pin | function”h]”hX_| controllers/ | / | | start | functions/ | / | / | vendorid | deviceid | revid | progif_code | subclass_code | baseclass_code | cache_line_size | subsys_vendor_id | subsys_id | interrupt_pin | function”…””}”hj«sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jbh³hÇh´KwhjPh²hubhþ)”}”(hŒ/[1] Documentation/PCI/endpoint/pci-endpoint.rst”h]”hŒ/[1] Documentation/PCI/endpoint/pci-endpoint.rst”…””}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KŠhjPh²hubeh}”(h]”Œ epc-device”ah ]”h"]”Œ epc device”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K\ubeh}”(h]”Œ'configuring-pci-endpoint-using-configfs”ah ]”h"]”Œ'configuring pci endpoint using configfs”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”júŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jÔjÑjwjtjÒjÏjMjJjÌjÉuŒ nametypes”}”(jÔ‰jw‰jÒ‰jM‰j̉uh}”(jÑhÊjtjCjÏjzjJjÕjÉjPuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.