1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct platform_nand_ctrl</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="up" href="structs.html" title="Chapter&#160;9.&#160;Structures"><link rel="prev" href="API-struct-platform-nand-chip.html" title="struct platform_nand_chip"><link rel="next" href="API-struct-platform-nand-data.html" title="struct platform_nand_data"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct platform_nand_ctrl</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-platform-nand-chip.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;9.&#160;Structures</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-platform-nand-data.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-platform-nand-ctrl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct platform_nand_ctrl &#8212; 
2     controller level device structure
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct platform_nand_ctrl {
5  int (* probe) (struct platform_device *pdev);
6  void (* remove) (struct platform_device *pdev);
7  void (* hwcontrol) (struct mtd_info *mtd, int cmd);
8  int (* dev_ready) (struct mtd_info *mtd);
9  void (* select_chip) (struct mtd_info *mtd, int chip);
10  void (* cmd_ctrl) (struct mtd_info *mtd, int dat, unsigned int ctrl);
11  void (* write_buf) (struct mtd_info *mtd, const uint8_t *buf, int len);
12  void (* read_buf) (struct mtd_info *mtd, uint8_t *buf, int len);
13  unsigned char (* read_byte) (struct mtd_info *mtd);
14  void * priv;
15};  </pre></div><div class="refsect1"><a name="idp1102715268"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">probe</span></dt><dd><p>
16   platform specific function to probe/setup hardware
17      </p></dd><dt><span class="term">remove</span></dt><dd><p>
18   platform specific function to remove/teardown hardware
19      </p></dd><dt><span class="term">hwcontrol</span></dt><dd><p>
20   platform specific hardware control structure
21      </p></dd><dt><span class="term">dev_ready</span></dt><dd><p>
22   platform specific function to read ready/busy pin
23      </p></dd><dt><span class="term">select_chip</span></dt><dd><p>
24   platform specific chip select function
25      </p></dd><dt><span class="term">cmd_ctrl</span></dt><dd><p>
26   platform specific function for controlling
27   ALE/CLE/nCE. Also used to write command and address
28      </p></dd><dt><span class="term">write_buf</span></dt><dd><p>
29   platform specific function for write buffer
30      </p></dd><dt><span class="term">read_buf</span></dt><dd><p>
31   platform specific function for read buffer
32      </p></dd><dt><span class="term">read_byte</span></dt><dd><p>
33   platform specific function to read one byte from chip
34      </p></dd><dt><span class="term">priv</span></dt><dd><p>
35   private data to transport driver specific settings
36      </p></dd></dl></div></div><div class="refsect1"><a name="idp1102722972"></a><h2>Description</h2><p>
37   All fields are optional and depend on the hardware driver requirements
38</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-platform-nand-chip.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="structs.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-platform-nand-data.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct platform_nand_chip</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct platform_nand_data</span></td></tr></table></div></body></html>
39