51Testing软件测试论坛

标题: 探讨驱动软件测试问题 [打印本页]

作者: addvalue    时间: 2006-5-20 14:08
标题: 探讨驱动软件测试问题
针对DMAC和I2C驱动如何来实施测试

[ 本帖最后由 addvalue 于 2006-5-20 14:09 编辑 ]
作者: addvalue    时间: 2006-5-20 14:11
标题: 附赠两本书
《linux device driver》
http://www.xml.com/ldd/chapter/book/index.html
另一份为总结的经验文章
作者: addvalue    时间: 2006-5-23 00:11
标题: 举例
触摸屏举例
作者: addvalue    时间: 2006-5-30 23:39
标题: 同步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
作者: voyix    时间: 2006-6-15 16:49
testing for linux device driver.rar 打不开哦.可否请版主换个新的..谢谢
作者: leopdong    时间: 2006-10-11 22:35
强烈要求换一个新的啊
作者: changlang530    时间: 2007-7-27 13:39
正想学点Linux




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2