linux/drivers/i3c/master/mipi-i3c-hci/cmd.h

/* SPDX-License-Identifier: BSD-3-Clause */
/*
 * Copyright (c) 2020, MIPI Alliance, Inc.
 *
 * Author: Nicolas Pitre <[email protected]>
 *
 * Common command/response related stuff
 */

#ifndef CMD_H
#define CMD_H

/*
 * Those bits are common to all descriptor formats and
 * may be manipulated by the core code.
 */
#define CMD_0_TOC
#define CMD_0_ROC
#define CMD_0_ATTR

/*
 * Response Descriptor Structure
 */
#define RESP_STATUS(resp)
#define RESP_TID(resp)
#define RESP_DATA_LENGTH(resp)

#define RESP_ERR_FIELD

enum hci_resp_err {};

/* TID generation (4 bits wide in all cases) */
#define hci_get_tid(bits)

/* This abstracts operations with our command descriptor formats */
struct hci_cmd_ops {};

/* Our various instances */
extern const struct hci_cmd_ops mipi_i3c_hci_cmd_v1;
extern const struct hci_cmd_ops mipi_i3c_hci_cmd_v2;

#endif