Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 98e91bc877e03cf3582cd163550eb7e3 > files > 485

kernel-doc-html-2.4.19-16mdk.i586.rpm

<!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="The Linux Kernel API"
HREF="book1.html"><LINK
REL="UP"
TITLE="MCA Device Functions"
HREF="x9720.html#AEN9722"><LINK
REL="PREVIOUS"
TITLE="mca_read_pos"
HREF="r9827.html"><LINK
REL="NEXT"
TITLE="mca_set_adapter_name"
HREF="r9903.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"
>The Linux Kernel API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="r9827.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r9903.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="AEN9860"
></A
><SPAN
CLASS="phrase"
><SPAN
CLASS="PHRASE"
>mca_write_pos</SPAN
></SPAN
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN9864"
></A
><H2
>Name</H2
>mca_write_pos&nbsp;--&nbsp;      read POS register from card
 </DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN9867"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN9869"
></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="AEN9879"
></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="AEN9897"
></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
>&#13;   This function may not be used from interrupt context.
   </P
><P
>&#13;   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
>&#13;   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="r9827.html"
ACCESSKEY="P"
>&#60;&#60;&#60; 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="r9903.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</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="x9720.html#AEN9722"
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
>