Diff for /wikisrc/tutorials/bus_space_tutorial.mdwn between versions 1.14 and 1.15

version 1.14, 2016/08/11 01:28:01 version 1.15, 2020/09/08 21:05:59
Line 376  Bit |R/W |Description Line 376  Bit |R/W |Description
     -   aux      -   aux
         - same as with match function          - same as with match function
 -   See definitions of these functions in the  -   See definitions of these functions in the
     [driver(9)](http://netbsd.gw.com/cgi-bin/man-cgi?driver+9+NetBSD-current)      [driver(9)](//man.NetBSD.org/driver.9)
     man page.      man page.
   
 ### Adding the new PCI driver - main driver cont'd  ### Adding the new PCI driver - main driver cont'd
Line 401  Bit |R/W |Description Line 401  Bit |R/W |Description
 <!-- -->  <!-- -->
   
     #include <sys/cdefs.h>      #include <sys/cdefs.h>
     __KERNEL_RCSID(0, "$NetBSD: bus_space_tutorial.mdwn,v 1.13 2016/03/17 11:38:49 ryoon Exp $");      __KERNEL_RCSID(0, "$NetBSD: bus_space_tutorial.mdwn,v 1.14 2016/08/11 01:28:01 ryoon Exp $");
     #include <sys/param.h>      #include <sys/param.h>
     #include <sys/device.h>      #include <sys/device.h>
     #include <dev/pci/pcivar.h>      #include <dev/pci/pcivar.h>
Line 514  Bit |R/W |Description Line 514  Bit |R/W |Description
 -   The exact position of the rule in the configuration file is not  -   The exact position of the rule in the configuration file is not
     important in this case      important in this case
 -   See  -   See
     [config(5)](http://netbsd.gw.com/cgi-bin/man-cgi?config+5+NetBSD-current)      [config(5)](//man.NetBSD.org/config.5)
     for a description of the device definition language      for a description of the device definition language
   
 ### Adding the new PCI driver - example  ### Adding the new PCI driver - example
Line 750  Data |Read function  |Write function Line 750  Data |Read function  |Write function
   
 -   There are many more variants of read and write functions and they  -   There are many more variants of read and write functions and they
     are useful in certain situations, see the      are useful in certain situations, see the
     [bus\_space(9)](http://netbsd.gw.com/cgi-bin/man-cgi?bus_space++NetBSD-current)      [bus\_space(9)](//man.NetBSD.org/bus_space.9)
     man page      man page
   
 ### Accessing the hardware registers - example  ### Accessing the hardware registers - example
Line 929  Data |Read function  |Write function Line 929  Data |Read function  |Write function
   
 ### Operations on device files  ### Operations on device files
   
 -   [open(2)](http://netbsd.gw.com/cgi-bin/man-cgi?read++NetBSD-current)  -   [open(2)](//man.NetBSD.org/open.2)
     and      and
     [close(2)](http://netbsd.gw.com/cgi-bin/man-cgi?read++NetBSD-current)      [close(2)](//man.NetBSD.org/close.2)
 -   [read(2)](http://netbsd.gw.com/cgi-bin/man-cgi?read++NetBSD-current)  -   [read(2)](//man.NetBSD.org/read.2)
     and      and
     [write(2)](http://netbsd.gw.com/cgi-bin/man-cgi?write++NetBSD-current)      [write(2)](//man.NetBSD.org/write.2)
 -   [ioctl(2)](http://netbsd.gw.com/cgi-bin/man-cgi?write++NetBSD-current)  -   [ioctl(2)](//man.NetBSD.org/ioctl.2)
 -   [poll(2)](http://netbsd.gw.com/cgi-bin/man-cgi?poll++NetBSD-current)  -   [poll(2)](//man.NetBSD.org/poll.2)
 -   [mmap(2)](http://netbsd.gw.com/cgi-bin/man-cgi?write++NetBSD-current)  -   [mmap(2)](//man.NetBSD.org/mmap.2)
 -   and more...  -   and more...
 -   Any mix of the above system calls might be used to interface between  -   Any mix of the above system calls might be used to interface between
     the kernel and user space      the kernel and user space
Line 1240  Data |Read function  |Write function Line 1240  Data |Read function  |Write function
         Kunz](ftp://ftp.netbsd.org/pub/NetBSD/misc/ddwg/NetBSD-driver_writing-1.0.1e.pdf)          Kunz](ftp://ftp.netbsd.org/pub/NetBSD/misc/ddwg/NetBSD-driver_writing-1.0.1e.pdf)
     -   [NetBSD Documentation: Writing a pseudo      -   [NetBSD Documentation: Writing a pseudo
         device](http://www.netbsd.org/docs/kernel/pseudo/)          device](http://www.netbsd.org/docs/kernel/pseudo/)
     -   [autoconf(9)](http://netbsd.gw.com/cgi-bin/man-cgi?autoconf+9+NetBSD-current),      -   [autoconf(9)](//man.NetBSD.org/autoconf.9),
         [bus\_space(9)](http://netbsd.gw.com/cgi-bin/man-cgi?bus_space+9+NetBSD-current)          [bus\_space(9)](//man.NetBSD.org/bus_space.9)
         [bus\_dma(9)](http://netbsd.gw.com/cgi-bin/man-cgi?bus_dma+9+NetBSD-current)          [bus\_dma(9)](//man.NetBSD.org/bus_dma.9)
         [driver(9)](http://netbsd.gw.com/cgi-bin/man-cgi?driver+9+NetBSD-current),          [driver(9)](//man.NetBSD.org/driver.9),
         [pci(9)](http://netbsd.gw.com/cgi-bin/man-cgi?pci+9+NetBSD-current)          [pci(9)](//man.NetBSD.org/pci.9)
         man pages, etc.          man pages, etc.
   
 -   Example source code of drivers:  -   Example source code of drivers:

Removed from v.1.14  
changed lines
  Added in v.1.15


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb