2 * Copyright (C) 2016 ARM Limited, All Rights Reserved.
3 * Author: Marc Zyngier <marc.zyngier@arm.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include <linux/fwnode.h>
19 #include <linux/cpumask.h>
20 #include <linux/irqdomain.h>
22 struct partition_affinity
{
27 struct partition_desc
;
29 #ifdef CONFIG_PARTITION_PERCPU
30 int partition_translate_id(struct partition_desc
*desc
, void *partition_id
);
31 struct partition_desc
*partition_create_desc(struct fwnode_handle
*fwnode
,
32 struct partition_affinity
*parts
,
35 const struct irq_domain_ops
*ops
);
36 struct irq_domain
*partition_get_domain(struct partition_desc
*dsc
);
38 static inline int partition_translate_id(struct partition_desc
*desc
,
45 struct partition_desc
*partition_create_desc(struct fwnode_handle
*fwnode
,
46 struct partition_affinity
*parts
,
49 const struct irq_domain_ops
*ops
)
55 struct irq_domain
*partition_get_domain(struct partition_desc
*dsc
)