Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Arch specific extensions to struct device
0004  */
0005 #ifndef _ASM_SPARC_DEVICE_H
0006 #define _ASM_SPARC_DEVICE_H
0007 
0008 #include <asm/openprom.h>
0009 
0010 struct device_node;
0011 struct platform_device;
0012 
0013 struct dev_archdata {
0014     void            *iommu;
0015     void            *stc;
0016     void            *host_controller;
0017     struct platform_device  *op;
0018     int         numa_node;
0019 };
0020 
0021 void of_propagate_archdata(struct platform_device *bus);
0022 
0023 struct pdev_archdata {
0024     struct resource     resource[PROMREG_MAX];
0025     unsigned int        irqs[PROMINTR_MAX];
0026     int         num_irqs;
0027 };
0028 
0029 #endif /* _ASM_SPARC_DEVICE_H */