diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-27 17:43:18 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-02 18:12:48 +1000 |
commit | b93c30a70332544112edc1d7cee6ea78545b8fec (patch) | |
tree | 4889d077663e847bf4a2ca609cdd4eac2758b037 /doc/opal-api/opal-pci-set-mve-33.rst | |
parent | 24e7fd3aa79697c019f215e1dd1a270b1b014e89 (diff) | |
download | skiboot-b93c30a70332544112edc1d7cee6ea78545b8fec.zip skiboot-b93c30a70332544112edc1d7cee6ea78545b8fec.tar.gz skiboot-b93c30a70332544112edc1d7cee6ea78545b8fec.tar.bz2 |
doc/opal-api: rename .txt to .rst
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc/opal-api/opal-pci-set-mve-33.rst')
-rw-r--r-- | doc/opal-api/opal-pci-set-mve-33.rst | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/opal-api/opal-pci-set-mve-33.rst b/doc/opal-api/opal-pci-set-mve-33.rst new file mode 100644 index 0000000..f407d41 --- /dev/null +++ b/doc/opal-api/opal-pci-set-mve-33.rst @@ -0,0 +1,36 @@ +OPAL_PCI_SET_MVE +---------------- + +#define OPAL_PCI_SET_MVE 33 + +static int64_t opal_pci_set_mve(uint64_t phb_id, uint32_t mve_number, + uint32_t pe_number) + +WARNING: following documentation is from old sources, and is possibly +not representative of OPALv3 as implemented by skiboot. This should be +used as a starting point for full documentation. + +The host calls this function to bind a PE to an MSI Validation Table Entry +(MVE) in the PHB. The MVE compares the MSI requester (RID) to a PE RID, +including within the XIVE, to validate that the requester is authorized to +signal an interrupt to the associated DMA address for a message value that +selects a particular XIVE. + + The phb_id parameter is the value from the PHB node ibm,opal-phbid + property. + + The mve_number is the index, from 0 to ibm,opal,ibm-num-msi-ports minus1 + + the pe_number is the index of a PE, from 0 to ibm,opal-num-pes minus 1. + + This call maps an MVE to a PE and PE RID domain. OPAL uses the PELT to + determine the PE domain. OPAL treats this call as a NOP for IODA2 PHBs + and returns a status of OPAL_SUCCESS. + + +Return value: + + if (!phb) + return OPAL_PARAMETER; + if (!phb->ops->set_mve) + return OPAL_UNSUPPORTED; |