日期:2014-05-16 浏览次数:20745 次
1 struct platform_device {
2 const char * name;
3 int id;
4 struct device dev;
5 u32 num_resources;
6 struct resource * resource;
7
8 const struct platform_device_id *id_entry;
9
10 /* arch specific additions */
11 struct pdev_archdata archdata;
12 };
其中的resource是platform驱动用到的资源,它是定义在<include/linux/ioport.h>中:
1 struct resource {
2