[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
kernels
/
4.18.0-553.56.1.el8_10.x86_64
/
include
/
acpi
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 platform
SET
[ DEL ]
📄 acbuffer.h
9,136 B
SET
[ EDIT ]
|
[ DEL ]
📄 acconfig.h
7,630 B
SET
[ EDIT ]
|
[ DEL ]
📄 acexcep.h
17,350 B
SET
[ EDIT ]
|
[ DEL ]
📄 acnames.h
2,238 B
SET
[ EDIT ]
|
[ DEL ]
📄 acoutput.h
16,758 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpi.h
1,363 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpi_bus.h
23,169 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpi_drivers.h
3,652 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpi_io.h
723 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpi_lpat.h
1,583 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpi_numa.h
903 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpiosxf.h
11,619 B
SET
[ EDIT ]
|
[ DEL ]
📄 acpixf.h
31,943 B
SET
[ EDIT ]
|
[ DEL ]
📄 acrestyp.h
19,972 B
SET
[ EDIT ]
|
[ DEL ]
📄 actbl.h
18,807 B
SET
[ EDIT ]
|
[ DEL ]
📄 actbl1.h
47,035 B
SET
[ EDIT ]
|
[ DEL ]
📄 actbl2.h
71,146 B
SET
[ EDIT ]
|
[ DEL ]
📄 actbl3.h
22,526 B
SET
[ EDIT ]
|
[ DEL ]
📄 actypes.h
43,204 B
SET
[ EDIT ]
|
[ DEL ]
📄 acuuid.h
3,520 B
SET
[ EDIT ]
|
[ DEL ]
📄 apei.h
1,438 B
SET
[ EDIT ]
|
[ DEL ]
📄 battery.h
594 B
SET
[ EDIT ]
|
[ DEL ]
📄 button.h
401 B
SET
[ EDIT ]
|
[ DEL ]
📄 cppc_acpi.h
5,077 B
SET
[ EDIT ]
|
[ DEL ]
📄 ghes.h
3,485 B
SET
[ EDIT ]
|
[ DEL ]
📄 hed.h
371 B
SET
[ EDIT ]
|
[ DEL ]
📄 nfit.h
351 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcc.h
972 B
SET
[ EDIT ]
|
[ DEL ]
📄 pdc_intel.h
1,048 B
SET
[ EDIT ]
|
[ DEL ]
📄 processor.h
12,115 B
SET
[ EDIT ]
|
[ DEL ]
📄 reboot.h
201 B
SET
[ EDIT ]
|
[ DEL ]
📄 video.h
3,218 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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/cpufreq.h> #include <linux/types.h> #include <acpi/pcc.h> #include <acpi/processor.h> /* CPPCv2 and CPPCv3 support */ #define CPPC_V2_REV 2 #define CPPC_V3_REV 3 #define CPPC_V2_NUM_ENT 21 #define CPPC_V3_NUM_ENT 23 #define PCC_CMD_COMPLETE_MASK (1 << 0) #define PCC_ERROR_MASK (1 << 2) #define MAX_CPC_REG_ENT 21 /* 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 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, LOWEST_FREQ, NOMINAL_FREQ, }; /* * 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; u32 lowest_freq; u32 nominal_freq; u32 energy_perf; bool auto_sel; }; struct cppc_perf_ctrls { u32 max_perf; u32 min_perf; u32 desired_perf; u32 energy_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 { struct list_head node; struct cppc_perf_caps perf_caps; struct cppc_perf_ctrls perf_ctrls; struct cppc_perf_fb_ctrs perf_fb_ctrs; unsigned int shared_type; cpumask_var_t shared_cpu_map; }; #ifdef CONFIG_ACPI_CPPC_LIB extern int cppc_get_desired_perf(int cpunum, u64 *desired_perf); extern int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf); 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_set_enable(int cpu, bool enable); extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps); extern bool acpi_cpc_valid(void); extern bool cppc_allow_fast_switch(void); extern int acpi_get_psd_map(unsigned int cpu, struct cppc_cpudata *cpu_data); extern unsigned int cppc_get_transition_latency(int cpu); extern bool cpc_supported_by_cpu(void); extern int cppc_get_epp_perf(int cpunum, u64 *epp_perf); extern int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable); extern int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps); extern int cppc_set_auto_sel(int cpu, bool enable); #else /* !CONFIG_ACPI_CPPC_LIB */ static inline int cppc_get_desired_perf(int cpunum, u64 *desired_perf) { return -ENOTSUPP; } static inline int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf) { return -ENOTSUPP; } static inline int cppc_get_perf_ctrs(int cpu, struct cppc_perf_fb_ctrs *perf_fb_ctrs) { return -ENOTSUPP; } static inline int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) { return -ENOTSUPP; } static inline int cppc_set_enable(int cpu, bool enable) { return -ENOTSUPP; } static inline int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps) { return -ENOTSUPP; } static inline bool acpi_cpc_valid(void) { return false; } static inline bool cppc_allow_fast_switch(void) { return false; } static inline unsigned int cppc_get_transition_latency(int cpu) { return CPUFREQ_ETERNAL; } static inline int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable) { return -ENOTSUPP; } static inline int cppc_get_epp_perf(int cpunum, u64 *epp_perf) { return -ENOTSUPP; } static inline int cppc_set_auto_sel(int cpu, bool enable) { return -ENOTSUPP; } static inline int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps) { return -ENOTSUPP; } #endif /* !CONFIG_ACPI_CPPC_LIB */ #endif /* _CPPC_ACPI_H*/