<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >mca_write_pos</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="MCA Driver Programming Interface" HREF="book1.html"><LINK REL="UP" TITLE="Public Functions Provided" HREF="c36.html"><LINK REL="PREVIOUS" TITLE="mca_read_pos" HREF="r141.html"><LINK REL="NEXT" TITLE="mca_set_adapter_name" HREF="r217.html"></HEAD ><BODY CLASS="REFENTRY" 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" >MCA Driver Programming Interface</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="r141.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r217.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="AEN174" ></A ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >mca_write_pos</SPAN ></SPAN ></H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN178" ></A ><H2 >Name</H2 >mca_write_pos -- read POS register from card </DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN181" ></A ><H2 >Synopsis</H2 ><DIV CLASS="FUNCSYNOPSIS" ><A NAME="AEN183" ></A ><P ></P ><P ><CODE ><CODE CLASS="FUNCDEF" >void <TT CLASS="FUNCTION" >mca_write_pos </TT ></CODE >(int <TT CLASS="PARAMETER" ><I >slot</I ></TT >, int <TT CLASS="PARAMETER" ><I >reg</I ></TT >, unsigned char <TT CLASS="PARAMETER" ><I >byte</I ></TT >);</CODE ></P ><P ></P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN193" ></A ><H2 >Arguments</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="PARAMETER" ><I >slot</I ></TT ></DT ><DD ><P > slot number to read from </P ></DD ><DT ><TT CLASS="PARAMETER" ><I >reg</I ></TT ></DT ><DD ><P > register to read from </P ></DD ><DT ><TT CLASS="PARAMETER" ><I >byte</I ></TT ></DT ><DD ><P > byte to write to the POS registers </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN211" ></A ><H2 >Description</H2 ><P > Store a POS value directly from the hardware. You should not normally need to use this function and should have a very good knowledge of MCA bus before you do so. Doing this wrongly can damage the hardware. </P ><P > This function may not be used from interrupt context. </P ><P > Note that this a technically a Bad Thing, as IBM tech stuff says you should only set POS values through their utilities. However, some devices such as the 3c523 recommend that you write back some data to make sure the configuration is consistent. I'd say that IBM is right, but I like my drivers to work. </P ><P > This function can't do checks to see if multiple devices end up with the same resources, so you might see magic smoke if someone screws up. </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="r141.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="r217.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >mca_read_pos</SPAN ></SPAN ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c36.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >mca_set_adapter_name</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >