'\" t .\" Title: struct i2c_bus_recovery_info .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: I2C and SMBus Subsystem .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT I2C_BUS_RECOV" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "I2C and SMBus Subsystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_i2c_bus_recovery_info \- I2C bus recovery information .SH "SYNOPSIS" .sp .nf struct i2c_bus_recovery_info { int (* recover_bus) (struct i2c_adapter *); int (* get_scl) (struct i2c_adapter *); void (* set_scl) (struct i2c_adapter *, int val); int (* get_sda) (struct i2c_adapter *); void (* prepare_recovery) (struct i2c_adapter *); void (* unprepare_recovery) (struct i2c_adapter *); int scl_gpio; int sda_gpio; }; .fi .SH "MEMBERS" .PP recover_bus .RS 4 Recover routine\&. Either pass driver\*(Aqs \fBrecover_bus\fR routine, or \fBi2c_generic_scl_recovery\fR or \fBi2c_generic_gpio_recovery\fR\&. .RE .PP get_scl .RS 4 This gets current value of SCL line\&. Mandatory for generic SCL recovery\&. Used internally for generic GPIO recovery\&. .RE .PP set_scl .RS 4 This sets/clears SCL line\&. Mandatory for generic SCL recovery\&. Used internally for generic GPIO recovery\&. .RE .PP get_sda .RS 4 This gets current value of SDA line\&. Optional for generic SCL recovery\&. Used internally, if sda_gpio is a valid GPIO, for generic GPIO recovery\&. .RE .PP prepare_recovery .RS 4 This will be called before starting recovery\&. Platform may configure padmux here for SDA/SCL line or something else they want\&. .RE .PP unprepare_recovery .RS 4 This will be called after completing recovery\&. Platform may configure padmux here for SDA/SCL line or something else they want\&. .RE .PP scl_gpio .RS 4 gpio number of the SCL line\&. Only required for GPIO recovery\&. .RE .PP sda_gpio .RS 4 gpio number of the SDA line\&. Only required for GPIO recovery\&. .RE .SH "COPYRIGHT" .br