//*****************************************************************************
// 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 brca016gwz-w

#ifndef __EEPROM_BRCA016GWZ__
#define __EEPROM_BRCA016GWZ__

// [TODO] EEPROM

#define BRCA016_PAGE_SIZE  256
#define BRCA016_PAGE_NUM   5  //8   Only 5 EXT interfaces are hold for BIOS, although brca016gwz-w support 16KBit(256x8 byte) with 8 Pages, only expose 5 pages here
#define BRCA016_SIZE       (BRCA016_PAGE_SIZE * BRCA016_PAGE_NUM)
#define BRCA016_BULK_SIZE  16
#define BRCA016_BULK_NUM   (BRCA016_PAGE_SIZE / BRCA016_BULK_SIZE)
#define BRCA016_ADDR_MIN   0
#define BRCA016_ADDR_MAX   (BRCA016_SIZE - 1)

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

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

#endif __EEPROM_BRCA016GWZ__
