XilinxProcessorIPLib/drivers/dp14txss/examples/src/zcu_pt_dp14_hdcp/xdp_hdcp_keys.c
static u16 EepromGet(u16 Address, u8 *BufferPtr, u16 Length)
{
	u16 i;
	u8 BytesRead;
	u16 TotalBytesRead;
	u8 *Ptr;

	Ptr = BufferPtr;
	TotalBytesRead = 0;
	for (i=0; i<(Length / XHDCP_EEPROM_PAGE_SIZE); i++)
	{
		BytesRead = EepromReadByte(Address, Ptr, XHDCP_EEPROM_PAGE_SIZE);
		TotalBytesRead += BytesRead;
		Address += BytesRead;
		Ptr += BytesRead;
	}

	if (Length > TotalBytesRead)
	{
		BytesRead = EepromReadByte(Address, Ptr, (Length - TotalBytesRead));
		TotalBytesRead += BytesRead;
	}
	return TotalBytesRead;
}
/*****************************************************************************/
/**
 *
 * This function gets a HDCP array from the eeprom
 *
 *
 * @return	The number of bytes read. A value less than the specified input
 *		value indicates an error.
 *
 ******************************************************************************/
This function gets a HDCP array from the eeprom
@return      The number of bytes read. A value less than the specified input
value indicates an error.
This function gets a HDCP array from the eeprom @return The number of bytes read . A value less than the specified input value indicates an error .
static u16 EepromGet(u16 Address, u8 *BufferPtr, u16 Length)
{
	u16 i;
	u8 BytesRead;
	u16 TotalBytesRead;
	u8 *Ptr;
	Ptr = BufferPtr;
	TotalBytesRead = 0;
	for (i=0; i<(Length / XHDCP_EEPROM_PAGE_SIZE); i++)
	{
		BytesRead = EepromReadByte(Address, Ptr, XHDCP_EEPROM_PAGE_SIZE);
		TotalBytesRead += BytesRead;
		Address += BytesRead;
		Ptr += BytesRead;
	}
	if (Length > TotalBytesRead)
	{
		BytesRead = EepromReadByte(Address, Ptr, (Length - TotalBytesRead));
		TotalBytesRead += BytesRead;
	}
	return TotalBytesRead;
}
static u16 EepromGet ( u16 Address , u8 * BufferPtr , u16 Length ) { u16 i ; u8 BytesRead ; u16 TotalBytesRead ; u8 * Ptr ; Ptr = BufferPtr ; TotalBytesRead = 0 ; for ( i = 0 ; i < ( Length / XHDCP_EEPROM_PAGE_SIZE ) ; i ++ ) { BytesRead = EepromReadByte ( Address , Ptr , XHDCP_EEPROM_PAGE_SIZE ) ; TotalBytesRead += BytesRead ; Address += BytesRead ; Ptr += BytesRead ; } if ( Length > TotalBytesRead ) { BytesRead = EepromReadByte ( Address , Ptr , ( Length - TotalBytesRead ) ) ; TotalBytesRead += BytesRead ; } return TotalBytesRead ; }
This function gets a HDCP array from the eeprom
 @return      The number of bytes read.
This function gets a HDCP array from the eeprom @return The number of bytes read .