diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-25 15:26:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-25 15:26:34 -0500 |
commit | b3cc2bfe7244e848f5e8caa77bbdc72c04abd17c (patch) | |
tree | 19cce6c02dcdb290ef238fb3e17698cc915d4533 /drivers/i3c/internals.h | |
parent | 4971f090aa7f6ce5daa094ce4334f6618f93a7eb (diff) | |
parent | 25ac3da61ba144f8dbfe377eeec6b1da7ad0854a (diff) |
Merge tag 'i3c/for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux
Pull initial i3c support from Boris Brezillon:
"Add initial support for I3C along with two I3C master controller
drivers"
* tag 'i3c/for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux:
i3c: master: cdns: fix I2C transfers in Cadence I3C master driver
ic3: off by one in mode_show()
i3c: fix an error code in i3c_master_add_i3c_dev_locked()
i3c: master: dw: fix mask operation by using the correct operator
MAINTAINERS: Add myself as the dw-i3c-master module maintainer
dt-binding: i3c: Document Synopsys DesignWare I3C
i3c: master: Add driver for Synopsys DesignWare IP
i3c: master: Remove set but not used variable 'old_i3c_scl_lim'
dt-bindings: i3c: Document Cadence I3C master bindings
i3c: master: Add driver for Cadence IP
MAINTAINERS: Add myself as the I3C subsystem maintainer
dt-bindings: i3c: Document core bindings
i3c: Add sysfs ABI spec
docs: driver-api: Add I3C documentation
i3c: Add core I3C infrastructure
Diffstat (limited to 'drivers/i3c/internals.h')
-rw-r--r-- | drivers/i3c/internals.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/i3c/internals.h b/drivers/i3c/internals.h new file mode 100644 index 000000000000..86b7b44cfca2 --- /dev/null +++ b/drivers/i3c/internals.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | /* | ||
3 | * Copyright (C) 2018 Cadence Design Systems Inc. | ||
4 | * | ||
5 | * Author: Boris Brezillon <boris.brezillon@bootlin.com> | ||
6 | */ | ||
7 | |||
8 | #ifndef I3C_INTERNALS_H | ||
9 | #define I3C_INTERNALS_H | ||
10 | |||
11 | #include <linux/i3c/master.h> | ||
12 | |||
13 | extern struct bus_type i3c_bus_type; | ||
14 | |||
15 | void i3c_bus_normaluse_lock(struct i3c_bus *bus); | ||
16 | void i3c_bus_normaluse_unlock(struct i3c_bus *bus); | ||
17 | |||
18 | int i3c_dev_do_priv_xfers_locked(struct i3c_dev_desc *dev, | ||
19 | struct i3c_priv_xfer *xfers, | ||
20 | int nxfers); | ||
21 | int i3c_dev_disable_ibi_locked(struct i3c_dev_desc *dev); | ||
22 | int i3c_dev_enable_ibi_locked(struct i3c_dev_desc *dev); | ||
23 | int i3c_dev_request_ibi_locked(struct i3c_dev_desc *dev, | ||
24 | const struct i3c_ibi_setup *req); | ||
25 | void i3c_dev_free_ibi_locked(struct i3c_dev_desc *dev); | ||
26 | #endif /* I3C_INTERNAL_H */ | ||