mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Masahiro Yamada](/assets/img/avatar_default.png)
Add a header include guard just in case. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2016 ARM Limited, All Rights Reserved.
|
|
* Author: Marc Zyngier <marc.zyngier@arm.com>
|
|
*/
|
|
|
|
#ifndef __LINUX_IRQCHIP_IRQ_PARTITION_PERCPU_H
|
|
#define __LINUX_IRQCHIP_IRQ_PARTITION_PERCPU_H
|
|
|
|
#include <linux/fwnode.h>
|
|
#include <linux/cpumask.h>
|
|
#include <linux/irqdomain.h>
|
|
|
|
struct partition_affinity {
|
|
cpumask_t mask;
|
|
void *partition_id;
|
|
};
|
|
|
|
struct partition_desc;
|
|
|
|
#ifdef CONFIG_PARTITION_PERCPU
|
|
int partition_translate_id(struct partition_desc *desc, void *partition_id);
|
|
struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode,
|
|
struct partition_affinity *parts,
|
|
int nr_parts,
|
|
int chained_irq,
|
|
const struct irq_domain_ops *ops);
|
|
struct irq_domain *partition_get_domain(struct partition_desc *dsc);
|
|
#else
|
|
static inline int partition_translate_id(struct partition_desc *desc,
|
|
void *partition_id)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
|
|
static inline
|
|
struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode,
|
|
struct partition_affinity *parts,
|
|
int nr_parts,
|
|
int chained_irq,
|
|
const struct irq_domain_ops *ops)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline
|
|
struct irq_domain *partition_get_domain(struct partition_desc *dsc)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __LINUX_IRQCHIP_IRQ_PARTITION_PERCPU_H */
|