Naive question: 2.2.x or 2.4.x drvconfig equivalent in the works?

Mike Brown mbrown at cs.uml.edu
Mon Jul 16 07:35:22 PDT 2001


> 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 at 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 at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




More information about the aic7xxx mailing list