linux/drivers/scsi/aha1740.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _AHA1740_H

/* $Id$
 *
 * Header file for the adaptec 1740 driver for Linux
 *
 * With minor revisions 3/31/93
 * Written and (C) 1992,1993 Brad McLean.  See aha1740.c
 * for more info
 *
 */

#include <linux/types.h>

#define SLOTSIZE

/* EISA configuration registers & values */
#define HID0(base)
#define HID1(base)
#define HID2(base)
#define HID3(base)
#define EBCNTRL(base)
#define PORTADR(base)
#define BIOSADR(base)
#define INTDEF(base)
#define SCSIDEF(base)
#define BUSDEF(base)
#define RESV0(base)
#define RESV1(base)
#define RESV2(base)

#define HID_MFG
#define HID_PRD
#define HID_REV
#define EBCNTRL_VALUE
#define PORTADDR_ENH
/* READ */
#define G2INTST(base)
#define G2STAT(base)
#define MBOXIN0(base)
#define MBOXIN1(base)
#define MBOXIN2(base)
#define MBOXIN3(base)
#define G2STAT2(base)

#define G2INTST_MASK
#define G2INTST_CCBGOOD
#define G2INTST_CCBRETRY
#define G2INTST_HARDFAIL
#define G2INTST_CMDGOOD
#define G2INTST_CCBERROR
#define G2INTST_ASNEVENT
#define G2INTST_CMDERROR

#define G2STAT_MBXOUT
#define G2STAT_INTPEND
#define G2STAT_BUSY

#define G2STAT2_READY

/* WRITE (and ReadBack) */
#define MBOXOUT0(base)
#define MBOXOUT1(base)
#define MBOXOUT2(base)
#define MBOXOUT3(base)
#define ATTN(base)
#define G2CNTRL(base)

#define ATTN_IMMED
#define ATTN_START
#define ATTN_ABORT

#define G2CNTRL_HRST
#define G2CNTRL_IRST
#define G2CNTRL_HRDY

/* This is used with scatter-gather */
struct aha1740_chain {};

/* These belong in scsi.h */
#define any2scsi(up, p)

#define scsi2int(up)

#define xany2scsi(up, p)

#define xscsi2int(up)

#define MAX_CDB
#define MAX_SENSE
#define MAX_STATUS

struct ecb {};

#define AHA1740CMD_NOP
#define AHA1740CMD_INIT
#define AHA1740CMD_DIAG
#define AHA1740CMD_SCSI
#define AHA1740CMD_SENSE
#define AHA1740CMD_DOWN
#define AHA1740CMD_RINQ
#define AHA1740CMD_TARG

#define AHA1740_ECBS
#define AHA1740_SCATTER

#endif