18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2018 Cadence Design Systems Inc.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Author: Boris Brezillon <boris.brezillon@bootlin.com>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef I3C_INTERNALS_H
98c2ecf20Sopenharmony_ci#define I3C_INTERNALS_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <linux/i3c/master.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciextern struct bus_type i3c_bus_type;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_civoid i3c_bus_normaluse_lock(struct i3c_bus *bus);
168c2ecf20Sopenharmony_civoid i3c_bus_normaluse_unlock(struct i3c_bus *bus);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciint i3c_dev_do_priv_xfers_locked(struct i3c_dev_desc *dev,
198c2ecf20Sopenharmony_ci				 struct i3c_priv_xfer *xfers,
208c2ecf20Sopenharmony_ci				 int nxfers);
218c2ecf20Sopenharmony_ciint i3c_dev_disable_ibi_locked(struct i3c_dev_desc *dev);
228c2ecf20Sopenharmony_ciint i3c_dev_enable_ibi_locked(struct i3c_dev_desc *dev);
238c2ecf20Sopenharmony_ciint i3c_dev_request_ibi_locked(struct i3c_dev_desc *dev,
248c2ecf20Sopenharmony_ci			       const struct i3c_ibi_setup *req);
258c2ecf20Sopenharmony_civoid i3c_dev_free_ibi_locked(struct i3c_dev_desc *dev);
268c2ecf20Sopenharmony_ci#endif /* I3C_INTERNAL_H */
27