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)
27 /* IPC defines the following message types */
36 * IPC register summary
38 * IPC register blocks are memory mapped at fixed address of PCI BAR 0.
39 * To read or write information to the SCU, driver writes to IPC-1 memory
40 * mapped registers. The following is the IPC mechanism
46 * the IPC-1 register block, causing an interrupt to the SCU
48 * 3. SCU firmware decodes this interrupt and IPC message and the appropriate
52 #define IPC_WWBUF_SIZE 20 /* IPC Write buffer Size */
53 #define IPC_RWBUF_SIZE 20 /* IPC Read buffer Size */
54 #define IPC_IOC 0x100 /* IPC command register IOC bit */
71 * IPC Write/Read Buffers:
89 * intel_scu_ipc_dev_get() - Get SCU IPC instance
91 * The recommended new API takes SCU IPC instance as parameter and this
93 * sure the driver providing the IPC functionality cannot be unloaded
98 * 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()
123 * intel_scu_ipc_dev_put() - Put SCU IPC instance
124 * @scu: SCU IPC instance
126 * This function releases the SCU IPC instance retrieved from
127 * intel_scu_ipc_dev_get() and allows the driver providing IPC to be
152 * devm_intel_scu_ipc_dev_get() - Allocate managed SCU IPC device
153 * @dev: Device requesting the SCU IPC device
155 * The recommended new API takes SCU IPC instance as parameter and this
157 * sure the driver providing the IPC functionality cannot be unloaded
160 * Returns %NULL if SCU IPC is not currently available.
185 * Send ipc command
198 * Write ipc data
199 * IPC Write Buffer (Write Only):
200 * 16-byte buffer for sending data associated with IPC command to
210 * Driver will read this register to get the ready/busy status of the IPC
211 * block and error status of the IPC command that was just processed by SCU
220 /* Read ipc byte data */
226 /* Read ipc u32 data */
250 /* Wait till ipc ioc interrupt is received or timeout in 10 HZ */
325 * @scu: Optional SCU IPC instance
342 * @scu: Optional SCU IPC instance
359 * @scu: Optional SCU IPC instance
380 * @scu: Optional SCU IPC instance
401 * @scu: Optional SCU IPC instance
424 * @scu: Optional SCU IPC instance
454 dev_err(&scu->dev, "IPC command %#x failed with %d\n", cmdval, err); in intel_scu_ipc_dev_simple_command()
461 * @scu: Optional SCU IPC instance
466 * @size: Input size written to the IPC command register in whatever
514 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.
570 /* We support only one IPC */ in __intel_scu_ipc_register()
613 * releasing the SCU IPC resources once refcount drops to zero. in __intel_scu_ipc_register()
641 * intel_scu_ipc_unregister() - Unregister SCU IPC
642 * @scu: SCU IPC handle
644 * This unregisters the SCU IPC device and releases the acquired
667 * __devm_intel_scu_ipc_register() - Register managed SCU IPC device
669 * @scu_data: Data used to configure SCU IPC
670 * @owner: Module registering the SCU IPC device
672 * Call this function to register managed SCU IPC mechanism under
673 * @parent. Returns pointer to the new SCU IPC device or ERR_PTR() in
675 * to do SCU IPC calls itself.