Date: Mon, 16 Jul 2001 10:34:49 -0400 (EDT) From: Mike Brown <mbrown@cs.uml.edu> To: Vincent Cojot <coyote@step.polymtl.ca> Cc: linux-scsi@vger.kernel.org, aic7xxx@FreeBSD.ORG Subject: Re: Naive question: 2.2.x or 2.4.x drvconfig equivalent in the works? Message-ID: <Pine.OSF.3.96.1010716102137.246191A-100000@venus.cs.uml.edu>
next in thread | raw e-mail | index | archive | help
> Is there a device-specific (perhaps?) way to force a bus reset? Take a look at <linux>/include/scsi/sg.h One of the ioctl()'s is defined as: #define SG_SCSI_RESET 0x2284 with subcommands: #define SG_SCSI_RESET_NOTHING 0 #define SG_SCSI_RESET_DEVICE 1 #define SG_SCSI_RESET_BUS 2 #define SG_SCSI_RESET_HOST 3 I gather you could get the job done via something like: #define MY_SG_DEV "/dev/sg0" int fd = open (MY_SG_DEV, O_RDWR); ioctl (fd, SG_SCSI_RESET, SG_SCSI_RESET_BUS); -Michael F. Brown, UMass Lowell Computer Science email: mbrown@cs.uml.edu "Windows is a 32 bit patch to a 16 bit GUI based on an 8 bit operating system." -FAQs (from #linux on efnet) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe aic7xxx" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.96.1010716102137.246191A-100000>