1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter&#160;4.&#160;Attaching Network Interfaces</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Z8530 Programming Guide"><link rel="up" href="index.html" title="Z8530 Programming Guide"><link rel="prev" href="Using_the_Z85230_driver.html" title="Chapter&#160;3.&#160;Using the Z85230 driver"><link rel="next" href="Configuring_And_Activating_The_Port.html" title="Chapter&#160;5.&#160;Configuring And Activating The Port"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&#160;4.&#160;Attaching Network Interfaces</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Using_the_Z85230_driver.html">Prev</a>&#160;</td><th width="60%" align="center">&#160;</th><td width="20%" align="right">&#160;<a accesskey="n" href="Configuring_And_Activating_The_Port.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="Attaching_Network_Interfaces"></a>Chapter&#160;4.&#160;Attaching Network Interfaces</h1></div></div></div><p>
2	If you wish to use the network interface facilities of the driver,
3	then you need to attach a network device to each channel that is
4	present and in use. In addition to use the generic HDLC
5	you need to follow some additional plumbing rules. They may seem 
6	complex but a look at the example hostess_sv11 driver should
7	reassure you.
8  </p><p>
9	The network device used for each channel should be pointed to by
10	the netdevice field of each channel. The hdlc-&gt; priv field of the
11	network device points to your private data - you will need to be
12	able to find your private data from this.
13  </p><p>
14	The way most drivers approach this particular problem is to
15	create a structure holding the Z8530 device definition and
16	put that into the private field of the network device. The
17	network device fields of the channels then point back to the
18	network devices.
19  </p><p>
20	If you wish to use the generic HDLC then you need to register
21	the HDLC device.
22  </p><p>
23	Before you register your network device you will also need to
24	provide suitable handlers for most of the network device callbacks. 
25	See the network device documentation for more details on this.
26  </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="Using_the_Z85230_driver.html">Prev</a>&#160;</td><td width="20%" align="center">&#160;</td><td width="40%" align="right">&#160;<a accesskey="n" href="Configuring_And_Activating_The_Port.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;3.&#160;Using the Z85230 driver&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Chapter&#160;5.&#160;Configuring And Activating The Port</td></tr></table></div></body></html>
27