dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* CCI cache coherent interconnect support
|
|
*
|
|
* Copyright (C) 2013 ARM Ltd.
|
|
*/
|
|
|
|
#ifndef __LINUX_ARM_CCI_H
|
|
#define __LINUX_ARM_CCI_H
|
|
|
|
#include <linux/errno.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/arm-cci.h>
|
|
|
|
struct device_node;
|
|
|
|
#ifdef CONFIG_ARM_CCI
|
|
extern bool cci_probed(void);
|
|
#else
|
|
static inline bool cci_probed(void) { return false; }
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARM_CCI400_PORT_CTRL
|
|
extern int cci_ace_get_port(struct device_node *dn);
|
|
extern int cci_disable_port_by_cpu(u64 mpidr);
|
|
extern int __cci_control_port_by_device(struct device_node *dn, bool enable);
|
|
extern int __cci_control_port_by_index(u32 port, bool enable);
|
|
#else
|
|
static inline int cci_ace_get_port(struct device_node *dn)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
static inline int cci_disable_port_by_cpu(u64 mpidr) { return -ENODEV; }
|
|
static inline int __cci_control_port_by_device(struct device_node *dn,
|
|
bool enable)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
static inline int __cci_control_port_by_index(u32 port, bool enable)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
|
|
void cci_enable_port_for_self(void);
|
|
|
|
#define cci_disable_port_by_device(dev) \
|
|
__cci_control_port_by_device(dev, false)
|
|
#define cci_enable_port_by_device(dev) \
|
|
__cci_control_port_by_device(dev, true)
|
|
#define cci_disable_port_by_index(dev) \
|
|
__cci_control_port_by_index(dev, false)
|
|
#define cci_enable_port_by_index(dev) \
|
|
__cci_control_port_by_index(dev, true)
|
|
|
|
#endif
|