linux/include/linux/fsi-occ.h

// SPDX-License-Identifier: GPL-2.0

#ifndef LINUX_FSI_OCC_H
#define LINUX_FSI_OCC_H

struct device;

#define OCC_RESP_CMD_IN_PRG
#define OCC_RESP_SUCCESS
#define OCC_RESP_CMD_INVAL
#define OCC_RESP_CMD_LEN_INVAL
#define OCC_RESP_DATA_INVAL
#define OCC_RESP_CHKSUM_ERR
#define OCC_RESP_INT_ERR
#define OCC_RESP_BAD_STATE
#define OCC_RESP_CRIT_EXCEPT
#define OCC_RESP_CRIT_INIT
#define OCC_RESP_CRIT_WATCHDOG
#define OCC_RESP_CRIT_OCB
#define OCC_RESP_CRIT_HW

#define OCC_MAX_RESP_WORDS

int fsi_occ_submit(struct device *dev, const void *request, size_t req_len,
		   void *response, size_t *resp_len);

#endif /* LINUX_FSI_OCC_H */