^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Arch specific extensions to struct device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #ifndef _ASM_SPARC_DEVICE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #define _ASM_SPARC_DEVICE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <asm/openprom.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) struct device_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct platform_device;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct dev_archdata {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void *iommu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) void *stc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void *host_controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct platform_device *op;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int numa_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) void of_propagate_archdata(struct platform_device *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct pdev_archdata {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct resource resource[PROMREG_MAX];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) unsigned int irqs[PROMINTR_MAX];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) int num_irqs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif /* _ASM_SPARC_DEVICE_H */