blob: f9740d065fe7d75542268582be5441d5538ffae5 [file] [log] [blame]
Benjamin Herrenschmidtc6dbaef2006-11-11 17:18:39 +11001/*
2 * Arch specific extensions to struct device
3 *
4 * This file is released under the GPLv2
5 */
David S. Millere865f3e2007-07-18 20:59:54 -07006#ifndef _ASM_SPARC_DEVICE_H
7#define _ASM_SPARC_DEVICE_H
8
Grant Likely1636f8a2010-06-18 11:09:58 -06009#include <asm/openprom.h>
10
David S. Millere865f3e2007-07-18 20:59:54 -070011struct device_node;
12struct of_device;
13
14struct dev_archdata {
David S. Millerad7ad572007-07-27 22:39:14 -070015 void *iommu;
16 void *stc;
17 void *host_controller;
David S. Millere865f3e2007-07-18 20:59:54 -070018 struct of_device *op;
David S. Millerc1b1a5f2008-03-19 04:52:48 -070019 int numa_node;
David S. Millere865f3e2007-07-18 20:59:54 -070020};
21
Magnus Dammd7aacad2009-07-08 13:21:31 +020022struct pdev_archdata {
Grant Likely1636f8a2010-06-18 11:09:58 -060023 struct resource resource[PROMREG_MAX];
24 unsigned int irqs[PROMINTR_MAX];
25 int num_irqs;
Magnus Dammd7aacad2009-07-08 13:21:31 +020026};
27
David S. Millere865f3e2007-07-18 20:59:54 -070028#endif /* _ASM_SPARC_DEVICE_H */