Lines Matching full:ipc
3 * Driver for the Intel SCU IPC mechanism
9 * core through IPC mechanism which in turn messaging between IA core ad SCU.
10 * SCU has two IPC mechanism IPC-1 and IPC-2. IPC-1 is used between IA32 and
11 * SCU where IPC-2 is used between P-Unit and SCU. This driver delas with
12 * IPC-1 Driver provides an API for power control unit registers (e.g. MSIC)
29 /* IPC defines the following message types */
38 * IPC register summary
40 * IPC register blocks are memory mapped at fixed address of PCI BAR 0.
41 * To read or write information to the SCU, driver writes to IPC-1 memory
42 * mapped registers. The following is the IPC mechanism
48 * the IPC-1 register block, causing an interrupt to the SCU
50 * 3. SCU firmware decodes this interrupt and IPC message and the appropriate
54 #define IPC_WWBUF_SIZE 20 /* IPC Write buffer Size */
55 #define IPC_RWBUF_SIZE 20 /* IPC Read buffer Size */
56 #define IPC_IOC 0x100 /* IPC command register IOC bit */
73 * IPC Write/Read Buffers:
90 * intel_scu_ipc_dev_get() - Get SCU IPC instance
92 * The recommended new API takes SCU IPC instance as parameter and this
94 * sure the driver providing the IPC functionality cannot be unloaded
99 * Returns %NULL if SCU IPC is not currently available.
108 * Prevent the IPC provider from being unloaded while it in intel_scu_ipc_dev_get()
122 * intel_scu_ipc_dev_put() - Put SCU IPC instance
123 * @scu: SCU IPC instance
125 * This function releases the SCU IPC instance retrieved from
126 * intel_scu_ipc_dev_get() and allows the driver providing IPC to be
151 * devm_intel_scu_ipc_dev_get() - Allocate managed SCU IPC device
152 * @dev: Device requesting the SCU IPC device
154 * The recommended new API takes SCU IPC instance as parameter and this
156 * sure the driver providing the IPC functionality cannot be unloaded
159 * Returns %NULL if SCU IPC is not currently available.
184 * Send ipc command
197 * Write ipc data
198 * IPC Write Buffer (Write Only):
199 * 16-byte buffer for sending data associated with IPC command to
209 * Driver will read this register to get the ready/busy status of the IPC
210 * block and error status of the IPC command that was just processed by SCU
219 /* Read ipc u32 data */
239 /* Wait till ipc ioc interrupt is received or timeout in 10 HZ */
333 * @scu: Optional SCU IPC instance
350 * @scu: Optional SCU IPC instance
367 * @scu: Optional SCU IPC instance
388 * @scu: Optional SCU IPC instance
409 * @scu: Optional SCU IPC instance
432 * @scu: Optional SCU IPC instance
459 dev_err(&scu->dev, "IPC command %#x failed with %d\n", cmdval, err); in intel_scu_ipc_dev_simple_command()
466 * @scu: Optional SCU IPC instance
471 * @size: Input size written to the IPC command register in whatever
506 dev_err(&scu->dev, "IPC command %#x failed with %d\n", cmdval, err); in intel_scu_ipc_dev_command_with_size()
550 * __intel_scu_ipc_register() - Register SCU IPC device
552 * @scu_data: Data used to configure SCU IPC
553 * @owner: Module registering the SCU IPC device
555 * Call this function to register SCU IPC mechanism under @parent.
556 * Returns pointer to the new SCU IPC device or ERR_PTR() in case of
558 * SCU IPC calls itself.
572 /* We support only one IPC */ in __intel_scu_ipc_register()
610 * releasing the SCU IPC resources once refcount drops to zero. in __intel_scu_ipc_register()
634 * intel_scu_ipc_unregister() - Unregister SCU IPC
635 * @scu: SCU IPC handle
637 * This unregisters the SCU IPC device and releases the acquired
660 * __devm_intel_scu_ipc_register() - Register managed SCU IPC device
662 * @scu_data: Data used to configure SCU IPC
663 * @owner: Module registering the SCU IPC device
665 * Call this function to register managed SCU IPC mechanism under
666 * @parent. Returns pointer to the new SCU IPC device or ERR_PTR() in
668 * to do SCU IPC calls itself.