ide-tape.rst 2.6 KB

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