opnsense-src/share/examples
Kenneth D. Merry b79dc8a8da Fix an issue that caused the kernel to panic inside CTL when trying
to attach to target capable HBAs that implement the old immediate
notify (XPT_IMMED_NOTIFY) and notify acknowledge (XPT_NOTIFY_ACK)
CCBs.  The new API has been in place since SVN change 196008 in
2009.

The solution is two-fold:  fix CTL to handle the responses from the
HBAs, and convert the HBA drivers in question to use the new API.

These drivers have not been tested with CTL, so how well they will
interoperate with CTL is unknown.

scsi_target.c:	Update the userland target example code to use the
		new immediate notify API.

scsi_ctl.c:	Detect when an immediate notify CCB is returned
		with CAM_REQ_INVALID or CAM_PROVIDE_FAIL status,
		and just free it.

		Fix a duplicate assignment.

aic79xx.c,
aic79xx_osm.c:	Update the aic79xx driver to use the new API.
		Target mode is not enabled on for this driver, so
		the changes will have no practical effect.

aic7xxx.c,
aic7xxx_osm.c:	Update the aic7xxx driver to use the new API.

sbp_targ.c:	Update the firewire target code to work with the
		new API.

mpt_cam.c:	Update the mpt(4) driver to work with the new API.
		Target mode is only enabled for Fibre Channel
		mpt(4) devices.

MFC after:	3 days
2012-06-26 14:51:35 +00:00
..
autofs/driver Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
bootforth Sync with sys/boot/forth/frames.4th revision 1.2 (PC98 support). 2004-01-18 15:16:12 +00:00
BSD_daemon Improve the example FreeBSD/Beastie poster a bit: 2001-08-07 22:09:47 +00:00
csh Include a warning when using the example code as it may not 2012-06-13 06:46:00 +00:00
cvsup Direct users to csup instead of cvsup in the csup-file boilerplate text. 2012-03-24 18:25:16 +00:00
diskless X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
drivers Update to use DEVMETHOD_END. 2011-11-22 21:49:29 +00:00
etc Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
find_interface Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
FreeBSD_version Add unistd.h to the getosreldate(3) manpage. 2008-09-30 11:25:55 +00:00
hast Please welcome HAST - Highly Avalable Storage. 2010-02-18 23:16:19 +00:00
hwpmc Bring a working snapshot of hwpmc(4), its associated libraries, userland utilities 2005-04-19 04:01:25 +00:00
ibcs2 A little COFF program (uuencoded) + README. Just do we can show 1994-10-23 19:23:50 +00:00
indent indent.pro example: put all options one per line 2010-04-05 09:26:03 +00:00
ipfilter Remove NO_OBJ now that this makefile builds something. 2006-03-01 22:59:00 +00:00
ipfw make sure we really don't have a tty when installing rules. This prevents 2003-09-07 07:52:56 +00:00
IPv6 Fix some grammar nits. Mainly the use of a' or an' where the opposite 2002-12-19 22:56:20 +00:00
jails Add two scripts that demonstrate how to make and 2010-10-24 22:59:38 +00:00
kld Uuencode the sample "binary" firmware image file (instead of explicitly 2011-04-01 23:47:10 +00:00
libvgl Remove typos, tabs-after-spaces and EOL whitespace. Convert to UTF-8. 2011-05-22 14:03:21 +00:00
mdoc Sync example file with mdoc changes made in rev 235450. 2012-06-13 19:08:00 +00:00
netgraph Fix more typos to be a good example. 2011-05-22 14:23:48 +00:00
nwclient s/nwserv/nwfs/ 2002-04-20 05:04:21 +00:00
perfmon Fix missing argument for errx(). 2010-06-23 04:42:47 +00:00
pf Update the icmp example to show allowing only the safe types. 2011-02-19 14:57:00 +00:00
portal mount_portal -> mount_portalfs. 2001-05-24 13:15:49 +00:00
ppi Correct a comment about which parallel port pin is used to drive 2005-04-17 21:55:00 +00:00
ppp X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
printing X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
scsi_target Fix an issue that caused the kernel to panic inside CTL when trying 2012-06-26 14:51:35 +00:00
ses MFprojects/zfsd: 2012-05-24 14:07:44 +00:00
smbfs Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
sunrpc Add `_PATH_DEVZERO'. 2000-12-09 09:35:55 +00:00
witness Add a new awk script which parses informations returned by the newly 2008-05-07 21:50:17 +00:00
Makefile - Make the default values for tcsh more user friendly 2012-03-24 18:43:18 +00:00