亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? i2c-old.h

?? ARM 嵌入式 系統(tǒng) 設(shè)計與實例開發(fā) 實驗教材 二源碼
?? H
字號:
#ifndef I2C_H#define I2C_H/* * linux i2c interface.  Works a little bit like the scsi subsystem. * There are: * *     i2c          the basic control module        (like scsi_mod) *     bus driver   a driver with a i2c bus         (hostadapter driver) *     chip driver  a driver for a chip connected *                  to a i2c bus                    (cdrom/hd driver) * * A device will be attached to one bus and one chip driver.  Every chip * driver gets a unique ID. * * A chip driver can provide a ioctl-like callback for the * communication with other parts of the kernel (not every i2c chip is * useful without other devices, a TV card tuner for example).  * * "i2c internal" parts of the structs: only the i2c module is allowed to * write to them, for others they are read-only. * */#include <linux/version.h>#define I2C_BUS_MAX       4    /* max # of bus drivers  */#define I2C_DRIVER_MAX    8    /* max # of chip drivers */#define I2C_DEVICE_MAX    8    /* max # if devices per bus/driver */struct i2c_bus;struct i2c_driver;struct i2c_device;#define I2C_DRIVERID_MSP3400    	 1#define I2C_DRIVERID_TUNER      	 2#define I2C_DRIVERID_VIDEOTEXT		 3#define I2C_DRIVERID_VIDEODECODER	 4#define I2C_DRIVERID_VIDEOENCODER	 5#define I2C_BUSID_BT848		1	/* I2C bus on a BT848 */#define I2C_BUSID_PARPORT	2	/* Bit banging on a parallel port */#define I2C_BUSID_BUZ		3#define I2C_BUSID_ZORAN		4#define I2C_BUSID_CYBER2000	5/* * struct for a driver for a i2c chip (tuner, soundprocessor, * videotext, ... ). * * a driver will register within the i2c module.  The i2c module will * callback the driver (i2c_attach) for every device it finds on a i2c * bus at the specified address.  If the driver decides to "accept" * the, device, it must return a struct i2c_device, and NULL * otherwise. * * i2c_detach = i2c_attach ** -1 *  * i2c_command will be used to pass commands to the driver in a * ioctl-line manner. * */struct i2c_driver {    char           name[32];         /* some useful label         */    int            id;               /* device type ID            */    unsigned char  addr_l, addr_h;   /* address range of the chip */    int (*attach)(struct i2c_device *device);    int (*detach)(struct i2c_device *device);    int (*command)(struct i2c_device *device,unsigned int cmd, void *arg);    /* i2c internal */    struct i2c_device   *devices[I2C_DEVICE_MAX];    int                 devcount;};/* * this holds the informations about a i2c bus available in the system. *  * a chip with a i2c bus interface (like bt848) registers the bus within * the i2c module. This struct provides functions to access the i2c bus. *  * One must hold the spinlock to access the i2c bus (XXX: is the irqsave * required? Maybe better use a semaphore?).  * [-AC-] having a spinlock_irqsave is only needed if we have drivers wishing *	  to bang their i2c bus from an interrupt. *  * attach/detach_inform is a callback to inform the bus driver about * attached chip drivers. * *//* needed: unsigned long flags */#if LINUX_VERSION_CODE >= 0x020100# if 0#  define LOCK_FLAGS unsigned long flags;#  define LOCK_I2C_BUS(bus)    spin_lock_irqsave(&(bus->bus_lock),flags);#  define UNLOCK_I2C_BUS(bus)  spin_unlock_irqrestore(&(bus->bus_lock),flags);# else#  define LOCK_FLAGS#  define LOCK_I2C_BUS(bus)    spin_lock(&(bus->bus_lock));#  define UNLOCK_I2C_BUS(bus)  spin_unlock(&(bus->bus_lock));# endif#else# define LOCK_FLAGS unsigned long flags;# define LOCK_I2C_BUS(bus)    { save_flags(flags); cli(); }# define UNLOCK_I2C_BUS(bus)  { restore_flags(flags);     }#endifstruct i2c_bus {	char  name[32];         /* some useful label */	int   id;	void  *data;            /* free for use by the bus driver */#if LINUX_VERSION_CODE >= 0x020100	spinlock_t bus_lock;#endif	/* attach/detach inform callbacks */	void    (*attach_inform)(struct i2c_bus *bus, int id);	void    (*detach_inform)(struct i2c_bus *bus, int id);	/* Software I2C */	void    (*i2c_setlines)(struct i2c_bus *bus, int ctrl, int data);	int     (*i2c_getdataline)(struct i2c_bus *bus);	/* Hardware I2C */	int     (*i2c_read)(struct i2c_bus *bus, unsigned char addr);	int     (*i2c_write)(struct i2c_bus *bus, unsigned char addr,			 unsigned char b1, unsigned char b2, int both);	/* internal data for i2c module */	struct i2c_device   *devices[I2C_DEVICE_MAX];	int                 devcount;};/* *	This holds per-device data for a i2c device */struct i2c_device {	char           name[32];         /* some useful label */	void           *data;            /* free for use by the chip driver */	unsigned char  addr;             /* chip addr */	/* i2c internal */	struct i2c_bus     *bus;	struct i2c_driver  *driver;};/* ------------------------------------------------------------------- *//* i2c module functions                                                *//* register/unregister a i2c bus */int i2c_register_bus(struct i2c_bus *bus);int i2c_unregister_bus(struct i2c_bus *bus);/* register/unregister a chip driver */int i2c_register_driver(struct i2c_driver *driver);int i2c_unregister_driver(struct i2c_driver *driver);/* send a command to a chip using the ioctl-like callback interface */int i2c_control_device(struct i2c_bus *bus, int id,		       unsigned int cmd, void *arg);/* i2c bus access functions */void    i2c_start(struct i2c_bus *bus);void    i2c_stop(struct i2c_bus *bus);void    i2c_one(struct i2c_bus *bus);void    i2c_zero(struct i2c_bus *bus);int     i2c_ack(struct i2c_bus *bus);int     i2c_sendbyte(struct i2c_bus *bus,unsigned char data,int wait_for_ack);unsigned char i2c_readbyte(struct i2c_bus *bus,int last);/* i2c (maybe) hardware functions */int     i2c_read(struct i2c_bus *bus, unsigned char addr);int     i2c_write(struct i2c_bus *bus, unsigned char addr,		  unsigned char b1, unsigned char b2, int both);int	i2c_init(void);#endif /* I2C_H */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产69精品久久久久777| 国产精品免费久久| 麻豆91在线播放| 日韩欧美在线影院| 国产精品一线二线三线精华| 国产午夜亚洲精品理论片色戒 | 亚洲国产你懂的| 欧美日韩精品三区| 裸体一区二区三区| 久久人人爽人人爽| av成人老司机| 亚洲国产精品久久久久秋霞影院| 91精品欧美一区二区三区综合在| 久久av中文字幕片| 国产精品久久久久aaaa樱花| 在线观看免费亚洲| 麻豆成人免费电影| 中文字幕第一区综合| 91豆麻精品91久久久久久| 日日夜夜一区二区| 国产欧美日韩亚州综合 | 日日夜夜免费精品视频| 久久久五月婷婷| av中文一区二区三区| 亚洲电影一级片| 26uuu国产电影一区二区| 色噜噜狠狠色综合中国| 麻豆一区二区99久久久久| 中文字幕在线观看一区| 91麻豆精品国产91久久久久久 | gogo大胆日本视频一区| 婷婷中文字幕一区三区| 久久精品免费在线观看| 欧美日韩一区二区三区高清| 国产精品123| 午夜不卡在线视频| 亚洲三级免费观看| 久久这里只精品最新地址| 在线精品视频免费播放| 国产精品一二二区| 午夜欧美一区二区三区在线播放| 国产色91在线| 91精品国产色综合久久不卡电影 | 欧美区一区二区三区| 成人免费视频免费观看| 蜜桃一区二区三区在线| 亚洲成人精品影院| 国产精品色眯眯| 精品久久人人做人人爰| 欧美日韩国产中文| 色天天综合久久久久综合片| 国产精品538一区二区在线| 日本欧美肥老太交大片| 亚洲综合色丁香婷婷六月图片| 国产日韩欧美a| 精品国产一区二区三区不卡 | 欧美性xxxxx极品少妇| 成人精品免费看| 黄色成人免费在线| 久久国产成人午夜av影院| 首页综合国产亚洲丝袜| 亚洲综合区在线| 亚洲精品老司机| 国产精品福利一区| 国产精品你懂的在线欣赏| 精品va天堂亚洲国产| 欧美一区二区精美| 欧美巨大另类极品videosbest| 欧美性大战久久久| 欧美日韩国产影片| 91精品婷婷国产综合久久竹菊| 欧美日韩在线直播| 欧美精品三级在线观看| 欧美日本国产视频| 欧美精品tushy高清| 91麻豆精品国产自产在线观看一区| 欧美精品色综合| 欧美一级视频精品观看| 日韩欧美国产综合| 精品成人一区二区| 中文字幕av一区二区三区免费看 | 中文字幕日本不卡| 亚洲日本乱码在线观看| 玉米视频成人免费看| 亚洲愉拍自拍另类高清精品| 一卡二卡三卡日韩欧美| 午夜久久久久久久久久一区二区| 午夜国产精品一区| 久久精品国产精品亚洲综合| 黄色日韩网站视频| 99在线精品视频| 91免费版pro下载短视频| 欧美探花视频资源| 91精品国产综合久久福利软件| 欧美一级黄色录像| 国产婷婷色一区二区三区四区 | 精品日韩在线一区| 国产喷白浆一区二区三区| 国产精品福利在线播放| 亚洲制服丝袜av| 美女www一区二区| 丁香婷婷综合网| 91高清视频免费看| 日韩欧美一区二区视频| 国产免费成人在线视频| 一区二区三区在线观看动漫| 日本不卡视频在线观看| 粉嫩高潮美女一区二区三区 | 午夜不卡av免费| 国产一区不卡在线| 一本大道综合伊人精品热热| 在线电影欧美成精品| 国产清纯白嫩初高生在线观看91| 一区二区三区在线视频免费 | 波波电影院一区二区三区| 欧美三级视频在线| 国产色产综合色产在线视频| 亚洲电影在线播放| 成人一级片网址| 欧美蜜桃一区二区三区| 中文字幕的久久| 麻豆精品在线视频| 欧美综合一区二区| 中文字幕欧美区| 三级欧美韩日大片在线看| 波多野结衣在线aⅴ中文字幕不卡| 337p亚洲精品色噜噜噜| 亚洲天堂免费看| 国内精品久久久久影院一蜜桃| 在线亚洲人成电影网站色www| 久久夜色精品一区| 亚洲国产精品久久不卡毛片| 99久久er热在这里只有精品15| 91精品欧美综合在线观看最新| 亚洲欧美激情视频在线观看一区二区三区| 日本不卡中文字幕| 色av综合在线| 欧美国产一区视频在线观看| 裸体在线国模精品偷拍| 欧美军同video69gay| 亚洲精品国产一区二区精华液| 国产一区二区电影| 欧美tickling网站挠脚心| 亚洲午夜影视影院在线观看| www.66久久| 国产午夜精品一区二区三区嫩草| 麻豆精品一区二区三区| 欧美一区二区三区在线电影| 亚洲一卡二卡三卡四卡无卡久久| 成人少妇影院yyyy| 国产欧美视频一区二区| 国产一区二区三区综合| 日韩视频在线永久播放| 亚洲国产另类av| 91福利国产精品| 一区二区免费视频| 91电影在线观看| 夜夜嗨av一区二区三区| 在线一区二区三区| 亚洲一区二区在线观看视频| 日本精品一区二区三区高清| 亚洲人成网站影音先锋播放| 99久久国产综合色|国产精品| 国产精品毛片a∨一区二区三区| 国产成人在线视频播放| 久久综合色综合88| 狠狠网亚洲精品| 久久久国际精品| 国产成a人亚洲精品| 国产精品欧美综合在线| 成人av在线影院| 亚洲日本在线视频观看| 欧洲色大大久久| 亚洲最大成人网4388xx| 欧美无砖专区一中文字| 亚洲成精国产精品女| 欧美日韩一二区| 亚洲成a人v欧美综合天堂下载| 欧美蜜桃一区二区三区| 热久久国产精品| 亚洲精品一区二区三区福利| 国产美女在线精品| 国产精品久久久久久久久快鸭| 99re在线视频这里只有精品| 尤物视频一区二区| 欧美日本免费一区二区三区| 开心九九激情九九欧美日韩精美视频电影| 日韩一区二区三区四区| 国产一二精品视频| 综合久久给合久久狠狠狠97色| 91女厕偷拍女厕偷拍高清| 亚洲国产wwwccc36天堂| 日韩一区二区免费在线电影| 久久99精品久久久久婷婷| 日本一区免费视频| 在线一区二区三区四区| 久久精品999| 中文av一区二区| 欧美日韩一级片在线观看| 国内不卡的二区三区中文字幕|