'\" t .\" Title: struct pwm_chip .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Pulse-Width Modulation (PWM) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT PWM_CHIP" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Pulse-Width Modulation (PWM)" .\" ----------------------------------------------------------------- .\" * 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_pwm_chip \- abstract a PWM controller .SH "SYNOPSIS" .sp .nf struct pwm_chip { struct device * dev; struct list_head list; const struct pwm_ops * ops; int base; unsigned int npwm; struct pwm_device * pwms; struct pwm_device * (* of_xlate) (struct pwm_chip *pc,const struct of_phandle_args *args); unsigned int of_pwm_n_cells; bool can_sleep; }; .fi .SH "MEMBERS" .PP dev .RS 4 device providing the PWMs .RE .PP list .RS 4 list node for internal use .RE .PP ops .RS 4 callbacks for this PWM controller .RE .PP base .RS 4 number of first PWM controlled by this chip .RE .PP npwm .RS 4 number of PWMs controlled by this chip .RE .PP pwms .RS 4 array of PWM devices allocated by the framework .RE .PP of_xlate .RS 4 request a PWM device given a device tree PWM specifier .RE .PP of_pwm_n_cells .RS 4 number of cells expected in the device tree PWM specifier .RE .PP can_sleep .RS 4 must be true if the \&.\fBconfig\fR, \&.\fBenable\fR or \&.\fBdisable\fR operations may sleep .RE .SH "COPYRIGHT" .br