//*****************************************************************************
// 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 cat24c08

#ifndef __EEPROM_CAT24C08__
#define __EEPROM_CAT24C08__

// [TODO] EEPROM

#define CAT24C_PAGE_SIZE  256
#define CAT24C_PAGE_NUM   4  
#define CAT24C_SIZE       (CAT24C_PAGE_SIZE * CAT24C_PAGE_NUM)
#define CAT24C_BULK_SIZE  16
#define CAT24C_BULK_NUM   (CAT24C_PAGE_SIZE / CAT24C_BULK_SIZE)
#define CAT24C_ADDR_MIN   0
#define CAT24C_ADDR_MAX   (CAT24C_SIZE - 1)

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

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

#endif __EEPROM_CAT24C08__
