Thomas Gleixner | 6b99076 | 2019-06-04 10:11:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Benjamin Herrenschmidt | 9f4a8a2 | 2018-05-17 15:58:00 +1000 | [diff] [blame] | 2 | /* |
| 3 | * SBEFIFO FSI Client device driver |
| 4 | * |
| 5 | * Copyright (C) IBM Corporation 2017 |
Benjamin Herrenschmidt | 9f4a8a2 | 2018-05-17 15:58:00 +1000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef LINUX_FSI_SBEFIFO_H |
| 9 | #define LINUX_FSI_SBEFIFO_H |
| 10 | |
| 11 | #define SBEFIFO_CMD_PUT_OCC_SRAM 0xa404 |
| 12 | #define SBEFIFO_CMD_GET_OCC_SRAM 0xa403 |
| 13 | #define SBEFIFO_CMD_GET_SBE_FFDC 0xa801 |
| 14 | |
| 15 | #define SBEFIFO_MAX_FFDC_SIZE 0x2000 |
| 16 | |
| 17 | struct device; |
| 18 | |
| 19 | int sbefifo_submit(struct device *dev, const __be32 *command, size_t cmd_len, |
| 20 | __be32 *response, size_t *resp_len); |
| 21 | |
| 22 | int sbefifo_parse_status(struct device *dev, u16 cmd, __be32 *response, |
| 23 | size_t resp_len, size_t *data_len); |
| 24 | |
| 25 | #endif /* LINUX_FSI_SBEFIFO_H */ |