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

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

?? eeprom_iic.c

?? EEPROM驅(qū)動(dòng)---MIPS平臺
?? C
?? 第 1 頁 / 共 2 頁
字號:
/************************************************************************ * *      EEPROM_IIC.c * *      The 'EEPROM_IIC' module implements the EEPROM with IIC-bus access  *      device driver as an IO device with following services: * *        1) init  device:  configure and initialize EEPROM driver *        2) open  device:  not used *        3) close device:  not used *        4) read  device:  read EEPROM device *        5) write device:  write EEPROM device *        6) ctrl  device:  not used * * * ###################################################################### * * mips_start_of_legal_notice *  * Copyright (c) 2006 MIPS Technologies, Inc. All rights reserved. * * * Unpublished rights (if any) reserved under the copyright laws of the * United States of America and other countries. * * This code is proprietary to MIPS Technologies, Inc. ("MIPS * Technologies"). Any copying, reproducing, modifying or use of this code * (in whole or in part) that is not expressly permitted in writing by MIPS * Technologies or an authorized third party is strictly prohibited. At a * minimum, this code is protected under unfair competition and copyright * laws. Violations thereof may result in criminal penalties and fines. * * MIPS Technologies reserves the right to change this code to improve * function, design or otherwise. MIPS Technologies does not assume any * liability arising out of the application or use of this code, or of any * error or omission in such code. Any warranties, whether express, * statutory, implied or otherwise, including but not limited to the implied * warranties of merchantability or fitness for a particular purpose, are * excluded. Except as expressly provided in any written license agreement * from MIPS Technologies or an authorized third party, the furnishing of * this code does not give recipient any license to any intellectual * property rights, including any patent rights, that cover this code. * * This code shall not be exported, reexported, transferred, or released, * directly or indirectly, in violation of the law of any country or * international law, regulation, treaty, Executive Order, statute, * amendments or supplements thereto. Should a conflict arise regarding the * export, reexport, transfer, or release of this code, the laws of the * United States of America shall be the governing law. * * This code constitutes one or more of the following: commercial computer * software, commercial computer software documentation or other commercial * items. If the user of this code, or any related documentation of any * kind, including related technical data or manuals, is an agency, * department, or other entity of the United States government * ("Government"), the use, duplication, reproduction, release, * modification, disclosure, or transfer of this code, or any related * documentation of any kind, is restricted in accordance with Federal * Acquisition Regulation 12.212 for civilian agencies and Defense Federal * Acquisition Regulation Supplement 227.7202 for military agencies. The use * of this code by the Government is further restricted in accordance with * the terms of the license agreement(s) and/or applicable contract terms * and conditions covering this code from MIPS Technologies or an authorized * third party. * * * *  * mips_end_of_legal_notice *  * ************************************************************************//************************************************************************ *      Include files ************************************************************************/#include <sysdefs.h>#include <syserror.h>#include <sysdev.h>#include <string.h>#include <io_api.h>#include <syscon_api.h>#include <iic_api.h>#include <eeprom_api.h>#include <eeprom_iic_api.h>/************************************************************************ *      Definitions ************************************************************************//*    Device context per EEPROM                                                                        */typedef struct EEPROM_IIC_device{    UINT32  size ;           /* size of EEPROM device                   */    UINT32  pagesize ;       /* pagesize of EEPROM device               */    UINT8   iicadr ;         /* IIC-slave base address                  */    UINT8   mode ;           /* read-only or read-write                 */} t_EEPROM_IIC_device ;#define EEPROM_READ_ONLY_MODE    0x42#define EEPROM_READ_WRITE_MODE   0x43/************************************************************************ *      NM24C09 EEPROM profile  ************************************************************************/#define EEPROM_NM24C09_SIZE          1024#define EEPROM_NM24C09_PAGESIZE      256/************************************************************************ *      SPD EEPROM profile of PC-SDRAM ************************************************************************/#define EEPROM_SPD_SIZE              256#define EEPROM_SPD_PAGESIZE          256/************************************************************************ *  Macro Definitions*************************************************************************//************************************************************************ *      Public variables ************************************************************************//************************************************************************ *      Static variables ************************************************************************//*  EEPROM device context*/statict_EEPROM_IIC_device device[EEPROM_MINOR_DEVICE_COUNT] ;/*  Temporary buffer for read and write operations */static UINT8  iic_buffer[EEPROM_NM24C09_PAGESIZE+4] ;/* Error strings */static char* error_strings[] ={    /* ERROR_EEPROM_COMM_ERROR */         "I2C communication error detected",    /* ERROR_EEPROM_UNKNOWN_DEVICE */     "Unknown device",    /* ERROR_EEPROM_PARAM_OUT_OF_SPACE */ "Address space out of range",    /* ERROR_EEPROM_READ_ONLY */          "EEPROM is read-only"};/************************************************************************ *      Static function prototypes ************************************************************************//************************************************************************ * *                          EEPROM_IIC_init *  Description : *  ------------- *  This service initializes the EEPROM IIC driver. *   * *  Parameters : *  ------------ * *  'major',     IN,    major device number *  'minor',     IN,    not used *  'p_param',   INOUT, not used * * *  Return values : *  --------------- * *  'OK'(=0) * * * ************************************************************************/staticINT32 EEPROM_IIC_init(          UINT32 major,          /* IN: major device number             */          UINT32 minor,          /* IN: minor device number             */          void   *p_param ) ;    /* INOUT: device parameter block       *//************************************************************************ * *                          EEPROM_IIC_read *  Description : *  ------------- *  This service reads data from a specified location of a specified *  EEPROM device. * *  Parameters : *  ------------ * *  'major',     IN,    major device number *  'minor',     IN,    minor device number for multi device drivers *  'p_param',   INOUT, variable of type, t_EEPROM_read_descriptor. * * *  Return values : *  --------------- * *  'OK'(=0) * * ************************************************************************/staticINT32 EEPROM_IIC_read(          UINT32 major,          /* IN: major device number             */          UINT32 minor,          /* IN: minor device number             */          t_EEPROM_read_descriptor *p_param ) ; /* INOUT: read buffer   *//************************************************************************ * *                          EEPROM_IIC_write *  Description : *  ------------- *  This service writes data into a specified location of a specified *  EEPROM device. *   * *  Parameters : *  ------------ * *  'major',     IN,    major device number *  'minor',     IN,    minor device number for multi device drivers *  'p_param',   INOUT, variable of type, t_EEPROM_write_descriptor. * * *  Return values : *  --------------- * *  'OK'(=0) * * ************************************************************************/staticINT32 EEPROM_IIC_write(          UINT32 major,          /* IN: major device number             */          UINT32 minor,          /* IN: minor device number             */          t_EEPROM_write_descriptor *p_param ) ; /* IN: write buffer    */static INT32 error_lookup(     t_sys_error_string *param );/************************************************************************ *      Implementation : Public functions ************************************************************************//************************************************************************ * *                          EEPROM_IIC_install *  Description : *  ------------- * *  Installs the EEPROM device driver services in  *  the IO system at the reserved device slot, found in the *  'sysdev.h' file, which defines all major device numbers. * *  Note: *  This service is the only public declared interface function; all *  provided device driver services are static declared, but this *  function installs the function pointers in the io-system to *  enable the provided public driver services. * *  Parameters : *  ------------ * *  - * * *  Return values : *  --------------- * *  'OK'(=0) *  'ERROR_IO_ILLEGAL_MAJOR':  Illegal major device number *  'ERROR_IO_NO_SPACE':       Device slot already allocated * ************************************************************************/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频在线一区二区三区| 欧美一区二区三区日韩视频| 免费黄网站欧美| 国产精品久线观看视频| 欧美一区二区三区免费| 99久久精品免费观看| 美国av一区二区| 一个色在线综合| 欧美国产精品久久| 91精品国产综合久久国产大片| av午夜一区麻豆| 国精产品一区一区三区mba桃花 | 成人av影院在线| 美女视频免费一区| 亚洲午夜精品网| 中文字幕亚洲视频| 视频一区二区三区入口| 蜜臀精品久久久久久蜜臀| 亚洲综合免费观看高清在线观看| 欧美韩日一区二区三区| 精品国内片67194| 日韩一级二级三级| 7777精品伊人久久久大香线蕉| 97成人超碰视| 成人激情综合网站| 国产高清在线精品| 精品一区二区三区在线观看国产| 亚洲国产精品一区二区久久| 亚洲精选视频免费看| 中文字幕不卡的av| 欧美国产日韩精品免费观看| 日韩亚洲欧美一区二区三区| 99久久精品情趣| 成人性色生活片免费看爆迷你毛片| 狠狠色狠狠色合久久伊人| 久久精品国产精品青草| 青青草国产成人av片免费| 亚洲国产视频一区| 亚洲成人午夜电影| 亚洲高清不卡在线观看| 亚洲成人av福利| 偷拍一区二区三区| 午夜精品福利一区二区三区av| 亚洲成人精品一区| 日韩中文欧美在线| 久久精品国产精品亚洲综合| 青青草精品视频| 激情综合一区二区三区| 麻豆传媒一区二区三区| 国产美女一区二区三区| 国产不卡在线播放| 99riav久久精品riav| 91久久精品国产91性色tv| 在线免费观看视频一区| 91麻豆精品国产91久久久| 日韩三级视频在线看| 久久视频一区二区| 成人欧美一区二区三区视频网页| 亚洲精品欧美二区三区中文字幕| 亚洲福利电影网| 日本欧美加勒比视频| 精品一区二区三区免费播放| 成人激情电影免费在线观看| 在线视频观看一区| 欧美精品久久一区| 久久久精品一品道一区| 中文字幕一区二区三区四区不卡| 一个色妞综合视频在线观看| 日本成人在线网站| 国产成人午夜视频| 在线精品观看国产| 欧美va亚洲va香蕉在线| 1区2区3区精品视频| 亚洲超丰满肉感bbw| 国产一区二区中文字幕| 91美女在线看| 日韩欧美国产一二三区| 国产精品卡一卡二| 日韩精品乱码免费| 国产传媒久久文化传媒| 欧美日韩一本到| 久久综合色婷婷| 亚洲三级在线免费观看| 免费成人在线网站| 色中色一区二区| 日韩精品一区二区三区在线观看 | 欧美羞羞免费网站| 欧美va亚洲va| 亚洲人精品午夜| 激情久久五月天| 色婷婷一区二区| 久久精品欧美日韩精品| 亚洲成人自拍偷拍| 国产麻豆成人传媒免费观看| 欧美自拍偷拍午夜视频| 久久精品亚洲乱码伦伦中文| 亚洲国产成人av网| 成a人片亚洲日本久久| 91精品国产欧美一区二区成人| 亚洲色图欧美激情| 国产成人综合视频| 欧美一区二区三区啪啪| 伊人开心综合网| 国产乱码精品一区二区三| 欧美美女一区二区三区| 17c精品麻豆一区二区免费| 麻豆91免费观看| 欧美人与性动xxxx| 一区二区三区高清| 成人午夜视频免费看| 久久伊人蜜桃av一区二区| 视频一区视频二区中文| 色综合久久综合| 国产欧美日韩综合精品一区二区| 婷婷国产v国产偷v亚洲高清| 在线视频一区二区三| 中文字幕一区在线观看视频| 国产精品自在在线| 欧美大尺度电影在线| 视频一区二区国产| 在线观看精品一区| 亚洲欧美国产77777| www.性欧美| 国产人成一区二区三区影院| 国产一区999| 精品国产电影一区二区| 久久精品久久久精品美女| 欧美精品99久久久**| 亚洲成人av电影在线| 欧美性大战久久久久久久 | 国产精品女主播在线观看| 国产乱人伦精品一区二区在线观看| 欧美一区2区视频在线观看| 日韩在线一区二区三区| 8v天堂国产在线一区二区| 亚洲6080在线| 欧美人伦禁忌dvd放荡欲情| 亚洲美女精品一区| 一本到高清视频免费精品| 亚洲日本一区二区三区| 99久久精品国产导航| 亚洲三级电影全部在线观看高清| 91性感美女视频| 樱花草国产18久久久久| 欧美性猛交xxxxxx富婆| 亚洲国产精品人人做人人爽| 欧美三级日韩在线| 日本成人在线电影网| 久久综合色鬼综合色| 国产成人在线视频网站| 亚洲欧洲日本在线| 91女神在线视频| 亚洲成人777| 欧美成人精精品一区二区频| 国产精品影音先锋| 国产精品高清亚洲| 欧美综合亚洲图片综合区| 日韩黄色小视频| 国产午夜精品理论片a级大结局| 91精品国产综合久久久蜜臀粉嫩 | 中文字幕精品三区| 色婷婷久久久久swag精品| 亚洲福利视频一区| 精品日产卡一卡二卡麻豆| 成人午夜电影久久影院| 亚洲午夜私人影院| 精品欧美乱码久久久久久 | 亚洲男人天堂一区| 午夜在线成人av| 日韩欧美成人午夜| 高清免费成人av| 又紧又大又爽精品一区二区| 欧美一区二区三区在线视频| 国产精品亚洲第一区在线暖暖韩国| 国产精品国模大尺度视频| 欧美曰成人黄网| 国产制服丝袜一区| 亚洲综合视频在线| 精品乱人伦一区二区三区| 成人禁用看黄a在线| 日本成人中文字幕| 最新高清无码专区| 精品国产伦一区二区三区免费 | 亚洲卡通欧美制服中文| 制服丝袜在线91| 成人国产亚洲欧美成人综合网| 五月激情综合网| 国产精品女主播av| 欧美成人a视频| 日本韩国一区二区三区视频| 国产一区二区三区在线看麻豆| 一区二区成人在线观看| 久久视频一区二区| 欧美乱妇23p| 一本色道久久综合亚洲91| 国内不卡的二区三区中文字幕 | 一本色道久久综合亚洲91| 久久99九九99精品| 亚洲成年人影院| 国产精品久久久久7777按摩|