1 /* 2 * SBEFIFO FSI Client device driver 3 * 4 * Copyright (C) IBM Corporation 2017 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERGCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 */ 15 16 #ifndef LINUX_FSI_SBEFIFO_H 17 #define LINUX_FSI_SBEFIFO_H 18 19 #define SBEFIFO_CMD_PUT_OCC_SRAM 0xa404 20 #define SBEFIFO_CMD_GET_OCC_SRAM 0xa403 21 #define SBEFIFO_CMD_GET_SBE_FFDC 0xa801 22 23 #define SBEFIFO_MAX_FFDC_SIZE 0x2000 24 25 struct device; 26 27 int sbefifo_submit(struct device *dev, const __be32 *command, size_t cmd_len, 28 __be32 *response, size_t *resp_len); 29 30 int sbefifo_parse_status(struct device *dev, u16 cmd, __be32 *response, 31 size_t resp_len, size_t *data_len); 32 33 #endif /* LINUX_FSI_SBEFIFO_H */ 34