/*********************************************************************** * * Copyright (c) 2011 Broadcom Corporation * All Rights Reserved * * <:label-BRCM:2011:DUAL/GPL:standard * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed * to you under the terms of the GNU General Public License version 2 * (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php, * with the following added to such license: * * As a special exception, the copyright holders of this software give * you permission to link this software with independent modules, and * to copy and distribute the resulting executable under terms of your * choice, provided that you also meet, for each linked independent * module, the terms and conditions of the license of that module. * An independent module is a module which is not derived from this * software. The special exception does not apply to any modifications * of the software. * * Not withstanding the above, under no circumstances may you combine * this software in any way with any other Broadcom software provided * under a license other than the GPL, without Broadcom's express prior * written consent. * * :> ************************************************************************/ #include #include "bcm_boarddriverctl.h" #include "bcm_ulog.h" #include "bcm_flashutil.h" #include "bcm_flashutil_private.h" #include "bcm_flashutil_nand.h" #include "bcm_flashutil_emmc.h" #include "flash_api.h" #include "cms_image.h" int getFlashInfo(unsigned int *flags) { printf("[%s] \n", __func__); return 0; } int devCtl_getSequenceNumber(int image) { printf("[%s] \n", __func__); return 0; } int getSequenceNumber(int imageNumber) { printf("[%s] \n", __func__); return 0; } int getNextSequenceNumber(int seqNumImg1, int seqNumImg2) { printf("[%s] \n", __func__); return 0; } int devCtl_setImageState(int state) { printf("[%s] \n", __func__); return 0; } int setBootImageState(int newState) { printf("[%s] \n", __func__); return 0; } int devCtl_getImageState(void) { printf("[%s] \n", __func__); return 0; } int getBootImageState(void) { printf("[%s] \n", __func__); return 0; } int devCtl_getBootedImagePartition(void) { printf("[%s] \n", __func__); return 0; } int getBootedValue(void) { printf("[%s] \n", __func__); return 0; } int readNvramData(void *pNvramData) { printf("[%s] \n", __func__); return 0; } unsigned int otp_is_btrm_boot(void) { printf("[%s] \n", __func__); return 0; } unsigned int otp_is_boot_secure(void) { printf("[%s] \n", __func__); return 0; } unsigned int otp_is_boot_mfg_secure(void) { printf("[%s] \n", __func__); return 0; } unsigned int get_chip_id(void) { printf("[%s] \n", __func__); return 0; } unsigned int get_flash_type(void) { printf("[%s] \n", __func__); return 0; } int devCtl_getBootedImageId(void) { printf("[%s] \n", __func__); return 0; } int devCtl_getImageVersion(int partition, char *verStr, int verStrSize) { printf("[%s] \n", __func__); return 0; } int getImageVersion(uint8_t *imagePtr, int imageSize, char *image_name, int image_name_len) { printf("[%s] \n", __func__); return 0; } int getBootPartition( void ) { printf("[%s] \n", __func__); return 0; } int commit( int partition, char *string ) { printf("[%s] \n", __func__); return 0; } int writeImageToNand(unsigned char *string, int size) { printf("[%s] \n", __func__); return 0; } unsigned char bcmImg_isBackupConfigFlashAvailable(void) { printf("[%s] \n", __func__); return 0; } unsigned int bcmImg_getImageFlashSize(void) { printf("[%s] \n", __func__); return 0; } int bcmFlash_getIdent(int part, int *start, int *end, const char *key, char *line, int len) { printf("[%s] \n", __func__); return 0; } CmsImageFormat bcmImg_validateImage(const char *imageBuf, UINT32 imageLen) { printf("[%s] \n", __func__); return CMS_IMAGE_FORMAT_INVALID; } CmsRet bcmImg_verifyBroadcomFileTag(FILE_TAG *pTag, UBOOL8 fullImageB, int imageLen) { printf("[%s] \n", __func__); return 0; } unsigned char bcmImg_willFitInFlash(unsigned int imageSize) { printf("[%s] \n", __func__); return 0; } unsigned char bcmImg_isConfigFileLikely(const char *buf) { printf("[%s] \n", __func__); return 0; } unsigned int bcmImg_getBroadcomImageTagSize(void) { printf("[%s] \n", __func__); return 0; } unsigned int bcmImg_getConfigFlashSize(void) { printf("[%s] \n", __func__); return 128*1024; } unsigned int bcmImg_getRealConfigFlashSize(void) { printf("[%s] \n", __func__); return 128*1024; } BcmRet devCtl_boardIoctl(UINT32 boardIoctl, BOARD_IOCTL_ACTION action, char *string, SINT32 strLen, SINT32 offset, void *data) { printf("[%s] ioctl %x action %d\n", __func__, boardIoctl, action); #ifndef DESKTOP_LINUX if( (((boardIoctl == BOARD_IOCTL_FLASH_READ || boardIoctl == BOARD_IOCTL_FLASH_WRITE) && ((action == SCRATCH_PAD) || (action == PERSISTENT) || (action == BACKUP_PSI) || (action == SYSLOG))) || (boardIoctl == BOARD_IOCTL_FLASH_LIST)) ) { return BCMRET_INVALID_ARGUMENTS; } #endif return (devCtl_boardDriverIoctl(boardIoctl, action, string, strLen, offset, data)); }