2010-09-08 15:46:36 -06:00
|
|
|
#include "headers.h"
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnGetSectionInfo
|
|
|
|
*
|
|
|
|
* Description: Finds the type of NVM used.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Adapter - ptr to Adapter object instance
|
|
|
|
* pNVMType - ptr to NVM type.
|
|
|
|
* Returns:
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE
|
|
|
|
*
|
|
|
|
*/
|
2012-11-30 23:15:53 -07:00
|
|
|
INT vendorextnGetSectionInfo(PVOID pContext, struct bcm_flash2x_vendor_info *pVendorInfo)
|
2010-09-08 15:46:36 -06:00
|
|
|
{
|
|
|
|
return STATUS_FAILURE;
|
|
|
|
}
|
|
|
|
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnInit
|
|
|
|
*
|
|
|
|
* Description: Initializing the vendor extension NVM interface
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Adapter - Pointer to MINI Adapter Structure
|
|
|
|
* Returns:
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2012-05-26 10:05:12 -06:00
|
|
|
INT vendorextnInit(struct bcm_mini_adapter *Adapter)
|
2010-09-08 15:46:36 -06:00
|
|
|
{
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnExit
|
|
|
|
*
|
|
|
|
* Description: Free the resource associated with vendor extension NVM interface
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2012-05-26 10:05:12 -06:00
|
|
|
INT vendorextnExit(struct bcm_mini_adapter *Adapter)
|
2010-09-08 15:46:36 -06:00
|
|
|
{
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnIoctl
|
|
|
|
*
|
|
|
|
* Description: execute the vendor extension specific ioctl
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Adapter -Beceem private Adapter Structure
|
|
|
|
* cmd -vendor extension specific Ioctl commad
|
|
|
|
* arg -input parameter sent by vendor
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* CONTINUE_COMMON_PATH in case it is not meant to be processed by vendor ioctls
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE as per the IOCTL return value
|
|
|
|
*/
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg)
|
2010-09-08 15:46:36 -06:00
|
|
|
{
|
|
|
|
return CONTINUE_COMMON_PATH;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnReadSection
|
|
|
|
*
|
|
|
|
* Description: Reads from a section of NVM
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* pContext - ptr to Adapter object instance
|
|
|
|
* pBuffer - Read the data from Vendor Area to this buffer
|
|
|
|
* SectionVal - Value of type of Section
|
|
|
|
* Offset - Read from the Offset of the Vendor Section.
|
|
|
|
* numOfBytes - Read numOfBytes from the Vendor section to Buffer
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE
|
|
|
|
*/
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-11-22 12:48:50 -07:00
|
|
|
INT vendorextnReadSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
|
2010-09-08 15:46:36 -06:00
|
|
|
UINT offset, UINT numOfBytes)
|
|
|
|
{
|
|
|
|
return STATUS_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnWriteSection
|
|
|
|
*
|
|
|
|
* Description: Write to a Section of NVM
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* pContext - ptr to Adapter object instance
|
|
|
|
* pBuffer - Write the data provided in the buffer
|
|
|
|
* SectionVal - Value of type of Section
|
|
|
|
* Offset - Writes to the Offset of the Vendor Section.
|
|
|
|
* numOfBytes - Write num Bytes after reading from pBuffer.
|
|
|
|
* bVerify - the Buffer Written should be verified.
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE
|
|
|
|
*/
|
2012-11-22 12:48:50 -07:00
|
|
|
INT vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
|
2013-10-28 02:35:59 -06:00
|
|
|
UINT offset, UINT numOfBytes, bool bVerify)
|
2010-09-08 15:46:36 -06:00
|
|
|
{
|
|
|
|
return STATUS_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-21 18:13:58 -06:00
|
|
|
/*
|
|
|
|
* Procedure: vendorextnWriteSectionWithoutErase
|
|
|
|
*
|
|
|
|
* Description: Write to a Section of NVM without erasing the sector
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* pContext - ptr to Adapter object instance
|
|
|
|
* pBuffer - Write the data provided in the buffer
|
|
|
|
* SectionVal - Value of type of Section
|
|
|
|
* Offset - Writes to the Offset of the Vendor Section.
|
|
|
|
* numOfBytes - Write num Bytes after reading from pBuffer.
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* STATUS_SUCCESS/STATUS_FAILURE
|
|
|
|
*/
|
2012-11-22 12:48:50 -07:00
|
|
|
INT vendorextnWriteSectionWithoutErase(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
|
2010-09-08 15:46:36 -06:00
|
|
|
UINT offset, UINT numOfBytes)
|
|
|
|
{
|
|
|
|
return STATUS_FAILURE;
|
|
|
|
}
|