~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/intel_scu_ipc.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ASM_X86_INTEL_SCU_IPC_H_
  3 #define  _ASM_X86_INTEL_SCU_IPC_H_
  4 
  5 #include <linux/ioport.h>
  6 
  7 struct device;
  8 struct intel_scu_ipc_dev;
  9 
 10 /**
 11  * struct intel_scu_ipc_data - Data used to configure SCU IPC
 12  * @mem: Base address of SCU IPC MMIO registers
 13  * @irq: The IRQ number used for SCU (optional)
 14  */
 15 struct intel_scu_ipc_data {
 16         struct resource mem;
 17         int irq;
 18 };
 19 
 20 struct intel_scu_ipc_dev *
 21 __intel_scu_ipc_register(struct device *parent,
 22                          const struct intel_scu_ipc_data *scu_data,
 23                          struct module *owner);
 24 
 25 #define intel_scu_ipc_register(parent, scu_data)  \
 26         __intel_scu_ipc_register(parent, scu_data, THIS_MODULE)
 27 
 28 void intel_scu_ipc_unregister(struct intel_scu_ipc_dev *scu);
 29 
 30 struct intel_scu_ipc_dev *
 31 __devm_intel_scu_ipc_register(struct device *parent,
 32                               const struct intel_scu_ipc_data *scu_data,
 33                               struct module *owner);
 34 
 35 #define devm_intel_scu_ipc_register(parent, scu_data)  \
 36         __devm_intel_scu_ipc_register(parent, scu_data, THIS_MODULE)
 37 
 38 struct intel_scu_ipc_dev *intel_scu_ipc_dev_get(void);
 39 void intel_scu_ipc_dev_put(struct intel_scu_ipc_dev *scu);
 40 struct intel_scu_ipc_dev *devm_intel_scu_ipc_dev_get(struct device *dev);
 41 
 42 int intel_scu_ipc_dev_ioread8(struct intel_scu_ipc_dev *scu, u16 addr,
 43                               u8 *data);
 44 int intel_scu_ipc_dev_iowrite8(struct intel_scu_ipc_dev *scu, u16 addr,
 45                                u8 data);
 46 int intel_scu_ipc_dev_readv(struct intel_scu_ipc_dev *scu, u16 *addr,
 47                             u8 *data, size_t len);
 48 int intel_scu_ipc_dev_writev(struct intel_scu_ipc_dev *scu, u16 *addr,
 49                              u8 *data, size_t len);
 50 
 51 int intel_scu_ipc_dev_update(struct intel_scu_ipc_dev *scu, u16 addr,
 52                              u8 data, u8 mask);
 53 
 54 int intel_scu_ipc_dev_simple_command(struct intel_scu_ipc_dev *scu, int cmd,
 55                                      int sub);
 56 int intel_scu_ipc_dev_command_with_size(struct intel_scu_ipc_dev *scu, int cmd,
 57                                         int sub, const void *in, size_t inlen,
 58                                         size_t size, void *out, size_t outlen);
 59 
 60 static inline int intel_scu_ipc_dev_command(struct intel_scu_ipc_dev *scu, int cmd,
 61                                             int sub, const void *in, size_t inlen,
 62                                             void *out, size_t outlen)
 63 {
 64         return intel_scu_ipc_dev_command_with_size(scu, cmd, sub, in, inlen,
 65                                                    inlen, out, outlen);
 66 }
 67 
 68 #endif
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php