/*
|
/*
|
* Cumana Generic NCR5380 driver defines
|
* Cumana Generic NCR5380 driver defines
|
*
|
*
|
* Copyright 1993, Drew Eckhardt
|
* Copyright 1993, Drew Eckhardt
|
* Visionary Computing
|
* Visionary Computing
|
* (Unix and Linux consulting and custom programming)
|
* (Unix and Linux consulting and custom programming)
|
* drew@colorado.edu
|
* drew@colorado.edu
|
* +1 (303) 440-4894
|
* +1 (303) 440-4894
|
*
|
*
|
* ALPHA RELEASE 1.
|
* ALPHA RELEASE 1.
|
*
|
*
|
* For more information, please consult
|
* For more information, please consult
|
*
|
*
|
* NCR 5380 Family
|
* NCR 5380 Family
|
* SCSI Protocol Controller
|
* SCSI Protocol Controller
|
* Databook
|
* Databook
|
*
|
*
|
* NCR Microelectronics
|
* NCR Microelectronics
|
* 1635 Aeroplaza Drive
|
* 1635 Aeroplaza Drive
|
* Colorado Springs, CO 80916
|
* Colorado Springs, CO 80916
|
* 1+ (719) 578-3400
|
* 1+ (719) 578-3400
|
* 1+ (800) 334-5454
|
* 1+ (800) 334-5454
|
*/
|
*/
|
|
|
/*
|
/*
|
* $Log: not supported by cvs2svn $
|
* $Log: not supported by cvs2svn $
|
* Revision 1.1.1.1 2001/09/10 07:43:54 simons
|
* Revision 1.1.1.1 2001/09/10 07:43:54 simons
|
* Initial import
|
* Initial import
|
*
|
*
|
* Revision 1.1.1.1 2001/07/02 17:58:40 simons
|
* Revision 1.1.1.1 2001/07/02 17:58:40 simons
|
* Initial revision
|
* Initial revision
|
*
|
*
|
* Revision 1.1.1.1 1999/11/15 13:42:32 vadim
|
* Revision 1.1.1.1 1999/11/15 13:42:32 vadim
|
* Initial import
|
* Initial import
|
*
|
*
|
*/
|
*/
|
|
|
#ifndef CUMANA_NCR5380_H
|
#ifndef CUMANA_NCR5380_H
|
#define CUMANA_NCR5380_H
|
#define CUMANA_NCR5380_H
|
|
|
#define CUMANASCSI_PUBLIC_RELEASE 1
|
#define CUMANASCSI_PUBLIC_RELEASE 1
|
|
|
|
|
#ifndef ASM
|
#ifndef ASM
|
int cumanascsi_abort (Scsi_Cmnd *);
|
int cumanascsi_abort (Scsi_Cmnd *);
|
int cumanascsi_detect (Scsi_Host_Template *);
|
int cumanascsi_detect (Scsi_Host_Template *);
|
int cumanascsi_release (struct Scsi_Host *);
|
int cumanascsi_release (struct Scsi_Host *);
|
const char *cumanascsi_info (struct Scsi_Host *);
|
const char *cumanascsi_info (struct Scsi_Host *);
|
int cumanascsi_reset(Scsi_Cmnd *, unsigned int);
|
int cumanascsi_reset(Scsi_Cmnd *, unsigned int);
|
int cumanascsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
|
int cumanascsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
|
int cumanascsi_proc_info (char *buffer, char **start, off_t offset,
|
int cumanascsi_proc_info (char *buffer, char **start, off_t offset,
|
int length, int hostno, int inout);
|
int length, int hostno, int inout);
|
|
|
#ifndef NULL
|
#ifndef NULL
|
#define NULL 0
|
#define NULL 0
|
#endif
|
#endif
|
|
|
#ifndef CMD_PER_LUN
|
#ifndef CMD_PER_LUN
|
#define CMD_PER_LUN 2
|
#define CMD_PER_LUN 2
|
#endif
|
#endif
|
|
|
#ifndef CAN_QUEUE
|
#ifndef CAN_QUEUE
|
#define CAN_QUEUE 16
|
#define CAN_QUEUE 16
|
#endif
|
#endif
|
|
|
#include <scsi/scsicam.h>
|
#include <scsi/scsicam.h>
|
|
|
#define CUMANA_NCR5380 { \
|
#define CUMANA_NCR5380 { \
|
NULL, \
|
NULL, \
|
NULL, \
|
NULL, \
|
NULL, \
|
NULL, \
|
NULL, \
|
NULL, \
|
"Cumana 16-bit SCSI", \
|
"Cumana 16-bit SCSI", \
|
cumanascsi_detect, \
|
cumanascsi_detect, \
|
cumanascsi_release, /* Release */ \
|
cumanascsi_release, /* Release */ \
|
cumanascsi_info, \
|
cumanascsi_info, \
|
NULL, \
|
NULL, \
|
cumanascsi_queue_command, \
|
cumanascsi_queue_command, \
|
cumanascsi_abort, \
|
cumanascsi_abort, \
|
cumanascsi_reset, \
|
cumanascsi_reset, \
|
NULL, \
|
NULL, \
|
scsicam_bios_param, /* biosparam */ \
|
scsicam_bios_param, /* biosparam */ \
|
CAN_QUEUE, /* can queue */ \
|
CAN_QUEUE, /* can queue */ \
|
7, /* id */ \
|
7, /* id */ \
|
SG_ALL, /* sg_tablesize */ \
|
SG_ALL, /* sg_tablesize */ \
|
CMD_PER_LUN, /* cmd per lun */ \
|
CMD_PER_LUN, /* cmd per lun */ \
|
0, /* number of boards */ \
|
0, /* number of boards */ \
|
0, /* unchecked_isa_dma */ \
|
0, /* unchecked_isa_dma */ \
|
DISABLE_CLUSTERING \
|
DISABLE_CLUSTERING \
|
}
|
}
|
|
|
#ifndef HOSTS_C
|
#ifndef HOSTS_C
|
|
|
#define NCR5380_implementation_fields \
|
#define NCR5380_implementation_fields \
|
int port, ctrl
|
int port, ctrl
|
|
|
#define NCR5380_local_declare() \
|
#define NCR5380_local_declare() \
|
struct Scsi_Host *_instance
|
struct Scsi_Host *_instance
|
|
|
#define NCR5380_setup(instance) \
|
#define NCR5380_setup(instance) \
|
_instance = instance
|
_instance = instance
|
|
|
#define NCR5380_read(reg) cumanascsi_read(_instance, reg)
|
#define NCR5380_read(reg) cumanascsi_read(_instance, reg)
|
#define NCR5380_write(reg, value) cumanascsi_write(_instance, reg, value)
|
#define NCR5380_write(reg, value) cumanascsi_write(_instance, reg, value)
|
|
|
#define NCR5380_intr cumanascsi_intr
|
#define NCR5380_intr cumanascsi_intr
|
#define NCR5380_queue_command cumanascsi_queue_command
|
#define NCR5380_queue_command cumanascsi_queue_command
|
#define NCR5380_abort cumanascsi_abort
|
#define NCR5380_abort cumanascsi_abort
|
#define NCR5380_reset cumanascsi_reset
|
#define NCR5380_reset cumanascsi_reset
|
#define NCR5380_proc_info cumanascsi_proc_info
|
#define NCR5380_proc_info cumanascsi_proc_info
|
|
|
#define BOARD_NORMAL 0
|
#define BOARD_NORMAL 0
|
#define BOARD_NCR53C400 1
|
#define BOARD_NCR53C400 1
|
|
|
#endif /* ndef HOSTS_C */
|
#endif /* ndef HOSTS_C */
|
#endif /* ndef ASM */
|
#endif /* ndef ASM */
|
#endif /* CUMANA_NCR5380_H */
|
#endif /* CUMANA_NCR5380_H */
|
|
|
|
|