Skip to content

Commit 8e3c024

Browse files
lipengfei28xiaoxiang781216
authored andcommitted
msi_set:Message Control Register for MSI:bit3:bit1 used for
Multiple Message Capable Signed-off-by: lipengfei28 <[email protected]>
1 parent 9d425eb commit 8e3c024

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

drivers/pci/pci_epc.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,11 @@ int pci_epc_get_msi(FAR struct pci_epc_ctrl_s *epc, uint8_t funcno)
380380
* Description:
381381
* Set the number of MSI interrupt numbers required.
382382
*
383-
* Message Control Register for MSI:bit6-bit4:Multiple Message Enable
384-
* Software writes to this field to indicate the number of allocate vectors
385-
* Equal to or less than the number of requested vectors. The number of
386-
* allocated vectors is aligned to a power of two. If a Function requests
387-
* four vectors (indicated by a Multiple Message Capable encoding of
388-
* 010b), system software can allocate either four, two, or one vector
389-
* by writing a 010b, 001b, or 000b to this field, respectively. When
390-
* MSI Enable is Set, a Function will be allocated at least 1 vector
383+
* Message Control Register for MSI:bit3-bit1:System software reads this
384+
* field to determine the number of requested vectors. The number of
385+
* requested vectors must be aligned to a power of two (if a Function
386+
* requires three vectors, it requests four by initializing this field
387+
* to 010b).
391388
*
392389
* Invoke to set the required number of MSI interrupts.
393390
*

0 commit comments

Comments
 (0)