From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,6e8df9ca3515df3e,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1164f8,6e8df9ca3515df3e,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,6e8df9ca3515df3e,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1994-02-09 11:54:26 PST Xref: gmd.de comp.unix.ultrix:12906 comp.unix.questions:28335 comp.sys.dec:13311 Newsgroups: comp.unix.ultrix,comp.unix.questions,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!paladin.american.edu!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!purdue!mentor.cc.purdue.edu!rain!gpetty From: gpetty@rain.atms.purdue.edu (Grant W. Petty) Subject: Sending SCSI commands to Exabyte drive so as to control write mode? Message-ID: Sender: news@mentor.cc.purdue.edu (USENET News) Organization: Earth & Atmospheric Sciences, Purdue University Date: Wed, 9 Feb 1994 19:54:26 GMT I recently installed an Exabyte 8505 8mm tape drive on my DECstation 5000/200 running Ultrix 4.1 (will soon upgrade to 4.3). This drive can write tapes in a variety of different modes ranging from 8200 mode (2 GB per tape) uncompressed up to 8500 mode compressed (10 GB / tape). The problem I have is in figuring out how to set the desired mode before writing the tape. The Exabyte manual supplies a SCSI command code to do the job; what I am unable to determine is how to transmit that command to the Exabyte from my DECstation. So how does one do this? CAN it in fact be done without writing a full-blown device driver? DEC apparently only supplies device drivers for the devices they sell (or things whose characteristics can be more or less mapped to one of the devices they sell, like apparently treating the Exabyte as a general TZ-type device); they don't even supply a generic SCSI node of the type that appears as /dev/scsi0 under IBM's AIX. And while I'm asking, how (in outline form) WOULD one go about writing a custom device driver under Unix/Ultrix for a non-supported SCSI device? Where does it end up residing on the system, and how does the OS actually make the association between a device appearing in /dev and the corresponding device driver? I don't intend to actually do this, but I'd like to better understand how the operating system communicates with a given piece of hardware. Is it simply memory-mapped I/O -- i.e., does one simply write data to a specified hardware memory address? If so, can I set the mode on the Exabyte by simply executing a short C program that writes the right stuff to the right location in /dev/mem ? My perusal of the man pages (ioctl, mtio, mknod, SCSI(4) ) and of a separate DEC document on the SCSI interface yielded zero relevant information. I'm a user, not a Unix guru, so the most helpful response will be one that doesn't assume much prior knowledge of low-level systems stuff. E-mail responses welcomed... -- Grant W. Petty gpetty@rain.atms.purdue.edu Asst. Prof. of Atmospheric Science Dept. of Earth & Atmospheric Sciences (317) 494-2544 Purdue University, West Lafayette IN 47907-1397 FAX:(317) 496-1210