ReadFirmware3.c 892 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * signed ReadFirmware3 (struct plc * plc);
  11. *
  12. * plc.h
  13. *
  14. * Read the firmware from flash memory using VS_MODULE_OPERATION
  15. * messages and write to file;
  16. *
  17. * Contributor(s):
  18. * Charles Maier <cmaier@qca.qualcomm.com>
  19. *
  20. *--------------------------------------------------------------------*/
  21. #ifndef READFIRMWARE3_SOURCE
  22. #define READFIRMWARE3_SOURCE
  23. #include "../plc/plc.h"
  24. #include "../nda/nda.h"
  25. signed ReadFirmware3 (struct plc * plc)
  26. {
  27. return (~ AccessLevelPTS (plc)? ModuleRead (plc, & plc->pib, PLC_MOD_OP_READ_FLASH, PLC_MODULEID_FIRMWARE, 0): (-1));
  28. }
  29. #endif