/*====================================================================* * * Copyright (c) 2013 Qualcomm Atheros, Inc. * * All rights reserved. * *====================================================================*/ /*====================================================================* * * signed WriteParameters (struct plc * plc, unsigned module, void const * nvm_header); * * plc.h * * call appropriate function based on the image file format; * * Contributor(s): * Charles Maier * *--------------------------------------------------------------------*/ #ifndef WRITEFIRMWARE_SOURCE #define WRITEFIRMWARE_SOURCE #include "../plc/plc.h" signed WriteParameters (struct plc * plc, unsigned module, void const * nvm_header) { return ((LE32TOH (* (uint32_t *) (nvm_header)) == 0x60000000)? WriteParameters1 (plc, module, nvm_header): WriteParameters2 (plc, module, nvm_header)); } #endif