Lines Matching +full:mailbox +full:-
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
13 /* PF Mailbox Registers */
32 /* VF Mailbox Registers */
43 /* PF/VF Mailbox state machine
45 * +----------+ connect() +----------+
46 * | CLOSED | --------------> | CONNECT |
47 * +----------+ +----------+
54 * +----------+ disconnect() +----------+
55 * |DISCONNECT| <-------------- | OPEN |
56 * +----------+ +----------+
58 * The diagram above describes the PF/VF mailbox state machine. There
60 * Closed: This state represents a mailbox that is in a standby state
61 * with interrupts disabled. In this state the mailbox should not
62 * read the mailbox or write any data. The only means of exiting
64 * mailbox, it will then transition to the connect state.
65 * Connect: In this state the mailbox is seeking a connection. It will
67 * wait for a reply from the other side of the mailbox. This state
68 * is exited when either a connect with the local mailbox as the
71 * Open: In this state the mailbox is able to transfer data between the local
75 * Disconnect: In this state the mailbox is attempting to gracefully terminate
87 /* PF/VF Mailbox header format
90 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
92 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
95 * mailbox. The header is broken out into the following fields:
97 * 0x8: Data header - used to transport message data
98 * 0xC: Connect header - used to establish connection
99 * 0xD: Disconnect header - used to tear down a connection
100 * 0xE: Error header - used to address message exceptions
105 * To get the actual mailbox offset based on the tail it
107 * gives us a valid range of 0x1 - 0xE.
110 * Rsvd0: Reserved 0 portion of the mailbox header
112 * Size: Maximum message size - Applies only to connect headers
114 * jamming the mailbox with messages that do not fit.
115 * Err_no: Error number - Applies only to error headers
122 ((0x1u << FM10K_MSG_##name##_SIZE) - 1)
157 /* HNI/SM Mailbox FIFO format
160 * +-------+-----------------------+-------+-----------------------+
162 * +-------+-----------------------+-------+-----------------------+
166 * +-------+-----------------------+-------+-----------------------+
173 * HNI FIFO in the mailbox ops as the offset between the two is fixed.
177 * Version: Version info for mailbox, only values of 0/1 are supported.
184 #define FM10K_SM_MBX_FIFO_LEN (FM10K_MBMEM_PF_XOR - 1)
196 /* All error messages returned by mailbox functions
197 * The value -511 is 0xFE01 in hex. The idea is to order the errors
198 * from 0xFE01 - 0xFEFF so error codes are easily visible in the mailbox
200 * doesn't appear to use error numbers 256 - 511.
202 #define FM10K_MBX_ERR(_n) ((_n) - 512)
236 /* size of buffer to be stored in mailbox for FIFOs */
244 ((FM10K_MBX_TX_BUFFER_SIZE - 1) & (FM10K_MBX_RX_BUFFER_SIZE - 1))
245 #define FM10K_VFMBX_MSG_MTU ((FM10K_VFMBMEM_LEN / 2) - 1)
247 #define FM10K_MBX_INIT_TIMEOUT 2000 /* number of retries on mailbox */
251 /* function pointers for mailbox operations */
263 /* mailbox state info */
271 /* result of last mailbox test */