在大部分情况下,设备的memory和IRQ资源不足够让驱动正常工作。board setup code会用device的platform_data域来为设备提供一些额外的资源。
嵌入式系统上的设备会频繁地使用一个或者多个时钟,这些时钟因为节电的原因只有在真正使用的时候才会被打开,系统在启动过程中会为设备分配时钟,可以通过clk_get(&pdev->dev, clock_name)来获得需要的时钟。
可以使用platform_device_alloc动态地创建一个设备,一个更好的方法是,通过下面的函数动态创建一个设备,并把这个设备注册到系统中:
struct platform_device *platform_device_register_simple(
const char *name,
int id,
struct resource *res,
unsigned int nres
);
分享到:
相关推荐
10 <br/>2. Eclipse Platform.. 12 <br/>2.1概觀... 12 <br/>2.2架構... 12 <br/>2.3專案與資料夾... 13 <br/>2.4平台核心... 13 <br/>2.5工作區(workspace) 14 <br/>2.6工作台(workbench) 14 <br/>2.6.1視圖(View)...
Advanced Programming for the Java 2 Platform.chm<br>里边有很多不怎么为人所知的东西,时常参考,还是蛮有好处的<br>Chapter 1: Matching Project Requirements with Technology <br><br>Project Requirements ...
This book has existed (in one form or another) since the first edition of C# and the .NET Platform<br>was published in conjunction with the release of .NET 1.0 Beta 2, circa the summer of 2001. Since...
security to Swing.<br>Cay Horstmann identifies the problems experienced Java platform<br>developers encounter most often, and delivers insightful, expert-level<br>guidance for addressing them-...
<br>目录: <br>第1章 嵌入式系统的介绍 1<br>1-1 嵌入式系统概述 2<br>1-1-1 嵌入式系统的组成 3<br>1-1-2 典型的嵌入式系统 6<br>1-1-3 嵌入式系统的发展趋势 7<br>1-2 信息家电 9<br>1-2-1 信息家电的兴起 10<br...
<br> 下载安装顺序: <br> 首先下载安装 <br> 【Android 4.1 SDK Tools 20.0.1】 http://download.csdn.net/detail/joe9i0/4462908 <br> 然后下载以下包解压到SDK Tools的安装目录 <br> 【ARM EABI v7a System ...
lcdd2 = port:PD02<2><0><2><default> lcdd3 = port:PD03<2><0><2><default> lcdd4 = port:PD04<2><0><2><default> lcdd5 = port:PD05<2><0><2><default> lcdd6 = port:PD06<2><0><2><default> lcdd7 = port:PD07<2>...
分布式定时任务概述使用说明添加依赖<version>${最新版本}</version>增加 Zookeeper 注册中心的配置开启自动配置只需要在 Spring
[ "x${PLATFORM}" = "xsun50iw2p1" ] || \ [ "x${PLATFORM}" = "xsun50iw6p1" ] || \ [ "x${PLATFORM}" = "xsun50iw3p1" ] || \ [ "x${PLATFORM}" = "xsun8iw12p1" ] || \ [ "x${PLATFORM}" = "xsun8iw10p1" ] ...
ReadTestquestion<br>7.5. 课程设计作业<br>第8章 日历记事本<br>8.1. ...2<br>第9章 学籍管理系统<br>9.1. 设计内容<br>9.2. 设计要求<br>9.3. 总体设计<br>9.4. 具体设计<br>9.4.1. 运行效果与程序发布<br>9.4.2. ...
JavaTM 2 Platform, Enterprise Edition, v 1.3<br>API Specification <br>Compiled to .CHM by 貀vind Stegard<br>Packages <br>javax.activation <br>javax.ejb <br>javax.ejb.spi <br>javax.jms <br>javax.mail ...
* 编译和运行环境<br> * Visual C++6.0,Visual C++.net and Visual C++.net 2003<br> * WinNT,Win2000,WinXP and Win2003<br> * 2gcc version 3.3.2 20031022(Red Hat Linux 3.3.2-1)<br> * Redhat Fedora core 1<br...
1,01.zip<br>Dialogs in DLL<br>在DLL中实现对话框(5KB)<END><br>2,02.zip<br>Export dialogs in MFC Extension DLLs<br>在MFC扩充DLL中输出对话框(12KB)<END><br>3,03.zip<br>Remapping resource script ID's<br>...
将编译的结果命名为bootsector并且拷贝到codes/bin<br>codes/minios/platform/platform.asm必须用masm32进行编译,编译的结果在codes/minios/platform/platform.obj<br>其余的代码都用vc6编译即可,vc6的工程在codes...
References <br> <br> Chapter 2. Getting Started Fast <br> Section 2.1. Installing mod_perl 1.0 in Three Steps <br> Section 2.2. Installing mod_perl on Unix Platforms <br> Section 2.3. Configuring and...
NetBeans™ IDE Field Guide: Developing Desktop, Web, ...client applications based on the NetBeans Platform<br><br>Chat and share code with other developers using the NetBeans Collaboration Modules<br>
2018\09\10 周一 17:27 <DIR> Power Framework (PoFx) Sample (UMDF Version 2) 2018\09\10 周一 17:27 <DIR> Print Auto Configuration Sample 2018\09\10 周一 17:27 <DIR> Print Driver Constraints Sample 2018\...
<p>(2) 商品管理</P> <p>◆ 添加商品类别;最新网上购物系统 </P> <p>◆ 修改商品类别;</P> <p>◆ 删除商品最新网上购物系统 类别。</P> <p>◆ 添加商品信息,包括商品类别、名称、编最新网上购物系统 号、所属公司...
Mac OS X, Linux, or a handheld<br>gaming device, this book is a great place to start learning OpenGL, and how to make<br>the most of it on your specific platform. The majority of the book is highly ...
plus Java developers with a basic all-in-one programming reference<br>* Covers the recent release of the Java 2 Platform Standard Edition 5.0 and the new J2SE Development Kit 5.0<br>* Starts with ...