72 lines
2.2 KiB
HTML
72 lines
2.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>Linux I/O port programming mini-HOWTO</TITLE>
|
|
<LINK HREF="IO-Port-Programming-1.html" REL=next>
|
|
|
|
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="IO-Port-Programming-1.html">Next</A>
|
|
Previous
|
|
Contents
|
|
<HR>
|
|
<H1>Linux I/O port programming mini-HOWTO</H1>
|
|
|
|
<H2>Author: Riku Saikkonen <CODE><Riku.Saikkonen@hut.fi></CODE></H2>v3.0, 2000-12-13
|
|
<P><HR>
|
|
<EM>This HOWTO document describes programming hardware I/O ports and
|
|
waiting for small periods of time in user-mode Linux programs running
|
|
on the Intel x86 architecture.</EM>
|
|
<HR>
|
|
<P>
|
|
<H2><A NAME="toc1">1.</A> <A HREF="IO-Port-Programming-1.html">Introduction </A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="toc2">2.</A> <A HREF="IO-Port-Programming-2.html">Using I/O ports in C programs</A></H2>
|
|
|
|
<UL>
|
|
<LI><A HREF="IO-Port-Programming-2.html#ss2.1">2.1 The normal method</A>
|
|
<LI><A HREF="IO-Port-Programming-2.html#ss2.2">2.2 An alternate method: <CODE>/dev/port</CODE></A>
|
|
</UL>
|
|
<P>
|
|
<H2><A NAME="toc3">3.</A> <A HREF="IO-Port-Programming-3.html">Interrupts (IRQs) and DMA access</A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="toc4">4.</A> <A HREF="IO-Port-Programming-4.html">High-resolution timing</A></H2>
|
|
|
|
<UL>
|
|
<LI><A HREF="IO-Port-Programming-4.html#ss4.1">4.1 Delays</A>
|
|
<LI><A HREF="IO-Port-Programming-4.html#ss4.2">4.2 Measuring time</A>
|
|
</UL>
|
|
<P>
|
|
<H2><A NAME="toc5">5.</A> <A HREF="IO-Port-Programming-5.html">Other programming languages</A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="toc6">6.</A> <A HREF="IO-Port-Programming-6.html">Some useful ports</A></H2>
|
|
|
|
<UL>
|
|
<LI><A HREF="IO-Port-Programming-6.html#ss6.1">6.1 The parallel port</A>
|
|
<LI><A HREF="IO-Port-Programming-6.html#ss6.2">6.2 The game (joystick) port</A>
|
|
<LI><A HREF="IO-Port-Programming-6.html#ss6.3">6.3 The serial port</A>
|
|
</UL>
|
|
<P>
|
|
<H2><A NAME="toc7">7.</A> <A HREF="IO-Port-Programming-7.html">Hints</A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="toc8">8.</A> <A HREF="IO-Port-Programming-8.html">Troubleshooting</A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="toc9">9.</A> <A HREF="IO-Port-Programming-9.html">Example code</A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="toc10">10.</A> <A HREF="IO-Port-Programming-10.html">Credits</A></H2>
|
|
|
|
<HR>
|
|
<A HREF="IO-Port-Programming-1.html">Next</A>
|
|
Previous
|
|
Contents
|
|
</BODY>
|
|
</HTML>
|