Skip to content
Snippets Groups Projects
Commit 5b0c9e1b authored by Drew Fustini's avatar Drew Fustini
Browse files

RISC-V: QoS: define properties of CBQRI controllers


Define data structure to represent the CBQRI properties that a driver
for an CBQRI-capable controller would discover during probe.

Each instance of a CBQRI-capable controller is added to a list that the
RISC-V CBQRI resctrl implementation will consume.

Co-developed-by: default avatarAdrien Ricciardi <aricciardi@baylibre.com>
Signed-off-by: default avatarAdrien Ricciardi <aricciardi@baylibre.com>
Signed-off-by: default avatarDrew Fustini <dfustini@baylibre.com>
parent 3cce09e5
No related branches found
No related tags found
No related merge requests found
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __LINUX_RISCV_QOS_H
#define __LINUX_RISCV_QOS_H
#include <linux/iommu.h>
#include <linux/types.h>
#include <asm/qos.h>
enum cbqri_controller_type {
CBQRI_CONTROLLER_TYPE_CAPACITY,
CBQRI_CONTROLLER_TYPE_BANDWIDTH,
CBQRI_CONTROLLER_TYPE_UNKNOWN
};
struct cbqri_controller_info {
unsigned long addr;
unsigned long size;
enum cbqri_controller_type type;
u32 rcid_count;
u32 mcid_count;
struct list_head list;
struct cache_controller {
int cache_level;
u32 cache_size; /* in bytes */
struct cpumask cpu_mask;
} cache;
};
extern struct list_head cbqri_controllers;
#endif /* __LINUX_RISCV_QOS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment