<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >Parports and their overrides</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux 2.4 Parallel Port Subsystem" HREF="book1.html"><LINK REL="UP" TITLE="Structure" HREF="c65.html"><LINK REL="PREVIOUS" TITLE="Structure" HREF="c65.html"><LINK REL="NEXT" TITLE="IEEE 1284 transfer modes" HREF="x88.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux 2.4 Parallel Port Subsystem</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="c65.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Structure</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x88.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN78" ></A >Parports and their overrides</H1 ><P > The generic <TT CLASS="LITERAL" >parport</TT > sharing code doesn't directly handle the parallel port hardware. That is done instead by <SPAN CLASS="QUOTE" >"low-level"</SPAN > <TT CLASS="LITERAL" >parport</TT > drivers. The function of a low-level <TT CLASS="LITERAL" >parport</TT > driver is to detect parallel ports, register them with the sharing code, and provide a list of access functions for each port. </P ><P > The most basic access functions that must be provided are ones for examining the status lines, for setting the control lines, and for setting the data lines. There are also access functions for setting the direction of the data lines; normally they are in the <SPAN CLASS="QUOTE" >"forward"</SPAN > direction (that is, the computer drives them), but some ports allow switching to <SPAN CLASS="QUOTE" >"reverse"</SPAN > mode (driven by the peripheral). There is an access function for examining the data lines once in reverse mode. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="c65.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x88.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Structure</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c65.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >IEEE 1284 transfer modes</TD ></TR ></TABLE ></DIV ></BODY ></HTML >