home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls024.Z / tls024 / sdce376 / driver / sdce / Space.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-19  |  2.0 KB  |  53 lines

  1. #include <sys/types.h>
  2. #include <sys/scsi.h>
  3. /*
  4.  *    Maximum number of slots on the motherboard.  Usually  8
  5.  *    but EISA can be more.  This is used to detect the controller.
  6.  */
  7. #define        MAX_SLOTS     8 
  8. /*
  9.  *    The number of IO req structures that the driver can hold as pending
  10.  *    requests from all the scsi peripherals at any one time.
  11.  */
  12. #define         MAX_REQ_QUEUE      35
  13. #define         REQ_ARRAY_SIZE   MAX_REQ_QUEUE+1
  14.  
  15. /*
  16.  *    The host adapter can be programed to use one of two IRQ's.
  17.  *    The first card found will use the  primary IRQ and the second
  18.  *    card will use the secondary IRQ.  It there is a problem or a
  19.  *    conflict switch the define values.   The search order for the
  20.  *    card starts at slot 1;
  21.  */
  22. #define        IRQ_PRIMARY    15
  23. #define        IRQ_SECONDARY    10
  24.                 /* If the card is a HW ver 3.1 or better  */
  25. int    sdce_force_no_sg = 1;   /* the driver can do mode 17 linked cmds  */
  26.                 /* for scatter gather.  This is great for */
  27.                 /* the AIO driver and databases.  If AIO  */
  28.                 /* not used and you have multiple drives  */
  29.                 /* configured, you may get better per-    */
  30.                 /* formance forcing no_sg to a non zero   */
  31.                 /* value. This will allow the driver to   */
  32.                 /* accept up to 32 outstanding requests   */
  33.                 /* and send them off to the card at once. */
  34.                 /* Of course the only way to be sure is to*/
  35.                 /* run your own load tests.          */
  36. int    sdce_force_no_md17 = 0; /* Use the enhanced read write only.  Not */
  37.                 /* the linked mode 17 command.            */
  38. int sdce_force_no_request_sense = 0;/* if non zero use host scsi cmd.     */
  39.                 /* this will use irq 15.  The cmd that    */
  40.                 /* provides request sense uses irq 14     */
  41.  
  42. int     slot_num_max    =  MAX_SLOTS;
  43. REQ_IO  *sdcereq_io_array[REQ_ARRAY_SIZE];
  44.  
  45. int    sdceirq_primary      =  IRQ_PRIMARY;
  46. int    sdceirq_secondary =  IRQ_SECONDARY;
  47. int    sdce_haltverbose = 1; /*Non-zero value will print haltsys message*/
  48. int    sdce_errorverbose = 0;/* Non-zero value will print card errors   */
  49.                   /* from host driver otherwise they will be */
  50.                   /* passed back to the peripheral driver.   */
  51.  
  52.  
  53.