#ifndef _SCSI_SCSI_DRIVER_H
#define _SCSI_SCSI_DRIVER_H

#include <linux/device.h>

struct module;
struct request;
struct scsi_cmnd;
struct scsi_device;

struct scsi_driver {
	struct device_driver	gendrv;

	void (*rescan)(struct device *);
	int (*init_command)(struct scsi_cmnd *);
	void (*uninit_command)(struct scsi_cmnd *);
	int (*done)(struct scsi_cmnd *);
	int (*eh_action)(struct scsi_cmnd *, int);
};
#define to_scsi_driver(drv) \
	container_of((drv), struct scsi_driver, gendrv)

extern int scsi_register_driver(struct device_driver *);
#define scsi_unregister_driver(drv) \
	driver_unregister(drv);

extern int scsi_register_interface(struct class_interface *);
#define scsi_unregister_interface(intf) \
	class_interface_unregister(intf)

#endif /* _SCSI_SCSI_DRIVER_H */
dex</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/decnet/af_decnet.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/decnet/af_decnet.c?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/decnet/af_decnet.c?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/decnet/af_decnet.c?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/decnet/af_decnet.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/decnet?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>decnet</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/decnet/af_decnet.c?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc'>af_decnet.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/decnet/af_decnet.c?h=nds-private-remove&amp;id=9dd7f8907c3705dc7a7a375d1c6e30b06e6daffc&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>