//*****************************************************************************
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be 
// copied or disclosed except in accordance with the terms of that 
// agreement
//
// Copyright ?2010 Intel Corporation. All Rights Reserved.
//*****************************************************************************

// The EEPROM is DW9806B

#ifndef __EEPROM_DW9806B__
#define __EEPROM_DW9806B__

// [TODO] EEPROM

#define DW9806B_PAGE_SIZE  1024
#define DW9806B_PAGE_NUM   8
#define DW9806B_SIZE       (DW9806B_PAGE_SIZE * DW9806B_PAGE_NUM)
#define DW9806B_BULK_SIZE  32
#define DW9806B_BULK_NUM   (DW9806B_PAGE_SIZE / DW9806B_BULK_SIZE)
#define DW9806B_ADDR_MIN   0
#define DW9806B_ADDR_MAX   (DW9806B_SIZE - 1)

NTSTATUS
Cmd_DW9806BWrite(
    PNVM_CONTEXT SensorCtx,
    UINT16 Addr,
    UINT8* pData,
    INT32 Length
    );

NTSTATUS
Cmd_DW9806BRead(
    PNVM_CONTEXT SensorCtx,
    UINT16 Addr,
    UINT8* pData,
    INT32 Length
    );

#endif __EEPROM_DW9806B__
