1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct ccw_device</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Writing s390 channel device drivers"><link rel="up" href="ccwdev.html" title="ccw devices"><link rel="prev" href="ccwdev.html" title="ccw devices"><link rel="next" href="API-struct-ccw-driver.html" title="struct ccw_driver"></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"><span class="phrase">struct ccw_device</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ccwdev.html">Prev</a> </td><th width="60%" align="center">ccw devices</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-ccw-driver.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-ccw-device"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ccw_device — 2 channel attached device 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct ccw_device { 5 spinlock_t * ccwlock; 6 struct ccw_device_id id; 7 struct ccw_driver * drv; 8 struct device dev; 9 int online; 10 void (* handler) (struct ccw_device *, unsigned long, struct irb *); 11}; </pre></div><div class="refsect1"><a name="idp1124143292"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">ccwlock</span></dt><dd><p> 12pointer to device lock 13 </p></dd><dt><span class="term">id</span></dt><dd><p> 14id of this device 15 </p></dd><dt><span class="term">drv</span></dt><dd><p> 16ccw driver for this device 17 </p></dd><dt><span class="term">dev</span></dt><dd><p> 18embedded device structure 19 </p></dd><dt><span class="term">online</span></dt><dd><p> 20online status of device 21 </p></dd><dt><span class="term">handler</span></dt><dd><p> 22interrupt handler 23 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124147868"></a><h2>Description</h2><p> 24 <em class="parameter"><code>handler</code></em> is a member of the device rather than the driver since a driver 25 can have different interrupt handlers for different ccw devices 26 (multi-subchannel drivers). 27</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ccwdev.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ccwdev.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-ccw-driver.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ccw devices </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct ccw_driver</span></td></tr></table></div></body></html> 28