/*-------------------------------------------------------------------------------------
int8 tunerbb_drv_fc8050_read_data(uint8* buffer, uint32* buffer_size)
    (1)   Reading MSC or MSC + FIC etc Data.
            This function is used in EBI2 HOST Interface
    (2)   Return Value
           Sucess : 1
           Fail : 0 or negative interger (If there is error code)
    (3)   Argument
           uint8* buffer (IN/OUT)
               - buffer for Data
           uint32* buffer_size (IN /OUT)
              - Data Size

        <notice> This function is used in only EBI2 HOST Interface
--------------------------------------------------------------------------------------- */
int8	tunerbb_drv_fc8050_read_data(uint8* buffer, uint32* buffer_size)
{
	int8 retval = FC8050_RESULT_ERROR;
	
	if(buffer == NULL || buffer_size == NULL)
	{
		return retval;
	}
	
	/* initialize length and valid value before isr routine */
	msc_buffer.valid = 0;
	msc_buffer.length=0;
#ifdef NOT_MSCDATA_MULTIPLE_MEMCPY
	msc_data = buffer;
#endif
	
	fc8050_isr(NULL);
	
	if(msc_buffer.valid && msc_buffer.length)
	{
		*buffer_size = msc_buffer.length;
#ifndef NOT_MSCDATA_MULTIPLE_MEMCPY		
		memcpy(buffer, &msc_data[0], msc_buffer.length);
#endif
		retval = FC8050_RESULT_SUCCESS;
	}
	
	return retval;
}
예제 #2
0
/*-------------------------------------------------------------------------------------
int8 tunerbb_drv_fc8050_read_data(uint8* buffer, uint32* buffer_size)
    (1)   Reading MSC or MSC + FIC etc Data.
            This function is used in EBI2 HOST Interface
    (2)   Return Value
           Sucess : 1
           Fail : 0 or negative interger (If there is error code)
    (3)   Argument
           uint8* buffer (IN/OUT)
               - buffer for Data
           uint32* buffer_size (IN /OUT)
              - Data Size

        <notice> This function is used in only EBI2 HOST Interface
--------------------------------------------------------------------------------------- */
int8	tunerbb_drv_fc8050_read_data(uint8* buffer, uint32* buffer_size)
{
	int8 retval = FC8050_RESULT_ERROR;
	
	if(buffer == NULL || buffer_size == NULL)
	{
		return retval;
	}
	
	/* initialize length and valid value before isr routine */
	msc_buffer.valid = 0;
	msc_buffer.length=0;
	
	fc8050_isr(NULL);
	
	if(msc_buffer.valid && msc_buffer.length)
	{
		*buffer_size = msc_buffer.length;
		memcpy(buffer, &msc_data[0], msc_buffer.length);
		retval = FC8050_RESULT_SUCCESS;
	}
	
	return retval;
}
예제 #3
0
파일: bbm.c 프로젝트: CL0SeY/i957kernel
void BBM_ISR(HANDLE hDevice)
{
	fc8050_isr(hDevice);
}
void bbm_com_isr(HANDLE hDevice)
{
    fc8050_isr(hDevice);
}