//*****************************************************************************
// INTEL CONFIDENTIAL Copyright 2023 Intel Corporation All Rights Reserved.
// 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 2023 Intel Corporation. All Rights Reserved.
//*****************************************************************************

// The EEPROM is GT24P128F

#ifndef __EEPROM_GT24P128F__
#define __EEPROM_GT24P128F__

// [TODO] EEPROM

#define GT24P128F_PAGE_SIZE  64    //Column address 0x00 to 0x3F       -  64 Bytes
#define GT24P128F_PAGE_NUM   256   //Page 0x00 to 0xFF
#define GT24P128F_SIZE       (GT24P128F_PAGE_SIZE * GT24P128F_PAGE_NUM) // 16 KBytes
#define GT24P128F_ADDR_MIN   0
#define GT24P128F_ADDR_MAX   (GT24P128F_SIZE - 1)

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

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

#endif __EEPROM_GT24P128F__
