1#include "headers.h" 2//----------------------------------------------------------------------------- 3// Procedure: vendorextnGetSectionInfo 4// 5// Description: Finds the type of NVM used. 6// 7// Arguments: 8// Adapter - ptr to Adapter object instance 9// pNVMType - ptr to NVM type. 10// Returns: 11// STATUS_SUCCESS/STATUS_FAILURE 12// 13//----------------------------------------------------------------------------- 14INT vendorextnGetSectionInfo(PVOID pContext, struct bcm_flash2x_vendor_info *pVendorInfo) 15{ 16 return STATUS_FAILURE; 17} 18 19//----------------------------------------------------------------------------- 20// Procedure: vendorextnInit 21// 22// Description: Initializing the vendor extension NVM interface 23// 24// Arguments: 25// Adapter - Pointer to MINI Adapter Structure. 26 27// Returns: 28// STATUS_SUCCESS/STATUS_FAILURE 29// 30//----------------------------------------------------------------------------- 31INT vendorextnInit(struct bcm_mini_adapter *Adapter) 32{ 33 return STATUS_SUCCESS; 34} 35 36//----------------------------------------------------------------------------- 37// Procedure: vendorextnExit 38// 39// Description: Free the resource associated with vendor extension NVM interface 40// 41// Arguments: 42// Adapter - Pointer to MINI Adapter Structure. 43 44// Returns: 45// STATUS_SUCCESS/STATUS_FAILURE 46// 47//----------------------------------------------------------------------------- 48INT vendorextnExit(struct bcm_mini_adapter *Adapter) 49{ 50 return STATUS_SUCCESS; 51} 52 53//------------------------------------------------------------------------ 54// Procedure: vendorextnIoctl 55// 56// Description: execute the vendor extension specific ioctl 57// 58//Arguments: 59// Adapter -Beceem private Adapter Structure 60// cmd -vendor extension specific Ioctl commad 61// arg -input parameter sent by vendor 62// 63// Returns: 64// CONTINUE_COMMON_PATH in case it is not meant to be processed by vendor ioctls 65// STATUS_SUCCESS/STATUS_FAILURE as per the IOCTL return value 66// 67//-------------------------------------------------------------------------- 68INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg) 69{ 70 return CONTINUE_COMMON_PATH; 71} 72 73 74 75//------------------------------------------------------------------ 76// Procedure: vendorextnReadSection 77// 78// Description: Reads from a section of NVM 79// 80// Arguments: 81// pContext - ptr to Adapter object instance 82// pBuffer - Read the data from Vendor Area to this buffer 83// SectionVal - Value of type of Section 84// Offset - Read from the Offset of the Vendor Section. 85// numOfBytes - Read numOfBytes from the Vendor section to Buffer 86// 87// Returns: 88// STATUS_SUCCESS/STATUS_FAILURE 89// 90//------------------------------------------------------------------ 91 92INT vendorextnReadSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal, 93 UINT offset, UINT numOfBytes) 94{ 95 return STATUS_FAILURE; 96} 97 98 99 100//------------------------------------------------------------------ 101// Procedure: vendorextnWriteSection 102// 103// Description: Write to a Section of NVM 104// 105// Arguments: 106// pContext - ptr to Adapter object instance 107// pBuffer - Write the data provided in the buffer 108// SectionVal - Value of type of Section 109// Offset - Writes to the Offset of the Vendor Section. 110// numOfBytes - Write num Bytes after reading from pBuffer. 111// bVerify - the Buffer Written should be verified. 112// 113// Returns: 114// STATUS_SUCCESS/STATUS_FAILURE 115// 116//------------------------------------------------------------------ 117INT vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal, 118 UINT offset, UINT numOfBytes, BOOLEAN bVerify) 119{ 120 return STATUS_FAILURE; 121} 122 123 124 125//------------------------------------------------------------------ 126// Procedure: vendorextnWriteSectionWithoutErase 127// 128// Description: Write to a Section of NVM without erasing the sector 129// 130// Arguments: 131// pContext - ptr to Adapter object instance 132// pBuffer - Write the data provided in the buffer 133// SectionVal - Value of type of Section 134// Offset - Writes to the Offset of the Vendor Section. 135// numOfBytes - Write num Bytes after reading from pBuffer. 136// 137// Returns: 138// STATUS_SUCCESS/STATUS_FAILURE 139// 140//------------------------------------------------------------------ 141INT vendorextnWriteSectionWithoutErase(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal, 142 UINT offset, UINT numOfBytes) 143{ 144 return STATUS_FAILURE; 145} 146 147