acpi:LNXPWRBN:
     #�_’I|¥‰ÓMjqØ‚¦ð¬÷ÁÈ      #File not found.
     %ˆÇÆƒÁ{ÅÁÈ     %/* SPDX-License-Identifier: GPL-2.0
 *
 * Copyright (C) 2020 Gateworks Corporation
 */
#ifndef __LINUX_MFD_GSC_H_
#define __LINUX_MFD_GSC_H_

#include <linux/regmap.h>

/* Device Addresses */
#define GSC_MISC	0x20
#define GSC_UPDATE	0x21
#define GSC_GPIO	0x23
#define GSC_HWMON	0x29
#define GSC_EEPROM0	0x50
#define GSC_EEPROM1	0x51
#define GSC_EEPROM2	0x52
#define GSC_EEPROM3	0x53
#define GSC_RTC		0x68

/* Register offsets */
enum {
	GSC_CTRL_0	= 0x00,
	GSC_CTRL_1	= 0x01,
	GSC_TIME	= 0x02,
	GSC_TIME_ADD	= 0x06,
	GSC_IRQ_STATUS	= 0x0A,
	GSC_IRQ_ENABLE	= 0x0B,
	GSC_FW_CRC	= 0x0C,
	GSC_FW_VER	= 0x0E,
	GSC_WP		= 0x0F,
};

/* Bit definitions */
#define GSC_CTRL_0_PB_HARD_RESET	0
#define GSC_CTRL_0_PB_CLEAR_SECURE_KEY	1
#define GSC_CTRL_0_PB_SOFT_POWER_DOWN	2
#define GSC_CTRL_0_PB_BOOT_ALTERNATE	3
#define GSC_CTRL_0_PERFORM_CRC		4
#define GSC_CTRL_0_TAMPER_DETECT	5
#define GSC_CTRL_0_SWITCH_HOLD		6

#define GSC_CTRL_1_SLEEP_ENABLE		0
#define GSC_CTRL_1_SLEEP_ACTIVATE	1
#define GSC_CTRL_1_SLEEP_ADD		2
#define GSC_CTRL_1_SLEEP_NOWAKEPB	3
#define GSC_CTRL_1_WDT_TIME		4
#define GSC_CTRL_1_WDT_ENABLE		5
#define GSC_CTRL_1_SWITCH_BOOT_ENABLE	6
#define GSC_CTRL_1_SWITCH_BOOT_CLEAR	7

#define GSC_IRQ_PB			0
#define GSC_IRQ_KEY_ERASED		1
#define GSC_IRQ_EEPROM_WP		2
#define GSC_IRQ_RESV			3
#define GSC_IRQ_GPIO			4
#define GSC_IRQ_TAMPER			5
#define GSC_IRQ_WDT_TIMEOUT		6
#define GSC_IRQ_SWITCH_HOLD		7

int gsc_read(void *context, unsigned int reg, unsigned int *val);
int gsc_write(void *context, unsigned int reg, unsigned int val);

struct gsc_dev {
	struct device *dev;

	struct i2c_client *i2c;		/* 0x20: interrupt controller, WDT */
	struct i2c_client *i2c_hwmon;	/* 0x29: hwmon, fan controller */

	struct regmap *regmap;

	unsigned int fwver;
	unsigned short fwcrc;
};

#endif /* __LINUX_MFD_GSC_H_ */
  "   'ˆl–Ým_J*j"Tâ€vã/\JbÑ¿Çƒh¹ÂÉ      '1
  	   )ˆÈÇ0ÂÉ  #   +ˆÈÇƒmÆZÆa–Ým_J*j"Tâ€zàp©‹FÿÊ     +/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __IPC_NAMESPACE_H__
#define __IPC_NAMESPACE_H__

#include <linux/err.h>
#include <linux/idr.h>
#include <linux/rwsem.h>
#include <linux/notifier.h>
#include <linux/nsproxy.h>
#include <linux/ns_common.h>
#include <linux/refcount.h>
#include <linux/rhashtable-types.h>
#include <linux/sysctl.h>
#include <linux/percpu_counter.h>

struct user_namespace;

struct ipc_ids {
	int in_use;
	unsigned short seq;
	struct rw_semaphore rwsem;
	struct idr ipcs_idr;
	int max_idx;
	int last_idx;	/* For wrap around detection */
#ifdef CONFIG_CHECKPOINT_RESTORE
	int next_id;
#endif
	struct rhashtable key_ht;
};

struct ipc_namespace {
	struct ipc_ids	ids[3];

	int		sem_ctls[4];
	int		used_sems;

	unsigned int	msg_ctlmax;
	unsigned int	msg_ctlmnb;
	unsigned int	msg_ctlmni;
	struct percpu_counter percpu_msg_bytes;
	struct percpu_counter percpu_msg_hdrs;

	size_t		shm_ctlmax;
	size_t		shm_ctlall;
	unsigned long	shm_tot;
	int		shm_ctlmni;
	/*
	 * Defines whether IPC_RMID is forced for _all_ shm segments regardless
	 * of shmctl()
	 */
	int		shm_rmid_forced;

	struct notifier_block ipcns_nb;

	/* The kern_mount of the mqueuefs sb.  We take a ref on it */
	struct vfsmount	*mq_mnt;

	/* # queues in this ns, protected by mq_lock */
	unsigned int    mq_queues_count;

	/* next fields are set through sysctl */
	unsigned int    mq_queues_max;   /* initialized to DFLT_QUEUESMAX */
	unsigned int    mq_msg_max;      /* initialized to DFLT_MSGMAX */
	unsigned int    mq_msgsize_max;  /* initialized to DFLT_MSGSIZEMAX */
	unsigned int    mq_msg_default;
	unsigned int    mq_msgsize_default;

	struct ctl_table_set	mq_set;
	struct ctl_table_header	*mq_sysctls;

	struct ctl_table_set	ipc_set;
	struct ctl_table_header	*ipc_sysctls;

	/* user_ns which owns the ipc ns */
	struct user_namespace *user_ns;
	struct ucounts *ucounts;

	struct llist_node mnt_llist;

	struct ns_common ns;
} __randomize_layout;

extern struct ipc_namespace init_ipc_ns;
extern spinlock_t mq_lock;

#ifdef CONFIG_SYSVIPC
extern void shm_dest