root/drivers/scsi/g_NCR5380.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Generic Generic NCR5380 driver defines
   3  *
   4  * Copyright 1993, Drew Eckhardt
   5  *      Visionary Computing
   6  *      (Unix and Linux consulting and custom programming)
   7  *      drew@colorado.edu
   8  *      +1 (303) 440-4894
   9  *
  10  * ALPHA RELEASE 1. 
  11  *
  12  * For more information, please consult 
  13  *
  14  * NCR 5380 Family
  15  * SCSI Protocol Controller
  16  * Databook
  17  *
  18  * NCR Microelectronics
  19  * 1635 Aeroplaza Drive
  20  * Colorado Springs, CO 80916
  21  * 1+ (719) 578-3400
  22  * 1+ (800) 334-5454
  23  */
  24 
  25 /*
  26  * $Log: generic_NCR5380.h,v $
  27  */
  28 
  29 #ifndef GENERIC_NCR5380_H
  30 #define GENERIC_NCR5380_H
  31 
  32 #define GENERIC_NCR5380_PUBLIC_RELEASE 1
  33 
  34 
  35 #ifndef ASM
  36 int generic_NCR5380_abort(Scsi_Cmnd *);
  37 int generic_NCR5380_detect(Scsi_Host_Template *);
  38 int generic_NCR5380_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  39 int generic_NCR5380_reset(Scsi_Cmnd *);
  40 
  41 
  42 #ifndef NULL
  43 #define NULL 0
  44 #endif
  45 
  46 #ifndef CMD_PER_LUN
  47 #define CMD_PER_LUN 2
  48 #endif
  49 
  50 #ifndef CAN_QUEUE
  51 #define CAN_QUEUE 16
  52 #endif
  53 
  54 #if defined(HOSTS_C) || defined(MODULE)
  55 
  56 #define GENERIC_NCR5380 {NULL, NULL, NULL, NULL, \
  57         "Trantor T128/T128F/T228",              \
  58         generic_NCR5380_detect, NULL, NULL, NULL,                       \
  59         generic_NCR5380_queue_command, generic_NCR5380_abort,           \
  60         generic_NCR5380_reset, NULL,                                    \
  61         NULL, /* can queue */ CAN_QUEUE, /* id */ 7, SG_ALL,            \
  62         /* cmd per lun */ CMD_PER_LUN , 0, 0, DISABLE_CLUSTERING}
  63 
  64 #endif
  65 
  66 #ifndef HOSTS_C
  67 
  68 #define NCR5380_implementation_fields \
  69     int port
  70 
  71 #define NCR5380_local_declare() \
  72     register int port
  73 
  74 #define NCR5380_setup(instance) \
  75     port = (instance)->io_port
  76 
  77 #define NCR5380_read(reg) (inb(port + (reg)))
  78 #define NCR5380_write(reg, value) (outb((value), (port + (reg))))
  79 
  80 #define NCR5380_intr generic_NCR5380_intr
  81 #define NCR5380_queue_command generic_NCR5380_queue_command
  82 #define NCR5380_abort generic_NCR5380_abort
  83 #define NCR5380_reset generic_NCR5380_reset
  84 
  85 #define BOARD_NORMAL    0
  86 #define BOARD_NCR53C400 1
  87 
  88 #endif /* else def HOSTS_C */
  89 #endif /* ndef ASM */
  90 #endif /* GENERIC_NCR5380_H */
  91 

/* [previous][next][first][last][top][bottom][index][help] */