fsi-sbefifo.h 629 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * SBEFIFO FSI Client device driver
  4. *
  5. * Copyright (C) IBM Corporation 2017
  6. */
  7. #ifndef LINUX_FSI_SBEFIFO_H
  8. #define LINUX_FSI_SBEFIFO_H
  9. #define SBEFIFO_CMD_PUT_OCC_SRAM 0xa404
  10. #define SBEFIFO_CMD_GET_OCC_SRAM 0xa403
  11. #define SBEFIFO_CMD_GET_SBE_FFDC 0xa801
  12. #define SBEFIFO_MAX_FFDC_SIZE 0x2000
  13. struct device;
  14. int sbefifo_submit(struct device *dev, const __be32 *command, size_t cmd_len,
  15. __be32 *response, size_t *resp_len);
  16. int sbefifo_parse_status(struct device *dev, u16 cmd, __be32 *response,
  17. size_t resp_len, size_t *data_len);
  18. #endif /* LINUX_FSI_SBEFIFO_H */