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, struct bcm_flash2x_vendor_info *pVendorInfo)
16 return STATUS_FAILURE;
20 * Procedure: vendorextnInit
22 * Description: Initializing the vendor extension NVM interface
25 * Adapter - Pointer to MINI Adapter Structure
27 * STATUS_SUCCESS/STATUS_FAILURE
31 INT vendorextnInit(struct bcm_mini_adapter *Adapter)
33 return STATUS_SUCCESS;
37 * Procedure: vendorextnExit
39 * Description: Free the resource associated with vendor extension NVM interface
44 * STATUS_SUCCESS/STATUS_FAILURE
48 INT vendorextnExit(struct bcm_mini_adapter *Adapter)
50 return STATUS_SUCCESS;
54 * Procedure: vendorextnIoctl
56 * Description: execute the vendor extension specific ioctl
59 * Adapter -Beceem private Adapter Structure
60 * cmd -vendor extension specific Ioctl commad
61 * arg -input parameter sent by vendor
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
68 INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg)
70 return CONTINUE_COMMON_PATH;
76 * Procedure: vendorextnReadSection
78 * Description: Reads from a section of NVM
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
88 * STATUS_SUCCESS/STATUS_FAILURE
91 INT vendorextnReadSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
92 UINT offset, UINT numOfBytes)
94 return STATUS_FAILURE;
100 * Procedure: vendorextnWriteSection
102 * Description: Write to a Section of NVM
105 * pContext - ptr to Adapter object instance
106 * pBuffer - Write the data provided in the buffer
107 * SectionVal - Value of type of Section
108 * Offset - Writes to the Offset of the Vendor Section.
109 * numOfBytes - Write num Bytes after reading from pBuffer.
110 * bVerify - the Buffer Written should be verified.
113 * STATUS_SUCCESS/STATUS_FAILURE
115 INT vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
116 UINT offset, UINT numOfBytes, bool bVerify)
118 return STATUS_FAILURE;
124 * Procedure: vendorextnWriteSectionWithoutErase
126 * Description: Write to a Section of NVM without erasing the sector
129 * pContext - ptr to Adapter object instance
130 * pBuffer - Write the data provided in the buffer
131 * SectionVal - Value of type of Section
132 * Offset - Writes to the Offset of the Vendor Section.
133 * numOfBytes - Write num Bytes after reading from pBuffer.
136 * STATUS_SUCCESS/STATUS_FAILURE
138 INT vendorextnWriteSectionWithoutErase(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
139 UINT offset, UINT numOfBytes)
141 return STATUS_FAILURE;