€•SCŒ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Œ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”…””}”(hhõhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:kishon@ti.com”uh1hóhhë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]).”…””}”(hj!hž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”…””}”(hj2hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj/hž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:”…””}”(hj@hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1héhŸh³h Khj/hžhubhŒ literal_block”“”)”}”(hŒ)mount -t configfs none /sys/kernel/config”h]”hŒ)mount -t configfs none /sys/kernel/config”…””}”hjPsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1jNhŸh³h Khj/hž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”…””}”(hjihžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjfhž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 ”…””}”(hjwhžhhŸNh NubhŒemphasis”“”)”}”(hŒ *controllers*”h]”hŒ controllers”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjwubhŒP directory and every EPF driver present in the system will have an entry in the ”…””}”(hjwhžhhŸNh Nubj€)”}”(hŒ *functions*”h]”hŒ functions”…””}”(hj“hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjwubhŒ directory.”…””}”(hjwhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1héhŸh³h KhjfhžhubjO)”}”(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²uh1jNhŸh³h Khjfhž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žhubjO)”}”(hX/sys/kernel/config/pci_ep/functions/ .. / ... / ... / ... / .. / ... / ... /”h]”hX/sys/kernel/config/pci_ep/functions/ .. / ... / ... / ... / .. / ... / ... /”…””}”hjàsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1jNhŸ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 .”…””}”(hjîhž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)”…””}”(hjühžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1héhŸh³h K6hjÁhžhubjO)”}”(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/ ... /”…””}”hj sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1jNhŸ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 a 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 a 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”…””}”(hj?hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj<hž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.”…””}”(hjMhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1héhŸh³h K^hj<hžhubjO)”}”(hX>/sys/kernel/config/pci_ep/controllers/ .. / ... / ... / ... start .. / ... / ... / ... start”h]”hX>/sys/kernel/config/pci_ep/controllers/ .. / ... / ... / ... start .. / ... / ... / ... start”…””}”hj[sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1jNhŸh³h Kbhj<hž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 a 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 a EPC device.”…””}”(hjihžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1héhŸh³h Klhj<hž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 ”…””}”(hjwhžhhŸNh Nubj€)”}”(hŒ*start*”h]”hŒstart”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjwubhŒÐ 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.”…””}”(hjwhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1héhŸh³h Kqhj<hžhubjO)”}”(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²uh1jNhŸh³h Kwhj<hž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Šhj<hž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½jcj`j¾j»j9j6j¸jµuŒ nametypes”}”(jÀ‰jc‰j¾‰j9‰j¸‰uh}”(j½h¶j`j/j»jfj6jÁjµj<uŒ 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.