.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "I810_CALC_DCLK" "9" "09 October 2005" "" "" .SH NAME i810_calc_dclk \- calculates the P, M, and N values of a pixelclock value .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void i810_calc_dclk (u32 \fIfreq\fB, u32 * \fIm\fB, u32 * \fIn\fB, u32 * \fIp\fB); \fR .SH "ARGUMENTS" .TP \fB\fIfreq\fB\fR target pixelclock in picoseconds .TP \fB\fIm\fB\fR where to write M register .TP \fB\fIn\fB\fR where to write N register .TP \fB\fIp\fB\fR where to write P register .SH "DESCRIPTION" .PP Based on the formula Freq_actual = (4*M*Freq_ref)/(N^P) Repeatedly computes the Freq until the actual Freq is equal to the target Freq or until the loop count is zero. In the latter case, the actual frequency nearest the target will be used.