Files
kernel_arpi/include/linux
Serge Semin bc3e49adc2 NTB: Add Messaging NTB API
Some IDT NTB-capable PCIe-switches have message registers to communicate with
peer devices. This patch adds new NTB API callback methods, which can be used
to utilize these registers functionality:
 ntb_msg_count(); - get number of message registers
 ntb_msg_inbits(); - get bitfield of inbound message registers status
 ntb_msg_outbits(); - get bitfield of outbound message registers status
 ntb_msg_read_sts(); - read the inbound and outbound message registers status
 ntb_msg_clear_sts(); - clear status bits of message registers
 ntb_msg_set_mask(); - mask interrupts raised by status bits of message
registers.
 ntb_msg_clear_mask(); - clear interrupts mask bits of message registers
 ntb_msg_read(midx, *pidx); - read message register with specified index,
additionally getting peer port index which data received from
 ntb_msg_write(midx, pidx); - write data to the specified message register
sending it to the passed peer device connected over a pidx port
 ntb_msg_event(); - notify driver context of a new message event

Of course there is hardware which doesn't support Message registers, so
this API is made optional.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2017-07-06 11:30:07 -04:00
..
2017-04-21 10:45:01 -04:00
2017-04-28 18:09:59 -04:00
2017-04-26 23:54:06 -04:00
2017-05-24 12:43:30 -04:00
2017-04-18 20:41:12 +02:00
2017-04-27 05:13:04 -04:00
2017-05-25 13:44:28 -04:00
2017-05-12 15:57:15 -07:00
2017-05-08 17:15:12 -07:00
2017-05-03 15:52:10 -07:00
2017-06-19 21:50:20 +08:00
2017-04-24 14:30:46 -04:00
2017-04-26 13:03:04 -04:00
2017-07-06 11:30:07 -04:00
2017-05-09 16:43:23 +03:00
2017-05-03 15:52:10 -07:00
2017-05-08 17:15:12 -07:00
2017-05-09 16:43:22 +03:00