The HyperNews Linux KHG Discussion Pages

## Generic SCSI probably will not work

  Forum: Device Drivers
  Re: Simulating a scsi device? (Jukka-Pekka Piispanen)
  Keywords: simulated scsi device
  Date: Fri, 04 Jul 1997 13:38:48 GMT
  From: Michael K. Johnson <johnsonm@redhat.com>

You haven't described the cable, nor what kinds of commands, but if you are trying to simulate a host adapter you will need to write a low-level SCSI driver, as described in Writing a SCSI Device Driver As an example of something similar, see the ppa SCSI driver in the standard Linux kernel. It passes SCSI commands through the parallel port to and from a parallel-to-SCSI converter (which, for your purposes, should be functionally identical to a SCSI simulator at the other end of a cable) and acts as a low-level SCSI driver. Alternatively, if you just want to use a supported SCSI adapter to send arbitrary SCSI command blocks to an arbitrary SCSI target, the generic SCSI device is exactly what you want. If this does not answer your question, then you will need to be much more explicit about the environment you are working in and the results you are attempting to achieve. I suggest that if you haven't yet, you read The Linux SCSI programming HOWTO as well as Writing a SCSI Device Driver.