OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [drivers/] [scsi/] [cumana_2.h] - Rev 1782

Compare with Previous | Blame | View Log

/*
 * Cumana SCSI II driver
 *
 * Copyright (C) 1997-1998 Russell King
 */
#ifndef CUMANA_2_H
#define CUMANA_2_H
 
extern int cumanascsi_2_detect (Scsi_Host_Template *);
extern int cumanascsi_2_release (struct Scsi_Host *);
extern const char *cumanascsi_2_info (struct Scsi_Host *);
extern int cumanascsi_2_proc_info (char *buffer, char **start, off_t offset,
					int length, int hostno, int inout);
 
#ifndef NULL
#define NULL ((void *)0)
#endif
 
#ifndef CAN_QUEUE
/*
 * Default queue size
 */
#define CAN_QUEUE	1
#endif
 
#ifndef SCSI_ID
/*
 * Default SCSI host ID
 */
#define SCSI_ID		7
#endif
 
#include <scsi/scsicam.h>
 
#ifndef HOSTS_C
#include "fas216.h"
#endif
 
#define CUMANASCSI_2 {							\
	NULL,								\
	NULL,								\
	NULL,								\
	cumanascsi_2_proc_info,						\
	"Cumana SCSI II",						\
	cumanascsi_2_detect,		/* detect		*/	\
	cumanascsi_2_release,		/* release		*/	\
	cumanascsi_2_info,		/* info			*/	\
	fas216_command,			/* command		*/	\
	fas216_queue_command,		/* queuecommand		*/	\
	fas216_abort,			/* abort		*/	\
	fas216_reset,			/* reset		*/	\
	NULL,								\
	scsicam_bios_param,		/* biosparam		*/	\
	CAN_QUEUE,			/* can queue		*/	\
	SCSI_ID,			/* scsi host id		*/	\
	SG_ALL,				/* sg_tablesize		*/	\
	CAN_QUEUE,			/* cmd per lun		*/	\
	0,				/* number of boards	*/	\
	0,				/* unchecked isa dma	*/	\
	DISABLE_CLUSTERING						\
	}
 
#ifndef HOSTS_C
 
#include <asm/dma.h>
 
#define NR_SG	256
 
typedef struct {
	FAS216_Info info;
 
	/* other info... */
	unsigned int	status;		/* card status register	*/
	unsigned int	alatch;		/* Control register	*/
	unsigned int	terms;		/* Terminator state	*/
	unsigned int	dmaarea;	/* Pseudo DMA area	*/
	dmasg_t		dmasg[NR_SG];	/* Scatter DMA list	*/
} CumanaScsi2_Info;
 
#define CSTATUS_IRQ	(1 << 0)
#define CSTATUS_DRQ	(1 << 1)
 
#endif /* HOSTS_C */
 
#endif /* CUMANASCSI_2_H */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.