google搜索 51Testing站内搜索                    软件测试门户 | 软件测试培 训 | 文章资料精选 | 软件测试论坛 | 软件测试博客 | 测试招聘求职 
打印

[求助] 探讨驱动软件测试问题

探讨驱动软件测试问题


针对DMAC和I2C驱动如何来实施测试

[ 本帖最后由 addvalue 于 2006-5-20 14:09 编辑 ]

TOP

附赠两本书


《linux device driver》
http://www.xml.com/ldd/chapter/book/index.html
另一份为总结的经验文章
附件: 您所在的用户组无法下载或查看附件

TOP

举例


触摸屏举例
附件: 您所在的用户组无法下载或查看附件

TOP

同步kernel专家研究的东西


Hi,
Hello.

We had a discussion a month ago or so. Since then we successfully implemented our w1 driver.
Bus master also and the family driver. The read data is correct so everything is fine.
My congratulation!
Will you push it upstream?
Now I want to implement a driver into the kernel which supposed to interpret the data from the w1 slave and provide it as a different format.
The w1 slave what i'm talking about is the ds2760 battery monitor chip.  
We can read the data from it through the sysfs. I need to implement also a battery driver which  will provide the usual battery interface from the data read from the ds2760.
Why not export data through sysfs and using any other interface in parallel?
There's no interface in the w1 core to:
1.) Ennumerate bus masters
2.) Ennumerate slaves for each busmaster
I'd need that because i have to call the read_block of my slave.
The question is if you wanted to implement anything like that or not. If yes, what's its progress, if no then I'll do it. If you don't have it, i'll do it and send the code for you also. You might want to apply the patch on the mainline kernel as well.
I have such an idea quite long.
Currently, when kernel connecor is almost in mainline, I will create it.
As you probably know, kernel connector is a netlink based interface,
which
allows easy connection userspace and kernelspae.
Some kind of an ioctl.
Using that interface I'm going to allow external modules/userspace
access
to the internal master/slave structures in the following way:
connector's message -> message type -> master/slave operations -> call
appropriate function.
Almost the same as ethtools for network drivers.
But it is long term solution.
Short one is to create some kind of get_master_by_name(), and export
through sysfs
list of master names.
When you have access to the w1_master structure, you can traverse
through ->slist list,
and get access to any slave.
Will it what you mean?
Thanks,

Szabolcs Gyurko

TOP

testing for linux device driver.rar 打不开哦.可否请版主换个新的..谢谢

TOP

强烈要求换一个新的啊

TOP

正想学点Linux

TOP

 
当前时区 GMT+8, 现在时间是 2008-10-14 08:37Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹