Date: Tue, 17 Jul 2001 20:20:58 -0400 From: Douglas Gilbert <dougg@torque.net> To: Mike Brown <mbrown@cs.uml.edu> Cc: Vincent Cojot <coyote@step.polymtl.ca>, 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: <3B54D66A.AFD82BD9@torque.net> References: <Pine.OSF.3.96.1010716102137.246191A-100000@venus.cs.uml.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Brown wrote: > > > 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 Mike, In the interests of accuracy, this code has never worked in any standard linux kernel. Most recent Linux distributions (e.g. RH 7.0 and 7.1) include the patch to the SCSI mid level that activate it. Doug Gilbert 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?3B54D66A.AFD82BD9>