ide-tape.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. IDE ATAPI streaming tape driver.
  2. This driver is a part of the Linux ide driver.
  3. The driver, in co-operation with ide.c, basically traverses the
  4. request-list for the block device interface. The character device
  5. interface, on the other hand, creates new requests, adds them
  6. to the request-list of the block device, and waits for their completion.
  7. The block device major and minor numbers are determined from the
  8. tape's relative position in the ide interfaces, as explained in ide.c.
  9. The character device interface consists of the following devices:
  10. ht0 major 37, minor 0 first IDE tape, rewind on close.
  11. ht1 major 37, minor 1 second IDE tape, rewind on close.
  12. ...
  13. nht0 major 37, minor 128 first IDE tape, no rewind on close.
  14. nht1 major 37, minor 129 second IDE tape, no rewind on close.
  15. ...
  16. The general magnetic tape commands compatible interface, as defined by
  17. include/linux/mtio.h, is accessible through the character device.
  18. General ide driver configuration options, such as the interrupt-unmask
  19. flag, can be configured by issuing an ioctl to the block device interface,
  20. as any other ide device.
  21. Our own ide-tape ioctl's can be issued to either the block device or
  22. the character device interface.
  23. Maximal throughput with minimal bus load will usually be achieved in the
  24. following scenario:
  25. 1. ide-tape is operating in the pipelined operation mode.
  26. 2. No buffering is performed by the user backup program.
  27. Testing was done with a 2 GB CONNER CTMA 4000 IDE ATAPI Streaming Tape Drive.
  28. Here are some words from the first releases of hd.c, which are quoted
  29. in ide.c and apply here as well:
  30. | Special care is recommended. Have Fun!
  31. Possible improvements:
  32. 1. Support for the ATAPI overlap protocol.
  33. In order to maximize bus throughput, we currently use the DSC
  34. overlap method which enables ide.c to service requests from the
  35. other device while the tape is busy executing a command. The
  36. DSC overlap method involves polling the tape's status register
  37. for the DSC bit, and servicing the other device while the tape
  38. isn't ready.
  39. In the current QIC development standard (December 1995),
  40. it is recommended that new tape drives will *in addition*
  41. implement the ATAPI overlap protocol, which is used for the
  42. same purpose - efficient use of the IDE bus, but is interrupt
  43. driven and thus has much less CPU overhead.
  44. ATAPI overlap is likely to be supported in most new ATAPI
  45. devices, including new ATAPI cdroms, and thus provides us
  46. a method by which we can achieve higher throughput when
  47. sharing a (fast) ATA-2 disk with any (slow) new ATAPI device.