Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1137950
  • 博文数量: 241
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2279
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-27 19:53
个人简介

JustForFun

文章分类

全部博文(241)

文章存档

2023年(8)

2022年(2)

2021年(3)

2020年(30)

2019年(11)

2018年(27)

2017年(54)

2016年(83)

2015年(23)

我的朋友

发布时间:2016-11-25 16:16:43

///////////////////////////////////////////////////////////** * struct i2c_client - represent an I2C slave device * @flags: I2C_CLIENT_TEN indicates the device uses a ten bit chip address; *    I2C_CLIENT_PEC indicates it uses SMBus Packet Erro.........【阅读全文】

阅读(2475) | 评论(0) | 转发(0)

发布时间:2016-11-25 16:15:35

设备与驱动匹配1.match过程i2c_add_driver-->i2c_register_driver-->i2c_bus_type-->.match->i2c_device_match-->of_driver_match_device/i2c_match_id(比较i2c_driver->id_table->name和client->name,如果相同,则匹配上,匹配上之后,运行driver_register调用driver_probe_device进行设备与驱动绑定。),.........【阅读全文】

阅读(2050) | 评论(0) | 转发(0)

发布时间:2016-11-25 16:14:22

////////////////////////////////////////////////////////////////////////////// <arch/arm/mach-s3c6410/mach-smdk6410.c>static void __init smdk6410_machine_init(void){    unsigned int tmp;    s3c_i2c0_set_platdata(NULL);    //s3c_i2c1_set_platdata(NUL.........【阅读全文】

阅读(1419) | 评论(0) | 转发(0)

发布时间:2016-11-25 16:12:30

 i2c-dev.c - i2c-bus driver, char device interfacei2c-core.c这个文件实现了I2C核心的功能以及/proc/bus/i2c*接口。    i2c-dev.c实现了I2C适配器设备文件的功能,每一个I2C适配器都被分配一个设备。通过适配器访设备时的主设备号都为89,次设备号为0-255。I2c-dev.c并没有针对特定的设备而设计,.........【阅读全文】

阅读(1392) | 评论(0) | 转发(0)

发布时间:2016-11-25 16:10:11

  i2c-core.c这个文件实现了I2C核心的功能以及/proc/bus/i2c*接口。    i2c-dev.c实现了I2C适配器设备文件的功能,每一个I2C适配器都被分配一个设备。通过适配器访设备时的主设备号都为89,次设备号为0-255。I2c-dev.c并没有针对特定的设备而设计,只是提供了通用的read(),write(),和ioctl()等接口,应用.........【阅读全文】

阅读(1513) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册