kernel-api.tmpl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
  4. <book id="LinuxKernelAPI">
  5. <bookinfo>
  6. <title>The Linux Kernel API</title>
  7. <legalnotice>
  8. <para>
  9. This documentation is free software; you can redistribute
  10. it and/or modify it under the terms of the GNU General Public
  11. License as published by the Free Software Foundation; either
  12. version 2 of the License, or (at your option) any later
  13. version.
  14. </para>
  15. <para>
  16. This program is distributed in the hope that it will be
  17. useful, but WITHOUT ANY WARRANTY; without even the implied
  18. warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19. See the GNU General Public License for more details.
  20. </para>
  21. <para>
  22. You should have received a copy of the GNU General Public
  23. License along with this program; if not, write to the Free
  24. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  25. MA 02111-1307 USA
  26. </para>
  27. <para>
  28. For more details see the file COPYING in the source
  29. distribution of Linux.
  30. </para>
  31. </legalnotice>
  32. </bookinfo>
  33. <toc></toc>
  34. <chapter id="Basics">
  35. <title>Driver Basics</title>
  36. <sect1><title>Driver Entry and Exit points</title>
  37. !Iinclude/linux/init.h
  38. </sect1>
  39. <sect1><title>Atomic and pointer manipulation</title>
  40. !Iinclude/asm-i386/atomic.h
  41. !Iinclude/asm-i386/unaligned.h
  42. </sect1>
  43. <sect1><title>Delaying, scheduling, and timer routines</title>
  44. !Iinclude/linux/sched.h
  45. !Ekernel/sched.c
  46. !Ekernel/timer.c
  47. </sect1>
  48. <sect1><title>High-resolution timers</title>
  49. !Iinclude/linux/ktime.h
  50. !Iinclude/linux/hrtimer.h
  51. !Ekernel/hrtimer.c
  52. </sect1>
  53. <sect1><title>Workqueues and Kevents</title>
  54. !Ekernel/workqueue.c
  55. </sect1>
  56. <sect1><title>Internal Functions</title>
  57. !Ikernel/exit.c
  58. !Ikernel/signal.c
  59. !Iinclude/linux/kthread.h
  60. !Ekernel/kthread.c
  61. </sect1>
  62. <sect1><title>Kernel objects manipulation</title>
  63. <!--
  64. X!Iinclude/linux/kobject.h
  65. -->
  66. !Elib/kobject.c
  67. </sect1>
  68. <sect1><title>Kernel utility functions</title>
  69. !Iinclude/linux/kernel.h
  70. !Ekernel/printk.c
  71. !Ekernel/panic.c
  72. !Ekernel/sys.c
  73. !Ekernel/rcupdate.c
  74. </sect1>
  75. <sect1><title>Device Resource Management</title>
  76. !Edrivers/base/devres.c
  77. </sect1>
  78. </chapter>
  79. <chapter id="adt">
  80. <title>Data Types</title>
  81. <sect1><title>Doubly Linked Lists</title>
  82. !Iinclude/linux/list.h
  83. </sect1>
  84. </chapter>
  85. <chapter id="libc">
  86. <title>Basic C Library Functions</title>
  87. <para>
  88. When writing drivers, you cannot in general use routines which are
  89. from the C Library. Some of the functions have been found generally
  90. useful and they are listed below. The behaviour of these functions
  91. may vary slightly from those defined by ANSI, and these deviations
  92. are noted in the text.
  93. </para>
  94. <sect1><title>String Conversions</title>
  95. !Ilib/vsprintf.c
  96. !Elib/vsprintf.c
  97. </sect1>
  98. <sect1><title>String Manipulation</title>
  99. <!-- All functions are exported at now
  100. X!Ilib/string.c
  101. -->
  102. !Elib/string.c
  103. </sect1>
  104. <sect1><title>Bit Operations</title>
  105. !Iinclude/asm-i386/bitops.h
  106. </sect1>
  107. </chapter>
  108. <chapter id="kernel-lib">
  109. <title>Basic Kernel Library Functions</title>
  110. <para>
  111. The Linux kernel provides more basic utility functions.
  112. </para>
  113. <sect1><title>Bitmap Operations</title>
  114. !Elib/bitmap.c
  115. !Ilib/bitmap.c
  116. </sect1>
  117. <sect1><title>Command-line Parsing</title>
  118. !Elib/cmdline.c
  119. </sect1>
  120. <sect1><title>CRC Functions</title>
  121. !Elib/crc16.c
  122. !Elib/crc32.c
  123. !Elib/crc-ccitt.c
  124. </sect1>
  125. </chapter>
  126. <chapter id="mm">
  127. <title>Memory Management in Linux</title>
  128. <sect1><title>The Slab Cache</title>
  129. !Iinclude/linux/slab.h
  130. !Emm/slab.c
  131. </sect1>
  132. <sect1><title>User Space Memory Access</title>
  133. !Iinclude/asm-i386/uaccess.h
  134. !Earch/i386/lib/usercopy.c
  135. </sect1>
  136. <sect1><title>More Memory Management Functions</title>
  137. !Iinclude/linux/rmap.h
  138. !Emm/readahead.c
  139. !Emm/filemap.c
  140. !Emm/memory.c
  141. !Emm/vmalloc.c
  142. !Imm/page_alloc.c
  143. !Emm/mempool.c
  144. !Emm/page-writeback.c
  145. !Emm/truncate.c
  146. </sect1>
  147. </chapter>
  148. <chapter id="ipc">
  149. <title>Kernel IPC facilities</title>
  150. <sect1><title>IPC utilities</title>
  151. !Iipc/util.c
  152. </sect1>
  153. </chapter>
  154. <chapter id="kfifo">
  155. <title>FIFO Buffer</title>
  156. <sect1><title>kfifo interface</title>
  157. !Iinclude/linux/kfifo.h
  158. !Ekernel/kfifo.c
  159. </sect1>
  160. </chapter>
  161. <chapter id="relayfs">
  162. <title>relay interface support</title>
  163. <para>
  164. Relay interface support
  165. is designed to provide an efficient mechanism for tools and
  166. facilities to relay large amounts of data from kernel space to
  167. user space.
  168. </para>
  169. <sect1><title>relay interface</title>
  170. !Ekernel/relay.c
  171. !Ikernel/relay.c
  172. </sect1>
  173. </chapter>
  174. <chapter id="netcore">
  175. <title>Linux Networking</title>
  176. <sect1><title>Networking Base Types</title>
  177. !Iinclude/linux/net.h
  178. </sect1>
  179. <sect1><title>Socket Buffer Functions</title>
  180. !Iinclude/linux/skbuff.h
  181. !Iinclude/net/sock.h
  182. !Enet/socket.c
  183. !Enet/core/skbuff.c
  184. !Enet/core/sock.c
  185. !Enet/core/datagram.c
  186. !Enet/core/stream.c
  187. </sect1>
  188. <sect1><title>Socket Filter</title>
  189. !Enet/core/filter.c
  190. </sect1>
  191. <sect1><title>Generic Network Statistics</title>
  192. !Iinclude/linux/gen_stats.h
  193. !Enet/core/gen_stats.c
  194. !Enet/core/gen_estimator.c
  195. </sect1>
  196. <sect1><title>SUN RPC subsystem</title>
  197. <!-- The !D functionality is not perfect, garbage has to be protected by comments
  198. !Dnet/sunrpc/sunrpc_syms.c
  199. -->
  200. !Enet/sunrpc/xdr.c
  201. !Enet/sunrpc/svcsock.c
  202. !Enet/sunrpc/sched.c
  203. </sect1>
  204. </chapter>
  205. <chapter id="netdev">
  206. <title>Network device support</title>
  207. <sect1><title>Driver Support</title>
  208. !Enet/core/dev.c
  209. !Enet/ethernet/eth.c
  210. !Iinclude/linux/etherdevice.h
  211. !Edrivers/net/phy/phy.c
  212. !Idrivers/net/phy/phy.c
  213. !Edrivers/net/phy/phy_device.c
  214. !Idrivers/net/phy/phy_device.c
  215. !Edrivers/net/phy/mdio_bus.c
  216. !Idrivers/net/phy/mdio_bus.c
  217. <!-- FIXME: Removed for now since no structured comments in source
  218. X!Enet/core/wireless.c
  219. -->
  220. </sect1>
  221. <sect1><title>Synchronous PPP</title>
  222. !Edrivers/net/wan/syncppp.c
  223. </sect1>
  224. </chapter>
  225. <chapter id="modload">
  226. <title>Module Support</title>
  227. <sect1><title>Module Loading</title>
  228. !Ekernel/kmod.c
  229. </sect1>
  230. <sect1><title>Inter Module support</title>
  231. <para>
  232. Refer to the file kernel/module.c for more information.
  233. </para>
  234. <!-- FIXME: Removed for now since no structured comments in source
  235. X!Ekernel/module.c
  236. -->
  237. </sect1>
  238. </chapter>
  239. <chapter id="hardware">
  240. <title>Hardware Interfaces</title>
  241. <sect1><title>Interrupt Handling</title>
  242. !Ekernel/irq/manage.c
  243. </sect1>
  244. <sect1><title>DMA Channels</title>
  245. !Ekernel/dma.c
  246. </sect1>
  247. <sect1><title>Resources Management</title>
  248. !Ikernel/resource.c
  249. !Ekernel/resource.c
  250. </sect1>
  251. <sect1><title>MTRR Handling</title>
  252. !Earch/i386/kernel/cpu/mtrr/main.c
  253. </sect1>
  254. <sect1><title>PCI Support Library</title>
  255. !Edrivers/pci/pci.c
  256. !Edrivers/pci/pci-driver.c
  257. !Edrivers/pci/remove.c
  258. !Edrivers/pci/pci-acpi.c
  259. !Edrivers/pci/search.c
  260. !Edrivers/pci/msi.c
  261. !Edrivers/pci/bus.c
  262. <!-- FIXME: Removed for now since no structured comments in source
  263. X!Edrivers/pci/hotplug.c
  264. -->
  265. !Edrivers/pci/probe.c
  266. !Edrivers/pci/rom.c
  267. </sect1>
  268. <sect1><title>PCI Hotplug Support Library</title>
  269. !Edrivers/pci/hotplug/pci_hotplug_core.c
  270. </sect1>
  271. <sect1><title>MCA Architecture</title>
  272. <sect2><title>MCA Device Functions</title>
  273. <para>
  274. Refer to the file arch/i386/kernel/mca.c for more information.
  275. </para>
  276. <!-- FIXME: Removed for now since no structured comments in source
  277. X!Earch/i386/kernel/mca.c
  278. -->
  279. </sect2>
  280. <sect2><title>MCA Bus DMA</title>
  281. !Iinclude/asm-i386/mca_dma.h
  282. </sect2>
  283. </sect1>
  284. </chapter>
  285. <chapter id="firmware">
  286. <title>Firmware Interfaces</title>
  287. <sect1><title>DMI Interfaces</title>
  288. !Edrivers/firmware/dmi_scan.c
  289. </sect1>
  290. <sect1><title>EDD Interfaces</title>
  291. !Idrivers/firmware/edd.c
  292. </sect1>
  293. </chapter>
  294. <chapter id="security">
  295. <title>Security Framework</title>
  296. !Esecurity/security.c
  297. </chapter>
  298. <chapter id="audit">
  299. <title>Audit Interfaces</title>
  300. !Ekernel/audit.c
  301. !Ikernel/auditsc.c
  302. !Ikernel/auditfilter.c
  303. </chapter>
  304. <chapter id="accounting">
  305. <title>Accounting Framework</title>
  306. !Ikernel/acct.c
  307. </chapter>
  308. <chapter id="pmfuncs">
  309. <title>Power Management</title>
  310. !Ekernel/power/pm.c
  311. </chapter>
  312. <chapter id="devdrivers">
  313. <title>Device drivers infrastructure</title>
  314. <sect1><title>Device Drivers Base</title>
  315. <!--
  316. X!Iinclude/linux/device.h
  317. -->
  318. !Edrivers/base/driver.c
  319. !Edrivers/base/core.c
  320. !Edrivers/base/class.c
  321. !Edrivers/base/firmware_class.c
  322. !Edrivers/base/transport_class.c
  323. !Edrivers/base/dmapool.c
  324. <!-- Cannot be included, because
  325. attribute_container_add_class_device_adapter
  326. and attribute_container_classdev_to_container
  327. exceed allowed 44 characters maximum
  328. X!Edrivers/base/attribute_container.c
  329. -->
  330. !Edrivers/base/sys.c
  331. <!--
  332. X!Edrivers/base/interface.c
  333. -->
  334. !Edrivers/base/platform.c
  335. !Edrivers/base/bus.c
  336. </sect1>
  337. <sect1><title>Device Drivers Power Management</title>
  338. !Edrivers/base/power/main.c
  339. !Edrivers/base/power/resume.c
  340. !Edrivers/base/power/suspend.c
  341. </sect1>
  342. <sect1><title>Device Drivers ACPI Support</title>
  343. <!-- Internal functions only
  344. X!Edrivers/acpi/sleep/main.c
  345. X!Edrivers/acpi/sleep/wakeup.c
  346. X!Edrivers/acpi/motherboard.c
  347. X!Edrivers/acpi/bus.c
  348. -->
  349. !Edrivers/acpi/scan.c
  350. !Idrivers/acpi/scan.c
  351. <!-- No correct structured comments
  352. X!Edrivers/acpi/pci_bind.c
  353. -->
  354. </sect1>
  355. <sect1><title>Device drivers PnP support</title>
  356. !Edrivers/pnp/core.c
  357. <!-- No correct structured comments
  358. X!Edrivers/pnp/system.c
  359. -->
  360. !Edrivers/pnp/card.c
  361. !Edrivers/pnp/driver.c
  362. !Edrivers/pnp/manager.c
  363. !Edrivers/pnp/support.c
  364. </sect1>
  365. </chapter>
  366. <chapter id="blkdev">
  367. <title>Block Devices</title>
  368. !Eblock/ll_rw_blk.c
  369. </chapter>
  370. <chapter id="chrdev">
  371. <title>Char devices</title>
  372. !Efs/char_dev.c
  373. </chapter>
  374. <chapter id="miscdev">
  375. <title>Miscellaneous Devices</title>
  376. !Edrivers/char/misc.c
  377. </chapter>
  378. <chapter id="parportdev">
  379. <title>Parallel Port Devices</title>
  380. !Iinclude/linux/parport.h
  381. !Edrivers/parport/ieee1284.c
  382. !Edrivers/parport/share.c
  383. !Idrivers/parport/daisy.c
  384. </chapter>
  385. <chapter id="message_devices">
  386. <title>Message-based devices</title>
  387. <sect1><title>Fusion message devices</title>
  388. !Edrivers/message/fusion/mptbase.c
  389. !Idrivers/message/fusion/mptbase.c
  390. !Edrivers/message/fusion/mptscsih.c
  391. !Idrivers/message/fusion/mptscsih.c
  392. !Idrivers/message/fusion/mptctl.c
  393. !Idrivers/message/fusion/mptspi.c
  394. !Idrivers/message/fusion/mptfc.c
  395. !Idrivers/message/fusion/mptlan.c
  396. </sect1>
  397. <sect1><title>I2O message devices</title>
  398. !Iinclude/linux/i2o.h
  399. !Idrivers/message/i2o/core.h
  400. !Edrivers/message/i2o/iop.c
  401. !Idrivers/message/i2o/iop.c
  402. !Idrivers/message/i2o/config-osm.c
  403. !Edrivers/message/i2o/exec-osm.c
  404. !Idrivers/message/i2o/exec-osm.c
  405. !Idrivers/message/i2o/bus-osm.c
  406. !Edrivers/message/i2o/device.c
  407. !Idrivers/message/i2o/device.c
  408. !Idrivers/message/i2o/driver.c
  409. !Idrivers/message/i2o/pci.c
  410. !Idrivers/message/i2o/i2o_block.c
  411. !Idrivers/message/i2o/i2o_scsi.c
  412. !Idrivers/message/i2o/i2o_proc.c
  413. </sect1>
  414. </chapter>
  415. <chapter id="snddev">
  416. <title>Sound Devices</title>
  417. !Iinclude/sound/core.h
  418. !Esound/sound_core.c
  419. !Iinclude/sound/pcm.h
  420. !Esound/core/pcm.c
  421. !Esound/core/device.c
  422. !Esound/core/info.c
  423. !Esound/core/rawmidi.c
  424. !Esound/core/sound.c
  425. !Esound/core/memory.c
  426. !Esound/core/pcm_memory.c
  427. !Esound/core/init.c
  428. !Esound/core/isadma.c
  429. !Esound/core/control.c
  430. !Esound/core/pcm_lib.c
  431. !Esound/core/hwdep.c
  432. !Esound/core/pcm_native.c
  433. !Esound/core/memalloc.c
  434. <!-- FIXME: Removed for now since no structured comments in source
  435. X!Isound/sound_firmware.c
  436. -->
  437. </chapter>
  438. <chapter id="uart16x50">
  439. <title>16x50 UART Driver</title>
  440. !Iinclude/linux/serial_core.h
  441. !Edrivers/serial/serial_core.c
  442. !Edrivers/serial/8250.c
  443. </chapter>
  444. <chapter id="z85230">
  445. <title>Z85230 Support Library</title>
  446. !Edrivers/net/wan/z85230.c
  447. </chapter>
  448. <chapter id="fbdev">
  449. <title>Frame Buffer Library</title>
  450. <para>
  451. The frame buffer drivers depend heavily on four data structures.
  452. These structures are declared in include/linux/fb.h. They are
  453. fb_info, fb_var_screeninfo, fb_fix_screeninfo and fb_monospecs.
  454. The last three can be made available to and from userland.
  455. </para>
  456. <para>
  457. fb_info defines the current state of a particular video card.
  458. Inside fb_info, there exists a fb_ops structure which is a
  459. collection of needed functions to make fbdev and fbcon work.
  460. fb_info is only visible to the kernel.
  461. </para>
  462. <para>
  463. fb_var_screeninfo is used to describe the features of a video card
  464. that are user defined. With fb_var_screeninfo, things such as
  465. depth and the resolution may be defined.
  466. </para>
  467. <para>
  468. The next structure is fb_fix_screeninfo. This defines the
  469. properties of a card that are created when a mode is set and can't
  470. be changed otherwise. A good example of this is the start of the
  471. frame buffer memory. This "locks" the address of the frame buffer
  472. memory, so that it cannot be changed or moved.
  473. </para>
  474. <para>
  475. The last structure is fb_monospecs. In the old API, there was
  476. little importance for fb_monospecs. This allowed for forbidden things
  477. such as setting a mode of 800x600 on a fix frequency monitor. With
  478. the new API, fb_monospecs prevents such things, and if used
  479. correctly, can prevent a monitor from being cooked. fb_monospecs
  480. will not be useful until kernels 2.5.x.
  481. </para>
  482. <sect1><title>Frame Buffer Memory</title>
  483. !Edrivers/video/fbmem.c
  484. </sect1>
  485. <!--
  486. <sect1><title>Frame Buffer Console</title>
  487. X!Edrivers/video/console/fbcon.c
  488. </sect1>
  489. -->
  490. <sect1><title>Frame Buffer Colormap</title>
  491. !Edrivers/video/fbcmap.c
  492. </sect1>
  493. <!-- FIXME:
  494. drivers/video/fbgen.c has no docs, which stuffs up the sgml. Comment
  495. out until somebody adds docs. KAO
  496. <sect1><title>Frame Buffer Generic Functions</title>
  497. X!Idrivers/video/fbgen.c
  498. </sect1>
  499. KAO -->
  500. <sect1><title>Frame Buffer Video Mode Database</title>
  501. !Idrivers/video/modedb.c
  502. !Edrivers/video/modedb.c
  503. </sect1>
  504. <sect1><title>Frame Buffer Macintosh Video Mode Database</title>
  505. !Edrivers/video/macmodes.c
  506. </sect1>
  507. <sect1><title>Frame Buffer Fonts</title>
  508. <para>
  509. Refer to the file drivers/video/console/fonts.c for more information.
  510. </para>
  511. <!-- FIXME: Removed for now since no structured comments in source
  512. X!Idrivers/video/console/fonts.c
  513. -->
  514. </sect1>
  515. </chapter>
  516. <chapter id="input_subsystem">
  517. <title>Input Subsystem</title>
  518. !Iinclude/linux/input.h
  519. !Edrivers/input/input.c
  520. !Edrivers/input/ff-core.c
  521. !Edrivers/input/ff-memless.c
  522. </chapter>
  523. <chapter id="spi">
  524. <title>Serial Peripheral Interface (SPI)</title>
  525. <para>
  526. SPI is the "Serial Peripheral Interface", widely used with
  527. embedded systems because it is a simple and efficient
  528. interface: basically a multiplexed shift register.
  529. Its three signal wires hold a clock (SCK, often in the range
  530. of 1-20 MHz), a "Master Out, Slave In" (MOSI) data line, and
  531. a "Master In, Slave Out" (MISO) data line.
  532. SPI is a full duplex protocol; for each bit shifted out the
  533. MOSI line (one per clock) another is shifted in on the MISO line.
  534. Those bits are assembled into words of various sizes on the
  535. way to and from system memory.
  536. An additional chipselect line is usually active-low (nCS);
  537. four signals are normally used for each peripheral, plus
  538. sometimes an interrupt.
  539. </para>
  540. <para>
  541. The SPI bus facilities listed here provide a generalized
  542. interface to declare SPI busses and devices, manage them
  543. according to the standard Linux driver model, and perform
  544. input/output operations.
  545. At this time, only "master" side interfaces are supported,
  546. where Linux talks to SPI peripherals and does not implement
  547. such a peripheral itself.
  548. (Interfaces to support implementing SPI slaves would
  549. necessarily look different.)
  550. </para>
  551. <para>
  552. The programming interface is structured around two kinds of driver,
  553. and two kinds of device.
  554. A "Controller Driver" abstracts the controller hardware, which may
  555. be as simple as a set of GPIO pins or as complex as a pair of FIFOs
  556. connected to dual DMA engines on the other side of the SPI shift
  557. register (maximizing throughput). Such drivers bridge between
  558. whatever bus they sit on (often the platform bus) and SPI, and
  559. expose the SPI side of their device as a
  560. <structname>struct spi_master</structname>.
  561. SPI devices are children of that master, represented as a
  562. <structname>struct spi_device</structname> and manufactured from
  563. <structname>struct spi_board_info</structname> descriptors which
  564. are usually provided by board-specific initialization code.
  565. A <structname>struct spi_driver</structname> is called a
  566. "Protocol Driver", and is bound to a spi_device using normal
  567. driver model calls.
  568. </para>
  569. <para>
  570. The I/O model is a set of queued messages. Protocol drivers
  571. submit one or more <structname>struct spi_message</structname>
  572. objects, which are processed and completed asynchronously.
  573. (There are synchronous wrappers, however.) Messages are
  574. built from one or more <structname>struct spi_transfer</structname>
  575. objects, each of which wraps a full duplex SPI transfer.
  576. A variety of protocol tweaking options are needed, because
  577. different chips adopt very different policies for how they
  578. use the bits transferred with SPI.
  579. </para>
  580. !Iinclude/linux/spi/spi.h
  581. !Fdrivers/spi/spi.c spi_register_board_info
  582. !Edrivers/spi/spi.c
  583. </chapter>
  584. </book>