p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/acpi/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/acpi/cppc_acpi.h
/*
 * CPPC (Collaborative Processor Performance Control) methods used
 * by CPUfreq drivers.
 *
 * (C) Copyright 2014, 2015 Linaro Ltd.
 * Author: Ashwin Chaugule <ashwin.chaugule@linaro.org>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License.
 */

#ifndef _CPPC_ACPI_H
#define _CPPC_ACPI_H

#include <linux/acpi.h>
#include <linux/mailbox_controller.h>
#include <linux/mailbox_client.h>
#include <linux/types.h>

#include <acpi/processor.h>

/* Only support CPPCv2 for now. */
#define CPPC_NUM_ENT	21
#define CPPC_REV	2

#define PCC_CMD_COMPLETE_MASK	(1 << 0)
#define PCC_ERROR_MASK		(1 << 2)

#define MAX_CPC_REG_ENT 19

/* CPPC specific PCC commands. */
#define	CMD_READ 0
#define	CMD_WRITE 1

/* Each register has the folowing format. */
struct cpc_reg {
	u8 descriptor;
	u16 length;
	u8 space_id;
	u8 bit_width;
	u8 bit_offset;
	u8 access_width;
	u64 __iomem address;
} __packed;

/*
 * Each entry in the CPC table is either
 * of type ACPI_TYPE_BUFFER or
 * ACPI_TYPE_INTEGER.
 */
struct cpc_register_resource {
	acpi_object_type type;
	u64 __iomem *sys_mem_vaddr;
	union {
		struct cpc_reg reg;
		u64 int_value;
	} cpc_entry;
};

/* Container to hold the CPC details for each CPU */
struct cpc_desc {
	int num_entries;
	int version;
	int cpu_id;
	int write_cmd_status;
	int write_cmd_id;
	struct cpc_register_resource cpc_regs[MAX_CPC_REG_ENT];
	struct acpi_psd_package domain_info;
	struct kobject kobj;
};

/* These are indexes into the per-cpu cpc_regs[]. Order is important. */
enum cppc_regs {
	HIGHEST_PERF,
	NOMINAL_PERF,
	LOW_NON_LINEAR_PERF,
	LOWEST_PERF,
	GUARANTEED_PERF,
	DESIRED_PERF,
	MIN_PERF,
	MAX_PERF,
	PERF_REDUC_TOLERANCE,
	TIME_WINDOW,
	CTR_WRAP_TIME,
	REFERENCE_CTR,
	DELIVERED_CTR,
	PERF_LIMITED,
	ENABLE,
	AUTO_SEL_ENABLE,
	AUTO_ACT_WINDOW,
	ENERGY_PERF,
	REFERENCE_PERF,
};

/*
 * Categorization of registers as described
 * in the ACPI v.5.1 spec.
 * XXX: Only filling up ones which are used by governors
 * today.
 */
struct cppc_perf_caps {
	u32 guaranteed_perf;
	u32 highest_perf;
	u32 nominal_perf;
	u32 lowest_perf;
	u32 lowest_nonlinear_perf;
};

struct cppc_perf_ctrls {
	u32 max_perf;
	u32 min_perf;
	u32 desired_perf;
};

struct cppc_perf_fb_ctrs {
	u64 reference;
	u64 delivered;
	u64 reference_perf;
	u64 wraparound_time;
};

/* Per CPU container for runtime CPPC management. */
struct cppc_cpudata {
	int cpu;
	struct cppc_perf_caps perf_caps;
	struct cppc_perf_ctrls perf_ctrls;
	struct cppc_perf_fb_ctrs perf_fb_ctrs;
	struct cpufreq_policy *cur_policy;
	unsigned int shared_type;
	cpumask_var_t shared_cpu_map;
};

extern int cppc_get_perf_ctrs(int cpu, struct cppc_perf_fb_ctrs *perf_fb_ctrs);
extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls);
extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps);
extern int acpi_get_psd_map(struct cppc_cpudata **);
extern unsigned int cppc_get_transition_latency(int cpu);

/* Methods to interact with the PCC mailbox controller. */
extern struct mbox_chan *
	pcc_mbox_request_channel(struct mbox_client *, unsigned int);
extern int mbox_send_message(struct mbox_chan *chan, void *mssg);

#endif /* _CPPC_ACPI_H*/
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
platform
--
January 19 2024 08:12:48
0 / 0
0755
acbuffer.h
9.829 KB
November 06 2023 09:15:52
0 / 0
0644
acconfig.h
7.993 KB
November 06 2023 09:15:52
0 / 0
0644
acexcep.h
16.965 KB
November 06 2023 09:15:52
0 / 0
0644
acnames.h
3.473 KB
November 06 2023 09:15:52
0 / 0
0644
acoutput.h
16.756 KB
November 06 2023 09:15:52
0 / 0
0644
acpi.h
3.069 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_bus.h
17.805 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_drivers.h
4.869 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_io.h
0.447 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_numa.h
0.455 KB
November 06 2023 09:15:52
0 / 0
0644
acpiosxf.h
11.634 KB
November 06 2023 09:15:52
0 / 0
0644
acpixf.h
21.214 KB
November 06 2023 09:15:52
0 / 0
0644
acrestyp.h
17.52 KB
November 06 2023 09:15:52
0 / 0
0644
actbl.h
18.491 KB
November 06 2023 09:15:52
0 / 0
0644
actbl1.h
34.657 KB
November 06 2023 09:15:52
0 / 0
0644
actbl2.h
38.014 KB
November 06 2023 09:15:52
0 / 0
0644
actbl3.h
15.959 KB
November 06 2023 09:15:52
0 / 0
0644
actypes.h
40.166 KB
November 06 2023 09:15:52
0 / 0
0644
acuuid.h
3.978 KB
November 06 2023 09:15:52
0 / 0
0644
apei.h
1.082 KB
November 06 2023 09:15:52
0 / 0
0644
button.h
0.568 KB
November 06 2023 09:15:52
0 / 0
0644
cppc_acpi.h
3.215 KB
November 06 2023 09:15:52
0 / 0
0644
ghes.h
2.469 KB
November 06 2023 09:15:52
0 / 0
0644
hed.h
0.362 KB
November 06 2023 09:15:52
0 / 0
0644
nfit.h
0.343 KB
November 06 2023 09:15:52
0 / 0
0644
pdc_intel.h
0.985 KB
November 06 2023 09:15:52
0 / 0
0644
processor.h
9.425 KB
November 06 2023 09:15:52
0 / 0
0644
reboot.h
0.158 KB
November 06 2023 09:15:52
0 / 0
0644
video.h
1.577 KB
November 06 2023 09:15:52
0 / 0
0644