Commit 6f98775f authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Replace B_UINT32 with u32 in nvm.h

This patch replace "B_UINT32" with "u32" in
nvm.h
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5b2445e
...@@ -27,32 +27,32 @@ typedef struct _FLASH_SECTOR_INFO { ...@@ -27,32 +27,32 @@ typedef struct _FLASH_SECTOR_INFO {
} FLASH_SECTOR_INFO, *PFLASH_SECTOR_INFO; } FLASH_SECTOR_INFO, *PFLASH_SECTOR_INFO;
typedef struct _FLASH_CS_INFO { typedef struct _FLASH_CS_INFO {
B_UINT32 MagicNumber; u32 MagicNumber;
/* let the magic number be 0xBECE-F1A5 - F1A5 for "flas-h" */ /* let the magic number be 0xBECE-F1A5 - F1A5 for "flas-h" */
B_UINT32 FlashLayoutVersion; u32 FlashLayoutVersion;
B_UINT32 ISOImageVersion; u32 ISOImageVersion;
B_UINT32 SCSIFirmwareVersion; u32 SCSIFirmwareVersion;
B_UINT32 OffsetFromZeroForPart1ISOImage; u32 OffsetFromZeroForPart1ISOImage;
B_UINT32 OffsetFromZeroForScsiFirmware; u32 OffsetFromZeroForScsiFirmware;
B_UINT32 SizeOfScsiFirmware; u32 SizeOfScsiFirmware;
B_UINT32 OffsetFromZeroForPart2ISOImage; u32 OffsetFromZeroForPart2ISOImage;
B_UINT32 OffsetFromZeroForCalibrationStart; u32 OffsetFromZeroForCalibrationStart;
B_UINT32 OffsetFromZeroForCalibrationEnd; u32 OffsetFromZeroForCalibrationEnd;
B_UINT32 OffsetFromZeroForVSAStart; u32 OffsetFromZeroForVSAStart;
B_UINT32 OffsetFromZeroForVSAEnd; u32 OffsetFromZeroForVSAEnd;
B_UINT32 OffsetFromZeroForControlSectionStart; u32 OffsetFromZeroForControlSectionStart;
B_UINT32 OffsetFromZeroForControlSectionData; u32 OffsetFromZeroForControlSectionData;
B_UINT32 CDLessInactivityTimeout; u32 CDLessInactivityTimeout;
B_UINT32 NewImageSignature; u32 NewImageSignature;
B_UINT32 FlashSectorSizeSig; u32 FlashSectorSizeSig;
B_UINT32 FlashSectorSize; u32 FlashSectorSize;
B_UINT32 FlashWriteSupportSize; u32 FlashWriteSupportSize;
B_UINT32 TotalFlashSize; u32 TotalFlashSize;
B_UINT32 FlashBaseAddr; u32 FlashBaseAddr;
B_UINT32 FlashPartMaxSize; u32 FlashPartMaxSize;
B_UINT32 IsCDLessDeviceBootSig; u32 IsCDLessDeviceBootSig;
/* MSC Timeout after reset to switch from MSC to NW Mode */ /* MSC Timeout after reset to switch from MSC to NW Mode */
B_UINT32 MassStorageTimeout; u32 MassStorageTimeout;
} FLASH_CS_INFO, *PFLASH_CS_INFO; } FLASH_CS_INFO, *PFLASH_CS_INFO;
#define FLASH2X_TOTAL_SIZE (64 * 1024 * 1024) #define FLASH2X_TOTAL_SIZE (64 * 1024 * 1024)
...@@ -60,55 +60,55 @@ typedef struct _FLASH_CS_INFO { ...@@ -60,55 +60,55 @@ typedef struct _FLASH_CS_INFO {
typedef struct _FLASH_2X_CS_INFO { typedef struct _FLASH_2X_CS_INFO {
/* magic number as 0xBECE-F1A5 - F1A5 for "flas-h" */ /* magic number as 0xBECE-F1A5 - F1A5 for "flas-h" */
B_UINT32 MagicNumber; u32 MagicNumber;
B_UINT32 FlashLayoutVersion; u32 FlashLayoutVersion;
B_UINT32 ISOImageVersion; u32 ISOImageVersion;
B_UINT32 SCSIFirmwareVersion; u32 SCSIFirmwareVersion;
B_UINT32 OffsetFromZeroForPart1ISOImage; u32 OffsetFromZeroForPart1ISOImage;
B_UINT32 OffsetFromZeroForScsiFirmware; u32 OffsetFromZeroForScsiFirmware;
B_UINT32 SizeOfScsiFirmware; u32 SizeOfScsiFirmware;
B_UINT32 OffsetFromZeroForPart2ISOImage; u32 OffsetFromZeroForPart2ISOImage;
B_UINT32 OffsetFromZeroForDSDStart; u32 OffsetFromZeroForDSDStart;
B_UINT32 OffsetFromZeroForDSDEnd; u32 OffsetFromZeroForDSDEnd;
B_UINT32 OffsetFromZeroForVSAStart; u32 OffsetFromZeroForVSAStart;
B_UINT32 OffsetFromZeroForVSAEnd; u32 OffsetFromZeroForVSAEnd;
B_UINT32 OffsetFromZeroForControlSectionStart; u32 OffsetFromZeroForControlSectionStart;
B_UINT32 OffsetFromZeroForControlSectionData; u32 OffsetFromZeroForControlSectionData;
/* NO Data Activity timeout to switch from MSC to NW Mode */ /* NO Data Activity timeout to switch from MSC to NW Mode */
B_UINT32 CDLessInactivityTimeout; u32 CDLessInactivityTimeout;
B_UINT32 NewImageSignature; u32 NewImageSignature;
B_UINT32 FlashSectorSizeSig; u32 FlashSectorSizeSig;
B_UINT32 FlashSectorSize; u32 FlashSectorSize;
B_UINT32 FlashWriteSupportSize; u32 FlashWriteSupportSize;
B_UINT32 TotalFlashSize; u32 TotalFlashSize;
B_UINT32 FlashBaseAddr; u32 FlashBaseAddr;
B_UINT32 FlashPartMaxSize; u32 FlashPartMaxSize;
B_UINT32 IsCDLessDeviceBootSig; u32 IsCDLessDeviceBootSig;
/* MSC Timeout after reset to switch from MSC to NW Mode */ /* MSC Timeout after reset to switch from MSC to NW Mode */
B_UINT32 MassStorageTimeout; u32 MassStorageTimeout;
/* Flash Map 2.0 Field */ /* Flash Map 2.0 Field */
B_UINT32 OffsetISOImage1Part1Start; u32 OffsetISOImage1Part1Start;
B_UINT32 OffsetISOImage1Part1End; u32 OffsetISOImage1Part1End;
B_UINT32 OffsetISOImage1Part2Start; u32 OffsetISOImage1Part2Start;
B_UINT32 OffsetISOImage1Part2End; u32 OffsetISOImage1Part2End;
B_UINT32 OffsetISOImage1Part3Start; u32 OffsetISOImage1Part3Start;
B_UINT32 OffsetISOImage1Part3End; u32 OffsetISOImage1Part3End;
B_UINT32 OffsetISOImage2Part1Start; u32 OffsetISOImage2Part1Start;
B_UINT32 OffsetISOImage2Part1End; u32 OffsetISOImage2Part1End;
B_UINT32 OffsetISOImage2Part2Start; u32 OffsetISOImage2Part2Start;
B_UINT32 OffsetISOImage2Part2End; u32 OffsetISOImage2Part2End;
B_UINT32 OffsetISOImage2Part3Start; u32 OffsetISOImage2Part3Start;
B_UINT32 OffsetISOImage2Part3End; u32 OffsetISOImage2Part3End;
/* DSD Header offset from start of DSD */ /* DSD Header offset from start of DSD */
B_UINT32 OffsetFromDSDStartForDSDHeader; u32 OffsetFromDSDStartForDSDHeader;
B_UINT32 OffsetFromZeroForDSD1Start; u32 OffsetFromZeroForDSD1Start;
B_UINT32 OffsetFromZeroForDSD1End; u32 OffsetFromZeroForDSD1End;
B_UINT32 OffsetFromZeroForDSD2Start; u32 OffsetFromZeroForDSD2Start;
B_UINT32 OffsetFromZeroForDSD2End; u32 OffsetFromZeroForDSD2End;
B_UINT32 OffsetFromZeroForVSA1Start; u32 OffsetFromZeroForVSA1Start;
B_UINT32 OffsetFromZeroForVSA1End; u32 OffsetFromZeroForVSA1End;
B_UINT32 OffsetFromZeroForVSA2Start; u32 OffsetFromZeroForVSA2Start;
B_UINT32 OffsetFromZeroForVSA2End; u32 OffsetFromZeroForVSA2End;
/* /*
* ACCESS_BITS_PER_SECTOR 2 * ACCESS_BITS_PER_SECTOR 2
* ACCESS_RW 0 * ACCESS_RW 0
...@@ -116,38 +116,38 @@ typedef struct _FLASH_2X_CS_INFO { ...@@ -116,38 +116,38 @@ typedef struct _FLASH_2X_CS_INFO {
* ACCESS_RESVD 2 * ACCESS_RESVD 2
* ACCESS_RESVD 3 * ACCESS_RESVD 3
*/ */
B_UINT32 SectorAccessBitMap[FLASH2X_TOTAL_SIZE / (DEFAULT_SECTOR_SIZE * 16)]; u32 SectorAccessBitMap[FLASH2X_TOTAL_SIZE / (DEFAULT_SECTOR_SIZE * 16)];
/* All expansions to the control data structure should add here */ /* All expansions to the control data structure should add here */
} FLASH2X_CS_INFO, *PFLASH2X_CS_INFO; } FLASH2X_CS_INFO, *PFLASH2X_CS_INFO;
typedef struct _VENDOR_SECTION_INFO { typedef struct _VENDOR_SECTION_INFO {
B_UINT32 OffsetFromZeroForSectionStart; u32 OffsetFromZeroForSectionStart;
B_UINT32 OffsetFromZeroForSectionEnd; u32 OffsetFromZeroForSectionEnd;
B_UINT32 AccessFlags; u32 AccessFlags;
B_UINT32 Reserved[16]; u32 Reserved[16];
} VENDOR_SECTION_INFO, *PVENDOR_SECTION_INFO; } VENDOR_SECTION_INFO, *PVENDOR_SECTION_INFO;
typedef struct _FLASH2X_VENDORSPECIFIC_INFO { typedef struct _FLASH2X_VENDORSPECIFIC_INFO {
VENDOR_SECTION_INFO VendorSection[TOTAL_SECTIONS]; VENDOR_SECTION_INFO VendorSection[TOTAL_SECTIONS];
B_UINT32 Reserved[16]; u32 Reserved[16];
} FLASH2X_VENDORSPECIFIC_INFO, *PFLASH2X_VENDORSPECIFIC_INFO; } FLASH2X_VENDORSPECIFIC_INFO, *PFLASH2X_VENDORSPECIFIC_INFO;
typedef struct _DSD_HEADER { typedef struct _DSD_HEADER {
B_UINT32 DSDImageSize; u32 DSDImageSize;
B_UINT32 DSDImageCRC; u32 DSDImageCRC;
B_UINT32 DSDImagePriority; u32 DSDImagePriority;
/* We should not consider right now. Reading reserve is worthless. */ /* We should not consider right now. Reading reserve is worthless. */
B_UINT32 Reserved[252]; /* Resvd for DSD Header */ u32 Reserved[252]; /* Resvd for DSD Header */
B_UINT32 DSDImageMagicNumber; u32 DSDImageMagicNumber;
} DSD_HEADER, *PDSD_HEADER; } DSD_HEADER, *PDSD_HEADER;
typedef struct _ISO_HEADER { typedef struct _ISO_HEADER {
B_UINT32 ISOImageMagicNumber; u32 ISOImageMagicNumber;
B_UINT32 ISOImageSize; u32 ISOImageSize;
B_UINT32 ISOImageCRC; u32 ISOImageCRC;
B_UINT32 ISOImagePriority; u32 ISOImagePriority;
/* We should not consider right now. Reading reserve is worthless. */ /* We should not consider right now. Reading reserve is worthless. */
B_UINT32 Reserved[60]; /* Resvd for ISO Header extension */ u32 Reserved[60]; /* Resvd for ISO Header extension */
} ISO_HEADER, *PISO_HEADER; } ISO_HEADER, *PISO_HEADER;
#define EEPROM_BEGIN_CIS (0) #define EEPROM_BEGIN_CIS (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment