<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >Z8530 Programming Guide</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="NEXT" TITLE="Introduction" HREF="c20.html"></HEAD ><BODY CLASS="BOOK" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="BOOK" ><A NAME="Z85230GUIDE" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="TITLE" ><A NAME="AEN2" ></A >Z8530 Programming Guide</H1 ><H3 CLASS="AUTHOR" ><A NAME="AEN5" ></A >Alan Cox</H3 ><DIV CLASS="AFFILIATION" ><DIV CLASS="ADDRESS" ><P CLASS="ADDRESS" > <TT CLASS="EMAIL" ><<A HREF="mailto:alan@redhat.com" >alan@redhat.com</A >></TT ><br> </P ></DIV ></DIV ><P CLASS="COPYRIGHT" ><A HREF="ln14.html" >Copyright</A > © 2000 Alan Cox</P ><HR></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="c20.html" >Introduction</A ></DT ><DT ><A HREF="c25.html" >Driver Modes</A ></DT ><DT ><A HREF="c31.html" >Using the Z85230 driver</A ></DT ><DT ><A HREF="c43.html" >Attaching Network Interfaces</A ></DT ><DT ><A HREF="c51.html" >Configuring And Activating The Port</A ></DT ><DT ><A HREF="c70.html" >Network Layer Functions</A ></DT ><DT ><A HREF="c77.html" >Porting The Z8530 Driver</A ></DT ><DT ><A HREF="c83.html" >Known Bugs And Assumptions</A ></DT ><DT ><A HREF="c95.html" >Public Functions Provided</A ></DT ><DD ><DL ><DT ><A HREF="r97.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_interrupt</SPAN ></SPAN ></A > -- Handle an interrupt from a Z8530 </DT ><DT ><A HREF="r138.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_sync_open</SPAN ></SPAN ></A > -- Open a Z8530 channel for PIO </DT ><DT ><A HREF="r171.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_sync_close</SPAN ></SPAN ></A > -- Close a PIO Z8530 channel </DT ><DT ><A HREF="r204.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_sync_dma_open</SPAN ></SPAN ></A > -- Open a Z8530 for DMA I/O </DT ><DT ><A HREF="r237.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_sync_dma_close</SPAN ></SPAN ></A > -- Close down DMA I/O </DT ><DT ><A HREF="r270.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_sync_txdma_open</SPAN ></SPAN ></A > -- Open a Z8530 for TX driven DMA </DT ><DT ><A HREF="r303.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_sync_txdma_close</SPAN ></SPAN ></A > -- Close down a TX driven DMA channel </DT ><DT ><A HREF="r336.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_describe</SPAN ></SPAN ></A > -- Uniformly describe a Z8530 port </DT ><DT ><A HREF="r378.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_init</SPAN ></SPAN ></A > -- Initialise a Z8530 device </DT ><DT ><A HREF="r406.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_shutdown</SPAN ></SPAN ></A > -- Shutdown a Z8530 device </DT ><DT ><A HREF="r433.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_channel_load</SPAN ></SPAN ></A > -- Load channel data </DT ><DT ><A HREF="r468.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_null_rx</SPAN ></SPAN ></A > -- Discard a packet </DT ><DT ><A HREF="r501.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_queue_xmit</SPAN ></SPAN ></A > -- Queue a packet </DT ><DT ><A HREF="r535.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_get_stats</SPAN ></SPAN ></A > -- Get network statistics </DT ></DL ></DD ><DT ><A HREF="c562.html" >Internal Functions</A ></DT ><DD ><DL ><DT ><A HREF="r564.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_read_port</SPAN ></SPAN ></A > -- Architecture specific interface function </DT ><DT ><A HREF="r592.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_write_port</SPAN ></SPAN ></A > -- Architecture specific interface function </DT ><DT ><A HREF="r626.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >read_zsreg</SPAN ></SPAN ></A > -- Read a register from a Z85230 </DT ><DT ><A HREF="r660.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >read_zsdata</SPAN ></SPAN ></A > -- Read the data port of a Z8530 channel </DT ><DT ><A HREF="r686.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >write_zsreg</SPAN ></SPAN ></A > -- Write to a Z8530 channel register </DT ><DT ><A HREF="r726.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >write_zsctrl</SPAN ></SPAN ></A > -- Write to a Z8530 control register </DT ><DT ><A HREF="r759.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >write_zsdata</SPAN ></SPAN ></A > -- Write to a Z8530 control register </DT ><DT ><A HREF="r792.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_flush_fifo</SPAN ></SPAN ></A > -- Flush on chip RX FIFO </DT ><DT ><A HREF="r819.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_rtsdtr</SPAN ></SPAN ></A > -- Control the outgoing DTS/RTS line </DT ><DT ><A HREF="r852.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_rx</SPAN ></SPAN ></A > -- Handle a PIO receive event </DT ><DT ><A HREF="r884.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_tx</SPAN ></SPAN ></A > -- Handle a PIO transmit event </DT ><DT ><A HREF="r910.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_status</SPAN ></SPAN ></A > -- Handle a PIO status exception </DT ><DT ><A HREF="r936.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_dma_rx</SPAN ></SPAN ></A > -- Handle a DMA RX event </DT ><DT ><A HREF="r962.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_dma_tx</SPAN ></SPAN ></A > -- Handle a DMA TX event </DT ><DT ><A HREF="r988.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_dma_status</SPAN ></SPAN ></A > -- Handle a DMA status exception </DT ><DT ><A HREF="r1014.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_rx_clear</SPAN ></SPAN ></A > -- Handle RX events from a stopped chip </DT ><DT ><A HREF="r1040.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_tx_clear</SPAN ></SPAN ></A > -- Handle TX events from a stopped chip </DT ><DT ><A HREF="r1066.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_status_clear</SPAN ></SPAN ></A > -- Handle status events from a stopped chip </DT ><DT ><A HREF="r1092.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_tx_begin</SPAN ></SPAN ></A > -- Begin packet transmission </DT ><DT ><A HREF="r1122.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_tx_done</SPAN ></SPAN ></A > -- TX complete callback </DT ><DT ><A HREF="r1149.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >z8530_rx_done</SPAN ></SPAN ></A > -- Receive completion callback </DT ><DT ><A HREF="r1176.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >spans_boundary</SPAN ></SPAN ></A > -- Check a packet can be ISA DMA'd </DT ></DL ></DD ></DL ></DIV ></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" > </TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="c20.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" > </TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Introduction</TD ></TR ></TABLE ></DIV ></BODY ></HTML >