^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2018 Cadence Design Systems Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Author: Boris Brezillon <boris.brezillon@bootlin.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef I3C_INTERNALS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define I3C_INTERNALS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/i3c/master.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern struct bus_type i3c_bus_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) void i3c_bus_normaluse_lock(struct i3c_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void i3c_bus_normaluse_unlock(struct i3c_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int i3c_dev_do_priv_xfers_locked(struct i3c_dev_desc *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct i3c_priv_xfer *xfers,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int nxfers);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int i3c_dev_disable_ibi_locked(struct i3c_dev_desc *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int i3c_dev_enable_ibi_locked(struct i3c_dev_desc *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int i3c_dev_request_ibi_locked(struct i3c_dev_desc *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) const struct i3c_ibi_setup *req);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) void i3c_dev_free_ibi_locked(struct i3c_dev_desc *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* I3C_INTERNAL_H */