'\" t .\" Title: struct spi_flash_read_message .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Serial Peripheral Interface (SPI) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT SPI_FLASH_REA" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Serial Peripheral Interface (S" .\" ----------------------------------------------------------------- .\" * 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_spi_flash_read_message \- flash specific information for spi\-masters that provide accelerated flash read interfaces .SH "SYNOPSIS" .sp .nf struct spi_flash_read_message { void * buf; loff_t from; size_t len; size_t retlen; u8 read_opcode; u8 addr_width; u8 dummy_bytes; u8 opcode_nbits; u8 addr_nbits; u8 data_nbits; struct sg_table rx_sg; bool cur_msg_mapped; }; .fi .SH "MEMBERS" .PP buf .RS 4 buffer to read data .RE .PP from .RS 4 offset within the flash from where data is to be read .RE .PP len .RS 4 length of data to be read .RE .PP retlen .RS 4 actual length of data read .RE .PP read_opcode .RS 4 read_opcode to be used to communicate with flash .RE .PP addr_width .RS 4 number of address bytes .RE .PP dummy_bytes .RS 4 number of dummy bytes .RE .PP opcode_nbits .RS 4 number of lines to send opcode .RE .PP addr_nbits .RS 4 number of lines to send address .RE .PP data_nbits .RS 4 number of lines for data .RE .PP rx_sg .RS 4 Scatterlist for receive data read from flash .RE .PP cur_msg_mapped .RS 4 message has been mapped for DMA .RE .SH "COPYRIGHT" .br