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

TOMOYO Linux Cross Reference
Linux/include/linux/wkup_m3_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-only */
  2 /*
  3  * TI Wakeup M3 for AMx3 SoCs Power Management Routines
  4  *
  5  * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
  6  * Dave Gerlach <d-gerlach@ti.com>
  7  */
  8 
  9 #ifndef _LINUX_WKUP_M3_IPC_H
 10 #define _LINUX_WKUP_M3_IPC_H
 11 
 12 #define WKUP_M3_DEEPSLEEP       1
 13 #define WKUP_M3_STANDBY         2
 14 #define WKUP_M3_IDLE            3
 15 
 16 #include <linux/mailbox_client.h>
 17 
 18 struct wkup_m3_ipc_ops;
 19 
 20 struct wkup_m3_ipc {
 21         struct rproc *rproc;
 22 
 23         void __iomem *ipc_mem_base;
 24         struct device *dev;
 25 
 26         int mem_type;
 27         unsigned long resume_addr;
 28         int vtt_conf;
 29         int isolation_conf;
 30         int state;
 31         u32 halt;
 32 
 33         unsigned long volt_scale_offsets;
 34         const char *sd_fw_name;
 35 
 36         struct completion sync_complete;
 37         struct mbox_client mbox_client;
 38         struct mbox_chan *mbox;
 39 
 40         struct wkup_m3_ipc_ops *ops;
 41         int is_rtc_only;
 42         struct dentry *dbg_path;
 43 };
 44 
 45 struct wkup_m3_wakeup_src {
 46         int irq_nr;
 47         char src[10];
 48 };
 49 
 50 struct wkup_m3_scale_data_header {
 51         u16 magic;
 52         u8 sleep_offset;
 53         u8 wake_offset;
 54 } __packed;
 55 
 56 struct wkup_m3_ipc_ops {
 57         void (*set_mem_type)(struct wkup_m3_ipc *m3_ipc, int mem_type);
 58         void (*set_resume_address)(struct wkup_m3_ipc *m3_ipc, void *addr);
 59         int (*prepare_low_power)(struct wkup_m3_ipc *m3_ipc, int state);
 60         int (*finish_low_power)(struct wkup_m3_ipc *m3_ipc);
 61         int (*request_pm_status)(struct wkup_m3_ipc *m3_ipc);
 62         const char *(*request_wake_src)(struct wkup_m3_ipc *m3_ipc);
 63         void (*set_rtc_only)(struct wkup_m3_ipc *m3_ipc);
 64 };
 65 
 66 struct wkup_m3_ipc *wkup_m3_ipc_get(void);
 67 void wkup_m3_ipc_put(struct wkup_m3_ipc *m3_ipc);
 68 void wkup_m3_set_rtc_only_mode(void);
 69 #endif /* _LINUX_WKUP_M3_IPC_H */
 70 

~ [ 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