semihosting.h 522 B

123456789101112131415161718192021
  1. /*
  2. * Copyright 2014 Broadcom Corporation
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __SEMIHOSTING_H__
  7. #define __SEMIHOSTING_H__
  8. /*
  9. * ARM semihosting functions for loading images to memory. See the source
  10. * code for more information.
  11. */
  12. int smh_load(const char *fname, void *memp, int avail, int verbose);
  13. int smh_read(int fd, void *memp, int len);
  14. int smh_open(const char *fname, char *modestr);
  15. int smh_close(int fd);
  16. int smh_len_fd(int fd);
  17. int smh_len(const char *fname);
  18. #endif /* __SEMIHOSTING_H__ */