Lines Matching +full:port +full:- +full:mapping +full:- +full:mode

1 /*-
41 * ntb_link_event() - notify driver context of a change in link status
50 * ntb_db_event() - notify driver context of a doorbell event
65 * ntb_port_number() - get the local port number
68 * Hardware driver returns local port number in compliance with topology.
70 * Return: the local port number
75 * ntb_port_count() - get the number of peer device ports
85 * ntb_peer_port_number() - get the peer port by given index
87 * @idx: Peer port index (should be zero for now).
92 * Return: the peer device port or an error number
97 * ntb_peer_port_idx() - get the peer device port index by given port
100 * @port: Peer port number
103 * valid peer port number, the return value shall be zero.
105 * Return: the peer port index or an error number
107 int ntb_peer_port_idx(device_t ntb, int port);
110 * ntb_link_is_up() - get the current ntb link state
112 * @speed: OUT - The link speed expressed as PCIe generation number
113 * @width: OUT - The link width expressed as the number of PCIe lanes
120 * ntb_link_enable() - enable the link on the secondary side of the ntb
138 * ntb_link_disable() - disable the link on the secondary side of the ntb
157 * ntb_set_ctx() - associate a driver context with an ntb device
171 * ntb_set_ctx() - get a driver context associated with an ntb device
180 * ntb_clear_ctx() - disassociate any driver context from an ntb device
189 * ntb_mw_count() - Get the number of memory windows available for KPI
197 * ntb_mw_get_range() - get the range of a memory window
200 * @base: OUT - the base address for mapping the memory window
201 * @size: OUT - the size for mapping the memory window
202 * @align: OUT - the base alignment for translating the memory window
203 * @align_size: OUT - the size alignment for translating the memory window
207 * mapping the memory window, to access the peer memory. The alignment and
218 * ntb_mw_set_trans() - set the translation of a memory window
229 * 32-bit BARs).
237 * ntb_mw_clear_trans() - clear the translation of a memory window
249 * ntb_mw_get_wc - Get the write-combine status of a memory window
254 * Mode is a VM_MEMATTR_* type.
256 int ntb_mw_get_wc(device_t ntb, unsigned mw_idx, vm_memattr_t *mode);
259 * ntb_mw_set_wc - Set the write-combine status of a memory window
261 * If 'mode' matches the current status, this does nothing and succeeds. Mode
265 * mapping of the BAR; otherwise an error number (e.g. if idx is an invalid
268 int ntb_mw_set_wc(device_t ntb, unsigned mw_idx, vm_memattr_t mode);
271 * ntb_spad_count() - get the total scratch regs usable
282 * ntb_spad_clear() - zero local scratch registers
290 * ntb_spad_write() - write to the secondary scratchpad register
303 * ntb_spad_read() - read from the primary scratchpad register
316 * ntb_peer_spad_write() - write to the secondary scratchpad register
329 * ntb_peer_spad_read() - read from the primary scratchpad register
342 * ntb_db_valid_mask() - get a mask of doorbell bits supported by the ntb
352 * ntb_db_vector_count() - get the number of doorbell interrupt vectors
362 * ntb_db_vector_mask() - get a mask of doorbell bits serviced by a vector
373 * ntb_peer_db_addr() - address and size of the peer doorbell register
375 * @db_addr: OUT - The address of the peer doorbell register.
376 * @db_size: OUT - The number of bytes to write the peer doorbell register.
394 * ntb_db_clear() - clear bits in the local doorbell register
406 * ntb_db_clear_mask() - clear bits in the local doorbell mask
422 * ntb_db_read() - read the local doorbell register
432 * ntb_db_set_mask() - set bits in the local doorbell mask
445 * ntb_peer_db_set() - Set the doorbell on the secondary/external side