Lines Matching +full:i2c +full:- +full:bus
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/asm-ppc/pmac_low_i2c.h
11 /* i2c mode (based on the platform functions format) */
25 /* i2c bus type */
32 /* i2c bus features */
37 /* multibus : device node holds multiple busses, bus number is
43 /* i2c busses in the system */
50 /* Lookup an i2c bus for a device-node. The node can be either the bus
51 * node itself or a device below it. In the case of a multibus, the bus
57 /* Get the address for an i2c device. This strips the bus number if
63 /* Get infos about a bus */
64 extern struct device_node *pmac_i2c_get_controller(struct pmac_i2c_bus *bus);
65 extern struct device_node *pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus);
66 extern int pmac_i2c_get_type(struct pmac_i2c_bus *bus);
67 extern int pmac_i2c_get_flags(struct pmac_i2c_bus *bus);
68 extern int pmac_i2c_get_channel(struct pmac_i2c_bus *bus);
70 /* i2c layer adapter helpers */
71 extern struct i2c_adapter *pmac_i2c_get_adapter(struct pmac_i2c_bus *bus);
74 /* March a device or bus with an i2c adapter structure, to be used by drivers
75 * to match device-tree nodes with i2c adapters during adapter discovery
82 /* (legacy) Locking functions exposed to i2c-keywest */
87 extern int pmac_i2c_open(struct pmac_i2c_bus *bus, int polled);
88 extern void pmac_i2c_close(struct pmac_i2c_bus *bus);
89 extern int pmac_i2c_setmode(struct pmac_i2c_bus *bus, int mode);
90 extern int pmac_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize,
93 /* Suspend/resume code called by via-pmu directly for now */