1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct ccw_driver</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="API-struct-ccw-device.html" title="struct ccw_device"><link rel="next" href="API-ccw-device-set-offline.html" title="ccw_device_set_offline"></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_driver</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-ccw-device.html">Prev</a> </td><th width="60%" align="center">ccw devices</th><td width="20%" align="right"> <a accesskey="n" href="API-ccw-device-set-offline.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-ccw-driver"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ccw_driver — 2 device driver for channel attached devices 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct ccw_driver { 5 struct ccw_device_id * ids; 6 int (* probe) (struct ccw_device *); 7 void (* remove) (struct ccw_device *); 8 int (* set_online) (struct ccw_device *); 9 int (* set_offline) (struct ccw_device *); 10 int (* notify) (struct ccw_device *, int); 11 void (* path_event) (struct ccw_device *, int *); 12 void (* shutdown) (struct ccw_device *); 13 int (* prepare) (struct ccw_device *); 14 void (* complete) (struct ccw_device *); 15 int (* freeze) (struct ccw_device *); 16 int (* thaw) (struct ccw_device *); 17 int (* restore) (struct ccw_device *); 18 enum uc_todo (* uc_handler) (struct ccw_device *, struct irb *); 19 struct device_driver driver; 20 enum interruption_class int_class; 21}; </pre></div><div class="refsect1"><a name="idp1124153116"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">ids</span></dt><dd><p> 22 ids supported by this driver 23 </p></dd><dt><span class="term">probe</span></dt><dd><p> 24 function called on probe 25 </p></dd><dt><span class="term">remove</span></dt><dd><p> 26 function called on remove 27 </p></dd><dt><span class="term">set_online</span></dt><dd><p> 28 called when setting device online 29 </p></dd><dt><span class="term">set_offline</span></dt><dd><p> 30 called when setting device offline 31 </p></dd><dt><span class="term">notify</span></dt><dd><p> 32 notify driver of device state changes 33 </p></dd><dt><span class="term">path_event</span></dt><dd><p> 34 notify driver of channel path events 35 </p></dd><dt><span class="term">shutdown</span></dt><dd><p> 36 called at device shutdown 37 </p></dd><dt><span class="term">prepare</span></dt><dd><p> 38 prepare for pm state transition 39 </p></dd><dt><span class="term">complete</span></dt><dd><p> 40 undo work done in <em class="parameter"><code>prepare</code></em> 41 </p></dd><dt><span class="term">freeze</span></dt><dd><p> 42 callback for freezing during hibernation snapshotting 43 </p></dd><dt><span class="term">thaw</span></dt><dd><p> 44 undo work done in <em class="parameter"><code>freeze</code></em> 45 </p></dd><dt><span class="term">restore</span></dt><dd><p> 46 callback for restoring after hibernation 47 </p></dd><dt><span class="term">uc_handler</span></dt><dd><p> 48 callback for unit check handler 49 </p></dd><dt><span class="term">driver</span></dt><dd><p> 50 embedded device driver structure 51 </p></dd><dt><span class="term">int_class</span></dt><dd><p> 52 interruption class to use for accounting interrupts 53 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-ccw-device.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-ccw-device-set-offline.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct ccw_device</span> </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">ccw_device_set_offline</span></td></tr></table></div></body></html> 54