2019-06-01 17:08:42 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2006-11-11 15:18:39 +09:00
|
|
|
/*
|
|
|
|
* Arch specific extensions to struct device
|
|
|
|
*/
|
2007-07-19 12:59:54 +09:00
|
|
|
#ifndef _ASM_SPARC_DEVICE_H
|
|
|
|
#define _ASM_SPARC_DEVICE_H
|
|
|
|
|
2010-06-19 02:09:58 +09:00
|
|
|
#include <asm/openprom.h>
|
|
|
|
|
2007-07-19 12:59:54 +09:00
|
|
|
struct device_node;
|
2010-06-19 02:09:59 +09:00
|
|
|
struct platform_device;
|
2007-07-19 12:59:54 +09:00
|
|
|
|
|
|
|
struct dev_archdata {
|
2007-07-28 14:39:14 +09:00
|
|
|
void *iommu;
|
|
|
|
void *stc;
|
|
|
|
void *host_controller;
|
2010-06-19 02:09:59 +09:00
|
|
|
struct platform_device *op;
|
2008-03-19 20:52:48 +09:00
|
|
|
int numa_node;
|
2007-07-19 12:59:54 +09:00
|
|
|
};
|
|
|
|
|
2014-05-17 06:25:50 +09:00
|
|
|
void of_propagate_archdata(struct platform_device *bus);
|
2010-06-30 02:15:54 +09:00
|
|
|
|
2009-07-08 20:21:31 +09:00
|
|
|
struct pdev_archdata {
|
2010-06-19 02:09:58 +09:00
|
|
|
struct resource resource[PROMREG_MAX];
|
|
|
|
unsigned int irqs[PROMINTR_MAX];
|
|
|
|
int num_irqs;
|
2009-07-08 20:21:31 +09:00
|
|
|
};
|
|
|
|
|
2007-07-19 12:59:54 +09:00
|
|
|
#endif /* _ASM_SPARC_DEVICE_H */
|