Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * SBEFIFO FSI Client device driver
0004  *
0005  * Copyright (C) IBM Corporation 2017
0006  */
0007 
0008 #ifndef LINUX_FSI_SBEFIFO_H
0009 #define LINUX_FSI_SBEFIFO_H
0010 
0011 #define SBEFIFO_CMD_PUT_OCC_SRAM    0xa404
0012 #define SBEFIFO_CMD_GET_OCC_SRAM    0xa403
0013 #define SBEFIFO_CMD_GET_SBE_FFDC    0xa801
0014 
0015 #define SBEFIFO_MAX_FFDC_SIZE       0x2000
0016 
0017 struct device;
0018 
0019 int sbefifo_submit(struct device *dev, const __be32 *command, size_t cmd_len,
0020            __be32 *response, size_t *resp_len);
0021 
0022 int sbefifo_parse_status(struct device *dev, u16 cmd, __be32 *response,
0023              size_t resp_len, size_t *data_len);
0024 
0025 #endif /* LINUX_FSI_SBEFIFO_H */