.\" 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 "IDE_BUILD_DMATABLE" "9" "09 October 2005" "" "" .SH NAME ide_build_dmatable \- build IDE DMA table .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ide_build_dmatable (ide_drive_t * \fIdrive\fB, struct request * \fIrq\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdrive\fB\fR -- undescribed -- .TP \fB\fIrq\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP .PP \fBide_build_dmatable\fR prepares a dma request. We map the command to get the pci bus addresses of the buffers and then build up the PRD table that the IDE layer wants to be fed. The code knows about the 64K wrap bug in the CS5530. .PP Returns the number of built PRD entries if all went okay, returns 0 otherwise. .PP May also be invoked from trm290.c