diff options
Diffstat (limited to 'include/linux/ntb.h')
-rw-r--r-- | include/linux/ntb.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/ntb.h b/include/linux/ntb.h index b02f72bb8e32..f798e2afba88 100644 --- a/include/linux/ntb.h +++ b/include/linux/ntb.h | |||
@@ -522,10 +522,9 @@ static inline int ntb_mw_clear_trans(struct ntb_dev *ntb, int idx) | |||
522 | * @speed: OUT - The link speed expressed as PCIe generation number. | 522 | * @speed: OUT - The link speed expressed as PCIe generation number. |
523 | * @width: OUT - The link width expressed as the number of PCIe lanes. | 523 | * @width: OUT - The link width expressed as the number of PCIe lanes. |
524 | * | 524 | * |
525 | * Set the translation of a memory window. The peer may access local memory | 525 | * Get the current state of the ntb link. It is recommended to query the link |
526 | * through the window starting at the address, up to the size. The address | 526 | * state once after every link event. It is safe to query the link state in |
527 | * must be aligned to the alignment specified by ntb_mw_get_range(). The size | 527 | * the context of the link event callback. |
528 | * must be aligned to the size alignment specified by ntb_mw_get_range(). | ||
529 | * | 528 | * |
530 | * Return: One if the link is up, zero if the link is down, otherwise a | 529 | * Return: One if the link is up, zero if the link is down, otherwise a |
531 | * negative value indicating the error number. | 530 | * negative value indicating the error number. |
@@ -795,7 +794,7 @@ static inline int ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) | |||
795 | } | 794 | } |
796 | 795 | ||
797 | /** | 796 | /** |
798 | * ntb_peer_db_clear() - clear bits in the local doorbell register | 797 | * ntb_peer_db_clear() - clear bits in the peer doorbell register |
799 | * @ntb: NTB device context. | 798 | * @ntb: NTB device context. |
800 | * @db_bits: Doorbell bits to clear. | 799 | * @db_bits: Doorbell bits to clear. |
801 | * | 800 | * |