mail list

做了这么久的Linux开发,读了这么多mail list,今天才第一次在mail list说话。说来惭愧,不过看到自己的post出现在list中,那种归属感无可比拟。纪念一下。

------------------------------

Message: 5
Date: Wed, 14 Apr 2010 14:34:04 +0800
From: Terren Chow <terren.chow@gmail.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: Questions about creating a OF platform device
Message-ID:
       <q2t9faa26521004132334ta3e05513u2b9b569c47fbe212@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear all,
   I'm new to PPC Linux development. Recently I'm learning how to write a
Linux device driver on MPC5121 based embedded system. I'm just confused
about the OF related code in the kernel.
   I know in the Linux device driver model, a driver is attached to a
device through the bus_type methods. For example, the  platform_driver is
attached to a platform device through the register_platform_driver() method.
This method will scan over the device list in the bus, and perform probe()
method when the match() method return ok.
  My question is, in PPC Linux, there is a structure named *
of_platform_driver* which is similar to *platform_driver* and there is also
a bus_type named *of_platform_bus_type* which is similar to *
platform_bus_type*. But I can't find any information about the structure
of_platform_device. How do the kernel create the of_platform_device and
place them into the device list in the *platform_bus_type* ? I search the
Internet and I can't find any information about this.Could anyone give me
some information so that I can find out the magic behind. Thanks!

--
Terren.Chow
College of Informatics, SCAU
Graduate Student
Lab of Embedded System and Wireless Sensor Network
MSN: terren.chow@hotmail.com


[本日志由 admin 于 2010-04-15 02:23 AM 编辑]
文章来自: 本站原创
引用通告地址: http://www.decell.org/trackback.asp?tbID=124
Tags:
评论: 0 | 引用: 0 | 查看次数: 199
发表评论
昵 称:
密 码: 游客发言不需要密码.
验证码:
内 容:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭