3 * Procedure: vendorextnGetSectionInfo
5 * Description: Finds the type of NVM used.
8 * Adapter - ptr to Adapter object instance
9 * pNVMType - ptr to NVM type.
11 * STATUS_SUCCESS/STATUS_FAILURE
14 INT vendorextnGetSectionInfo(PVOID pContext,
15 struct bcm_flash2x_vendor_info *pVendorInfo)
17 return STATUS_FAILURE;
21 * Procedure: vendorextnInit
23 * Description: Initializing the vendor extension NVM interface
26 * Adapter - Pointer to MINI Adapter Structure
28 * STATUS_SUCCESS/STATUS_FAILURE
32 INT vendorextnInit(struct bcm_mini_adapter *Adapter)
34 return STATUS_SUCCESS;
38 * Procedure: vendorextnExit
40 * Description: Free the resource associated with vendor extension NVM interface
45 * STATUS_SUCCESS/STATUS_FAILURE
49 INT vendorextnExit(struct bcm_mini_adapter *Adapter)
51 return STATUS_SUCCESS;
55 * Procedure: vendorextnIoctl
57 * Description: execute the vendor extension specific ioctl
60 * Adapter -Beceem private Adapter Structure
61 * cmd -vendor extension specific Ioctl commad
62 * arg -input parameter sent by vendor
65 * CONTINUE_COMMON_PATH in case it is not meant to be processed
67 * STATUS_SUCCESS/STATUS_FAILURE as per the IOCTL return value
70 INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg)
72 return CONTINUE_COMMON_PATH;
78 * Procedure: vendorextnReadSection
80 * Description: Reads from a section of NVM
83 * pContext - ptr to Adapter object instance
84 * pBuffer - Read the data from Vendor Area to this buffer
85 * SectionVal - Value of type of Section
86 * Offset - Read from the Offset of the Vendor Section.
87 * numOfBytes - Read numOfBytes from the Vendor section to Buffer
90 * STATUS_SUCCESS/STATUS_FAILURE
93 INT vendorextnReadSection(PVOID pContext, PUCHAR pBuffer,
94 enum bcm_flash2x_section_val SectionVal, UINT offset, UINT numOfBytes)
96 return STATUS_FAILURE;
102 * Procedure: vendorextnWriteSection
104 * Description: Write to a Section of NVM
107 * pContext - ptr to Adapter object instance
108 * pBuffer - Write the data provided in the buffer
109 * SectionVal - Value of type of Section
110 * Offset - Writes to the Offset of the Vendor Section.
111 * numOfBytes - Write num Bytes after reading from pBuffer.
112 * bVerify - the Buffer Written should be verified.
115 * STATUS_SUCCESS/STATUS_FAILURE
117 INT vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer,
118 enum bcm_flash2x_section_val SectionVal, UINT offset,
119 UINT numOfBytes, bool bVerify)
121 return STATUS_FAILURE;
127 * Procedure: vendorextnWriteSectionWithoutErase
129 * Description: Write to a Section of NVM without erasing the sector
132 * pContext - ptr to Adapter object instance
133 * pBuffer - Write the data provided in the buffer
134 * SectionVal - Value of type of Section
135 * Offset - Writes to the Offset of the Vendor Section.
136 * numOfBytes - Write num Bytes after reading from pBuffer.
139 * STATUS_SUCCESS/STATUS_FAILURE
141 INT vendorextnWriteSectionWithoutErase(PVOID pContext, PUCHAR pBuffer,
142 enum bcm_flash2x_section_val SectionVal, UINT offset, UINT numOfBytes)
144 return STATUS_FAILURE;