Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/isa.h>
#include <linux/eisa.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/dma-mapping.h>
#include <linux/firmware.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
Go to the source code of this file.
Data Structures | |
struct | asc_scsiq_1 |
struct | asc_scsiq_2 |
struct | asc_scsiq_3 |
struct | asc_scsiq_4 |
struct | asc_q_done_info |
struct | asc_sg_list |
struct | asc_sg_head |
struct | asc_scsi_q |
struct | asc_scsi_req_q |
struct | asc_scsi_bios_req_q |
struct | asc_risc_q |
struct | asc_sg_list_q |
struct | asc_risc_sg_list_q |
struct | ext_msg |
struct | asc_dvc_cfg |
struct | asc_dvc_var |
struct | asc_dvc_inq_info |
struct | asc_cap_info |
struct | asc_cap_info_array |
struct | asceep_config |
struct | asc_mc_saved |
struct | adveep_3550_config |
struct | adveep_38C0800_config |
struct | adveep_38C1600_config |
struct | adv_carr_t |
struct | adv_dvc_cfg |
struct | asc_sg_block |
struct | adv_scsi_req_q |
struct | adv_sgblk |
struct | adv_req |
struct | adv_dvc_var |
struct | asc_stats |
struct | asc_board |
struct | eisa_scsi_data |
Macros | |
#define | DRV_NAME "advansys" |
#define | ASC_VERSION "3.4" /* AdvanSys Driver Version */ |
#define | ADVANSYS_STATS |
#define | ASC_PADDR __u32 /* Physical/Bus address data type. */ |
#define | ASC_VADDR __u32 /* Virtual address data type. */ |
#define | ASC_DCNT __u32 /* Unsigned Data count type. */ |
#define | ASC_SDCNT __s32 /* Signed Data count type. */ |
#define | TRUE (1) |
#define | FALSE (0) |
#define | ERR (-1) |
#define | UW_ERR (uint)(0xFFFF) |
#define | isodd_word(val) ((((uint)val) & (uint)0x0001) != 0) |
#define | PCI_VENDOR_ID_ASP 0x10cd |
#define | PCI_DEVICE_ID_ASP_1200A 0x1100 |
#define | PCI_DEVICE_ID_ASP_ABP940 0x1200 |
#define | PCI_DEVICE_ID_ASP_ABP940U 0x1300 |
#define | PCI_DEVICE_ID_ASP_ABP940UW 0x2300 |
#define | PCI_DEVICE_ID_38C0800_REV1 0x2500 |
#define | PCI_DEVICE_ID_38C1600_REV1 0x2700 |
#define | CC_VERY_LONG_SG_LIST 0 |
#define | ASC_SRB2SCSIQ(srb_ptr) (srb_ptr) |
#define | PortAddr unsigned int /* port address size */ |
#define | inp(port) inb(port) |
#define | outp(port, byte) outb((byte), (port)) |
#define | inpw(port) inw(port) |
#define | outpw(port, word) outw((word), (port)) |
#define | ASC_MAX_SG_QUEUE 7 |
#define | ASC_MAX_SG_LIST 255 |
#define | ASC_CS_TYPE unsigned short |
#define | ASC_IS_ISA (0x0001) |
#define | ASC_IS_ISAPNP (0x0081) |
#define | ASC_IS_EISA (0x0002) |
#define | ASC_IS_PCI (0x0004) |
#define | ASC_IS_PCI_ULTRA (0x0104) |
#define | ASC_IS_PCMCIA (0x0008) |
#define | ASC_IS_MCA (0x0020) |
#define | ASC_IS_VL (0x0040) |
#define | ASC_IS_WIDESCSI_16 (0x0100) |
#define | ASC_IS_WIDESCSI_32 (0x0200) |
#define | ASC_IS_BIG_ENDIAN (0x8000) |
#define | ASC_CHIP_MIN_VER_VL (0x01) |
#define | ASC_CHIP_MAX_VER_VL (0x07) |
#define | ASC_CHIP_MIN_VER_PCI (0x09) |
#define | ASC_CHIP_MAX_VER_PCI (0x0F) |
#define | ASC_CHIP_VER_PCI_BIT (0x08) |
#define | ASC_CHIP_MIN_VER_ISA (0x11) |
#define | ASC_CHIP_MIN_VER_ISA_PNP (0x21) |
#define | ASC_CHIP_MAX_VER_ISA (0x27) |
#define | ASC_CHIP_VER_ISA_BIT (0x30) |
#define | ASC_CHIP_VER_ISAPNP_BIT (0x20) |
#define | ASC_CHIP_VER_ASYN_BUG (0x21) |
#define | ASC_CHIP_VER_PCI 0x08 |
#define | ASC_CHIP_VER_PCI_ULTRA_3150 (ASC_CHIP_VER_PCI | 0x02) |
#define | ASC_CHIP_VER_PCI_ULTRA_3050 (ASC_CHIP_VER_PCI | 0x03) |
#define | ASC_CHIP_MIN_VER_EISA (0x41) |
#define | ASC_CHIP_MAX_VER_EISA (0x47) |
#define | ASC_CHIP_VER_EISA_BIT (0x40) |
#define | ASC_CHIP_LATEST_VER_EISA ((ASC_CHIP_MIN_VER_EISA - 1) + 3) |
#define | ASC_MAX_VL_DMA_COUNT (0x07FFFFFFL) |
#define | ASC_MAX_PCI_DMA_COUNT (0xFFFFFFFFL) |
#define | ASC_MAX_ISA_DMA_COUNT (0x00FFFFFFL) |
#define | ASC_SCSI_ID_BITS 3 |
#define | ASC_SCSI_TIX_TYPE uchar |
#define | ASC_ALL_DEVICE_BIT_SET 0xFF |
#define | ASC_SCSI_BIT_ID_TYPE uchar |
#define | ASC_MAX_TID 7 |
#define | ASC_MAX_LUN 7 |
#define | ASC_SCSI_WIDTH_BIT_SET 0xFF |
#define | ASC_MAX_SENSE_LEN 32 |
#define | ASC_MIN_SENSE_LEN 14 |
#define | ASC_SCSI_RESET_HOLD_TIME_US 60 |
#define | ASC_MAX_CDB_LEN 12 |
#define | ADV_MAX_CDB_LEN 16 |
#define | MS_SDTR_LEN 0x03 |
#define | MS_WDTR_LEN 0x02 |
#define | ASC_SG_LIST_PER_Q 7 |
#define | QS_FREE 0x00 |
#define | QS_READY 0x01 |
#define | QS_DISC1 0x02 |
#define | QS_DISC2 0x04 |
#define | QS_BUSY 0x08 |
#define | QS_ABORTED 0x40 |
#define | QS_DONE 0x80 |
#define | QC_NO_CALLBACK 0x01 |
#define | QC_SG_SWAP_QUEUE 0x02 |
#define | QC_SG_HEAD 0x04 |
#define | QC_DATA_IN 0x08 |
#define | QC_DATA_OUT 0x10 |
#define | QC_URGENT 0x20 |
#define | QC_MSG_OUT 0x40 |
#define | QC_REQ_SENSE 0x80 |
#define | QCSG_SG_XFER_LIST 0x02 |
#define | QCSG_SG_XFER_MORE 0x04 |
#define | QCSG_SG_XFER_END 0x08 |
#define | QD_IN_PROGRESS 0x00 |
#define | QD_NO_ERROR 0x01 |
#define | QD_ABORTED_BY_HOST 0x02 |
#define | QD_WITH_ERROR 0x04 |
#define | QD_INVALID_REQUEST 0x80 |
#define | QD_INVALID_HOST_NUM 0x81 |
#define | QD_INVALID_DEVICE 0x82 |
#define | QD_ERR_INTERNAL 0xFF |
#define | QHSTA_NO_ERROR 0x00 |
#define | QHSTA_M_SEL_TIMEOUT 0x11 |
#define | QHSTA_M_DATA_OVER_RUN 0x12 |
#define | QHSTA_M_DATA_UNDER_RUN 0x12 |
#define | QHSTA_M_UNEXPECTED_BUS_FREE 0x13 |
#define | QHSTA_M_BAD_BUS_PHASE_SEQ 0x14 |
#define | QHSTA_D_QDONE_SG_LIST_CORRUPTED 0x21 |
#define | QHSTA_D_ASC_DVC_ERROR_CODE_SET 0x22 |
#define | QHSTA_D_HOST_ABORT_FAILED 0x23 |
#define | QHSTA_D_EXE_SCSI_Q_FAILED 0x24 |
#define | QHSTA_D_EXE_SCSI_Q_BUSY_TIMEOUT 0x25 |
#define | QHSTA_D_ASPI_NO_BUF_POOL 0x26 |
#define | QHSTA_M_WTM_TIMEOUT 0x41 |
#define | QHSTA_M_BAD_CMPL_STATUS_IN 0x42 |
#define | QHSTA_M_NO_AUTO_REQ_SENSE 0x43 |
#define | QHSTA_M_AUTO_REQ_SENSE_FAIL 0x44 |
#define | QHSTA_M_TARGET_STATUS_BUSY 0x45 |
#define | QHSTA_M_BAD_TAG_CODE 0x46 |
#define | QHSTA_M_BAD_QUEUE_FULL_OR_BUSY 0x47 |
#define | QHSTA_M_HUNG_REQ_SCSI_BUS_RESET 0x48 |
#define | QHSTA_D_LRAM_CMP_ERROR 0x81 |
#define | QHSTA_M_MICRO_CODE_ERROR_HALT 0xA1 |
#define | ASC_FLAG_SCSIQ_REQ 0x01 |
#define | ASC_FLAG_BIOS_SCSIQ_REQ 0x02 |
#define | ASC_FLAG_BIOS_ASYNC_IO 0x04 |
#define | ASC_FLAG_SRB_LINEAR_ADDR 0x08 |
#define | ASC_FLAG_WIN16 0x10 |
#define | ASC_FLAG_WIN32 0x20 |
#define | ASC_FLAG_ISA_OVER_16MB 0x40 |
#define | ASC_FLAG_DOS_VM_CALLBACK 0x80 |
#define | ASC_TAG_FLAG_EXTRA_BYTES 0x10 |
#define | ASC_TAG_FLAG_DISABLE_DISCONNECT 0x04 |
#define | ASC_TAG_FLAG_DISABLE_ASYN_USE_SYN_FIX 0x08 |
#define | ASC_TAG_FLAG_DISABLE_CHK_COND_INT_HOST 0x40 |
#define | ASC_SCSIQ_CPY_BEG 4 |
#define | ASC_SCSIQ_SGHD_CPY_BEG 2 |
#define | ASC_SCSIQ_B_FWD 0 |
#define | ASC_SCSIQ_B_BWD 1 |
#define | ASC_SCSIQ_B_STATUS 2 |
#define | ASC_SCSIQ_B_QNO 3 |
#define | ASC_SCSIQ_B_CNTL 4 |
#define | ASC_SCSIQ_B_SG_QUEUE_CNT 5 |
#define | ASC_SCSIQ_D_DATA_ADDR 8 |
#define | ASC_SCSIQ_D_DATA_CNT 12 |
#define | ASC_SCSIQ_B_SENSE_LEN 20 |
#define | ASC_SCSIQ_DONE_INFO_BEG 22 |
#define | ASC_SCSIQ_D_SRBPTR 22 |
#define | ASC_SCSIQ_B_TARGET_IX 26 |
#define | ASC_SCSIQ_B_CDB_LEN 28 |
#define | ASC_SCSIQ_B_TAG_CODE 29 |
#define | ASC_SCSIQ_W_VM_ID 30 |
#define | ASC_SCSIQ_DONE_STATUS 32 |
#define | ASC_SCSIQ_HOST_STATUS 33 |
#define | ASC_SCSIQ_SCSI_STATUS 34 |
#define | ASC_SCSIQ_CDB_BEG 36 |
#define | ASC_SCSIQ_DW_REMAIN_XFER_ADDR 56 |
#define | ASC_SCSIQ_DW_REMAIN_XFER_CNT 60 |
#define | ASC_SCSIQ_B_FIRST_SG_WK_QP 48 |
#define | ASC_SCSIQ_B_SG_WK_QP 49 |
#define | ASC_SCSIQ_B_SG_WK_IX 50 |
#define | ASC_SCSIQ_W_ALT_DC1 52 |
#define | ASC_SCSIQ_B_LIST_CNT 6 |
#define | ASC_SCSIQ_B_CUR_LIST_CNT 7 |
#define | ASC_SGQ_B_SG_CNTL 4 |
#define | ASC_SGQ_B_SG_HEAD_QP 5 |
#define | ASC_SGQ_B_SG_LIST_CNT 6 |
#define | ASC_SGQ_B_SG_CUR_LIST_CNT 7 |
#define | ASC_SGQ_LIST_BEG 8 |
#define | ASC_DEF_SCSI1_QNG 4 |
#define | ASC_MAX_SCSI1_QNG 4 |
#define | ASC_DEF_SCSI2_QNG 16 |
#define | ASC_MAX_SCSI2_QNG 32 |
#define | ASC_TAG_CODE_MASK 0x23 |
#define | ASC_STOP_REQ_RISC_STOP 0x01 |
#define | ASC_STOP_ACK_RISC_STOP 0x03 |
#define | ASC_STOP_CLEAN_UP_BUSY_Q 0x10 |
#define | ASC_STOP_CLEAN_UP_DISC_Q 0x20 |
#define | ASC_STOP_HOST_REQ_RISC_HALT 0x40 |
#define | ASC_TIDLUN_TO_IX(tid, lun) (ASC_SCSI_TIX_TYPE)((tid) + ((lun)<<ASC_SCSI_ID_BITS)) |
#define | ASC_TID_TO_TARGET_ID(tid) (ASC_SCSI_BIT_ID_TYPE)(0x01 << (tid)) |
#define | ASC_TIX_TO_TARGET_ID(tix) (0x01 << ((tix) & ASC_MAX_TID)) |
#define | ASC_TIX_TO_TID(tix) ((tix) & ASC_MAX_TID) |
#define | ASC_TID_TO_TIX(tid) ((tid) & ASC_MAX_TID) |
#define | ASC_TIX_TO_LUN(tix) (((tix) >> ASC_SCSI_ID_BITS) & ASC_MAX_LUN) |
#define | ASC_QNO_TO_QADDR(q_no) ((ASC_QADR_BEG)+((int)(q_no) << 6)) |
#define | ASCQ_ERR_Q_STATUS 0x0D |
#define | ASCQ_ERR_CUR_QNG 0x17 |
#define | ASCQ_ERR_SG_Q_LINKS 0x18 |
#define | ASCQ_ERR_ISR_RE_ENTRY 0x1A |
#define | ASCQ_ERR_CRITICAL_RE_ENTRY 0x1B |
#define | ASCQ_ERR_ISR_ON_CRITICAL 0x1C |
#define | ASC_WARN_NO_ERROR 0x0000 |
#define | ASC_WARN_IO_PORT_ROTATE 0x0001 |
#define | ASC_WARN_EEPROM_CHKSUM 0x0002 |
#define | ASC_WARN_IRQ_MODIFIED 0x0004 |
#define | ASC_WARN_AUTO_CONFIG 0x0008 |
#define | ASC_WARN_CMD_QNG_CONFLICT 0x0010 |
#define | ASC_WARN_EEPROM_RECOVER 0x0020 |
#define | ASC_WARN_CFG_MSW_RECOVER 0x0040 |
#define | ASC_IERR_NO_CARRIER 0x0001 /* No more carrier memory */ |
#define | ASC_IERR_MCODE_CHKSUM 0x0002 /* micro code check sum error */ |
#define | ASC_IERR_SET_PC_ADDR 0x0004 |
#define | ASC_IERR_START_STOP_CHIP 0x0008 /* start/stop chip failed */ |
#define | ASC_IERR_ILLEGAL_CONNECTION 0x0010 /* Illegal cable connection */ |
#define | ASC_IERR_SINGLE_END_DEVICE 0x0020 /* SE device on DIFF bus */ |
#define | ASC_IERR_REVERSED_CABLE 0x0040 /* Narrow flat cable reversed */ |
#define | ASC_IERR_SET_SCSI_ID 0x0080 /* set SCSI ID failed */ |
#define | ASC_IERR_HVD_DEVICE 0x0100 /* HVD device on LVD port */ |
#define | ASC_IERR_BAD_SIGNATURE 0x0200 /* signature not found */ |
#define | ASC_IERR_NO_BUS_TYPE 0x0400 |
#define | ASC_IERR_BIST_PRE_TEST 0x0800 /* BIST pre-test error */ |
#define | ASC_IERR_BIST_RAM_TEST 0x1000 /* BIST RAM test error */ |
#define | ASC_IERR_BAD_CHIPTYPE 0x2000 /* Invalid chip_type setting */ |
#define | ASC_DEF_MAX_TOTAL_QNG (0xF0) |
#define | ASC_MIN_TAG_Q_PER_DVC (0x04) |
#define | ASC_MIN_FREE_Q (0x02) |
#define | ASC_MIN_TOTAL_QNG ((ASC_MAX_SG_QUEUE)+(ASC_MIN_FREE_Q)) |
#define | ASC_MAX_TOTAL_QNG 240 |
#define | ASC_MAX_PCI_ULTRA_INRAM_TOTAL_QNG 16 |
#define | ASC_MAX_PCI_ULTRA_INRAM_TAG_QNG 8 |
#define | ASC_MAX_PCI_INRAM_TOTAL_QNG 20 |
#define | ASC_MAX_INRAM_TAG_QNG 16 |
#define | ASC_IOADR_GAP 0x10 |
#define | ASC_SYN_MAX_OFFSET 0x0F |
#define | ASC_DEF_SDTR_OFFSET 0x0F |
#define | ASC_SDTR_ULTRA_PCI_10MB_INDEX 0x02 |
#define | ASYN_SDTR_DATA_FIX_PCI_REV_AB 0x41 |
#define | xfer_period u_ext_msg.sdtr.sdtr_xfer_period |
#define | req_ack_offset u_ext_msg.sdtr.sdtr_req_ack_offset |
#define | wdtr_width u_ext_msg.wdtr.wdtr_width |
#define | mdp_b3 u_ext_msg.mdp_b3 |
#define | mdp_b2 u_ext_msg.mdp_b2 |
#define | mdp_b1 u_ext_msg.mdp_b1 |
#define | mdp_b0 u_ext_msg.mdp_b0 |
#define | ASC_DEF_DVC_CNTL 0xFFFF |
#define | ASC_DEF_CHIP_SCSI_ID 7 |
#define | ASC_DEF_ISA_DMA_SPEED 4 |
#define | ASC_INIT_STATE_BEG_GET_CFG 0x0001 |
#define | ASC_INIT_STATE_END_GET_CFG 0x0002 |
#define | ASC_INIT_STATE_BEG_SET_CFG 0x0004 |
#define | ASC_INIT_STATE_END_SET_CFG 0x0008 |
#define | ASC_INIT_STATE_BEG_LOAD_MC 0x0010 |
#define | ASC_INIT_STATE_END_LOAD_MC 0x0020 |
#define | ASC_INIT_STATE_BEG_INQUIRY 0x0040 |
#define | ASC_INIT_STATE_END_INQUIRY 0x0080 |
#define | ASC_INIT_RESET_SCSI_DONE 0x0100 |
#define | ASC_INIT_STATE_WITHOUT_EEP 0x8000 |
#define | ASC_BUG_FIX_IF_NOT_DWB 0x0001 |
#define | ASC_BUG_FIX_ASYN_USE_SYN 0x0002 |
#define | ASC_MIN_TAGGED_CMD 7 |
#define | ASC_MAX_SCSI_RESET_WAIT 30 |
#define | ASC_OVERRUN_BSIZE 64 |
#define | ASC_MCNTL_NO_SEL_TIMEOUT (ushort)0x0001 |
#define | ASC_MCNTL_NULL_TARGET (ushort)0x0002 |
#define | ASC_CNTL_INITIATOR (ushort)0x0001 |
#define | ASC_CNTL_BIOS_GT_1GB (ushort)0x0002 |
#define | ASC_CNTL_BIOS_GT_2_DISK (ushort)0x0004 |
#define | ASC_CNTL_BIOS_REMOVABLE (ushort)0x0008 |
#define | ASC_CNTL_NO_SCAM (ushort)0x0010 |
#define | ASC_CNTL_INT_MULTI_Q (ushort)0x0080 |
#define | ASC_CNTL_NO_LUN_SUPPORT (ushort)0x0040 |
#define | ASC_CNTL_NO_VERIFY_COPY (ushort)0x0100 |
#define | ASC_CNTL_RESET_SCSI (ushort)0x0200 |
#define | ASC_CNTL_INIT_INQUIRY (ushort)0x0400 |
#define | ASC_CNTL_INIT_VERBOSE (ushort)0x0800 |
#define | ASC_CNTL_SCSI_PARITY (ushort)0x1000 |
#define | ASC_CNTL_BURST_MODE (ushort)0x2000 |
#define | ASC_CNTL_SDTR_ENABLE_ULTRA (ushort)0x4000 |
#define | ASC_EEP_DVC_CFG_BEG_VL 2 |
#define | ASC_EEP_MAX_DVC_ADDR_VL 15 |
#define | ASC_EEP_DVC_CFG_BEG 32 |
#define | ASC_EEP_MAX_DVC_ADDR 45 |
#define | ASC_EEP_MAX_RETRY 20 |
#define | ASC_EEP_GET_CHIP_ID(cfg) ((cfg)->id_speed & 0x0f) |
#define | ASC_EEP_GET_DMA_SPD(cfg) (((cfg)->id_speed & 0xf0) >> 4) |
#define | ASC_EEP_SET_CHIP_ID(cfg, sid) ((cfg)->id_speed = ((cfg)->id_speed & 0xf0) | ((sid) & ASC_MAX_TID)) |
#define | ASC_EEP_SET_DMA_SPD(cfg, spd) ((cfg)->id_speed = ((cfg)->id_speed & 0x0f) | ((spd) & 0x0f) << 4) |
#define | ASC_EEP_CMD_READ 0x80 |
#define | ASC_EEP_CMD_WRITE 0x40 |
#define | ASC_EEP_CMD_WRITE_ABLE 0x30 |
#define | ASC_EEP_CMD_WRITE_DISABLE 0x00 |
#define | ASCV_MSGOUT_BEG 0x0000 |
#define | ASCV_MSGOUT_SDTR_PERIOD (ASCV_MSGOUT_BEG+3) |
#define | ASCV_MSGOUT_SDTR_OFFSET (ASCV_MSGOUT_BEG+4) |
#define | ASCV_BREAK_SAVED_CODE (ushort)0x0006 |
#define | ASCV_MSGIN_BEG (ASCV_MSGOUT_BEG+8) |
#define | ASCV_MSGIN_SDTR_PERIOD (ASCV_MSGIN_BEG+3) |
#define | ASCV_MSGIN_SDTR_OFFSET (ASCV_MSGIN_BEG+4) |
#define | ASCV_SDTR_DATA_BEG (ASCV_MSGIN_BEG+8) |
#define | ASCV_SDTR_DONE_BEG (ASCV_SDTR_DATA_BEG+8) |
#define | ASCV_MAX_DVC_QNG_BEG (ushort)0x0020 |
#define | ASCV_BREAK_ADDR (ushort)0x0028 |
#define | ASCV_BREAK_NOTIFY_COUNT (ushort)0x002A |
#define | ASCV_BREAK_CONTROL (ushort)0x002C |
#define | ASCV_BREAK_HIT_COUNT (ushort)0x002E |
#define | ASCV_ASCDVC_ERR_CODE_W (ushort)0x0030 |
#define | ASCV_MCODE_CHKSUM_W (ushort)0x0032 |
#define | ASCV_MCODE_SIZE_W (ushort)0x0034 |
#define | ASCV_STOP_CODE_B (ushort)0x0036 |
#define | ASCV_DVC_ERR_CODE_B (ushort)0x0037 |
#define | ASCV_OVERRUN_PADDR_D (ushort)0x0038 |
#define | ASCV_OVERRUN_BSIZE_D (ushort)0x003C |
#define | ASCV_HALTCODE_W (ushort)0x0040 |
#define | ASCV_CHKSUM_W (ushort)0x0042 |
#define | ASCV_MC_DATE_W (ushort)0x0044 |
#define | ASCV_MC_VER_W (ushort)0x0046 |
#define | ASCV_NEXTRDY_B (ushort)0x0048 |
#define | ASCV_DONENEXT_B (ushort)0x0049 |
#define | ASCV_USE_TAGGED_QNG_B (ushort)0x004A |
#define | ASCV_SCSIBUSY_B (ushort)0x004B |
#define | ASCV_Q_DONE_IN_PROGRESS_B (ushort)0x004C |
#define | ASCV_CURCDB_B (ushort)0x004D |
#define | ASCV_RCLUN_B (ushort)0x004E |
#define | ASCV_BUSY_QHEAD_B (ushort)0x004F |
#define | ASCV_DISC1_QHEAD_B (ushort)0x0050 |
#define | ASCV_DISC_ENABLE_B (ushort)0x0052 |
#define | ASCV_CAN_TAGGED_QNG_B (ushort)0x0053 |
#define | ASCV_HOSTSCSI_ID_B (ushort)0x0055 |
#define | ASCV_MCODE_CNTL_B (ushort)0x0056 |
#define | ASCV_NULL_TARGET_B (ushort)0x0057 |
#define | ASCV_FREE_Q_HEAD_W (ushort)0x0058 |
#define | ASCV_DONE_Q_TAIL_W (ushort)0x005A |
#define | ASCV_FREE_Q_HEAD_B (ushort)(ASCV_FREE_Q_HEAD_W+1) |
#define | ASCV_DONE_Q_TAIL_B (ushort)(ASCV_DONE_Q_TAIL_W+1) |
#define | ASCV_HOST_FLAG_B (ushort)0x005D |
#define | ASCV_TOTAL_READY_Q_B (ushort)0x0064 |
#define | ASCV_VER_SERIAL_B (ushort)0x0065 |
#define | ASCV_HALTCODE_SAVED_W (ushort)0x0066 |
#define | ASCV_WTM_FLAG_B (ushort)0x0068 |
#define | ASCV_RISC_FLAG_B (ushort)0x006A |
#define | ASCV_REQ_SG_LIST_QP (ushort)0x006B |
#define | ASC_HOST_FLAG_IN_ISR 0x01 |
#define | ASC_HOST_FLAG_ACK_INT 0x02 |
#define | ASC_RISC_FLAG_GEN_INT 0x01 |
#define | ASC_RISC_FLAG_REQ_SG_LIST 0x02 |
#define | IOP_CTRL (0x0F) |
#define | IOP_STATUS (0x0E) |
#define | IOP_INT_ACK IOP_STATUS |
#define | IOP_REG_IFC (0x0D) |
#define | IOP_SYN_OFFSET (0x0B) |
#define | IOP_EXTRA_CONTROL (0x0D) |
#define | IOP_REG_PC (0x0C) |
#define | IOP_RAM_ADDR (0x0A) |
#define | IOP_RAM_DATA (0x08) |
#define | IOP_EEP_DATA (0x06) |
#define | IOP_EEP_CMD (0x07) |
#define | IOP_VERSION (0x03) |
#define | IOP_CONFIG_HIGH (0x04) |
#define | IOP_CONFIG_LOW (0x02) |
#define | IOP_SIG_BYTE (0x01) |
#define | IOP_SIG_WORD (0x00) |
#define | IOP_REG_DC1 (0x0E) |
#define | IOP_REG_DC0 (0x0C) |
#define | IOP_REG_SB (0x0B) |
#define | IOP_REG_DA1 (0x0A) |
#define | IOP_REG_DA0 (0x08) |
#define | IOP_REG_SC (0x09) |
#define | IOP_DMA_SPEED (0x07) |
#define | IOP_REG_FLAG (0x07) |
#define | IOP_FIFO_H (0x06) |
#define | IOP_FIFO_L (0x04) |
#define | IOP_REG_ID (0x05) |
#define | IOP_REG_QP (0x03) |
#define | IOP_REG_IH (0x02) |
#define | IOP_REG_IX (0x01) |
#define | IOP_REG_AX (0x00) |
#define | IFC_REG_LOCK (0x00) |
#define | IFC_REG_UNLOCK (0x09) |
#define | IFC_WR_EN_FILTER (0x10) |
#define | IFC_RD_NO_EEPROM (0x10) |
#define | IFC_SLEW_RATE (0x20) |
#define | IFC_ACT_NEG (0x40) |
#define | IFC_INP_FILTER (0x80) |
#define | IFC_INIT_DEFAULT (IFC_ACT_NEG | IFC_REG_UNLOCK) |
#define | SC_SEL (uchar)(0x80) |
#define | SC_BSY (uchar)(0x40) |
#define | SC_ACK (uchar)(0x20) |
#define | SC_REQ (uchar)(0x10) |
#define | SC_ATN (uchar)(0x08) |
#define | SC_IO (uchar)(0x04) |
#define | SC_CD (uchar)(0x02) |
#define | SC_MSG (uchar)(0x01) |
#define | SEC_SCSI_CTL (uchar)(0x80) |
#define | SEC_ACTIVE_NEGATE (uchar)(0x40) |
#define | SEC_SLEW_RATE (uchar)(0x20) |
#define | SEC_ENABLE_FILTER (uchar)(0x10) |
#define | ASC_HALT_EXTMSG_IN (ushort)0x8000 |
#define | ASC_HALT_CHK_CONDITION (ushort)0x8100 |
#define | ASC_HALT_SS_QUEUE_FULL (ushort)0x8200 |
#define | ASC_HALT_DISABLE_ASYN_USE_SYN_FIX (ushort)0x8300 |
#define | ASC_HALT_ENABLE_ASYN_USE_SYN_FIX (ushort)0x8400 |
#define | ASC_HALT_SDTR_REJECTED (ushort)0x4000 |
#define | ASC_HALT_HOST_COPY_SG_LIST_TO_RISC ( ushort )0x2000 |
#define | ASC_MAX_QNO 0xF8 |
#define | ASC_DATA_SEC_BEG (ushort)0x0080 |
#define | ASC_DATA_SEC_END (ushort)0x0080 |
#define | ASC_CODE_SEC_BEG (ushort)0x0080 |
#define | ASC_CODE_SEC_END (ushort)0x0080 |
#define | ASC_QADR_BEG (0x4000) |
#define | ASC_QADR_USED (ushort)(ASC_MAX_QNO * 64) |
#define | ASC_QADR_END (ushort)0x7FFF |
#define | ASC_QLAST_ADR (ushort)0x7FC0 |
#define | ASC_QBLK_SIZE 0x40 |
#define | ASC_BIOS_DATA_QBEG 0xF8 |
#define | ASC_MIN_ACTIVE_QNO 0x01 |
#define | ASC_QLINK_END 0xFF |
#define | ASC_EEPROM_WORDS 0x10 |
#define | ASC_MAX_MGS_LEN 0x10 |
#define | ASC_BIOS_ADDR_DEF 0xDC00 |
#define | ASC_BIOS_SIZE 0x3800 |
#define | ASC_BIOS_RAM_OFF 0x3800 |
#define | ASC_BIOS_RAM_SIZE 0x800 |
#define | ASC_BIOS_MIN_ADDR 0xC000 |
#define | ASC_BIOS_MAX_ADDR 0xEC00 |
#define | ASC_BIOS_BANK_SIZE 0x0400 |
#define | ASC_MCODE_START_ADDR 0x0080 |
#define | ASC_CFG0_HOST_INT_ON 0x0020 |
#define | ASC_CFG0_BIOS_ON 0x0040 |
#define | ASC_CFG0_VERA_BURST_ON 0x0080 |
#define | ASC_CFG0_SCSI_PARITY_ON 0x0800 |
#define | ASC_CFG1_SCSI_TARGET_ON 0x0080 |
#define | ASC_CFG1_LRAM_8BITS_ON 0x0800 |
#define | ASC_CFG_MSW_CLR_MASK 0x3080 |
#define | CSW_TEST1 (ASC_CS_TYPE)0x8000 |
#define | CSW_AUTO_CONFIG (ASC_CS_TYPE)0x4000 |
#define | CSW_RESERVED1 (ASC_CS_TYPE)0x2000 |
#define | CSW_IRQ_WRITTEN (ASC_CS_TYPE)0x1000 |
#define | CSW_33MHZ_SELECTED (ASC_CS_TYPE)0x0800 |
#define | CSW_TEST2 (ASC_CS_TYPE)0x0400 |
#define | CSW_TEST3 (ASC_CS_TYPE)0x0200 |
#define | CSW_RESERVED2 (ASC_CS_TYPE)0x0100 |
#define | CSW_DMA_DONE (ASC_CS_TYPE)0x0080 |
#define | CSW_FIFO_RDY (ASC_CS_TYPE)0x0040 |
#define | CSW_EEP_READ_DONE (ASC_CS_TYPE)0x0020 |
#define | CSW_HALTED (ASC_CS_TYPE)0x0010 |
#define | CSW_SCSI_RESET_ACTIVE (ASC_CS_TYPE)0x0008 |
#define | CSW_PARITY_ERR (ASC_CS_TYPE)0x0004 |
#define | CSW_SCSI_RESET_LATCH (ASC_CS_TYPE)0x0002 |
#define | CSW_INT_PENDING (ASC_CS_TYPE)0x0001 |
#define | CIW_CLR_SCSI_RESET_INT (ASC_CS_TYPE)0x1000 |
#define | CIW_INT_ACK (ASC_CS_TYPE)0x0100 |
#define | CIW_TEST1 (ASC_CS_TYPE)0x0200 |
#define | CIW_TEST2 (ASC_CS_TYPE)0x0400 |
#define | CIW_SEL_33MHZ (ASC_CS_TYPE)0x0800 |
#define | CIW_IRQ_ACT (ASC_CS_TYPE)0x1000 |
#define | CC_CHIP_RESET (uchar)0x80 |
#define | CC_SCSI_RESET (uchar)0x40 |
#define | CC_HALT (uchar)0x20 |
#define | CC_SINGLE_STEP (uchar)0x10 |
#define | CC_DMA_ABLE (uchar)0x08 |
#define | CC_TEST (uchar)0x04 |
#define | CC_BANK_ONE (uchar)0x02 |
#define | CC_DIAG (uchar)0x01 |
#define | ASC_1000_ID0W 0x04C1 |
#define | ASC_1000_ID0W_FIX 0x00C1 |
#define | ASC_1000_ID1B 0x25 |
#define | ASC_EISA_REV_IOP_MASK (0x0C83) |
#define | ASC_EISA_CFG_IOP_MASK (0x0C86) |
#define | ASC_GET_EISA_SLOT(iop) (PortAddr)((iop) & 0xF000) |
#define | INS_HALTINT (ushort)0x6281 |
#define | INS_HALT (ushort)0x6280 |
#define | INS_SINT (ushort)0x6200 |
#define | INS_RFLAG_WTM (ushort)0x7380 |
#define | ASC_MC_SAVE_CODE_WSIZE 0x500 |
#define | ASC_MC_SAVE_DATA_WSIZE 0x40 |
#define | AscGetQDoneInProgress(port) AscReadLramByte((port), ASCV_Q_DONE_IN_PROGRESS_B) |
#define | AscPutQDoneInProgress(port, val) AscWriteLramByte((port), ASCV_Q_DONE_IN_PROGRESS_B, val) |
#define | AscGetVarFreeQHead(port) AscReadLramWord((port), ASCV_FREE_Q_HEAD_W) |
#define | AscGetVarDoneQTail(port) AscReadLramWord((port), ASCV_DONE_Q_TAIL_W) |
#define | AscPutVarFreeQHead(port, val) AscWriteLramWord((port), ASCV_FREE_Q_HEAD_W, val) |
#define | AscPutVarDoneQTail(port, val) AscWriteLramWord((port), ASCV_DONE_Q_TAIL_W, val) |
#define | AscGetRiscVarFreeQHead(port) AscReadLramByte((port), ASCV_NEXTRDY_B) |
#define | AscGetRiscVarDoneQTail(port) AscReadLramByte((port), ASCV_DONENEXT_B) |
#define | AscPutRiscVarFreeQHead(port, val) AscWriteLramByte((port), ASCV_NEXTRDY_B, val) |
#define | AscPutRiscVarDoneQTail(port, val) AscWriteLramByte((port), ASCV_DONENEXT_B, val) |
#define | AscPutMCodeSDTRDoneAtID(port, id, data) AscWriteLramByte((port), (ushort)((ushort)ASCV_SDTR_DONE_BEG+(ushort)id), (data)) |
#define | AscGetMCodeSDTRDoneAtID(port, id) AscReadLramByte((port), (ushort)((ushort)ASCV_SDTR_DONE_BEG+(ushort)id)) |
#define | AscPutMCodeInitSDTRAtID(port, id, data) AscWriteLramByte((port), (ushort)((ushort)ASCV_SDTR_DATA_BEG+(ushort)id), data) |
#define | AscGetMCodeInitSDTRAtID(port, id) AscReadLramByte((port), (ushort)((ushort)ASCV_SDTR_DATA_BEG+(ushort)id)) |
#define | AscGetChipSignatureByte(port) (uchar)inp((port)+IOP_SIG_BYTE) |
#define | AscGetChipSignatureWord(port) (ushort)inpw((port)+IOP_SIG_WORD) |
#define | AscGetChipVerNo(port) (uchar)inp((port)+IOP_VERSION) |
#define | AscGetChipCfgLsw(port) (ushort)inpw((port)+IOP_CONFIG_LOW) |
#define | AscGetChipCfgMsw(port) (ushort)inpw((port)+IOP_CONFIG_HIGH) |
#define | AscSetChipCfgLsw(port, data) outpw((port)+IOP_CONFIG_LOW, data) |
#define | AscSetChipCfgMsw(port, data) outpw((port)+IOP_CONFIG_HIGH, data) |
#define | AscGetChipEEPCmd(port) (uchar)inp((port)+IOP_EEP_CMD) |
#define | AscSetChipEEPCmd(port, data) outp((port)+IOP_EEP_CMD, data) |
#define | AscGetChipEEPData(port) (ushort)inpw((port)+IOP_EEP_DATA) |
#define | AscSetChipEEPData(port, data) outpw((port)+IOP_EEP_DATA, data) |
#define | AscGetChipLramAddr(port) (ushort)inpw((PortAddr)((port)+IOP_RAM_ADDR)) |
#define | AscSetChipLramAddr(port, addr) outpw((PortAddr)((port)+IOP_RAM_ADDR), addr) |
#define | AscGetChipLramData(port) (ushort)inpw((port)+IOP_RAM_DATA) |
#define | AscSetChipLramData(port, data) outpw((port)+IOP_RAM_DATA, data) |
#define | AscGetChipIFC(port) (uchar)inp((port)+IOP_REG_IFC) |
#define | AscSetChipIFC(port, data) outp((port)+IOP_REG_IFC, data) |
#define | AscGetChipStatus(port) (ASC_CS_TYPE)inpw((port)+IOP_STATUS) |
#define | AscSetChipStatus(port, cs_val) outpw((port)+IOP_STATUS, cs_val) |
#define | AscGetChipControl(port) (uchar)inp((port)+IOP_CTRL) |
#define | AscSetChipControl(port, cc_val) outp((port)+IOP_CTRL, cc_val) |
#define | AscGetChipSyn(port) (uchar)inp((port)+IOP_SYN_OFFSET) |
#define | AscSetChipSyn(port, data) outp((port)+IOP_SYN_OFFSET, data) |
#define | AscSetPCAddr(port, data) outpw((port)+IOP_REG_PC, data) |
#define | AscGetPCAddr(port) (ushort)inpw((port)+IOP_REG_PC) |
#define | AscIsIntPending(port) (AscGetChipStatus(port) & (CSW_INT_PENDING | CSW_SCSI_RESET_LATCH)) |
#define | AscGetChipScsiID(port) ((AscGetChipCfgLsw(port) >> 8) & ASC_MAX_TID) |
#define | AscGetExtraControl(port) (uchar)inp((port)+IOP_EXTRA_CONTROL) |
#define | AscSetExtraControl(port, data) outp((port)+IOP_EXTRA_CONTROL, data) |
#define | AscReadChipAX(port) (ushort)inpw((port)+IOP_REG_AX) |
#define | AscWriteChipAX(port, data) outpw((port)+IOP_REG_AX, data) |
#define | AscReadChipIX(port) (uchar)inp((port)+IOP_REG_IX) |
#define | AscWriteChipIX(port, data) outp((port)+IOP_REG_IX, data) |
#define | AscReadChipIH(port) (ushort)inpw((port)+IOP_REG_IH) |
#define | AscWriteChipIH(port, data) outpw((port)+IOP_REG_IH, data) |
#define | AscReadChipQP(port) (uchar)inp((port)+IOP_REG_QP) |
#define | AscWriteChipQP(port, data) outp((port)+IOP_REG_QP, data) |
#define | AscReadChipFIFO_L(port) (ushort)inpw((port)+IOP_REG_FIFO_L) |
#define | AscWriteChipFIFO_L(port, data) outpw((port)+IOP_REG_FIFO_L, data) |
#define | AscReadChipFIFO_H(port) (ushort)inpw((port)+IOP_REG_FIFO_H) |
#define | AscWriteChipFIFO_H(port, data) outpw((port)+IOP_REG_FIFO_H, data) |
#define | AscReadChipDmaSpeed(port) (uchar)inp((port)+IOP_DMA_SPEED) |
#define | AscWriteChipDmaSpeed(port, data) outp((port)+IOP_DMA_SPEED, data) |
#define | AscReadChipDA0(port) (ushort)inpw((port)+IOP_REG_DA0) |
#define | AscWriteChipDA0(port) outpw((port)+IOP_REG_DA0, data) |
#define | AscReadChipDA1(port) (ushort)inpw((port)+IOP_REG_DA1) |
#define | AscWriteChipDA1(port) outpw((port)+IOP_REG_DA1, data) |
#define | AscReadChipDC0(port) (ushort)inpw((port)+IOP_REG_DC0) |
#define | AscWriteChipDC0(port) outpw((port)+IOP_REG_DC0, data) |
#define | AscReadChipDC1(port) (ushort)inpw((port)+IOP_REG_DC1) |
#define | AscWriteChipDC1(port) outpw((port)+IOP_REG_DC1, data) |
#define | AscReadChipDvcID(port) (uchar)inp((port)+IOP_REG_ID) |
#define | AscWriteChipDvcID(port, data) outp((port)+IOP_REG_ID, data) |
#define | ADV_PADDR __u32 /* Physical address data type. */ |
#define | ADV_VADDR __u32 /* Virtual address data type. */ |
#define | ADV_DCNT __u32 /* Unsigned Data count type. */ |
#define | ADV_SDCNT __s32 /* Signed Data count type. */ |
#define | ADV_VADDR_TO_U32 virt_to_bus |
#define | ADV_U32_TO_VADDR bus_to_virt |
#define | AdvPortAddr void __iomem * /* Virtual memory address size */ |
#define | ADV_MEM_READB(addr) readb(addr) |
#define | ADV_MEM_READW(addr) readw(addr) |
#define | ADV_MEM_WRITEB(addr, byte) writeb(byte, addr) |
#define | ADV_MEM_WRITEW(addr, word) writew(word, addr) |
#define | ADV_MEM_WRITEDW(addr, dword) writel(dword, addr) |
#define | ADV_CARRIER_COUNT (ASC_DEF_MAX_HOST_QNG + 15) |
#define | ADV_TOT_SG_BLOCK ASC_DEF_MAX_HOST_QNG |
#define | ADV_MAX_SG_LIST 255 |
#define | NO_OF_SG_PER_BLOCK 15 |
#define | ADV_EEP_DVC_CFG_BEGIN (0x00) |
#define | ADV_EEP_DVC_CFG_END (0x15) |
#define | ADV_EEP_DVC_CTL_BEGIN (0x16) /* location of OEM name */ |
#define | ADV_EEP_MAX_WORD_ADDR (0x1E) |
#define | ADV_EEP_DELAY_MS 100 |
#define | ADV_EEPROM_BIG_ENDIAN 0x8000 /* EEPROM Bit 15 */ |
#define | ADV_EEPROM_BIOS_ENABLE 0x4000 /* EEPROM Bit 14 */ |
#define | ADV_EEPROM_TERM_POL 0x2000 /* EEPROM Bit 13 */ |
#define | ADV_EEPROM_CIS_LD 0x2000 /* EEPROM Bit 13 */ |
#define | ADV_EEPROM_INTAB 0x0800 /* EEPROM Bit 11 */ |
#define | ASC_EEP_CMD_DONE 0x0200 |
#define | BIOS_CTRL_BIOS 0x0001 |
#define | BIOS_CTRL_EXTENDED_XLAT 0x0002 |
#define | BIOS_CTRL_GT_2_DISK 0x0004 |
#define | BIOS_CTRL_BIOS_REMOVABLE 0x0008 |
#define | BIOS_CTRL_BOOTABLE_CD 0x0010 |
#define | BIOS_CTRL_MULTIPLE_LUN 0x0040 |
#define | BIOS_CTRL_DISPLAY_MSG 0x0080 |
#define | BIOS_CTRL_NO_SCAM 0x0100 |
#define | BIOS_CTRL_RESET_SCSI_BUS 0x0200 |
#define | BIOS_CTRL_INIT_VERBOSE 0x0800 |
#define | BIOS_CTRL_SCSI_PARITY 0x1000 |
#define | BIOS_CTRL_AIPP_DIS 0x2000 |
#define | ADV_3550_MEMSIZE 0x2000 /* 8 KB Internal Memory */ |
#define | ADV_38C0800_MEMSIZE 0x4000 /* 16 KB Internal Memory */ |
#define | ADV_38C1600_MEMSIZE 0x4000 /* 16 KB Internal Memory */ |
#define | IOPB_INTR_STATUS_REG 0x00 |
#define | IOPB_CHIP_ID_1 0x01 |
#define | IOPB_INTR_ENABLES 0x02 |
#define | IOPB_CHIP_TYPE_REV 0x03 |
#define | IOPB_RES_ADDR_4 0x04 |
#define | IOPB_RES_ADDR_5 0x05 |
#define | IOPB_RAM_DATA 0x06 |
#define | IOPB_RES_ADDR_7 0x07 |
#define | IOPB_FLAG_REG 0x08 |
#define | IOPB_RES_ADDR_9 0x09 |
#define | IOPB_RISC_CSR 0x0A |
#define | IOPB_RES_ADDR_B 0x0B |
#define | IOPB_RES_ADDR_C 0x0C |
#define | IOPB_RES_ADDR_D 0x0D |
#define | IOPB_SOFT_OVER_WR 0x0E |
#define | IOPB_RES_ADDR_F 0x0F |
#define | IOPB_MEM_CFG 0x10 |
#define | IOPB_RES_ADDR_11 0x11 |
#define | IOPB_GPIO_DATA 0x12 |
#define | IOPB_RES_ADDR_13 0x13 |
#define | IOPB_FLASH_PAGE 0x14 |
#define | IOPB_RES_ADDR_15 0x15 |
#define | IOPB_GPIO_CNTL 0x16 |
#define | IOPB_RES_ADDR_17 0x17 |
#define | IOPB_FLASH_DATA 0x18 |
#define | IOPB_RES_ADDR_19 0x19 |
#define | IOPB_RES_ADDR_1A 0x1A |
#define | IOPB_RES_ADDR_1B 0x1B |
#define | IOPB_RES_ADDR_1C 0x1C |
#define | IOPB_RES_ADDR_1D 0x1D |
#define | IOPB_RES_ADDR_1E 0x1E |
#define | IOPB_RES_ADDR_1F 0x1F |
#define | IOPB_DMA_CFG0 0x20 |
#define | IOPB_DMA_CFG1 0x21 |
#define | IOPB_TICKLE 0x22 |
#define | IOPB_DMA_REG_WR 0x23 |
#define | IOPB_SDMA_STATUS 0x24 |
#define | IOPB_SCSI_BYTE_CNT 0x25 |
#define | IOPB_HOST_BYTE_CNT 0x26 |
#define | IOPB_BYTE_LEFT_TO_XFER 0x27 |
#define | IOPB_BYTE_TO_XFER_0 0x28 |
#define | IOPB_BYTE_TO_XFER_1 0x29 |
#define | IOPB_BYTE_TO_XFER_2 0x2A |
#define | IOPB_BYTE_TO_XFER_3 0x2B |
#define | IOPB_ACC_GRP 0x2C |
#define | IOPB_RES_ADDR_2D 0x2D |
#define | IOPB_DEV_ID 0x2E |
#define | IOPB_RES_ADDR_2F 0x2F |
#define | IOPB_SCSI_DATA 0x30 |
#define | IOPB_RES_ADDR_31 0x31 |
#define | IOPB_RES_ADDR_32 0x32 |
#define | IOPB_SCSI_DATA_HSHK 0x33 |
#define | IOPB_SCSI_CTRL 0x34 |
#define | IOPB_RES_ADDR_35 0x35 |
#define | IOPB_RES_ADDR_36 0x36 |
#define | IOPB_RES_ADDR_37 0x37 |
#define | IOPB_RAM_BIST 0x38 |
#define | IOPB_PLL_TEST 0x39 |
#define | IOPB_PCI_INT_CFG 0x3A |
#define | IOPB_RES_ADDR_3B 0x3B |
#define | IOPB_RFIFO_CNT 0x3C |
#define | IOPB_RES_ADDR_3D 0x3D |
#define | IOPB_RES_ADDR_3E 0x3E |
#define | IOPB_RES_ADDR_3F 0x3F |
#define | IOPW_CHIP_ID_0 0x00 /* CID0 */ |
#define | IOPW_CTRL_REG 0x02 /* CC */ |
#define | IOPW_RAM_ADDR 0x04 /* LA */ |
#define | IOPW_RAM_DATA 0x06 /* LD */ |
#define | IOPW_RES_ADDR_08 0x08 |
#define | IOPW_RISC_CSR 0x0A /* CSR */ |
#define | IOPW_SCSI_CFG0 0x0C /* CFG0 */ |
#define | IOPW_SCSI_CFG1 0x0E /* CFG1 */ |
#define | IOPW_RES_ADDR_10 0x10 |
#define | IOPW_SEL_MASK 0x12 /* SM */ |
#define | IOPW_RES_ADDR_14 0x14 |
#define | IOPW_FLASH_ADDR 0x16 /* FA */ |
#define | IOPW_RES_ADDR_18 0x18 |
#define | IOPW_EE_CMD 0x1A /* EC */ |
#define | IOPW_EE_DATA 0x1C /* ED */ |
#define | IOPW_SFIFO_CNT 0x1E /* SFC */ |
#define | IOPW_RES_ADDR_20 0x20 |
#define | IOPW_Q_BASE 0x22 /* QB */ |
#define | IOPW_QP 0x24 /* QP */ |
#define | IOPW_IX 0x26 /* IX */ |
#define | IOPW_SP 0x28 /* SP */ |
#define | IOPW_PC 0x2A /* PC */ |
#define | IOPW_RES_ADDR_2C 0x2C |
#define | IOPW_RES_ADDR_2E 0x2E |
#define | IOPW_SCSI_DATA 0x30 /* SD */ |
#define | IOPW_SCSI_DATA_HSHK 0x32 /* SDH */ |
#define | IOPW_SCSI_CTRL 0x34 /* SC */ |
#define | IOPW_HSHK_CFG 0x36 /* HCFG */ |
#define | IOPW_SXFR_STATUS 0x36 /* SXS */ |
#define | IOPW_SXFR_CNTL 0x38 /* SXL */ |
#define | IOPW_SXFR_CNTH 0x3A /* SXH */ |
#define | IOPW_RES_ADDR_3C 0x3C |
#define | IOPW_RFIFO_DATA 0x3E /* RFD */ |
#define | IOPDW_RES_ADDR_0 0x00 |
#define | IOPDW_RAM_DATA 0x04 |
#define | IOPDW_RES_ADDR_8 0x08 |
#define | IOPDW_RES_ADDR_C 0x0C |
#define | IOPDW_RES_ADDR_10 0x10 |
#define | IOPDW_COMMA 0x14 |
#define | IOPDW_COMMB 0x18 |
#define | IOPDW_RES_ADDR_1C 0x1C |
#define | IOPDW_SDMA_ADDR0 0x20 |
#define | IOPDW_SDMA_ADDR1 0x24 |
#define | IOPDW_SDMA_COUNT 0x28 |
#define | IOPDW_SDMA_ERROR 0x2C |
#define | IOPDW_RDMA_ADDR0 0x30 |
#define | IOPDW_RDMA_ADDR1 0x34 |
#define | IOPDW_RDMA_COUNT 0x38 |
#define | IOPDW_RDMA_ERROR 0x3C |
#define | ADV_CHIP_ID_BYTE 0x25 |
#define | ADV_CHIP_ID_WORD 0x04C1 |
#define | ADV_INTR_ENABLE_HOST_INTR 0x01 |
#define | ADV_INTR_ENABLE_SEL_INTR 0x02 |
#define | ADV_INTR_ENABLE_DPR_INTR 0x04 |
#define | ADV_INTR_ENABLE_RTA_INTR 0x08 |
#define | ADV_INTR_ENABLE_RMA_INTR 0x10 |
#define | ADV_INTR_ENABLE_RST_INTR 0x20 |
#define | ADV_INTR_ENABLE_DPE_INTR 0x40 |
#define | ADV_INTR_ENABLE_GLOBAL_INTR 0x80 |
#define | ADV_INTR_STATUS_INTRA 0x01 |
#define | ADV_INTR_STATUS_INTRB 0x02 |
#define | ADV_INTR_STATUS_INTRC 0x04 |
#define | ADV_RISC_CSR_STOP (0x0000) |
#define | ADV_RISC_TEST_COND (0x2000) |
#define | ADV_RISC_CSR_RUN (0x4000) |
#define | ADV_RISC_CSR_SINGLE_STEP (0x8000) |
#define | ADV_CTRL_REG_HOST_INTR 0x0100 |
#define | ADV_CTRL_REG_SEL_INTR 0x0200 |
#define | ADV_CTRL_REG_DPR_INTR 0x0400 |
#define | ADV_CTRL_REG_RTA_INTR 0x0800 |
#define | ADV_CTRL_REG_RMA_INTR 0x1000 |
#define | ADV_CTRL_REG_RES_BIT14 0x2000 |
#define | ADV_CTRL_REG_DPE_INTR 0x4000 |
#define | ADV_CTRL_REG_POWER_DONE 0x8000 |
#define | ADV_CTRL_REG_ANY_INTR 0xFF00 |
#define | ADV_CTRL_REG_CMD_RESET 0x00C6 |
#define | ADV_CTRL_REG_CMD_WR_IO_REG 0x00C5 |
#define | ADV_CTRL_REG_CMD_RD_IO_REG 0x00C4 |
#define | ADV_CTRL_REG_CMD_WR_PCI_CFG_SPACE 0x00C3 |
#define | ADV_CTRL_REG_CMD_RD_PCI_CFG_SPACE 0x00C2 |
#define | ADV_TICKLE_NOP 0x00 |
#define | ADV_TICKLE_A 0x01 |
#define | ADV_TICKLE_B 0x02 |
#define | ADV_TICKLE_C 0x03 |
#define | AdvIsIntPending(port) (AdvReadWordRegister(port, IOPW_CTRL_REG) & ADV_CTRL_REG_HOST_INTR) |
#define | TIMER_MODEAB 0xC000 /* Watchdog, Second, and Select. Timer Ctrl. */ |
#define | PARITY_EN 0x2000 /* Enable SCSI Parity Error detection */ |
#define | EVEN_PARITY 0x1000 /* Select Even Parity */ |
#define | WD_LONG 0x0800 /* Watchdog Interval, 1: 57 min, 0: 13 sec */ |
#define | QUEUE_128 0x0400 /* Queue Size, 1: 128 byte, 0: 64 byte */ |
#define | PRIM_MODE 0x0100 /* Primitive SCSI mode */ |
#define | SCAM_EN 0x0080 /* Enable SCAM selection */ |
#define | SEL_TMO_LONG 0x0040 /* Sel/Resel Timeout, 1: 400 ms, 0: 1.6 ms */ |
#define | CFRM_ID 0x0020 /* SCAM id sel. confirm., 1: fast, 0: 6.4 ms */ |
#define | OUR_ID_EN 0x0010 /* Enable OUR_ID bits */ |
#define | OUR_ID 0x000F /* SCSI ID */ |
#define | BIG_ENDIAN 0x8000 /* Enable Big Endian Mode MIO:15, EEP:15 */ |
#define | TERM_POL 0x2000 /* Terminator Polarity Ctrl. MIO:13, EEP:13 */ |
#define | SLEW_RATE 0x1000 /* SCSI output buffer slew rate */ |
#define | FILTER_SEL 0x0C00 /* Filter Period Selection */ |
#define | FLTR_DISABLE 0x0000 /* Input Filtering Disabled */ |
#define | FLTR_11_TO_20NS 0x0800 /* Input Filtering 11ns to 20ns */ |
#define | FLTR_21_TO_39NS 0x0C00 /* Input Filtering 21ns to 39ns */ |
#define | ACTIVE_DBL 0x0200 /* Disable Active Negation */ |
#define | DIFF_MODE 0x0100 /* SCSI differential Mode (Read-Only) */ |
#define | DIFF_SENSE 0x0080 /* 1: No SE cables, 0: SE cable (Read-Only) */ |
#define | TERM_CTL_SEL 0x0040 /* Enable TERM_CTL_H and TERM_CTL_L */ |
#define | TERM_CTL 0x0030 /* External SCSI Termination Bits */ |
#define | TERM_CTL_H 0x0020 /* Enable External SCSI Upper Termination */ |
#define | TERM_CTL_L 0x0010 /* Enable External SCSI Lower Termination */ |
#define | CABLE_DETECT 0x000F /* External SCSI Cable Connection Status */ |
#define | DIS_TERM_DRV 0x4000 /* 1: Read c_det[3:0], 0: cannot read */ |
#define | HVD_LVD_SE 0x1C00 /* Device Detect Bits */ |
#define | HVD 0x1000 /* HVD Device Detect */ |
#define | LVD 0x0800 /* LVD Device Detect */ |
#define | SE 0x0400 /* SE Device Detect */ |
#define | TERM_LVD 0x00C0 /* LVD Termination Bits */ |
#define | TERM_LVD_HI 0x0080 /* Enable LVD Upper Termination */ |
#define | TERM_LVD_LO 0x0040 /* Enable LVD Lower Termination */ |
#define | TERM_SE 0x0030 /* SE Termination Bits */ |
#define | TERM_SE_HI 0x0020 /* Enable SE Upper Termination */ |
#define | TERM_SE_LO 0x0010 /* Enable SE Lower Termination */ |
#define | C_DET_LVD 0x000C /* LVD Cable Detect Bits */ |
#define | C_DET3 0x0008 /* Cable Detect for LVD External Wide */ |
#define | C_DET2 0x0004 /* Cable Detect for LVD Internal Wide */ |
#define | C_DET_SE 0x0003 /* SE Cable Detect Bits */ |
#define | C_DET1 0x0002 /* Cable Detect for SE Internal Wide */ |
#define | C_DET0 0x0001 /* Cable Detect for SE Internal Narrow */ |
#define | CABLE_ILLEGAL_A 0x7 |
#define | CABLE_ILLEGAL_B 0xB |
#define | BIOS_EN 0x40 /* BIOS Enable MIO:14,EEP:14 */ |
#define | FAST_EE_CLK 0x20 /* Diagnostic Bit */ |
#define | RAM_SZ 0x1C /* Specify size of RAM to RISC */ |
#define | RAM_SZ_2KB 0x00 /* 2 KB */ |
#define | RAM_SZ_4KB 0x04 /* 4 KB */ |
#define | RAM_SZ_8KB 0x08 /* 8 KB */ |
#define | RAM_SZ_16KB 0x0C /* 16 KB */ |
#define | RAM_SZ_32KB 0x10 /* 32 KB */ |
#define | RAM_SZ_64KB 0x14 /* 64 KB */ |
#define | BC_THRESH_ENB 0x80 /* PCI DMA Start Conditions */ |
#define | FIFO_THRESH 0x70 /* PCI DMA FIFO Threshold */ |
#define | FIFO_THRESH_16B 0x00 /* 16 bytes */ |
#define | FIFO_THRESH_32B 0x20 /* 32 bytes */ |
#define | FIFO_THRESH_48B 0x30 /* 48 bytes */ |
#define | FIFO_THRESH_64B 0x40 /* 64 bytes */ |
#define | FIFO_THRESH_80B 0x50 /* 80 bytes (default) */ |
#define | FIFO_THRESH_96B 0x60 /* 96 bytes */ |
#define | FIFO_THRESH_112B 0x70 /* 112 bytes */ |
#define | START_CTL 0x0C /* DMA start conditions */ |
#define | START_CTL_TH 0x00 /* Wait threshold level (default) */ |
#define | START_CTL_ID 0x04 /* Wait SDMA/SBUS idle */ |
#define | START_CTL_THID 0x08 /* Wait threshold and SDMA/SBUS idle */ |
#define | START_CTL_EMFU 0x0C /* Wait SDMA FIFO empty/full */ |
#define | READ_CMD 0x03 /* Memory Read Method */ |
#define | READ_CMD_MR 0x00 /* Memory Read */ |
#define | READ_CMD_MRL 0x02 /* Memory Read Long */ |
#define | READ_CMD_MRM 0x03 /* Memory Read Multiple (default) */ |
#define | RAM_TEST_MODE 0x80 |
#define | PRE_TEST_MODE 0x40 |
#define | NORMAL_MODE 0x00 |
#define | RAM_TEST_DONE 0x10 |
#define | RAM_TEST_STATUS 0x0F |
#define | RAM_TEST_HOST_ERROR 0x08 |
#define | RAM_TEST_INTRAM_ERROR 0x04 |
#define | RAM_TEST_RISC_ERROR 0x02 |
#define | RAM_TEST_SCSI_ERROR 0x01 |
#define | RAM_TEST_SUCCESS 0x00 |
#define | PRE_TEST_VALUE 0x05 |
#define | NORMAL_VALUE 0x00 |
#define | INTAB_LD 0x80 /* Value loaded from EEPROM Bit 11. */ |
#define | TOTEMPOLE 0x02 |
#define | INTAB 0x01 |
#define | ADV_TRUE 1 |
#define | ADV_FALSE 0 |
#define | ADV_SUCCESS 1 |
#define | ADV_BUSY 0 |
#define | ADV_ERROR (-1) |
#define | ASC_WARN_BUSRESET_ERROR 0x0001 /* SCSI Bus Reset error */ |
#define | ASC_WARN_EEPROM_CHKSUM 0x0002 /* EEP check sum error */ |
#define | ASC_WARN_EEPROM_TERMINATION 0x0004 /* EEP termination bad field */ |
#define | ASC_WARN_ERROR 0xFFFF /* ADV_ERROR return */ |
#define | ADV_MAX_TID 15 /* max. target identifier */ |
#define | ADV_MAX_LUN 7 /* max. logical unit number */ |
#define | ASC_MC_CODE_BEGIN_ADDR 0x0028 /* microcode start address */ |
#define | ASC_MC_CODE_END_ADDR 0x002A /* microcode end address */ |
#define | ASC_MC_CODE_CHK_SUM 0x002C /* microcode code checksum */ |
#define | ASC_MC_VERSION_DATE 0x0038 /* microcode version */ |
#define | ASC_MC_VERSION_NUM 0x003A /* microcode number */ |
#define | ASC_MC_BIOSMEM 0x0040 /* BIOS RISC Memory Start */ |
#define | ASC_MC_BIOSLEN 0x0050 /* BIOS RISC Memory Length */ |
#define | ASC_MC_BIOS_SIGNATURE 0x0058 /* BIOS Signature 0x55AA */ |
#define | ASC_MC_BIOS_VERSION 0x005A /* BIOS Version (2 bytes) */ |
#define | ASC_MC_SDTR_SPEED1 0x0090 /* SDTR Speed for TID 0-3 */ |
#define | ASC_MC_SDTR_SPEED2 0x0092 /* SDTR Speed for TID 4-7 */ |
#define | ASC_MC_SDTR_SPEED3 0x0094 /* SDTR Speed for TID 8-11 */ |
#define | ASC_MC_SDTR_SPEED4 0x0096 /* SDTR Speed for TID 12-15 */ |
#define | ASC_MC_CHIP_TYPE 0x009A |
#define | ASC_MC_INTRB_CODE 0x009B |
#define | ASC_MC_WDTR_ABLE 0x009C |
#define | ASC_MC_SDTR_ABLE 0x009E |
#define | ASC_MC_TAGQNG_ABLE 0x00A0 |
#define | ASC_MC_DISC_ENABLE 0x00A2 |
#define | ASC_MC_IDLE_CMD_STATUS 0x00A4 |
#define | ASC_MC_IDLE_CMD 0x00A6 |
#define | ASC_MC_IDLE_CMD_PARAMETER 0x00A8 |
#define | ASC_MC_DEFAULT_SCSI_CFG0 0x00AC |
#define | ASC_MC_DEFAULT_SCSI_CFG1 0x00AE |
#define | ASC_MC_DEFAULT_MEM_CFG 0x00B0 |
#define | ASC_MC_DEFAULT_SEL_MASK 0x00B2 |
#define | ASC_MC_SDTR_DONE 0x00B6 |
#define | ASC_MC_NUMBER_OF_QUEUED_CMD 0x00C0 |
#define | ASC_MC_NUMBER_OF_MAX_CMD 0x00D0 |
#define | ASC_MC_DEVICE_HSHK_CFG_TABLE 0x0100 |
#define | ASC_MC_CONTROL_FLAG 0x0122 /* Microcode control flag. */ |
#define | ASC_MC_WDTR_DONE 0x0124 |
#define | ASC_MC_CAM_MODE_MASK 0x015E /* CAM mode TID bitmask. */ |
#define | ASC_MC_ICQ 0x0160 |
#define | ASC_MC_IRQ 0x0164 |
#define | ASC_MC_PPR_ABLE 0x017A |
#define | BIOS_CODESEG 0x54 |
#define | BIOS_CODELEN 0x56 |
#define | BIOS_SIGNATURE 0x58 |
#define | BIOS_VERSION 0x5A |
#define | CONTROL_FLAG_IGNORE_PERR 0x0001 /* Ignore DMA Parity Errors */ |
#define | CONTROL_FLAG_ENABLE_AIPP 0x0002 /* Enabled AIPP checking. */ |
#define | HSHK_CFG_WIDE_XFR 0x8000 |
#define | HSHK_CFG_RATE 0x0F00 |
#define | HSHK_CFG_OFFSET 0x001F |
#define | ASC_DEF_MAX_HOST_QNG 0xFD /* Max. number of host commands (253) */ |
#define | ASC_DEF_MIN_HOST_QNG 0x10 /* Min. number of host commands (16) */ |
#define | ASC_DEF_MAX_DVC_QNG 0x3F /* Max. number commands per device (63) */ |
#define | ASC_DEF_MIN_DVC_QNG 0x04 /* Min. number commands per device (4) */ |
#define | ASC_QC_DATA_CHECK 0x01 /* Require ASC_QC_DATA_OUT set or clear. */ |
#define | ASC_QC_DATA_OUT 0x02 /* Data out DMA transfer. */ |
#define | ASC_QC_START_MOTOR 0x04 /* Send auto-start motor before request. */ |
#define | ASC_QC_NO_OVERRUN 0x08 /* Don't report overrun. */ |
#define | ASC_QC_FREEZE_TIDQ 0x10 /* Freeze TID queue after request. XXX TBD */ |
#define | ASC_QSC_NO_DISC 0x01 /* Don't allow disconnect for request. */ |
#define | ASC_QSC_NO_TAGMSG 0x02 /* Don't allow tag queuing for request. */ |
#define | ASC_QSC_NO_SYNC 0x04 /* Don't use Synch. transfer on request. */ |
#define | ASC_QSC_NO_WIDE 0x08 /* Don't use Wide transfer on request. */ |
#define | ASC_QSC_REDO_DTR 0x10 /* Renegotiate WDTR/SDTR before request. */ |
#define | ASC_QSC_HEAD_TAG 0x40 /* Use Head Tag Message (0x21). */ |
#define | ASC_QSC_ORDERED_TAG 0x80 /* Use Ordered Tag Message (0x22). */ |
#define | ASC_NEXT_VPA_MASK 0xFFFFFFF0 |
#define | ASC_RQ_DONE 0x00000001 |
#define | ASC_RQ_GOOD 0x00000002 |
#define | ASC_CQ_STOPPER 0x00000000 |
#define | ASC_GET_CARRP(carrp) ((carrp) & ASC_NEXT_VPA_MASK) |
#define | ADV_CARRIER_NUM_PAGE_CROSSING (((ADV_CARRIER_COUNT * sizeof(ADV_CARR_T)) + (PAGE_SIZE - 1))/PAGE_SIZE) |
#define | ADV_CARRIER_BUFSIZE ((ADV_CARRIER_COUNT + ADV_CARRIER_NUM_PAGE_CROSSING) * sizeof(ADV_CARR_T)) |
#define | ADV_POLL_REQUEST 0x01 /* poll for request completion */ |
#define | ADV_SCSIQ_DONE 0x02 /* request done */ |
#define | ADV_DONT_RETRY 0x08 /* don't do retry */ |
#define | ADV_CHIP_ASC3550 0x01 /* Ultra-Wide IC */ |
#define | ADV_CHIP_ASC38C0800 0x02 /* Ultra2-Wide/LVD IC */ |
#define | ADV_CHIP_ASC38C1600 0x03 /* Ultra3-Wide/LVD2 IC */ |
#define | IDLE_CMD_COMPLETED 0 |
#define | IDLE_CMD_STOP_CHIP 0x0001 |
#define | IDLE_CMD_STOP_CHIP_SEND_INT 0x0002 |
#define | IDLE_CMD_SEND_INT 0x0004 |
#define | IDLE_CMD_ABORT 0x0008 |
#define | IDLE_CMD_DEVICE_RESET 0x0010 |
#define | IDLE_CMD_SCSI_RESET_START 0x0020 /* Assert SCSI Bus Reset */ |
#define | IDLE_CMD_SCSI_RESET_END 0x0040 /* Deassert SCSI Bus Reset */ |
#define | IDLE_CMD_SCSIREQ 0x0080 |
#define | IDLE_CMD_STATUS_SUCCESS 0x0001 |
#define | IDLE_CMD_STATUS_FAILURE 0x0002 |
#define | ADV_NOWAIT 0x01 |
#define | SCSI_WAIT_100_MSEC 100UL /* 100 milliseconds */ |
#define | SCSI_US_PER_MSEC 1000 /* microseconds per millisecond */ |
#define | SCSI_MAX_RETRY 10 /* retry count */ |
#define | ADV_ASYNC_RDMA_FAILURE 0x01 /* Fatal RDMA failure. */ |
#define | ADV_ASYNC_SCSI_BUS_RESET_DET 0x02 /* Detected SCSI Bus Reset. */ |
#define | ADV_ASYNC_CARRIER_READY_FAILURE 0x03 /* Carrier Ready failure. */ |
#define | ADV_RDMA_IN_CARR_AND_Q_INVALID 0x04 /* RDMAed-in data invalid. */ |
#define | ADV_HOST_SCSI_BUS_RESET 0x80 /* Host Initiated SCSI Bus Reset. */ |
#define | AdvReadByteRegister(iop_base, reg_off) (ADV_MEM_READB((iop_base) + (reg_off))) |
#define | AdvWriteByteRegister(iop_base, reg_off, byte) (ADV_MEM_WRITEB((iop_base) + (reg_off), (byte))) |
#define | AdvReadWordRegister(iop_base, reg_off) (ADV_MEM_READW((iop_base) + (reg_off))) |
#define | AdvWriteWordRegister(iop_base, reg_off, word) (ADV_MEM_WRITEW((iop_base) + (reg_off), (word))) |
#define | AdvWriteDWordRegister(iop_base, reg_off, dword) (ADV_MEM_WRITEDW((iop_base) + (reg_off), (dword))) |
#define | AdvReadByteLram(iop_base, addr, byte) |
#define | AdvWriteByteLram(iop_base, addr, byte) |
#define | AdvReadWordLram(iop_base, addr, word) |
#define | AdvWriteWordLram(iop_base, addr, word) |
#define | AdvWriteDWordLramNoSwap(iop_base, addr, dword) |
#define | AdvReadWordAutoIncLram(iop_base) (ADV_MEM_READW((iop_base) + IOPW_RAM_DATA)) |
#define | AdvWriteWordAutoIncLram(iop_base, word) (ADV_MEM_WRITEW((iop_base) + IOPW_RAM_DATA, (word))) |
#define | AdvFindSignature(iop_base) |
#define | AdvGetChipVersion(iop_base, bus_type) AdvReadByteRegister((iop_base), IOPB_CHIP_TYPE_REV) |
#define | AdvAbortQueue(asc_dvc, scsiq) |
#define | AdvResetDevice(asc_dvc, target_id) |
#define | ADV_SCSI_BIT_ID_TYPE ushort |
#define | ADV_SCAN_LUN 0x01 |
#define | ADV_CAPINFO_NOLUN 0x02 |
#define | ADV_TID_TO_TIDMASK(tid) (0x01 << ((tid) & ADV_MAX_TID)) |
#define | QD_NO_STATUS 0x00 /* Request not completed yet. */ |
#define | QD_NO_ERROR 0x01 |
#define | QD_ABORTED_BY_HOST 0x02 |
#define | QD_WITH_ERROR 0x04 |
#define | QHSTA_NO_ERROR 0x00 |
#define | QHSTA_M_SEL_TIMEOUT 0x11 |
#define | QHSTA_M_DATA_OVER_RUN 0x12 |
#define | QHSTA_M_UNEXPECTED_BUS_FREE 0x13 |
#define | QHSTA_M_QUEUE_ABORTED 0x15 |
#define | QHSTA_M_SXFR_SDMA_ERR 0x16 /* SXFR_STATUS SCSI DMA Error */ |
#define | QHSTA_M_SXFR_SXFR_PERR 0x17 /* SXFR_STATUS SCSI Bus Parity Error */ |
#define | QHSTA_M_RDMA_PERR 0x18 /* RISC PCI DMA parity error */ |
#define | QHSTA_M_SXFR_OFF_UFLW 0x19 /* SXFR_STATUS Offset Underflow */ |
#define | QHSTA_M_SXFR_OFF_OFLW 0x20 /* SXFR_STATUS Offset Overflow */ |
#define | QHSTA_M_SXFR_WD_TMO 0x21 /* SXFR_STATUS Watchdog Timeout */ |
#define | QHSTA_M_SXFR_DESELECTED 0x22 /* SXFR_STATUS Deselected */ |
#define | QHSTA_M_SXFR_XFR_OFLW 0x12 /* SXFR_STATUS Transfer Overflow */ |
#define | QHSTA_M_SXFR_XFR_PH_ERR 0x24 /* SXFR_STATUS Transfer Phase Error */ |
#define | QHSTA_M_SXFR_UNKNOWN_ERROR 0x25 /* SXFR_STATUS Unknown Error */ |
#define | QHSTA_M_SCSI_BUS_RESET 0x30 /* Request aborted from SBR */ |
#define | QHSTA_M_SCSI_BUS_RESET_UNSOL 0x31 /* Request aborted from unsol. SBR */ |
#define | QHSTA_M_BUS_DEVICE_RESET 0x32 /* Request aborted from BDR */ |
#define | QHSTA_M_DIRECTION_ERR 0x35 /* Data Phase mismatch */ |
#define | QHSTA_M_DIRECTION_ERR_HUNG 0x36 /* Data Phase mismatch and bus hang */ |
#define | QHSTA_M_WTM_TIMEOUT 0x41 |
#define | QHSTA_M_BAD_CMPL_STATUS_IN 0x42 |
#define | QHSTA_M_NO_AUTO_REQ_SENSE 0x43 |
#define | QHSTA_M_AUTO_REQ_SENSE_FAIL 0x44 |
#define | QHSTA_M_INVALID_DEVICE 0x45 /* Bad target ID */ |
#define | QHSTA_M_FROZEN_TIDQ 0x46 /* TID Queue frozen. */ |
#define | QHSTA_M_SGBACKUP_ERROR 0x47 /* Scatter-Gather backup error */ |
#define | ADV_8BALIGN(addr) (((ulong) (addr) + 0x7) & ~0x7) |
#define | ADV_16BALIGN(addr) (((ulong) (addr) + 0xF) & ~0xF) |
#define | ADV_32BALIGN(addr) (((ulong) (addr) + 0x1F) & ~0x1F) |
#define | ADV_SG_LIST_MAX_BYTE_SIZE |
#define | ASC_IS_WIDE_BOARD 0x04 /* AdvanSys Wide Board */ |
#define | ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0) |
#define | NO_ISA_DMA 0xff /* No ISA DMA Channel Used */ |
#define | ASC_INFO_SIZE 128 /* advansys_info() line size */ |
#define | ASC_TRUE 1 |
#define | ASC_FALSE 0 |
#define | ASC_NOERROR 1 |
#define | ASC_BUSY 0 |
#define | ASC_ERROR (-1) |
#define | STATUS_BYTE(byte) (byte) |
#define | MSG_BYTE(byte) ((byte) << 8) |
#define | HOST_BYTE(byte) ((byte) << 16) |
#define | DRIVER_BYTE(byte) ((byte) << 24) |
#define | ASC_STATS(shost, counter) ASC_STATS_ADD(shost, counter, 1) |
#define | ASC_STATS_ADD(shost, counter, count) (((struct asc_board *) shost_priv(shost))->asc_stats.counter += (count)) |
#define | ASC_TENTHS(num, den) |
#define | ASC_PRINT(s) |
#define | ASC_PRINT1(s, a1) |
#define | ASC_PRINT2(s, a1, a2) |
#define | ASC_PRINT3(s, a1, a2, a3) |
#define | ASC_PRINT4(s, a1, a2, a3, a4) |
#define | ASC_DBG(lvl, s...) |
#define | ASC_DBG_PRT_SCSI_HOST(lvl, s) |
#define | ASC_DBG_PRT_ASC_SCSI_Q(lvl, scsiqp) |
#define | ASC_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) |
#define | ASC_DBG_PRT_ASC_QDONE_INFO(lvl, qdone) |
#define | ADV_DBG_PRT_ADV_SCSI_REQ_Q(lvl, scsiqp) |
#define | ASC_DBG_PRT_HEX(lvl, name, start, length) |
#define | ASC_DBG_PRT_CDB(lvl, cdb, len) |
#define | ASC_DBG_PRT_SENSE(lvl, sense, len) |
#define | ASC_DBG_PRT_INQUIRY(lvl, inq, len) |
#define | asc_dvc_to_board(asc_dvc) |
#define | adv_dvc_to_board(adv_dvc) |
#define | adv_dvc_to_pdev(adv_dvc) to_pci_dev(adv_dvc_to_board(adv_dvc)->dev) |
#define | BAD_SRB 0 |
#define | ASC_SYN_OFFSET_ONE_DISABLE_LIST 16 |
#define | ASC_IOADR_TABLE_MAX_IX 11 |
Functions | |
MODULE_DEVICE_TABLE (eisa, advansys_eisa_table) | |
MODULE_DEVICE_TABLE (pci, advansys_pci_tbl) | |
module_init (advansys_init) | |
module_exit (advansys_exit) | |
MODULE_LICENSE ("GPL") | |
MODULE_FIRMWARE ("advansys/mcode.bin") | |
MODULE_FIRMWARE ("advansys/3550.bin") | |
MODULE_FIRMWARE ("advansys/38C0800.bin") | |
MODULE_FIRMWARE ("advansys/38C1600.bin") | |
#define ACTIVE_DBL 0x0200 /* Disable Active Negation */ |
Definition at line 1514 of file advansys.c.
Definition at line 2157 of file advansys.c.
Definition at line 2158 of file advansys.c.
#define ADV_3550_MEMSIZE 0x2000 /* 8 KB Internal Memory */ |
Definition at line 1306 of file advansys.c.
#define ADV_38C0800_MEMSIZE 0x4000 /* 16 KB Internal Memory */ |
Definition at line 1308 of file advansys.c.
#define ADV_38C1600_MEMSIZE 0x4000 /* 16 KB Internal Memory */ |
Definition at line 1317 of file advansys.c.
Definition at line 2156 of file advansys.c.
#define ADV_ASYNC_CARRIER_READY_FAILURE 0x03 /* Carrier Ready failure. */ |
Definition at line 1983 of file advansys.c.
#define ADV_ASYNC_RDMA_FAILURE 0x01 /* Fatal RDMA failure. */ |
Definition at line 1981 of file advansys.c.
#define ADV_ASYNC_SCSI_BUS_RESET_DET 0x02 /* Detected SCSI Bus Reset. */ |
Definition at line 1982 of file advansys.c.
#define ADV_BUSY 0 |
Definition at line 1644 of file advansys.c.
#define ADV_CAPINFO_NOLUN 0x02 |
Definition at line 2110 of file advansys.c.
#define ADV_CARRIER_BUFSIZE ((ADV_CARRIER_COUNT + ADV_CARRIER_NUM_PAGE_CROSSING) * sizeof(ADV_CARR_T)) |
Definition at line 1776 of file advansys.c.
#define ADV_CARRIER_COUNT (ASC_DEF_MAX_HOST_QNG + 15) |
Definition at line 968 of file advansys.c.
#define ADV_CARRIER_NUM_PAGE_CROSSING (((ADV_CARRIER_COUNT * sizeof(ADV_CARR_T)) + (PAGE_SIZE - 1))/PAGE_SIZE) |
Definition at line 1773 of file advansys.c.
#define ADV_CHIP_ASC3550 0x01 /* Ultra-Wide IC */ |
Definition at line 1789 of file advansys.c.
#define ADV_CHIP_ASC38C0800 0x02 /* Ultra2-Wide/LVD IC */ |
Definition at line 1790 of file advansys.c.
#define ADV_CHIP_ASC38C1600 0x03 /* Ultra3-Wide/LVD2 IC */ |
Definition at line 1791 of file advansys.c.
#define ADV_CHIP_ID_BYTE 0x25 |
Definition at line 1444 of file advansys.c.
#define ADV_CHIP_ID_WORD 0x04C1 |
Definition at line 1445 of file advansys.c.
#define ADV_CTRL_REG_ANY_INTR 0xFF00 |
Definition at line 1473 of file advansys.c.
#define ADV_CTRL_REG_CMD_RD_IO_REG 0x00C4 |
Definition at line 1477 of file advansys.c.
#define ADV_CTRL_REG_CMD_RD_PCI_CFG_SPACE 0x00C2 |
Definition at line 1479 of file advansys.c.
#define ADV_CTRL_REG_CMD_RESET 0x00C6 |
Definition at line 1475 of file advansys.c.
#define ADV_CTRL_REG_CMD_WR_IO_REG 0x00C5 |
Definition at line 1476 of file advansys.c.
#define ADV_CTRL_REG_CMD_WR_PCI_CFG_SPACE 0x00C3 |
Definition at line 1478 of file advansys.c.
#define ADV_CTRL_REG_DPE_INTR 0x4000 |
Definition at line 1471 of file advansys.c.
#define ADV_CTRL_REG_DPR_INTR 0x0400 |
Definition at line 1467 of file advansys.c.
#define ADV_CTRL_REG_HOST_INTR 0x0100 |
Definition at line 1465 of file advansys.c.
#define ADV_CTRL_REG_POWER_DONE 0x8000 |
Definition at line 1472 of file advansys.c.
#define ADV_CTRL_REG_RES_BIT14 0x2000 |
Definition at line 1470 of file advansys.c.
#define ADV_CTRL_REG_RMA_INTR 0x1000 |
Definition at line 1469 of file advansys.c.
#define ADV_CTRL_REG_RTA_INTR 0x0800 |
Definition at line 1468 of file advansys.c.
#define ADV_CTRL_REG_SEL_INTR 0x0200 |
Definition at line 1466 of file advansys.c.
#define ADV_DBG_PRT_ADV_SCSI_REQ_Q | ( | lvl, | |
scsiqp | |||
) |
Definition at line 2263 of file advansys.c.
Definition at line 943 of file advansys.c.
#define ADV_DONT_RETRY 0x08 /* don't do retry */ |
Definition at line 1787 of file advansys.c.
#define adv_dvc_to_board | ( | adv_dvc | ) |
Definition at line 2410 of file advansys.c.
#define adv_dvc_to_pdev | ( | adv_dvc | ) | to_pci_dev(adv_dvc_to_board(adv_dvc)->dev) |
Definition at line 2412 of file advansys.c.
#define ADV_EEP_DELAY_MS 100 |
Definition at line 992 of file advansys.c.
#define ADV_EEP_DVC_CFG_BEGIN (0x00) |
Definition at line 987 of file advansys.c.
#define ADV_EEP_DVC_CFG_END (0x15) |
Definition at line 988 of file advansys.c.
#define ADV_EEP_DVC_CTL_BEGIN (0x16) /* location of OEM name */ |
Definition at line 989 of file advansys.c.
#define ADV_EEP_MAX_WORD_ADDR (0x1E) |
Definition at line 990 of file advansys.c.
#define ADV_EEPROM_BIG_ENDIAN 0x8000 /* EEPROM Bit 15 */ |
Definition at line 994 of file advansys.c.
#define ADV_EEPROM_BIOS_ENABLE 0x4000 /* EEPROM Bit 14 */ |
Definition at line 995 of file advansys.c.
#define ADV_EEPROM_CIS_LD 0x2000 /* EEPROM Bit 13 */ |
Definition at line 1002 of file advansys.c.
#define ADV_EEPROM_INTAB 0x0800 /* EEPROM Bit 11 */ |
Definition at line 1014 of file advansys.c.
#define ADV_EEPROM_TERM_POL 0x2000 /* EEPROM Bit 13 */ |
Definition at line 1001 of file advansys.c.
#define ADV_ERROR (-1) |
Definition at line 1645 of file advansys.c.
#define ADV_FALSE 0 |
Definition at line 1642 of file advansys.c.
#define ADV_HOST_SCSI_BUS_RESET 0x80 /* Host Initiated SCSI Bus Reset. */ |
Definition at line 1986 of file advansys.c.
#define ADV_INTR_ENABLE_DPE_INTR 0x40 |
Definition at line 1453 of file advansys.c.
#define ADV_INTR_ENABLE_DPR_INTR 0x04 |
Definition at line 1449 of file advansys.c.
#define ADV_INTR_ENABLE_GLOBAL_INTR 0x80 |
Definition at line 1454 of file advansys.c.
#define ADV_INTR_ENABLE_HOST_INTR 0x01 |
Definition at line 1447 of file advansys.c.
#define ADV_INTR_ENABLE_RMA_INTR 0x10 |
Definition at line 1451 of file advansys.c.
#define ADV_INTR_ENABLE_RST_INTR 0x20 |
Definition at line 1452 of file advansys.c.
#define ADV_INTR_ENABLE_RTA_INTR 0x08 |
Definition at line 1450 of file advansys.c.
#define ADV_INTR_ENABLE_SEL_INTR 0x02 |
Definition at line 1448 of file advansys.c.
#define ADV_INTR_STATUS_INTRA 0x01 |
Definition at line 1456 of file advansys.c.
#define ADV_INTR_STATUS_INTRB 0x02 |
Definition at line 1457 of file advansys.c.
#define ADV_INTR_STATUS_INTRC 0x04 |
Definition at line 1458 of file advansys.c.
#define ADV_MAX_CDB_LEN 16 |
Definition at line 185 of file advansys.c.
Definition at line 1656 of file advansys.c.
#define ADV_MAX_SG_LIST 255 |
Definition at line 984 of file advansys.c.
#define ADV_MAX_TID 15 /* max. target identifier */ |
Definition at line 1655 of file advansys.c.
Definition at line 962 of file advansys.c.
Definition at line 963 of file advansys.c.
Definition at line 966 of file advansys.c.
#define ADV_NOWAIT 0x01 |
Definition at line 1972 of file advansys.c.
Definition at line 941 of file advansys.c.
#define ADV_POLL_REQUEST 0x01 /* poll for request completion */ |
Definition at line 1785 of file advansys.c.
#define ADV_RDMA_IN_CARR_AND_Q_INVALID 0x04 /* RDMAed-in data invalid. */ |
Definition at line 1984 of file advansys.c.
#define ADV_RISC_CSR_RUN (0x4000) |
Definition at line 1462 of file advansys.c.
#define ADV_RISC_CSR_SINGLE_STEP (0x8000) |
Definition at line 1463 of file advansys.c.
#define ADV_RISC_CSR_STOP (0x0000) |
Definition at line 1460 of file advansys.c.
#define ADV_RISC_TEST_COND (0x2000) |
Definition at line 1461 of file advansys.c.
#define ADV_SCAN_LUN 0x01 |
Definition at line 2109 of file advansys.c.
#define ADV_SCSI_BIT_ID_TYPE ushort |
Definition at line 2104 of file advansys.c.
#define ADV_SCSIQ_DONE 0x02 /* request done */ |
Definition at line 1786 of file advansys.c.
Definition at line 944 of file advansys.c.
#define ADV_SG_LIST_MAX_BYTE_SIZE |
Definition at line 2168 of file advansys.c.
#define ADV_SUCCESS 1 |
Definition at line 1643 of file advansys.c.
#define ADV_TICKLE_A 0x01 |
Definition at line 1482 of file advansys.c.
#define ADV_TICKLE_B 0x02 |
Definition at line 1483 of file advansys.c.
#define ADV_TICKLE_C 0x03 |
Definition at line 1484 of file advansys.c.
#define ADV_TICKLE_NOP 0x00 |
Definition at line 1481 of file advansys.c.
#define ADV_TID_TO_TIDMASK | ( | tid | ) | (0x01 << ((tid) & ADV_MAX_TID)) |
Definition at line 2115 of file advansys.c.
#define ADV_TOT_SG_BLOCK ASC_DEF_MAX_HOST_QNG |
Definition at line 979 of file advansys.c.
#define ADV_TRUE 1 |
Definition at line 1641 of file advansys.c.
#define ADV_U32_TO_VADDR bus_to_virt |
Definition at line 955 of file advansys.c.
Definition at line 942 of file advansys.c.
#define ADV_VADDR_TO_U32 virt_to_bus |
Definition at line 954 of file advansys.c.
#define AdvAbortQueue | ( | asc_dvc, | |
scsiq | |||
) |
Definition at line 2082 of file advansys.c.
#define ADVANSYS_STATS |
Definition at line 74 of file advansys.c.
#define AdvFindSignature | ( | iop_base | ) |
Definition at line 2056 of file advansys.c.
#define AdvGetChipVersion | ( | iop_base, | |
bus_type | |||
) | AdvReadByteRegister((iop_base), IOPB_CHIP_TYPE_REV) |
Definition at line 2067 of file advansys.c.
#define AdvIsIntPending | ( | port | ) | (AdvReadWordRegister(port, IOPW_CTRL_REG) & ADV_CTRL_REG_HOST_INTR) |
Definition at line 1486 of file advansys.c.
Definition at line 957 of file advansys.c.
Definition at line 2009 of file advansys.c.
#define AdvReadByteRegister | ( | iop_base, | |
reg_off | |||
) | (ADV_MEM_READB((iop_base) + (reg_off))) |
Definition at line 1989 of file advansys.c.
#define AdvReadWordAutoIncLram | ( | iop_base | ) | (ADV_MEM_READW((iop_base) + IOPW_RAM_DATA)) |
Definition at line 2043 of file advansys.c.
Definition at line 2021 of file advansys.c.
#define AdvReadWordRegister | ( | iop_base, | |
reg_off | |||
) | (ADV_MEM_READW((iop_base) + (reg_off))) |
Definition at line 1997 of file advansys.c.
#define AdvResetDevice | ( | asc_dvc, | |
target_id | |||
) |
Definition at line 2097 of file advansys.c.
Definition at line 2016 of file advansys.c.
#define AdvWriteByteRegister | ( | iop_base, | |
reg_off, | |||
byte | |||
) | (ADV_MEM_WRITEB((iop_base) + (reg_off), (byte))) |
Definition at line 1993 of file advansys.c.
Definition at line 2034 of file advansys.c.
#define AdvWriteDWordRegister | ( | iop_base, | |
reg_off, | |||
dword | |||
) | (ADV_MEM_WRITEDW((iop_base) + (reg_off), (dword))) |
Definition at line 2005 of file advansys.c.
#define AdvWriteWordAutoIncLram | ( | iop_base, | |
word | |||
) | (ADV_MEM_WRITEW((iop_base) + IOPW_RAM_DATA, (word))) |
Definition at line 2047 of file advansys.c.
Definition at line 2028 of file advansys.c.
#define AdvWriteWordRegister | ( | iop_base, | |
reg_off, | |||
word | |||
) | (ADV_MEM_WRITEW((iop_base) + (reg_off), (word))) |
Definition at line 2001 of file advansys.c.
#define ASC_1000_ID0W 0x04C1 |
Definition at line 846 of file advansys.c.
#define ASC_1000_ID0W_FIX 0x00C1 |
Definition at line 847 of file advansys.c.
#define ASC_1000_ID1B 0x25 |
Definition at line 848 of file advansys.c.
#define ASC_ALL_DEVICE_BIT_SET 0xFF |
Definition at line 171 of file advansys.c.
#define ASC_BIOS_ADDR_DEF 0xDC00 |
Definition at line 801 of file advansys.c.
#define ASC_BIOS_BANK_SIZE 0x0400 |
Definition at line 807 of file advansys.c.
#define ASC_BIOS_DATA_QBEG 0xF8 |
Definition at line 796 of file advansys.c.
#define ASC_BIOS_MAX_ADDR 0xEC00 |
Definition at line 806 of file advansys.c.
#define ASC_BIOS_MIN_ADDR 0xC000 |
Definition at line 805 of file advansys.c.
#define ASC_BIOS_RAM_OFF 0x3800 |
Definition at line 803 of file advansys.c.
#define ASC_BIOS_RAM_SIZE 0x800 |
Definition at line 804 of file advansys.c.
#define ASC_BIOS_SIZE 0x3800 |
Definition at line 802 of file advansys.c.
#define ASC_BUG_FIX_ASYN_USE_SYN 0x0002 |
Definition at line 550 of file advansys.c.
#define ASC_BUG_FIX_IF_NOT_DWB 0x0001 |
Definition at line 549 of file advansys.c.
#define ASC_BUSY 0 |
Definition at line 2201 of file advansys.c.
#define ASC_CFG0_BIOS_ON 0x0040 |
Definition at line 810 of file advansys.c.
#define ASC_CFG0_HOST_INT_ON 0x0020 |
Definition at line 809 of file advansys.c.
#define ASC_CFG0_SCSI_PARITY_ON 0x0800 |
Definition at line 812 of file advansys.c.
#define ASC_CFG0_VERA_BURST_ON 0x0080 |
Definition at line 811 of file advansys.c.
#define ASC_CFG1_LRAM_8BITS_ON 0x0800 |
Definition at line 814 of file advansys.c.
#define ASC_CFG1_SCSI_TARGET_ON 0x0080 |
Definition at line 813 of file advansys.c.
#define ASC_CFG_MSW_CLR_MASK 0x3080 |
Definition at line 815 of file advansys.c.
#define ASC_CHIP_LATEST_VER_EISA ((ASC_CHIP_MIN_VER_EISA - 1) + 3) |
Definition at line 164 of file advansys.c.
#define ASC_CHIP_MAX_VER_EISA (0x47) |
Definition at line 162 of file advansys.c.
#define ASC_CHIP_MAX_VER_ISA (0x27) |
Definition at line 154 of file advansys.c.
#define ASC_CHIP_MAX_VER_PCI (0x0F) |
Definition at line 150 of file advansys.c.
#define ASC_CHIP_MAX_VER_VL (0x07) |
Definition at line 148 of file advansys.c.
#define ASC_CHIP_MIN_VER_EISA (0x41) |
Definition at line 161 of file advansys.c.
#define ASC_CHIP_MIN_VER_ISA (0x11) |
Definition at line 152 of file advansys.c.
#define ASC_CHIP_MIN_VER_ISA_PNP (0x21) |
Definition at line 153 of file advansys.c.
#define ASC_CHIP_MIN_VER_PCI (0x09) |
Definition at line 149 of file advansys.c.
#define ASC_CHIP_MIN_VER_VL (0x01) |
Definition at line 147 of file advansys.c.
#define ASC_CHIP_VER_ASYN_BUG (0x21) |
Definition at line 157 of file advansys.c.
#define ASC_CHIP_VER_EISA_BIT (0x40) |
Definition at line 163 of file advansys.c.
#define ASC_CHIP_VER_ISA_BIT (0x30) |
Definition at line 155 of file advansys.c.
#define ASC_CHIP_VER_ISAPNP_BIT (0x20) |
Definition at line 156 of file advansys.c.
#define ASC_CHIP_VER_PCI 0x08 |
Definition at line 158 of file advansys.c.
#define ASC_CHIP_VER_PCI_BIT (0x08) |
Definition at line 151 of file advansys.c.
#define ASC_CHIP_VER_PCI_ULTRA_3050 (ASC_CHIP_VER_PCI | 0x03) |
Definition at line 160 of file advansys.c.
#define ASC_CHIP_VER_PCI_ULTRA_3150 (ASC_CHIP_VER_PCI | 0x02) |
Definition at line 159 of file advansys.c.
#define ASC_CNTL_BIOS_GT_1GB (ushort)0x0002 |
Definition at line 616 of file advansys.c.
#define ASC_CNTL_BIOS_GT_2_DISK (ushort)0x0004 |
Definition at line 617 of file advansys.c.
#define ASC_CNTL_BIOS_REMOVABLE (ushort)0x0008 |
Definition at line 618 of file advansys.c.
#define ASC_CNTL_BURST_MODE (ushort)0x2000 |
Definition at line 627 of file advansys.c.
#define ASC_CNTL_INIT_INQUIRY (ushort)0x0400 |
Definition at line 624 of file advansys.c.
#define ASC_CNTL_INIT_VERBOSE (ushort)0x0800 |
Definition at line 625 of file advansys.c.
#define ASC_CNTL_INITIATOR (ushort)0x0001 |
Definition at line 615 of file advansys.c.
#define ASC_CNTL_INT_MULTI_Q (ushort)0x0080 |
Definition at line 620 of file advansys.c.
#define ASC_CNTL_NO_LUN_SUPPORT (ushort)0x0040 |
Definition at line 621 of file advansys.c.
#define ASC_CNTL_NO_SCAM (ushort)0x0010 |
Definition at line 619 of file advansys.c.
#define ASC_CNTL_NO_VERIFY_COPY (ushort)0x0100 |
Definition at line 622 of file advansys.c.
#define ASC_CNTL_RESET_SCSI (ushort)0x0200 |
Definition at line 623 of file advansys.c.
#define ASC_CNTL_SCSI_PARITY (ushort)0x1000 |
Definition at line 626 of file advansys.c.
#define ASC_CNTL_SDTR_ENABLE_ULTRA (ushort)0x4000 |
Definition at line 628 of file advansys.c.
#define ASC_CODE_SEC_BEG (ushort)0x0080 |
Definition at line 789 of file advansys.c.
#define ASC_CODE_SEC_END (ushort)0x0080 |
Definition at line 790 of file advansys.c.
#define ASC_CQ_STOPPER 0x00000000 |
Definition at line 1769 of file advansys.c.
#define ASC_CS_TYPE unsigned short |
Definition at line 133 of file advansys.c.
#define ASC_DATA_SEC_BEG (ushort)0x0080 |
Definition at line 787 of file advansys.c.
#define ASC_DATA_SEC_END (ushort)0x0080 |
Definition at line 788 of file advansys.c.
#define ASC_DBG | ( | lvl, | |
s... | |||
) |
Definition at line 2258 of file advansys.c.
#define ASC_DBG_PRT_ADV_SCSI_REQ_Q | ( | lvl, | |
scsiqp | |||
) |
Definition at line 2261 of file advansys.c.
#define ASC_DBG_PRT_ASC_QDONE_INFO | ( | lvl, | |
qdone | |||
) |
Definition at line 2262 of file advansys.c.
#define ASC_DBG_PRT_ASC_SCSI_Q | ( | lvl, | |
scsiqp | |||
) |
Definition at line 2260 of file advansys.c.
Definition at line 2265 of file advansys.c.
Definition at line 2264 of file advansys.c.
#define ASC_DBG_PRT_INQUIRY | ( | lvl, | |
inq, | |||
len | |||
) |
Definition at line 2267 of file advansys.c.
#define ASC_DBG_PRT_SCSI_HOST | ( | lvl, | |
s | |||
) |
Definition at line 2259 of file advansys.c.
Definition at line 2266 of file advansys.c.
Definition at line 90 of file advansys.c.
#define ASC_DEF_CHIP_SCSI_ID 7 |
Definition at line 537 of file advansys.c.
#define ASC_DEF_DVC_CNTL 0xFFFF |
Definition at line 536 of file advansys.c.
#define ASC_DEF_ISA_DMA_SPEED 4 |
Definition at line 538 of file advansys.c.
#define ASC_DEF_MAX_DVC_QNG 0x3F /* Max. number commands per device (63) */ |
Definition at line 1724 of file advansys.c.
#define ASC_DEF_MAX_HOST_QNG 0xFD /* Max. number of host commands (253) */ |
Definition at line 1722 of file advansys.c.
#define ASC_DEF_MAX_TOTAL_QNG (0xF0) |
Definition at line 463 of file advansys.c.
#define ASC_DEF_MIN_DVC_QNG 0x04 /* Min. number commands per device (4) */ |
Definition at line 1725 of file advansys.c.
#define ASC_DEF_MIN_HOST_QNG 0x10 /* Min. number of host commands (16) */ |
Definition at line 1723 of file advansys.c.
#define ASC_DEF_SCSI1_QNG 4 |
Definition at line 285 of file advansys.c.
#define ASC_DEF_SCSI2_QNG 16 |
Definition at line 287 of file advansys.c.
#define ASC_DEF_SDTR_OFFSET 0x0F |
Definition at line 474 of file advansys.c.
#define asc_dvc_to_board | ( | asc_dvc | ) |
Definition at line 2408 of file advansys.c.
#define ASC_EEP_CMD_DONE 0x0200 |
Definition at line 1290 of file advansys.c.
#define ASC_EEP_CMD_READ 0x80 |
Definition at line 669 of file advansys.c.
#define ASC_EEP_CMD_WRITE 0x40 |
Definition at line 670 of file advansys.c.
#define ASC_EEP_CMD_WRITE_ABLE 0x30 |
Definition at line 671 of file advansys.c.
#define ASC_EEP_CMD_WRITE_DISABLE 0x00 |
Definition at line 672 of file advansys.c.
#define ASC_EEP_DVC_CFG_BEG 32 |
Definition at line 631 of file advansys.c.
#define ASC_EEP_DVC_CFG_BEG_VL 2 |
Definition at line 629 of file advansys.c.
Definition at line 642 of file advansys.c.
Definition at line 643 of file advansys.c.
#define ASC_EEP_MAX_DVC_ADDR 45 |
Definition at line 632 of file advansys.c.
#define ASC_EEP_MAX_DVC_ADDR_VL 15 |
Definition at line 630 of file advansys.c.
#define ASC_EEP_MAX_RETRY 20 |
Definition at line 633 of file advansys.c.
#define ASC_EEP_SET_CHIP_ID | ( | cfg, | |
sid | |||
) | ((cfg)->id_speed = ((cfg)->id_speed & 0xf0) | ((sid) & ASC_MAX_TID)) |
Definition at line 644 of file advansys.c.
#define ASC_EEP_SET_DMA_SPD | ( | cfg, | |
spd | |||
) | ((cfg)->id_speed = ((cfg)->id_speed & 0x0f) | ((spd) & 0x0f) << 4) |
Definition at line 646 of file advansys.c.
#define ASC_EEPROM_WORDS 0x10 |
Definition at line 799 of file advansys.c.
#define ASC_EISA_CFG_IOP_MASK (0x0C86) |
Definition at line 850 of file advansys.c.
#define ASC_EISA_REV_IOP_MASK (0x0C83) |
Definition at line 849 of file advansys.c.
#define ASC_ERROR (-1) |
Definition at line 2202 of file advansys.c.
#define ASC_FALSE 0 |
Definition at line 2199 of file advansys.c.
#define ASC_FLAG_BIOS_ASYNC_IO 0x04 |
Definition at line 241 of file advansys.c.
#define ASC_FLAG_BIOS_SCSIQ_REQ 0x02 |
Definition at line 240 of file advansys.c.
#define ASC_FLAG_DOS_VM_CALLBACK 0x80 |
Definition at line 246 of file advansys.c.
#define ASC_FLAG_ISA_OVER_16MB 0x40 |
Definition at line 245 of file advansys.c.
#define ASC_FLAG_SCSIQ_REQ 0x01 |
Definition at line 239 of file advansys.c.
#define ASC_FLAG_SRB_LINEAR_ADDR 0x08 |
Definition at line 242 of file advansys.c.
#define ASC_FLAG_WIN16 0x10 |
Definition at line 243 of file advansys.c.
#define ASC_FLAG_WIN32 0x20 |
Definition at line 244 of file advansys.c.
#define ASC_GET_CARRP | ( | carrp | ) | ((carrp) & ASC_NEXT_VPA_MASK) |
Definition at line 1771 of file advansys.c.
#define ASC_GET_EISA_SLOT | ( | iop | ) | (PortAddr)((iop) & 0xF000) |
Definition at line 851 of file advansys.c.
#define ASC_HALT_CHK_CONDITION (ushort)0x8100 |
Definition at line 780 of file advansys.c.
#define ASC_HALT_DISABLE_ASYN_USE_SYN_FIX (ushort)0x8300 |
Definition at line 782 of file advansys.c.
#define ASC_HALT_ENABLE_ASYN_USE_SYN_FIX (ushort)0x8400 |
Definition at line 783 of file advansys.c.
#define ASC_HALT_EXTMSG_IN (ushort)0x8000 |
Definition at line 779 of file advansys.c.
#define ASC_HALT_HOST_COPY_SG_LIST_TO_RISC ( ushort )0x2000 |
Definition at line 785 of file advansys.c.
#define ASC_HALT_SDTR_REJECTED (ushort)0x4000 |
Definition at line 784 of file advansys.c.
#define ASC_HALT_SS_QUEUE_FULL (ushort)0x8200 |
Definition at line 781 of file advansys.c.
#define ASC_HOST_FLAG_ACK_INT 0x02 |
Definition at line 725 of file advansys.c.
#define ASC_HOST_FLAG_IN_ISR 0x01 |
Definition at line 724 of file advansys.c.
#define ASC_IERR_BAD_CHIPTYPE 0x2000 /* Invalid chip_type setting */ |
Definition at line 461 of file advansys.c.
#define ASC_IERR_BAD_SIGNATURE 0x0200 /* signature not found */ |
Definition at line 457 of file advansys.c.
#define ASC_IERR_BIST_PRE_TEST 0x0800 /* BIST pre-test error */ |
Definition at line 459 of file advansys.c.
#define ASC_IERR_BIST_RAM_TEST 0x1000 /* BIST RAM test error */ |
Definition at line 460 of file advansys.c.
#define ASC_IERR_HVD_DEVICE 0x0100 /* HVD device on LVD port */ |
Definition at line 456 of file advansys.c.
#define ASC_IERR_ILLEGAL_CONNECTION 0x0010 /* Illegal cable connection */ |
Definition at line 452 of file advansys.c.
#define ASC_IERR_MCODE_CHKSUM 0x0002 /* micro code check sum error */ |
Definition at line 449 of file advansys.c.
#define ASC_IERR_NO_BUS_TYPE 0x0400 |
Definition at line 458 of file advansys.c.
#define ASC_IERR_NO_CARRIER 0x0001 /* No more carrier memory */ |
Definition at line 448 of file advansys.c.
#define ASC_IERR_REVERSED_CABLE 0x0040 /* Narrow flat cable reversed */ |
Definition at line 454 of file advansys.c.
#define ASC_IERR_SET_PC_ADDR 0x0004 |
Definition at line 450 of file advansys.c.
#define ASC_IERR_SET_SCSI_ID 0x0080 /* set SCSI ID failed */ |
Definition at line 455 of file advansys.c.
#define ASC_IERR_SINGLE_END_DEVICE 0x0020 /* SE device on DIFF bus */ |
Definition at line 453 of file advansys.c.
#define ASC_IERR_START_STOP_CHIP 0x0008 /* start/stop chip failed */ |
Definition at line 451 of file advansys.c.
Definition at line 2179 of file advansys.c.
#define ASC_INIT_RESET_SCSI_DONE 0x0100 |
Definition at line 547 of file advansys.c.
#define ASC_INIT_STATE_BEG_GET_CFG 0x0001 |
Definition at line 539 of file advansys.c.
#define ASC_INIT_STATE_BEG_INQUIRY 0x0040 |
Definition at line 545 of file advansys.c.
#define ASC_INIT_STATE_BEG_LOAD_MC 0x0010 |
Definition at line 543 of file advansys.c.
#define ASC_INIT_STATE_BEG_SET_CFG 0x0004 |
Definition at line 541 of file advansys.c.
#define ASC_INIT_STATE_END_GET_CFG 0x0002 |
Definition at line 540 of file advansys.c.
#define ASC_INIT_STATE_END_INQUIRY 0x0080 |
Definition at line 546 of file advansys.c.
#define ASC_INIT_STATE_END_LOAD_MC 0x0020 |
Definition at line 544 of file advansys.c.
#define ASC_INIT_STATE_END_SET_CFG 0x0008 |
Definition at line 542 of file advansys.c.
#define ASC_INIT_STATE_WITHOUT_EEP 0x8000 |
Definition at line 548 of file advansys.c.
#define ASC_IOADR_GAP 0x10 |
Definition at line 472 of file advansys.c.
#define ASC_IOADR_TABLE_MAX_IX 11 |
Definition at line 12417 of file advansys.c.
#define ASC_IS_BIG_ENDIAN (0x8000) |
Definition at line 145 of file advansys.c.
#define ASC_IS_EISA (0x0002) |
Definition at line 137 of file advansys.c.
#define ASC_IS_ISA (0x0001) |
Definition at line 135 of file advansys.c.
#define ASC_IS_ISAPNP (0x0081) |
Definition at line 136 of file advansys.c.
#define ASC_IS_MCA (0x0020) |
Definition at line 141 of file advansys.c.
#define ASC_IS_PCI (0x0004) |
Definition at line 138 of file advansys.c.
#define ASC_IS_PCI_ULTRA (0x0104) |
Definition at line 139 of file advansys.c.
#define ASC_IS_PCMCIA (0x0008) |
Definition at line 140 of file advansys.c.
#define ASC_IS_VL (0x0040) |
Definition at line 142 of file advansys.c.
#define ASC_IS_WIDE_BOARD 0x04 /* AdvanSys Wide Board */ |
Definition at line 2173 of file advansys.c.
#define ASC_IS_WIDESCSI_16 (0x0100) |
Definition at line 143 of file advansys.c.
#define ASC_IS_WIDESCSI_32 (0x0200) |
Definition at line 144 of file advansys.c.
#define ASC_MAX_CDB_LEN 12 |
Definition at line 184 of file advansys.c.
#define ASC_MAX_INRAM_TAG_QNG 16 |
Definition at line 471 of file advansys.c.
#define ASC_MAX_ISA_DMA_COUNT (0x00FFFFFFL) |
Definition at line 167 of file advansys.c.
#define ASC_MAX_LUN 7 |
Definition at line 174 of file advansys.c.
#define ASC_MAX_MGS_LEN 0x10 |
Definition at line 800 of file advansys.c.
#define ASC_MAX_PCI_DMA_COUNT (0xFFFFFFFFL) |
Definition at line 166 of file advansys.c.
#define ASC_MAX_PCI_INRAM_TOTAL_QNG 20 |
Definition at line 470 of file advansys.c.
#define ASC_MAX_PCI_ULTRA_INRAM_TAG_QNG 8 |
Definition at line 469 of file advansys.c.
#define ASC_MAX_PCI_ULTRA_INRAM_TOTAL_QNG 16 |
Definition at line 468 of file advansys.c.
#define ASC_MAX_QNO 0xF8 |
Definition at line 786 of file advansys.c.
#define ASC_MAX_SCSI1_QNG 4 |
Definition at line 286 of file advansys.c.
#define ASC_MAX_SCSI2_QNG 32 |
Definition at line 288 of file advansys.c.
#define ASC_MAX_SCSI_RESET_WAIT 30 |
Definition at line 552 of file advansys.c.
#define ASC_MAX_SENSE_LEN 32 |
Definition at line 176 of file advansys.c.
#define ASC_MAX_SG_LIST 255 |
Definition at line 131 of file advansys.c.
#define ASC_MAX_SG_QUEUE 7 |
Definition at line 130 of file advansys.c.
#define ASC_MAX_TID 7 |
Definition at line 173 of file advansys.c.
#define ASC_MAX_TOTAL_QNG 240 |
Definition at line 467 of file advansys.c.
#define ASC_MAX_VL_DMA_COUNT (0x07FFFFFFL) |
Definition at line 165 of file advansys.c.
#define ASC_MC_BIOS_SIGNATURE 0x0058 /* BIOS Signature 0x55AA */ |
Definition at line 1668 of file advansys.c.
#define ASC_MC_BIOS_VERSION 0x005A /* BIOS Version (2 bytes) */ |
Definition at line 1669 of file advansys.c.
#define ASC_MC_BIOSLEN 0x0050 /* BIOS RISC Memory Length */ |
Definition at line 1667 of file advansys.c.
#define ASC_MC_BIOSMEM 0x0040 /* BIOS RISC Memory Start */ |
Definition at line 1666 of file advansys.c.
#define ASC_MC_CAM_MODE_MASK 0x015E /* CAM mode TID bitmask. */ |
Definition at line 1693 of file advansys.c.
#define ASC_MC_CHIP_TYPE 0x009A |
Definition at line 1674 of file advansys.c.
#define ASC_MC_CODE_BEGIN_ADDR 0x0028 /* microcode start address */ |
Definition at line 1661 of file advansys.c.
#define ASC_MC_CODE_CHK_SUM 0x002C /* microcode code checksum */ |
Definition at line 1663 of file advansys.c.
#define ASC_MC_CODE_END_ADDR 0x002A /* microcode end address */ |
Definition at line 1662 of file advansys.c.
#define ASC_MC_CONTROL_FLAG 0x0122 /* Microcode control flag. */ |
Definition at line 1691 of file advansys.c.
#define ASC_MC_DEFAULT_MEM_CFG 0x00B0 |
Definition at line 1685 of file advansys.c.
#define ASC_MC_DEFAULT_SCSI_CFG0 0x00AC |
Definition at line 1683 of file advansys.c.
#define ASC_MC_DEFAULT_SCSI_CFG1 0x00AE |
Definition at line 1684 of file advansys.c.
#define ASC_MC_DEFAULT_SEL_MASK 0x00B2 |
Definition at line 1686 of file advansys.c.
#define ASC_MC_DEVICE_HSHK_CFG_TABLE 0x0100 |
Definition at line 1690 of file advansys.c.
#define ASC_MC_DISC_ENABLE 0x00A2 |
Definition at line 1679 of file advansys.c.
#define ASC_MC_ICQ 0x0160 |
Definition at line 1694 of file advansys.c.
#define ASC_MC_IDLE_CMD 0x00A6 |
Definition at line 1681 of file advansys.c.
#define ASC_MC_IDLE_CMD_PARAMETER 0x00A8 |
Definition at line 1682 of file advansys.c.
#define ASC_MC_IDLE_CMD_STATUS 0x00A4 |
Definition at line 1680 of file advansys.c.
#define ASC_MC_INTRB_CODE 0x009B |
Definition at line 1675 of file advansys.c.
#define ASC_MC_IRQ 0x0164 |
Definition at line 1695 of file advansys.c.
#define ASC_MC_NUMBER_OF_MAX_CMD 0x00D0 |
Definition at line 1689 of file advansys.c.
#define ASC_MC_NUMBER_OF_QUEUED_CMD 0x00C0 |
Definition at line 1688 of file advansys.c.
#define ASC_MC_PPR_ABLE 0x017A |
Definition at line 1696 of file advansys.c.
#define ASC_MC_SAVE_CODE_WSIZE 0x500 |
Definition at line 856 of file advansys.c.
#define ASC_MC_SAVE_DATA_WSIZE 0x40 |
Definition at line 857 of file advansys.c.
#define ASC_MC_SDTR_ABLE 0x009E |
Definition at line 1677 of file advansys.c.
#define ASC_MC_SDTR_DONE 0x00B6 |
Definition at line 1687 of file advansys.c.
#define ASC_MC_SDTR_SPEED1 0x0090 /* SDTR Speed for TID 0-3 */ |
Definition at line 1670 of file advansys.c.
#define ASC_MC_SDTR_SPEED2 0x0092 /* SDTR Speed for TID 4-7 */ |
Definition at line 1671 of file advansys.c.
#define ASC_MC_SDTR_SPEED3 0x0094 /* SDTR Speed for TID 8-11 */ |
Definition at line 1672 of file advansys.c.
#define ASC_MC_SDTR_SPEED4 0x0096 /* SDTR Speed for TID 12-15 */ |
Definition at line 1673 of file advansys.c.
#define ASC_MC_TAGQNG_ABLE 0x00A0 |
Definition at line 1678 of file advansys.c.
#define ASC_MC_VERSION_DATE 0x0038 /* microcode version */ |
Definition at line 1664 of file advansys.c.
#define ASC_MC_VERSION_NUM 0x003A /* microcode number */ |
Definition at line 1665 of file advansys.c.
#define ASC_MC_WDTR_ABLE 0x009C |
Definition at line 1676 of file advansys.c.
#define ASC_MC_WDTR_DONE 0x0124 |
Definition at line 1692 of file advansys.c.
#define ASC_MCNTL_NO_SEL_TIMEOUT (ushort)0x0001 |
Definition at line 613 of file advansys.c.
#define ASC_MCNTL_NULL_TARGET (ushort)0x0002 |
Definition at line 614 of file advansys.c.
#define ASC_MCODE_START_ADDR 0x0080 |
Definition at line 808 of file advansys.c.
#define ASC_MIN_ACTIVE_QNO 0x01 |
Definition at line 797 of file advansys.c.
#define ASC_MIN_FREE_Q (0x02) |
Definition at line 465 of file advansys.c.
#define ASC_MIN_SENSE_LEN 14 |
Definition at line 177 of file advansys.c.
#define ASC_MIN_TAG_Q_PER_DVC (0x04) |
Definition at line 464 of file advansys.c.
#define ASC_MIN_TAGGED_CMD 7 |
Definition at line 551 of file advansys.c.
#define ASC_MIN_TOTAL_QNG ((ASC_MAX_SG_QUEUE)+(ASC_MIN_FREE_Q)) |
Definition at line 466 of file advansys.c.
#define ASC_NARROW_BOARD | ( | boardp | ) | (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0) |
Definition at line 2175 of file advansys.c.
#define ASC_NEXT_VPA_MASK 0xFFFFFFF0 |
Definition at line 1765 of file advansys.c.
#define ASC_NOERROR 1 |
Definition at line 2200 of file advansys.c.
#define ASC_OVERRUN_BSIZE 64 |
Definition at line 553 of file advansys.c.
Definition at line 88 of file advansys.c.
#define ASC_PRINT | ( | s | ) |
Definition at line 2226 of file advansys.c.
Definition at line 2232 of file advansys.c.
Definition at line 2238 of file advansys.c.
#define ASC_QADR_BEG (0x4000) |
Definition at line 791 of file advansys.c.
#define ASC_QADR_END (ushort)0x7FFF |
Definition at line 793 of file advansys.c.
#define ASC_QADR_USED (ushort)(ASC_MAX_QNO * 64) |
Definition at line 792 of file advansys.c.
#define ASC_QBLK_SIZE 0x40 |
Definition at line 795 of file advansys.c.
#define ASC_QC_DATA_CHECK 0x01 /* Require ASC_QC_DATA_OUT set or clear. */ |
Definition at line 1727 of file advansys.c.
#define ASC_QC_DATA_OUT 0x02 /* Data out DMA transfer. */ |
Definition at line 1728 of file advansys.c.
#define ASC_QC_FREEZE_TIDQ 0x10 /* Freeze TID queue after request. XXX TBD */ |
Definition at line 1731 of file advansys.c.
#define ASC_QC_NO_OVERRUN 0x08 /* Don't report overrun. */ |
Definition at line 1730 of file advansys.c.
#define ASC_QC_START_MOTOR 0x04 /* Send auto-start motor before request. */ |
Definition at line 1729 of file advansys.c.
#define ASC_QLAST_ADR (ushort)0x7FC0 |
Definition at line 794 of file advansys.c.
#define ASC_QLINK_END 0xFF |
Definition at line 798 of file advansys.c.
#define ASC_QNO_TO_QADDR | ( | q_no | ) | ((ASC_QADR_BEG)+((int)(q_no) << 6)) |
Definition at line 301 of file advansys.c.
#define ASC_QSC_HEAD_TAG 0x40 /* Use Head Tag Message (0x21). */ |
Definition at line 1742 of file advansys.c.
#define ASC_QSC_NO_DISC 0x01 /* Don't allow disconnect for request. */ |
Definition at line 1733 of file advansys.c.
#define ASC_QSC_NO_SYNC 0x04 /* Don't use Synch. transfer on request. */ |
Definition at line 1735 of file advansys.c.
#define ASC_QSC_NO_TAGMSG 0x02 /* Don't allow tag queuing for request. */ |
Definition at line 1734 of file advansys.c.
#define ASC_QSC_NO_WIDE 0x08 /* Don't use Wide transfer on request. */ |
Definition at line 1736 of file advansys.c.
#define ASC_QSC_ORDERED_TAG 0x80 /* Use Ordered Tag Message (0x22). */ |
Definition at line 1743 of file advansys.c.
#define ASC_QSC_REDO_DTR 0x10 /* Renegotiate WDTR/SDTR before request. */ |
Definition at line 1737 of file advansys.c.
#define ASC_RISC_FLAG_GEN_INT 0x01 |
Definition at line 726 of file advansys.c.
#define ASC_RISC_FLAG_REQ_SG_LIST 0x02 |
Definition at line 727 of file advansys.c.
#define ASC_RQ_DONE 0x00000001 |
Definition at line 1767 of file advansys.c.
#define ASC_RQ_GOOD 0x00000002 |
Definition at line 1768 of file advansys.c.
#define ASC_SCSI_BIT_ID_TYPE uchar |
Definition at line 172 of file advansys.c.
#define ASC_SCSI_ID_BITS 3 |
Definition at line 169 of file advansys.c.
#define ASC_SCSI_RESET_HOLD_TIME_US 60 |
Definition at line 178 of file advansys.c.
#define ASC_SCSI_TIX_TYPE uchar |
Definition at line 170 of file advansys.c.
#define ASC_SCSI_WIDTH_BIT_SET 0xFF |
Definition at line 175 of file advansys.c.
#define ASC_SCSIQ_B_BWD 1 |
Definition at line 254 of file advansys.c.
#define ASC_SCSIQ_B_CDB_LEN 28 |
Definition at line 265 of file advansys.c.
#define ASC_SCSIQ_B_CNTL 4 |
Definition at line 257 of file advansys.c.
#define ASC_SCSIQ_B_CUR_LIST_CNT 7 |
Definition at line 279 of file advansys.c.
#define ASC_SCSIQ_B_FIRST_SG_WK_QP 48 |
Definition at line 274 of file advansys.c.
#define ASC_SCSIQ_B_FWD 0 |
Definition at line 253 of file advansys.c.
#define ASC_SCSIQ_B_LIST_CNT 6 |
Definition at line 278 of file advansys.c.
#define ASC_SCSIQ_B_QNO 3 |
Definition at line 256 of file advansys.c.
#define ASC_SCSIQ_B_SENSE_LEN 20 |
Definition at line 261 of file advansys.c.
#define ASC_SCSIQ_B_SG_QUEUE_CNT 5 |
Definition at line 258 of file advansys.c.
#define ASC_SCSIQ_B_SG_WK_IX 50 |
Definition at line 276 of file advansys.c.
#define ASC_SCSIQ_B_SG_WK_QP 49 |
Definition at line 275 of file advansys.c.
#define ASC_SCSIQ_B_STATUS 2 |
Definition at line 255 of file advansys.c.
#define ASC_SCSIQ_B_TAG_CODE 29 |
Definition at line 266 of file advansys.c.
#define ASC_SCSIQ_B_TARGET_IX 26 |
Definition at line 264 of file advansys.c.
#define ASC_SCSIQ_CDB_BEG 36 |
Definition at line 271 of file advansys.c.
#define ASC_SCSIQ_CPY_BEG 4 |
Definition at line 251 of file advansys.c.
#define ASC_SCSIQ_D_DATA_ADDR 8 |
Definition at line 259 of file advansys.c.
#define ASC_SCSIQ_D_DATA_CNT 12 |
Definition at line 260 of file advansys.c.
#define ASC_SCSIQ_D_SRBPTR 22 |
Definition at line 263 of file advansys.c.
#define ASC_SCSIQ_DONE_INFO_BEG 22 |
Definition at line 262 of file advansys.c.
#define ASC_SCSIQ_DONE_STATUS 32 |
Definition at line 268 of file advansys.c.
#define ASC_SCSIQ_DW_REMAIN_XFER_ADDR 56 |
Definition at line 272 of file advansys.c.
#define ASC_SCSIQ_DW_REMAIN_XFER_CNT 60 |
Definition at line 273 of file advansys.c.
#define ASC_SCSIQ_HOST_STATUS 33 |
Definition at line 269 of file advansys.c.
#define ASC_SCSIQ_SCSI_STATUS 34 |
Definition at line 270 of file advansys.c.
#define ASC_SCSIQ_SGHD_CPY_BEG 2 |
Definition at line 252 of file advansys.c.
#define ASC_SCSIQ_W_ALT_DC1 52 |
Definition at line 277 of file advansys.c.
#define ASC_SCSIQ_W_VM_ID 30 |
Definition at line 267 of file advansys.c.
Definition at line 91 of file advansys.c.
#define ASC_SDTR_ULTRA_PCI_10MB_INDEX 0x02 |
Definition at line 475 of file advansys.c.
#define ASC_SG_LIST_PER_Q 7 |
Definition at line 190 of file advansys.c.
#define ASC_SGQ_B_SG_CNTL 4 |
Definition at line 280 of file advansys.c.
#define ASC_SGQ_B_SG_CUR_LIST_CNT 7 |
Definition at line 283 of file advansys.c.
#define ASC_SGQ_B_SG_HEAD_QP 5 |
Definition at line 281 of file advansys.c.
#define ASC_SGQ_B_SG_LIST_CNT 6 |
Definition at line 282 of file advansys.c.
#define ASC_SGQ_LIST_BEG 8 |
Definition at line 284 of file advansys.c.
#define ASC_SRB2SCSIQ | ( | srb_ptr | ) | (srb_ptr) |
Definition at line 121 of file advansys.c.
#define ASC_STATS | ( | shost, | |
counter | |||
) | ASC_STATS_ADD(shost, counter, 1) |
Definition at line 2210 of file advansys.c.
#define ASC_STATS_ADD | ( | shost, | |
counter, | |||
count | |||
) | (((struct asc_board *) shost_priv(shost))->asc_stats.counter += (count)) |
Definition at line 2214 of file advansys.c.
#define ASC_STOP_ACK_RISC_STOP 0x03 |
Definition at line 291 of file advansys.c.
#define ASC_STOP_CLEAN_UP_BUSY_Q 0x10 |
Definition at line 292 of file advansys.c.
#define ASC_STOP_CLEAN_UP_DISC_Q 0x20 |
Definition at line 293 of file advansys.c.
#define ASC_STOP_HOST_REQ_RISC_HALT 0x40 |
Definition at line 294 of file advansys.c.
#define ASC_STOP_REQ_RISC_STOP 0x01 |
Definition at line 290 of file advansys.c.
#define ASC_SYN_MAX_OFFSET 0x0F |
Definition at line 473 of file advansys.c.
#define ASC_SYN_OFFSET_ONE_DISABLE_LIST 16 |
Definition at line 9044 of file advansys.c.
#define ASC_TAG_CODE_MASK 0x23 |
Definition at line 289 of file advansys.c.
#define ASC_TAG_FLAG_DISABLE_ASYN_USE_SYN_FIX 0x08 |
Definition at line 249 of file advansys.c.
#define ASC_TAG_FLAG_DISABLE_CHK_COND_INT_HOST 0x40 |
Definition at line 250 of file advansys.c.
#define ASC_TAG_FLAG_DISABLE_DISCONNECT 0x04 |
Definition at line 248 of file advansys.c.
#define ASC_TAG_FLAG_EXTRA_BYTES 0x10 |
Definition at line 247 of file advansys.c.
#define ASC_TID_TO_TARGET_ID | ( | tid | ) | (ASC_SCSI_BIT_ID_TYPE)(0x01 << (tid)) |
Definition at line 296 of file advansys.c.
#define ASC_TID_TO_TIX | ( | tid | ) | ((tid) & ASC_MAX_TID) |
Definition at line 299 of file advansys.c.
#define ASC_TIDLUN_TO_IX | ( | tid, | |
lun | |||
) | (ASC_SCSI_TIX_TYPE)((tid) + ((lun)<<ASC_SCSI_ID_BITS)) |
Definition at line 295 of file advansys.c.
#define ASC_TIX_TO_LUN | ( | tix | ) | (((tix) >> ASC_SCSI_ID_BITS) & ASC_MAX_LUN) |
Definition at line 300 of file advansys.c.
#define ASC_TIX_TO_TARGET_ID | ( | tix | ) | (0x01 << ((tix) & ASC_MAX_TID)) |
Definition at line 297 of file advansys.c.
#define ASC_TIX_TO_TID | ( | tix | ) | ((tix) & ASC_MAX_TID) |
Definition at line 298 of file advansys.c.
#define ASC_TRUE 1 |
Definition at line 2198 of file advansys.c.
Definition at line 89 of file advansys.c.
#define ASC_VERSION "3.4" /* AdvanSys Driver Version */ |
Definition at line 2 of file advansys.c.
#define ASC_WARN_AUTO_CONFIG 0x0008 |
Definition at line 440 of file advansys.c.
#define ASC_WARN_BUSRESET_ERROR 0x0001 /* SCSI Bus Reset error */ |
Definition at line 1650 of file advansys.c.
#define ASC_WARN_CFG_MSW_RECOVER 0x0040 |
Definition at line 443 of file advansys.c.
#define ASC_WARN_CMD_QNG_CONFLICT 0x0010 |
Definition at line 441 of file advansys.c.
#define ASC_WARN_EEPROM_CHKSUM 0x0002 |
Definition at line 1651 of file advansys.c.
#define ASC_WARN_EEPROM_CHKSUM 0x0002 /* EEP check sum error */ |
Definition at line 1651 of file advansys.c.
#define ASC_WARN_EEPROM_RECOVER 0x0020 |
Definition at line 442 of file advansys.c.
#define ASC_WARN_EEPROM_TERMINATION 0x0004 /* EEP termination bad field */ |
Definition at line 1652 of file advansys.c.
#define ASC_WARN_ERROR 0xFFFF /* ADV_ERROR return */ |
Definition at line 1653 of file advansys.c.
#define ASC_WARN_IO_PORT_ROTATE 0x0001 |
Definition at line 437 of file advansys.c.
#define ASC_WARN_IRQ_MODIFIED 0x0004 |
Definition at line 439 of file advansys.c.
#define ASC_WARN_NO_ERROR 0x0000 |
Definition at line 436 of file advansys.c.
#define AscGetChipCfgLsw | ( | port | ) | (ushort)inpw((port)+IOP_CONFIG_LOW) |
Definition at line 881 of file advansys.c.
#define AscGetChipCfgMsw | ( | port | ) | (ushort)inpw((port)+IOP_CONFIG_HIGH) |
Definition at line 882 of file advansys.c.
Definition at line 897 of file advansys.c.
#define AscGetChipEEPCmd | ( | port | ) | (uchar)inp((port)+IOP_EEP_CMD) |
Definition at line 885 of file advansys.c.
#define AscGetChipEEPData | ( | port | ) | (ushort)inpw((port)+IOP_EEP_DATA) |
Definition at line 887 of file advansys.c.
#define AscGetChipIFC | ( | port | ) | (uchar)inp((port)+IOP_REG_IFC) |
Definition at line 893 of file advansys.c.
Definition at line 889 of file advansys.c.
#define AscGetChipLramData | ( | port | ) | (ushort)inpw((port)+IOP_RAM_DATA) |
Definition at line 891 of file advansys.c.
#define AscGetChipScsiID | ( | port | ) | ((AscGetChipCfgLsw(port) >> 8) & ASC_MAX_TID) |
Definition at line 904 of file advansys.c.
#define AscGetChipSignatureByte | ( | port | ) | (uchar)inp((port)+IOP_SIG_BYTE) |
Definition at line 878 of file advansys.c.
#define AscGetChipSignatureWord | ( | port | ) | (ushort)inpw((port)+IOP_SIG_WORD) |
Definition at line 879 of file advansys.c.
#define AscGetChipStatus | ( | port | ) | (ASC_CS_TYPE)inpw((port)+IOP_STATUS) |
Definition at line 895 of file advansys.c.
#define AscGetChipSyn | ( | port | ) | (uchar)inp((port)+IOP_SYN_OFFSET) |
Definition at line 899 of file advansys.c.
#define AscGetChipVerNo | ( | port | ) | (uchar)inp((port)+IOP_VERSION) |
Definition at line 880 of file advansys.c.
#define AscGetExtraControl | ( | port | ) | (uchar)inp((port)+IOP_EXTRA_CONTROL) |
Definition at line 905 of file advansys.c.
#define AscGetMCodeInitSDTRAtID | ( | port, | |
id | |||
) | AscReadLramByte((port), (ushort)((ushort)ASCV_SDTR_DATA_BEG+(ushort)id)) |
Definition at line 877 of file advansys.c.
#define AscGetMCodeSDTRDoneAtID | ( | port, | |
id | |||
) | AscReadLramByte((port), (ushort)((ushort)ASCV_SDTR_DONE_BEG+(ushort)id)) |
Definition at line 875 of file advansys.c.
#define AscGetPCAddr | ( | port | ) | (ushort)inpw((port)+IOP_REG_PC) |
Definition at line 902 of file advansys.c.
#define AscGetQDoneInProgress | ( | port | ) | AscReadLramByte((port), ASCV_Q_DONE_IN_PROGRESS_B) |
Definition at line 864 of file advansys.c.
#define AscGetRiscVarDoneQTail | ( | port | ) | AscReadLramByte((port), ASCV_DONENEXT_B) |
Definition at line 871 of file advansys.c.
#define AscGetRiscVarFreeQHead | ( | port | ) | AscReadLramByte((port), ASCV_NEXTRDY_B) |
Definition at line 870 of file advansys.c.
#define AscGetVarDoneQTail | ( | port | ) | AscReadLramWord((port), ASCV_DONE_Q_TAIL_W) |
Definition at line 867 of file advansys.c.
#define AscGetVarFreeQHead | ( | port | ) | AscReadLramWord((port), ASCV_FREE_Q_HEAD_W) |
Definition at line 866 of file advansys.c.
#define AscIsIntPending | ( | port | ) | (AscGetChipStatus(port) & (CSW_INT_PENDING | CSW_SCSI_RESET_LATCH)) |
Definition at line 903 of file advansys.c.
#define AscPutMCodeInitSDTRAtID | ( | port, | |
id, | |||
data | |||
) | AscWriteLramByte((port), (ushort)((ushort)ASCV_SDTR_DATA_BEG+(ushort)id), data) |
Definition at line 876 of file advansys.c.
#define AscPutMCodeSDTRDoneAtID | ( | port, | |
id, | |||
data | |||
) | AscWriteLramByte((port), (ushort)((ushort)ASCV_SDTR_DONE_BEG+(ushort)id), (data)) |
Definition at line 874 of file advansys.c.
#define AscPutQDoneInProgress | ( | port, | |
val | |||
) | AscWriteLramByte((port), ASCV_Q_DONE_IN_PROGRESS_B, val) |
Definition at line 865 of file advansys.c.
#define AscPutRiscVarDoneQTail | ( | port, | |
val | |||
) | AscWriteLramByte((port), ASCV_DONENEXT_B, val) |
Definition at line 873 of file advansys.c.
#define AscPutRiscVarFreeQHead | ( | port, | |
val | |||
) | AscWriteLramByte((port), ASCV_NEXTRDY_B, val) |
Definition at line 872 of file advansys.c.
#define AscPutVarDoneQTail | ( | port, | |
val | |||
) | AscWriteLramWord((port), ASCV_DONE_Q_TAIL_W, val) |
Definition at line 869 of file advansys.c.
#define AscPutVarFreeQHead | ( | port, | |
val | |||
) | AscWriteLramWord((port), ASCV_FREE_Q_HEAD_W, val) |
Definition at line 868 of file advansys.c.
#define ASCQ_ERR_CRITICAL_RE_ENTRY 0x1B |
Definition at line 430 of file advansys.c.
#define ASCQ_ERR_CUR_QNG 0x17 |
Definition at line 427 of file advansys.c.
#define ASCQ_ERR_ISR_ON_CRITICAL 0x1C |
Definition at line 431 of file advansys.c.
#define ASCQ_ERR_ISR_RE_ENTRY 0x1A |
Definition at line 429 of file advansys.c.
#define ASCQ_ERR_Q_STATUS 0x0D |
Definition at line 426 of file advansys.c.
#define ASCQ_ERR_SG_Q_LINKS 0x18 |
Definition at line 428 of file advansys.c.
#define AscReadChipAX | ( | port | ) | (ushort)inpw((port)+IOP_REG_AX) |
Definition at line 907 of file advansys.c.
#define AscReadChipDA0 | ( | port | ) | (ushort)inpw((port)+IOP_REG_DA0) |
Definition at line 921 of file advansys.c.
#define AscReadChipDA1 | ( | port | ) | (ushort)inpw((port)+IOP_REG_DA1) |
Definition at line 923 of file advansys.c.
#define AscReadChipDC0 | ( | port | ) | (ushort)inpw((port)+IOP_REG_DC0) |
Definition at line 925 of file advansys.c.
#define AscReadChipDC1 | ( | port | ) | (ushort)inpw((port)+IOP_REG_DC1) |
Definition at line 927 of file advansys.c.
#define AscReadChipDmaSpeed | ( | port | ) | (uchar)inp((port)+IOP_DMA_SPEED) |
Definition at line 919 of file advansys.c.
#define AscReadChipDvcID | ( | port | ) | (uchar)inp((port)+IOP_REG_ID) |
Definition at line 929 of file advansys.c.
Definition at line 917 of file advansys.c.
Definition at line 915 of file advansys.c.
#define AscReadChipIH | ( | port | ) | (ushort)inpw((port)+IOP_REG_IH) |
Definition at line 911 of file advansys.c.
#define AscReadChipIX | ( | port | ) | (uchar)inp((port)+IOP_REG_IX) |
Definition at line 909 of file advansys.c.
#define AscReadChipQP | ( | port | ) | (uchar)inp((port)+IOP_REG_QP) |
Definition at line 913 of file advansys.c.
Definition at line 883 of file advansys.c.
Definition at line 884 of file advansys.c.
Definition at line 898 of file advansys.c.
Definition at line 886 of file advansys.c.
Definition at line 888 of file advansys.c.
Definition at line 894 of file advansys.c.
Definition at line 890 of file advansys.c.
Definition at line 892 of file advansys.c.
#define AscSetChipStatus | ( | port, | |
cs_val | |||
) | outpw((port)+IOP_STATUS, cs_val) |
Definition at line 896 of file advansys.c.
Definition at line 900 of file advansys.c.
Definition at line 906 of file advansys.c.
Definition at line 901 of file advansys.c.
#define ASCV_ASCDVC_ERR_CODE_W (ushort)0x0030 |
Definition at line 688 of file advansys.c.
#define ASCV_BREAK_ADDR (ushort)0x0028 |
Definition at line 683 of file advansys.c.
#define ASCV_BREAK_CONTROL (ushort)0x002C |
Definition at line 685 of file advansys.c.
#define ASCV_BREAK_HIT_COUNT (ushort)0x002E |
Definition at line 686 of file advansys.c.
#define ASCV_BREAK_NOTIFY_COUNT (ushort)0x002A |
Definition at line 684 of file advansys.c.
#define ASCV_BREAK_SAVED_CODE (ushort)0x0006 |
Definition at line 676 of file advansys.c.
#define ASCV_BUSY_QHEAD_B (ushort)0x004F |
Definition at line 706 of file advansys.c.
#define ASCV_CAN_TAGGED_QNG_B (ushort)0x0053 |
Definition at line 709 of file advansys.c.
#define ASCV_CHKSUM_W (ushort)0x0042 |
Definition at line 696 of file advansys.c.
#define ASCV_CURCDB_B (ushort)0x004D |
Definition at line 704 of file advansys.c.
#define ASCV_DISC1_QHEAD_B (ushort)0x0050 |
Definition at line 707 of file advansys.c.
#define ASCV_DISC_ENABLE_B (ushort)0x0052 |
Definition at line 708 of file advansys.c.
#define ASCV_DONE_Q_TAIL_B (ushort)(ASCV_DONE_Q_TAIL_W+1) |
Definition at line 716 of file advansys.c.
#define ASCV_DONE_Q_TAIL_W (ushort)0x005A |
Definition at line 714 of file advansys.c.
#define ASCV_DONENEXT_B (ushort)0x0049 |
Definition at line 700 of file advansys.c.
#define ASCV_DVC_ERR_CODE_B (ushort)0x0037 |
Definition at line 692 of file advansys.c.
#define ASCV_FREE_Q_HEAD_B (ushort)(ASCV_FREE_Q_HEAD_W+1) |
Definition at line 715 of file advansys.c.
#define ASCV_FREE_Q_HEAD_W (ushort)0x0058 |
Definition at line 713 of file advansys.c.
#define ASCV_HALTCODE_SAVED_W (ushort)0x0066 |
Definition at line 720 of file advansys.c.
#define ASCV_HALTCODE_W (ushort)0x0040 |
Definition at line 695 of file advansys.c.
#define ASCV_HOST_FLAG_B (ushort)0x005D |
Definition at line 717 of file advansys.c.
#define ASCV_HOSTSCSI_ID_B (ushort)0x0055 |
Definition at line 710 of file advansys.c.
#define ASCV_MAX_DVC_QNG_BEG (ushort)0x0020 |
Definition at line 682 of file advansys.c.
#define ASCV_MC_DATE_W (ushort)0x0044 |
Definition at line 697 of file advansys.c.
#define ASCV_MC_VER_W (ushort)0x0046 |
Definition at line 698 of file advansys.c.
#define ASCV_MCODE_CHKSUM_W (ushort)0x0032 |
Definition at line 689 of file advansys.c.
#define ASCV_MCODE_CNTL_B (ushort)0x0056 |
Definition at line 711 of file advansys.c.
#define ASCV_MCODE_SIZE_W (ushort)0x0034 |
Definition at line 690 of file advansys.c.
#define ASCV_MSGIN_BEG (ASCV_MSGOUT_BEG+8) |
Definition at line 677 of file advansys.c.
#define ASCV_MSGIN_SDTR_OFFSET (ASCV_MSGIN_BEG+4) |
Definition at line 679 of file advansys.c.
#define ASCV_MSGIN_SDTR_PERIOD (ASCV_MSGIN_BEG+3) |
Definition at line 678 of file advansys.c.
#define ASCV_MSGOUT_BEG 0x0000 |
Definition at line 673 of file advansys.c.
#define ASCV_MSGOUT_SDTR_OFFSET (ASCV_MSGOUT_BEG+4) |
Definition at line 675 of file advansys.c.
#define ASCV_MSGOUT_SDTR_PERIOD (ASCV_MSGOUT_BEG+3) |
Definition at line 674 of file advansys.c.
#define ASCV_NEXTRDY_B (ushort)0x0048 |
Definition at line 699 of file advansys.c.
#define ASCV_NULL_TARGET_B (ushort)0x0057 |
Definition at line 712 of file advansys.c.
#define ASCV_OVERRUN_BSIZE_D (ushort)0x003C |
Definition at line 694 of file advansys.c.
#define ASCV_OVERRUN_PADDR_D (ushort)0x0038 |
Definition at line 693 of file advansys.c.
#define ASCV_Q_DONE_IN_PROGRESS_B (ushort)0x004C |
Definition at line 703 of file advansys.c.
#define ASCV_RCLUN_B (ushort)0x004E |
Definition at line 705 of file advansys.c.
#define ASCV_REQ_SG_LIST_QP (ushort)0x006B |
Definition at line 723 of file advansys.c.
#define ASCV_RISC_FLAG_B (ushort)0x006A |
Definition at line 722 of file advansys.c.
#define ASCV_SCSIBUSY_B (ushort)0x004B |
Definition at line 702 of file advansys.c.
#define ASCV_SDTR_DATA_BEG (ASCV_MSGIN_BEG+8) |
Definition at line 680 of file advansys.c.
#define ASCV_SDTR_DONE_BEG (ASCV_SDTR_DATA_BEG+8) |
Definition at line 681 of file advansys.c.
#define ASCV_STOP_CODE_B (ushort)0x0036 |
Definition at line 691 of file advansys.c.
#define ASCV_TOTAL_READY_Q_B (ushort)0x0064 |
Definition at line 718 of file advansys.c.
#define ASCV_USE_TAGGED_QNG_B (ushort)0x004A |
Definition at line 701 of file advansys.c.
#define ASCV_VER_SERIAL_B (ushort)0x0065 |
Definition at line 719 of file advansys.c.
#define ASCV_WTM_FLAG_B (ushort)0x0068 |
Definition at line 721 of file advansys.c.
Definition at line 908 of file advansys.c.
#define AscWriteChipDA0 | ( | port | ) | outpw((port)+IOP_REG_DA0, data) |
Definition at line 922 of file advansys.c.
#define AscWriteChipDA1 | ( | port | ) | outpw((port)+IOP_REG_DA1, data) |
Definition at line 924 of file advansys.c.
#define AscWriteChipDC0 | ( | port | ) | outpw((port)+IOP_REG_DC0, data) |
Definition at line 926 of file advansys.c.
#define AscWriteChipDC1 | ( | port | ) | outpw((port)+IOP_REG_DC1, data) |
Definition at line 928 of file advansys.c.
Definition at line 920 of file advansys.c.
Definition at line 930 of file advansys.c.
Definition at line 918 of file advansys.c.
Definition at line 916 of file advansys.c.
Definition at line 912 of file advansys.c.
Definition at line 910 of file advansys.c.
Definition at line 914 of file advansys.c.
#define ASYN_SDTR_DATA_FIX_PCI_REV_AB 0x41 |
Definition at line 476 of file advansys.c.
#define BAD_SRB 0 |
Definition at line 2751 of file advansys.c.
#define BC_THRESH_ENB 0x80 /* PCI DMA Start Conditions */ |
Definition at line 1576 of file advansys.c.
#define BIG_ENDIAN 0x8000 /* Enable Big Endian Mode MIO:15, EEP:15 */ |
Definition at line 1507 of file advansys.c.
#define BIOS_CODELEN 0x56 |
Definition at line 1702 of file advansys.c.
#define BIOS_CODESEG 0x54 |
Definition at line 1701 of file advansys.c.
#define BIOS_CTRL_AIPP_DIS 0x2000 |
Definition at line 1304 of file advansys.c.
#define BIOS_CTRL_BIOS 0x0001 |
Definition at line 1293 of file advansys.c.
#define BIOS_CTRL_BIOS_REMOVABLE 0x0008 |
Definition at line 1296 of file advansys.c.
#define BIOS_CTRL_BOOTABLE_CD 0x0010 |
Definition at line 1297 of file advansys.c.
#define BIOS_CTRL_DISPLAY_MSG 0x0080 |
Definition at line 1299 of file advansys.c.
#define BIOS_CTRL_EXTENDED_XLAT 0x0002 |
Definition at line 1294 of file advansys.c.
#define BIOS_CTRL_GT_2_DISK 0x0004 |
Definition at line 1295 of file advansys.c.
#define BIOS_CTRL_INIT_VERBOSE 0x0800 |
Definition at line 1302 of file advansys.c.
#define BIOS_CTRL_MULTIPLE_LUN 0x0040 |
Definition at line 1298 of file advansys.c.
#define BIOS_CTRL_NO_SCAM 0x0100 |
Definition at line 1300 of file advansys.c.
#define BIOS_CTRL_RESET_SCSI_BUS 0x0200 |
Definition at line 1301 of file advansys.c.
#define BIOS_CTRL_SCSI_PARITY 0x1000 |
Definition at line 1303 of file advansys.c.
#define BIOS_EN 0x40 /* BIOS Enable MIO:14,EEP:14 */ |
Definition at line 1561 of file advansys.c.
#define BIOS_SIGNATURE 0x58 |
Definition at line 1703 of file advansys.c.
#define BIOS_VERSION 0x5A |
Definition at line 1704 of file advansys.c.
#define C_DET0 0x0001 /* Cable Detect for SE Internal Narrow */ |
Definition at line 1550 of file advansys.c.
#define C_DET1 0x0002 /* Cable Detect for SE Internal Wide */ |
Definition at line 1549 of file advansys.c.
#define C_DET2 0x0004 /* Cable Detect for LVD Internal Wide */ |
Definition at line 1547 of file advansys.c.
#define C_DET3 0x0008 /* Cable Detect for LVD External Wide */ |
Definition at line 1546 of file advansys.c.
#define C_DET_LVD 0x000C /* LVD Cable Detect Bits */ |
Definition at line 1545 of file advansys.c.
#define C_DET_SE 0x0003 /* SE Cable Detect Bits */ |
Definition at line 1548 of file advansys.c.
#define CABLE_DETECT 0x000F /* External SCSI Cable Connection Status */ |
Definition at line 1521 of file advansys.c.
#define CABLE_ILLEGAL_A 0x7 |
Definition at line 1552 of file advansys.c.
#define CABLE_ILLEGAL_B 0xB |
Definition at line 1555 of file advansys.c.
#define CC_BANK_ONE (uchar)0x02 |
Definition at line 844 of file advansys.c.
#define CC_CHIP_RESET (uchar)0x80 |
Definition at line 838 of file advansys.c.
#define CC_DIAG (uchar)0x01 |
Definition at line 845 of file advansys.c.
#define CC_DMA_ABLE (uchar)0x08 |
Definition at line 842 of file advansys.c.
#define CC_HALT (uchar)0x20 |
Definition at line 840 of file advansys.c.
#define CC_SCSI_RESET (uchar)0x40 |
Definition at line 839 of file advansys.c.
#define CC_SINGLE_STEP (uchar)0x10 |
Definition at line 841 of file advansys.c.
#define CC_TEST (uchar)0x04 |
Definition at line 843 of file advansys.c.
#define CC_VERY_LONG_SG_LIST 0 |
Definition at line 120 of file advansys.c.
#define CFRM_ID 0x0020 /* SCAM id sel. confirm., 1: fast, 0: 6.4 ms */ |
Definition at line 1500 of file advansys.c.
#define CIW_CLR_SCSI_RESET_INT (ASC_CS_TYPE)0x1000 |
Definition at line 832 of file advansys.c.
#define CIW_INT_ACK (ASC_CS_TYPE)0x0100 |
Definition at line 833 of file advansys.c.
#define CIW_IRQ_ACT (ASC_CS_TYPE)0x1000 |
Definition at line 837 of file advansys.c.
#define CIW_SEL_33MHZ (ASC_CS_TYPE)0x0800 |
Definition at line 836 of file advansys.c.
#define CIW_TEST1 (ASC_CS_TYPE)0x0200 |
Definition at line 834 of file advansys.c.
#define CIW_TEST2 (ASC_CS_TYPE)0x0400 |
Definition at line 835 of file advansys.c.
#define CONTROL_FLAG_ENABLE_AIPP 0x0002 /* Enabled AIPP checking. */ |
Definition at line 1713 of file advansys.c.
#define CONTROL_FLAG_IGNORE_PERR 0x0001 /* Ignore DMA Parity Errors */ |
Definition at line 1712 of file advansys.c.
#define CSW_33MHZ_SELECTED (ASC_CS_TYPE)0x0800 |
Definition at line 820 of file advansys.c.
#define CSW_AUTO_CONFIG (ASC_CS_TYPE)0x4000 |
Definition at line 817 of file advansys.c.
#define CSW_DMA_DONE (ASC_CS_TYPE)0x0080 |
Definition at line 824 of file advansys.c.
#define CSW_EEP_READ_DONE (ASC_CS_TYPE)0x0020 |
Definition at line 826 of file advansys.c.
#define CSW_FIFO_RDY (ASC_CS_TYPE)0x0040 |
Definition at line 825 of file advansys.c.
#define CSW_HALTED (ASC_CS_TYPE)0x0010 |
Definition at line 827 of file advansys.c.
#define CSW_INT_PENDING (ASC_CS_TYPE)0x0001 |
Definition at line 831 of file advansys.c.
#define CSW_IRQ_WRITTEN (ASC_CS_TYPE)0x1000 |
Definition at line 819 of file advansys.c.
#define CSW_PARITY_ERR (ASC_CS_TYPE)0x0004 |
Definition at line 829 of file advansys.c.
#define CSW_RESERVED1 (ASC_CS_TYPE)0x2000 |
Definition at line 818 of file advansys.c.
#define CSW_RESERVED2 (ASC_CS_TYPE)0x0100 |
Definition at line 823 of file advansys.c.
#define CSW_SCSI_RESET_ACTIVE (ASC_CS_TYPE)0x0008 |
Definition at line 828 of file advansys.c.
#define CSW_SCSI_RESET_LATCH (ASC_CS_TYPE)0x0002 |
Definition at line 830 of file advansys.c.
#define CSW_TEST1 (ASC_CS_TYPE)0x8000 |
Definition at line 816 of file advansys.c.
#define CSW_TEST2 (ASC_CS_TYPE)0x0400 |
Definition at line 821 of file advansys.c.
#define CSW_TEST3 (ASC_CS_TYPE)0x0200 |
Definition at line 822 of file advansys.c.
#define DIFF_MODE 0x0100 /* SCSI differential Mode (Read-Only) */ |
Definition at line 1515 of file advansys.c.
#define DIFF_SENSE 0x0080 /* 1: No SE cables, 0: SE cable (Read-Only) */ |
Definition at line 1516 of file advansys.c.
#define DIS_TERM_DRV 0x4000 /* 1: Read c_det[3:0], 0: cannot read */ |
Definition at line 1534 of file advansys.c.
Definition at line 2208 of file advansys.c.
#define DRV_NAME "advansys" |
Definition at line 1 of file advansys.c.
#define ERR (-1) |
Definition at line 102 of file advansys.c.
#define EVEN_PARITY 0x1000 /* Select Even Parity */ |
Definition at line 1494 of file advansys.c.
#define FALSE (0) |
Definition at line 99 of file advansys.c.
#define FAST_EE_CLK 0x20 /* Diagnostic Bit */ |
Definition at line 1562 of file advansys.c.
#define FIFO_THRESH 0x70 /* PCI DMA FIFO Threshold */ |
Definition at line 1577 of file advansys.c.
#define FIFO_THRESH_112B 0x70 /* 112 bytes */ |
Definition at line 1584 of file advansys.c.
#define FIFO_THRESH_16B 0x00 /* 16 bytes */ |
Definition at line 1578 of file advansys.c.
#define FIFO_THRESH_32B 0x20 /* 32 bytes */ |
Definition at line 1579 of file advansys.c.
#define FIFO_THRESH_48B 0x30 /* 48 bytes */ |
Definition at line 1580 of file advansys.c.
#define FIFO_THRESH_64B 0x40 /* 64 bytes */ |
Definition at line 1581 of file advansys.c.
#define FIFO_THRESH_80B 0x50 /* 80 bytes (default) */ |
Definition at line 1582 of file advansys.c.
#define FIFO_THRESH_96B 0x60 /* 96 bytes */ |
Definition at line 1583 of file advansys.c.
#define FILTER_SEL 0x0C00 /* Filter Period Selection */ |
Definition at line 1510 of file advansys.c.
#define FLTR_11_TO_20NS 0x0800 /* Input Filtering 11ns to 20ns */ |
Definition at line 1512 of file advansys.c.
#define FLTR_21_TO_39NS 0x0C00 /* Input Filtering 21ns to 39ns */ |
Definition at line 1513 of file advansys.c.
#define FLTR_DISABLE 0x0000 /* Input Filtering Disabled */ |
Definition at line 1511 of file advansys.c.
Definition at line 2207 of file advansys.c.
#define HSHK_CFG_OFFSET 0x001F |
Definition at line 1720 of file advansys.c.
#define HSHK_CFG_RATE 0x0F00 |
Definition at line 1719 of file advansys.c.
#define HSHK_CFG_WIDE_XFR 0x8000 |
Definition at line 1718 of file advansys.c.
#define HVD 0x1000 /* HVD Device Detect */ |
Definition at line 1536 of file advansys.c.
#define HVD_LVD_SE 0x1C00 /* Device Detect Bits */ |
Definition at line 1535 of file advansys.c.
#define IDLE_CMD_ABORT 0x0008 |
Definition at line 1960 of file advansys.c.
#define IDLE_CMD_COMPLETED 0 |
Definition at line 1956 of file advansys.c.
#define IDLE_CMD_DEVICE_RESET 0x0010 |
Definition at line 1961 of file advansys.c.
#define IDLE_CMD_SCSI_RESET_END 0x0040 /* Deassert SCSI Bus Reset */ |
Definition at line 1963 of file advansys.c.
#define IDLE_CMD_SCSI_RESET_START 0x0020 /* Assert SCSI Bus Reset */ |
Definition at line 1962 of file advansys.c.
#define IDLE_CMD_SCSIREQ 0x0080 |
Definition at line 1964 of file advansys.c.
#define IDLE_CMD_SEND_INT 0x0004 |
Definition at line 1959 of file advansys.c.
#define IDLE_CMD_STATUS_FAILURE 0x0002 |
Definition at line 1967 of file advansys.c.
#define IDLE_CMD_STATUS_SUCCESS 0x0001 |
Definition at line 1966 of file advansys.c.
#define IDLE_CMD_STOP_CHIP 0x0001 |
Definition at line 1957 of file advansys.c.
#define IDLE_CMD_STOP_CHIP_SEND_INT 0x0002 |
Definition at line 1958 of file advansys.c.
#define IFC_ACT_NEG (0x40) |
Definition at line 764 of file advansys.c.
#define IFC_INIT_DEFAULT (IFC_ACT_NEG | IFC_REG_UNLOCK) |
Definition at line 766 of file advansys.c.
#define IFC_INP_FILTER (0x80) |
Definition at line 765 of file advansys.c.
#define IFC_RD_NO_EEPROM (0x10) |
Definition at line 762 of file advansys.c.
#define IFC_REG_LOCK (0x00) |
Definition at line 759 of file advansys.c.
#define IFC_REG_UNLOCK (0x09) |
Definition at line 760 of file advansys.c.
#define IFC_SLEW_RATE (0x20) |
Definition at line 763 of file advansys.c.
#define IFC_WR_EN_FILTER (0x10) |
Definition at line 761 of file advansys.c.
Definition at line 124 of file advansys.c.
Definition at line 127 of file advansys.c.
#define INS_HALT (ushort)0x6280 |
Definition at line 853 of file advansys.c.
#define INS_HALTINT (ushort)0x6281 |
Definition at line 852 of file advansys.c.
#define INS_RFLAG_WTM (ushort)0x7380 |
Definition at line 855 of file advansys.c.
#define INS_SINT (ushort)0x6200 |
Definition at line 854 of file advansys.c.
#define INTAB 0x01 |
Definition at line 1636 of file advansys.c.
#define INTAB_LD 0x80 /* Value loaded from EEPROM Bit 11. */ |
Definition at line 1617 of file advansys.c.
#define IOP_CONFIG_HIGH (0x04) |
Definition at line 740 of file advansys.c.
#define IOP_CONFIG_LOW (0x02) |
Definition at line 741 of file advansys.c.
#define IOP_CTRL (0x0F) |
Definition at line 728 of file advansys.c.
#define IOP_DMA_SPEED (0x07) |
Definition at line 750 of file advansys.c.
#define IOP_EEP_CMD (0x07) |
Definition at line 738 of file advansys.c.
#define IOP_EEP_DATA (0x06) |
Definition at line 737 of file advansys.c.
#define IOP_EXTRA_CONTROL (0x0D) |
Definition at line 733 of file advansys.c.
#define IOP_FIFO_H (0x06) |
Definition at line 752 of file advansys.c.
#define IOP_FIFO_L (0x04) |
Definition at line 753 of file advansys.c.
#define IOP_INT_ACK IOP_STATUS |
Definition at line 730 of file advansys.c.
#define IOP_RAM_ADDR (0x0A) |
Definition at line 735 of file advansys.c.
#define IOP_RAM_DATA (0x08) |
Definition at line 736 of file advansys.c.
#define IOP_REG_AX (0x00) |
Definition at line 758 of file advansys.c.
#define IOP_REG_DA0 (0x08) |
Definition at line 748 of file advansys.c.
#define IOP_REG_DA1 (0x0A) |
Definition at line 747 of file advansys.c.
#define IOP_REG_DC0 (0x0C) |
Definition at line 745 of file advansys.c.
#define IOP_REG_DC1 (0x0E) |
Definition at line 744 of file advansys.c.
#define IOP_REG_FLAG (0x07) |
Definition at line 751 of file advansys.c.
#define IOP_REG_ID (0x05) |
Definition at line 754 of file advansys.c.
#define IOP_REG_IFC (0x0D) |
Definition at line 731 of file advansys.c.
#define IOP_REG_IH (0x02) |
Definition at line 756 of file advansys.c.
#define IOP_REG_IX (0x01) |
Definition at line 757 of file advansys.c.
#define IOP_REG_PC (0x0C) |
Definition at line 734 of file advansys.c.
#define IOP_REG_QP (0x03) |
Definition at line 755 of file advansys.c.
#define IOP_REG_SB (0x0B) |
Definition at line 746 of file advansys.c.
#define IOP_REG_SC (0x09) |
Definition at line 749 of file advansys.c.
#define IOP_SIG_BYTE (0x01) |
Definition at line 742 of file advansys.c.
#define IOP_SIG_WORD (0x00) |
Definition at line 743 of file advansys.c.
#define IOP_STATUS (0x0E) |
Definition at line 729 of file advansys.c.
#define IOP_SYN_OFFSET (0x0B) |
Definition at line 732 of file advansys.c.
#define IOP_VERSION (0x03) |
Definition at line 739 of file advansys.c.
#define IOPB_ACC_GRP 0x2C |
Definition at line 1366 of file advansys.c.
#define IOPB_BYTE_LEFT_TO_XFER 0x27 |
Definition at line 1361 of file advansys.c.
#define IOPB_BYTE_TO_XFER_0 0x28 |
Definition at line 1362 of file advansys.c.
#define IOPB_BYTE_TO_XFER_1 0x29 |
Definition at line 1363 of file advansys.c.
#define IOPB_BYTE_TO_XFER_2 0x2A |
Definition at line 1364 of file advansys.c.
#define IOPB_BYTE_TO_XFER_3 0x2B |
Definition at line 1365 of file advansys.c.
#define IOPB_CHIP_ID_1 0x01 |
Definition at line 1323 of file advansys.c.
#define IOPB_CHIP_TYPE_REV 0x03 |
Definition at line 1325 of file advansys.c.
#define IOPB_DEV_ID 0x2E |
Definition at line 1368 of file advansys.c.
#define IOPB_DMA_CFG0 0x20 |
Definition at line 1354 of file advansys.c.
#define IOPB_DMA_CFG1 0x21 |
Definition at line 1355 of file advansys.c.
#define IOPB_DMA_REG_WR 0x23 |
Definition at line 1357 of file advansys.c.
#define IOPB_FLAG_REG 0x08 |
Definition at line 1330 of file advansys.c.
#define IOPB_FLASH_DATA 0x18 |
Definition at line 1346 of file advansys.c.
#define IOPB_FLASH_PAGE 0x14 |
Definition at line 1342 of file advansys.c.
#define IOPB_GPIO_CNTL 0x16 |
Definition at line 1344 of file advansys.c.
#define IOPB_GPIO_DATA 0x12 |
Definition at line 1340 of file advansys.c.
#define IOPB_HOST_BYTE_CNT 0x26 |
Definition at line 1360 of file advansys.c.
#define IOPB_INTR_ENABLES 0x02 |
Definition at line 1324 of file advansys.c.
#define IOPB_INTR_STATUS_REG 0x00 |
Definition at line 1322 of file advansys.c.
#define IOPB_MEM_CFG 0x10 |
Definition at line 1338 of file advansys.c.
#define IOPB_PCI_INT_CFG 0x3A |
Definition at line 1380 of file advansys.c.
#define IOPB_PLL_TEST 0x39 |
Definition at line 1379 of file advansys.c.
#define IOPB_RAM_BIST 0x38 |
Definition at line 1378 of file advansys.c.
#define IOPB_RAM_DATA 0x06 |
Definition at line 1328 of file advansys.c.
#define IOPB_RES_ADDR_11 0x11 |
Definition at line 1339 of file advansys.c.
#define IOPB_RES_ADDR_13 0x13 |
Definition at line 1341 of file advansys.c.
#define IOPB_RES_ADDR_15 0x15 |
Definition at line 1343 of file advansys.c.
#define IOPB_RES_ADDR_17 0x17 |
Definition at line 1345 of file advansys.c.
#define IOPB_RES_ADDR_19 0x19 |
Definition at line 1347 of file advansys.c.
#define IOPB_RES_ADDR_1A 0x1A |
Definition at line 1348 of file advansys.c.
#define IOPB_RES_ADDR_1B 0x1B |
Definition at line 1349 of file advansys.c.
#define IOPB_RES_ADDR_1C 0x1C |
Definition at line 1350 of file advansys.c.
#define IOPB_RES_ADDR_1D 0x1D |
Definition at line 1351 of file advansys.c.
#define IOPB_RES_ADDR_1E 0x1E |
Definition at line 1352 of file advansys.c.
#define IOPB_RES_ADDR_1F 0x1F |
Definition at line 1353 of file advansys.c.
#define IOPB_RES_ADDR_2D 0x2D |
Definition at line 1367 of file advansys.c.
#define IOPB_RES_ADDR_2F 0x2F |
Definition at line 1369 of file advansys.c.
#define IOPB_RES_ADDR_31 0x31 |
Definition at line 1371 of file advansys.c.
#define IOPB_RES_ADDR_32 0x32 |
Definition at line 1372 of file advansys.c.
#define IOPB_RES_ADDR_35 0x35 |
Definition at line 1375 of file advansys.c.
#define IOPB_RES_ADDR_36 0x36 |
Definition at line 1376 of file advansys.c.
#define IOPB_RES_ADDR_37 0x37 |
Definition at line 1377 of file advansys.c.
#define IOPB_RES_ADDR_3B 0x3B |
Definition at line 1381 of file advansys.c.
#define IOPB_RES_ADDR_3D 0x3D |
Definition at line 1383 of file advansys.c.
#define IOPB_RES_ADDR_3E 0x3E |
Definition at line 1384 of file advansys.c.
#define IOPB_RES_ADDR_3F 0x3F |
Definition at line 1385 of file advansys.c.
#define IOPB_RES_ADDR_4 0x04 |
Definition at line 1326 of file advansys.c.
#define IOPB_RES_ADDR_5 0x05 |
Definition at line 1327 of file advansys.c.
#define IOPB_RES_ADDR_7 0x07 |
Definition at line 1329 of file advansys.c.
#define IOPB_RES_ADDR_9 0x09 |
Definition at line 1331 of file advansys.c.
#define IOPB_RES_ADDR_B 0x0B |
Definition at line 1333 of file advansys.c.
#define IOPB_RES_ADDR_C 0x0C |
Definition at line 1334 of file advansys.c.
#define IOPB_RES_ADDR_D 0x0D |
Definition at line 1335 of file advansys.c.
#define IOPB_RES_ADDR_F 0x0F |
Definition at line 1337 of file advansys.c.
#define IOPB_RFIFO_CNT 0x3C |
Definition at line 1382 of file advansys.c.
#define IOPB_RISC_CSR 0x0A |
Definition at line 1332 of file advansys.c.
#define IOPB_SCSI_BYTE_CNT 0x25 |
Definition at line 1359 of file advansys.c.
#define IOPB_SCSI_CTRL 0x34 |
Definition at line 1374 of file advansys.c.
#define IOPB_SCSI_DATA 0x30 |
Definition at line 1370 of file advansys.c.
#define IOPB_SCSI_DATA_HSHK 0x33 |
Definition at line 1373 of file advansys.c.
#define IOPB_SDMA_STATUS 0x24 |
Definition at line 1358 of file advansys.c.
#define IOPB_SOFT_OVER_WR 0x0E |
Definition at line 1336 of file advansys.c.
#define IOPB_TICKLE 0x22 |
Definition at line 1356 of file advansys.c.
#define IOPDW_COMMA 0x14 |
Definition at line 1432 of file advansys.c.
#define IOPDW_COMMB 0x18 |
Definition at line 1433 of file advansys.c.
#define IOPDW_RAM_DATA 0x04 |
Definition at line 1428 of file advansys.c.
#define IOPDW_RDMA_ADDR0 0x30 |
Definition at line 1439 of file advansys.c.
#define IOPDW_RDMA_ADDR1 0x34 |
Definition at line 1440 of file advansys.c.
#define IOPDW_RDMA_COUNT 0x38 |
Definition at line 1441 of file advansys.c.
#define IOPDW_RDMA_ERROR 0x3C |
Definition at line 1442 of file advansys.c.
#define IOPDW_RES_ADDR_0 0x00 |
Definition at line 1427 of file advansys.c.
#define IOPDW_RES_ADDR_10 0x10 |
Definition at line 1431 of file advansys.c.
#define IOPDW_RES_ADDR_1C 0x1C |
Definition at line 1434 of file advansys.c.
#define IOPDW_RES_ADDR_8 0x08 |
Definition at line 1429 of file advansys.c.
#define IOPDW_RES_ADDR_C 0x0C |
Definition at line 1430 of file advansys.c.
#define IOPDW_SDMA_ADDR0 0x20 |
Definition at line 1435 of file advansys.c.
#define IOPDW_SDMA_ADDR1 0x24 |
Definition at line 1436 of file advansys.c.
#define IOPDW_SDMA_COUNT 0x28 |
Definition at line 1437 of file advansys.c.
#define IOPDW_SDMA_ERROR 0x2C |
Definition at line 1438 of file advansys.c.
#define IOPW_CHIP_ID_0 0x00 /* CID0 */ |
Definition at line 1390 of file advansys.c.
#define IOPW_CTRL_REG 0x02 /* CC */ |
Definition at line 1391 of file advansys.c.
#define IOPW_EE_CMD 0x1A /* EC */ |
Definition at line 1403 of file advansys.c.
#define IOPW_EE_DATA 0x1C /* ED */ |
Definition at line 1404 of file advansys.c.
#define IOPW_FLASH_ADDR 0x16 /* FA */ |
Definition at line 1401 of file advansys.c.
#define IOPW_HSHK_CFG 0x36 /* HCFG */ |
Definition at line 1417 of file advansys.c.
#define IOPW_IX 0x26 /* IX */ |
Definition at line 1409 of file advansys.c.
#define IOPW_PC 0x2A /* PC */ |
Definition at line 1411 of file advansys.c.
#define IOPW_Q_BASE 0x22 /* QB */ |
Definition at line 1407 of file advansys.c.
#define IOPW_QP 0x24 /* QP */ |
Definition at line 1408 of file advansys.c.
#define IOPW_RAM_ADDR 0x04 /* LA */ |
Definition at line 1392 of file advansys.c.
#define IOPW_RAM_DATA 0x06 /* LD */ |
Definition at line 1393 of file advansys.c.
#define IOPW_RES_ADDR_08 0x08 |
Definition at line 1394 of file advansys.c.
#define IOPW_RES_ADDR_10 0x10 |
Definition at line 1398 of file advansys.c.
#define IOPW_RES_ADDR_14 0x14 |
Definition at line 1400 of file advansys.c.
#define IOPW_RES_ADDR_18 0x18 |
Definition at line 1402 of file advansys.c.
#define IOPW_RES_ADDR_20 0x20 |
Definition at line 1406 of file advansys.c.
#define IOPW_RES_ADDR_2C 0x2C |
Definition at line 1412 of file advansys.c.
#define IOPW_RES_ADDR_2E 0x2E |
Definition at line 1413 of file advansys.c.
#define IOPW_RES_ADDR_3C 0x3C |
Definition at line 1421 of file advansys.c.
#define IOPW_RFIFO_DATA 0x3E /* RFD */ |
Definition at line 1422 of file advansys.c.
#define IOPW_RISC_CSR 0x0A /* CSR */ |
Definition at line 1395 of file advansys.c.
#define IOPW_SCSI_CFG0 0x0C /* CFG0 */ |
Definition at line 1396 of file advansys.c.
#define IOPW_SCSI_CFG1 0x0E /* CFG1 */ |
Definition at line 1397 of file advansys.c.
#define IOPW_SCSI_CTRL 0x34 /* SC */ |
Definition at line 1416 of file advansys.c.
#define IOPW_SCSI_DATA 0x30 /* SD */ |
Definition at line 1414 of file advansys.c.
#define IOPW_SCSI_DATA_HSHK 0x32 /* SDH */ |
Definition at line 1415 of file advansys.c.
#define IOPW_SEL_MASK 0x12 /* SM */ |
Definition at line 1399 of file advansys.c.
#define IOPW_SFIFO_CNT 0x1E /* SFC */ |
Definition at line 1405 of file advansys.c.
#define IOPW_SP 0x28 /* SP */ |
Definition at line 1410 of file advansys.c.
#define IOPW_SXFR_CNTH 0x3A /* SXH */ |
Definition at line 1420 of file advansys.c.
#define IOPW_SXFR_CNTL 0x38 /* SXL */ |
Definition at line 1419 of file advansys.c.
#define IOPW_SXFR_STATUS 0x36 /* SXS */ |
Definition at line 1418 of file advansys.c.
Definition at line 104 of file advansys.c.
#define LVD 0x0800 /* LVD Device Detect */ |
Definition at line 1537 of file advansys.c.
#define mdp_b0 u_ext_msg.mdp_b0 |
Definition at line 518 of file advansys.c.
#define mdp_b1 u_ext_msg.mdp_b1 |
Definition at line 517 of file advansys.c.
#define mdp_b2 u_ext_msg.mdp_b2 |
Definition at line 516 of file advansys.c.
#define mdp_b3 u_ext_msg.mdp_b3 |
Definition at line 515 of file advansys.c.
#define MS_SDTR_LEN 0x03 |
Definition at line 187 of file advansys.c.
#define MS_WDTR_LEN 0x02 |
Definition at line 188 of file advansys.c.
Definition at line 2206 of file advansys.c.
#define NO_ISA_DMA 0xff /* No ISA DMA Channel Used */ |
Definition at line 2177 of file advansys.c.
#define NO_OF_SG_PER_BLOCK 15 |
Definition at line 985 of file advansys.c.
#define NORMAL_MODE 0x00 |
Definition at line 1600 of file advansys.c.
#define NORMAL_VALUE 0x00 |
Definition at line 1609 of file advansys.c.
#define OUR_ID 0x000F /* SCSI ID */ |
Definition at line 1502 of file advansys.c.
#define OUR_ID_EN 0x0010 /* Enable OUR_ID bits */ |
Definition at line 1501 of file advansys.c.
#define PARITY_EN 0x2000 /* Enable SCSI Parity Error detection */ |
Definition at line 1493 of file advansys.c.
#define PCI_DEVICE_ID_38C0800_REV1 0x2500 |
Definition at line 111 of file advansys.c.
#define PCI_DEVICE_ID_38C1600_REV1 0x2700 |
Definition at line 112 of file advansys.c.
#define PCI_DEVICE_ID_ASP_1200A 0x1100 |
Definition at line 107 of file advansys.c.
#define PCI_DEVICE_ID_ASP_ABP940 0x1200 |
Definition at line 108 of file advansys.c.
#define PCI_DEVICE_ID_ASP_ABP940U 0x1300 |
Definition at line 109 of file advansys.c.
#define PCI_DEVICE_ID_ASP_ABP940UW 0x2300 |
Definition at line 110 of file advansys.c.
#define PCI_VENDOR_ID_ASP 0x10cd |
Definition at line 106 of file advansys.c.
#define PRE_TEST_MODE 0x40 |
Definition at line 1599 of file advansys.c.
#define PRE_TEST_VALUE 0x05 |
Definition at line 1608 of file advansys.c.
#define PRIM_MODE 0x0100 /* Primitive SCSI mode */ |
Definition at line 1497 of file advansys.c.
#define QC_DATA_IN 0x08 |
Definition at line 201 of file advansys.c.
#define QC_DATA_OUT 0x10 |
Definition at line 202 of file advansys.c.
#define QC_MSG_OUT 0x40 |
Definition at line 204 of file advansys.c.
#define QC_NO_CALLBACK 0x01 |
Definition at line 198 of file advansys.c.
#define QC_REQ_SENSE 0x80 |
Definition at line 205 of file advansys.c.
#define QC_SG_HEAD 0x04 |
Definition at line 200 of file advansys.c.
#define QC_SG_SWAP_QUEUE 0x02 |
Definition at line 199 of file advansys.c.
#define QC_URGENT 0x20 |
Definition at line 203 of file advansys.c.
#define QCSG_SG_XFER_END 0x08 |
Definition at line 208 of file advansys.c.
#define QCSG_SG_XFER_LIST 0x02 |
Definition at line 206 of file advansys.c.
#define QCSG_SG_XFER_MORE 0x04 |
Definition at line 207 of file advansys.c.
#define QD_ABORTED_BY_HOST 0x02 |
Definition at line 2123 of file advansys.c.
#define QD_ABORTED_BY_HOST 0x02 |
Definition at line 2123 of file advansys.c.
#define QD_ERR_INTERNAL 0xFF |
Definition at line 216 of file advansys.c.
#define QD_IN_PROGRESS 0x00 |
Definition at line 209 of file advansys.c.
#define QD_INVALID_DEVICE 0x82 |
Definition at line 215 of file advansys.c.
#define QD_INVALID_HOST_NUM 0x81 |
Definition at line 214 of file advansys.c.
#define QD_INVALID_REQUEST 0x80 |
Definition at line 213 of file advansys.c.
#define QD_NO_ERROR 0x01 |
Definition at line 2122 of file advansys.c.
#define QD_NO_ERROR 0x01 |
Definition at line 2122 of file advansys.c.
#define QD_NO_STATUS 0x00 /* Request not completed yet. */ |
Definition at line 2121 of file advansys.c.
#define QD_WITH_ERROR 0x04 |
Definition at line 2124 of file advansys.c.
#define QD_WITH_ERROR 0x04 |
Definition at line 2124 of file advansys.c.
#define QHSTA_D_ASC_DVC_ERROR_CODE_SET 0x22 |
Definition at line 224 of file advansys.c.
#define QHSTA_D_ASPI_NO_BUF_POOL 0x26 |
Definition at line 228 of file advansys.c.
#define QHSTA_D_EXE_SCSI_Q_BUSY_TIMEOUT 0x25 |
Definition at line 227 of file advansys.c.
#define QHSTA_D_EXE_SCSI_Q_FAILED 0x24 |
Definition at line 226 of file advansys.c.
#define QHSTA_D_HOST_ABORT_FAILED 0x23 |
Definition at line 225 of file advansys.c.
#define QHSTA_D_LRAM_CMP_ERROR 0x81 |
Definition at line 237 of file advansys.c.
#define QHSTA_D_QDONE_SG_LIST_CORRUPTED 0x21 |
Definition at line 223 of file advansys.c.
#define QHSTA_M_AUTO_REQ_SENSE_FAIL 0x44 |
Definition at line 2150 of file advansys.c.
#define QHSTA_M_AUTO_REQ_SENSE_FAIL 0x44 |
Definition at line 2150 of file advansys.c.
#define QHSTA_M_BAD_BUS_PHASE_SEQ 0x14 |
Definition at line 222 of file advansys.c.
#define QHSTA_M_BAD_CMPL_STATUS_IN 0x42 |
Definition at line 2148 of file advansys.c.
#define QHSTA_M_BAD_CMPL_STATUS_IN 0x42 |
Definition at line 2148 of file advansys.c.
#define QHSTA_M_BAD_QUEUE_FULL_OR_BUSY 0x47 |
Definition at line 235 of file advansys.c.
#define QHSTA_M_BAD_TAG_CODE 0x46 |
Definition at line 234 of file advansys.c.
#define QHSTA_M_BUS_DEVICE_RESET 0x32 /* Request aborted from BDR */ |
Definition at line 2144 of file advansys.c.
#define QHSTA_M_DATA_OVER_RUN 0x12 |
Definition at line 2128 of file advansys.c.
#define QHSTA_M_DATA_OVER_RUN 0x12 |
Definition at line 2128 of file advansys.c.
#define QHSTA_M_DATA_UNDER_RUN 0x12 |
Definition at line 220 of file advansys.c.
#define QHSTA_M_DIRECTION_ERR 0x35 /* Data Phase mismatch */ |
Definition at line 2145 of file advansys.c.
#define QHSTA_M_DIRECTION_ERR_HUNG 0x36 /* Data Phase mismatch and bus hang */ |
Definition at line 2146 of file advansys.c.
#define QHSTA_M_FROZEN_TIDQ 0x46 /* TID Queue frozen. */ |
Definition at line 2152 of file advansys.c.
#define QHSTA_M_HUNG_REQ_SCSI_BUS_RESET 0x48 |
Definition at line 236 of file advansys.c.
#define QHSTA_M_INVALID_DEVICE 0x45 /* Bad target ID */ |
Definition at line 2151 of file advansys.c.
#define QHSTA_M_MICRO_CODE_ERROR_HALT 0xA1 |
Definition at line 238 of file advansys.c.
#define QHSTA_M_NO_AUTO_REQ_SENSE 0x43 |
Definition at line 2149 of file advansys.c.
#define QHSTA_M_NO_AUTO_REQ_SENSE 0x43 |
Definition at line 2149 of file advansys.c.
#define QHSTA_M_QUEUE_ABORTED 0x15 |
Definition at line 2130 of file advansys.c.
#define QHSTA_M_RDMA_PERR 0x18 /* RISC PCI DMA parity error */ |
Definition at line 2133 of file advansys.c.
#define QHSTA_M_SCSI_BUS_RESET 0x30 /* Request aborted from SBR */ |
Definition at line 2142 of file advansys.c.
#define QHSTA_M_SCSI_BUS_RESET_UNSOL 0x31 /* Request aborted from unsol. SBR */ |
Definition at line 2143 of file advansys.c.
#define QHSTA_M_SEL_TIMEOUT 0x11 |
Definition at line 2127 of file advansys.c.
#define QHSTA_M_SEL_TIMEOUT 0x11 |
Definition at line 2127 of file advansys.c.
#define QHSTA_M_SGBACKUP_ERROR 0x47 /* Scatter-Gather backup error */ |
Definition at line 2153 of file advansys.c.
#define QHSTA_M_SXFR_DESELECTED 0x22 /* SXFR_STATUS Deselected */ |
Definition at line 2137 of file advansys.c.
#define QHSTA_M_SXFR_OFF_OFLW 0x20 /* SXFR_STATUS Offset Overflow */ |
Definition at line 2135 of file advansys.c.
#define QHSTA_M_SXFR_OFF_UFLW 0x19 /* SXFR_STATUS Offset Underflow */ |
Definition at line 2134 of file advansys.c.
#define QHSTA_M_SXFR_SDMA_ERR 0x16 /* SXFR_STATUS SCSI DMA Error */ |
Definition at line 2131 of file advansys.c.
#define QHSTA_M_SXFR_SXFR_PERR 0x17 /* SXFR_STATUS SCSI Bus Parity Error */ |
Definition at line 2132 of file advansys.c.
#define QHSTA_M_SXFR_UNKNOWN_ERROR 0x25 /* SXFR_STATUS Unknown Error */ |
Definition at line 2141 of file advansys.c.
#define QHSTA_M_SXFR_WD_TMO 0x21 /* SXFR_STATUS Watchdog Timeout */ |
Definition at line 2136 of file advansys.c.
#define QHSTA_M_SXFR_XFR_OFLW 0x12 /* SXFR_STATUS Transfer Overflow */ |
Definition at line 2139 of file advansys.c.
#define QHSTA_M_SXFR_XFR_PH_ERR 0x24 /* SXFR_STATUS Transfer Phase Error */ |
Definition at line 2140 of file advansys.c.
#define QHSTA_M_TARGET_STATUS_BUSY 0x45 |
Definition at line 233 of file advansys.c.
#define QHSTA_M_UNEXPECTED_BUS_FREE 0x13 |
Definition at line 2129 of file advansys.c.
#define QHSTA_M_UNEXPECTED_BUS_FREE 0x13 |
Definition at line 2129 of file advansys.c.
#define QHSTA_M_WTM_TIMEOUT 0x41 |
Definition at line 2147 of file advansys.c.
#define QHSTA_M_WTM_TIMEOUT 0x41 |
Definition at line 2147 of file advansys.c.
#define QHSTA_NO_ERROR 0x00 |
Definition at line 2126 of file advansys.c.
#define QHSTA_NO_ERROR 0x00 |
Definition at line 2126 of file advansys.c.
#define QS_ABORTED 0x40 |
Definition at line 196 of file advansys.c.
#define QS_BUSY 0x08 |
Definition at line 195 of file advansys.c.
#define QS_DISC1 0x02 |
Definition at line 193 of file advansys.c.
#define QS_DISC2 0x04 |
Definition at line 194 of file advansys.c.
#define QS_DONE 0x80 |
Definition at line 197 of file advansys.c.
#define QS_FREE 0x00 |
Definition at line 191 of file advansys.c.
#define QS_READY 0x01 |
Definition at line 192 of file advansys.c.
#define QUEUE_128 0x0400 /* Queue Size, 1: 128 byte, 0: 64 byte */ |
Definition at line 1496 of file advansys.c.
#define RAM_SZ 0x1C /* Specify size of RAM to RISC */ |
Definition at line 1563 of file advansys.c.
#define RAM_SZ_16KB 0x0C /* 16 KB */ |
Definition at line 1567 of file advansys.c.
#define RAM_SZ_2KB 0x00 /* 2 KB */ |
Definition at line 1564 of file advansys.c.
#define RAM_SZ_32KB 0x10 /* 32 KB */ |
Definition at line 1568 of file advansys.c.
#define RAM_SZ_4KB 0x04 /* 4 KB */ |
Definition at line 1565 of file advansys.c.
#define RAM_SZ_64KB 0x14 /* 64 KB */ |
Definition at line 1569 of file advansys.c.
#define RAM_SZ_8KB 0x08 /* 8 KB */ |
Definition at line 1566 of file advansys.c.
#define RAM_TEST_DONE 0x10 |
Definition at line 1601 of file advansys.c.
#define RAM_TEST_HOST_ERROR 0x08 |
Definition at line 1603 of file advansys.c.
#define RAM_TEST_INTRAM_ERROR 0x04 |
Definition at line 1604 of file advansys.c.
#define RAM_TEST_MODE 0x80 |
Definition at line 1598 of file advansys.c.
#define RAM_TEST_RISC_ERROR 0x02 |
Definition at line 1605 of file advansys.c.
#define RAM_TEST_SCSI_ERROR 0x01 |
Definition at line 1606 of file advansys.c.
#define RAM_TEST_STATUS 0x0F |
Definition at line 1602 of file advansys.c.
#define RAM_TEST_SUCCESS 0x00 |
Definition at line 1607 of file advansys.c.
#define READ_CMD 0x03 /* Memory Read Method */ |
Definition at line 1590 of file advansys.c.
#define READ_CMD_MR 0x00 /* Memory Read */ |
Definition at line 1591 of file advansys.c.
#define READ_CMD_MRL 0x02 /* Memory Read Long */ |
Definition at line 1592 of file advansys.c.
#define READ_CMD_MRM 0x03 /* Memory Read Multiple (default) */ |
Definition at line 1593 of file advansys.c.
#define req_ack_offset u_ext_msg.sdtr.sdtr_req_ack_offset |
Definition at line 513 of file advansys.c.
#define SC_ACK (uchar)(0x20) |
Definition at line 769 of file advansys.c.
#define SC_ATN (uchar)(0x08) |
Definition at line 771 of file advansys.c.
#define SC_BSY (uchar)(0x40) |
Definition at line 768 of file advansys.c.
#define SC_CD (uchar)(0x02) |
Definition at line 773 of file advansys.c.
#define SC_IO (uchar)(0x04) |
Definition at line 772 of file advansys.c.
#define SC_MSG (uchar)(0x01) |
Definition at line 774 of file advansys.c.
#define SC_REQ (uchar)(0x10) |
Definition at line 770 of file advansys.c.
#define SC_SEL (uchar)(0x80) |
Definition at line 767 of file advansys.c.
#define SCAM_EN 0x0080 /* Enable SCAM selection */ |
Definition at line 1498 of file advansys.c.
Definition at line 1979 of file advansys.c.
#define SCSI_US_PER_MSEC 1000 /* microseconds per millisecond */ |
Definition at line 1978 of file advansys.c.
#define SCSI_WAIT_100_MSEC 100UL /* 100 milliseconds */ |
Definition at line 1977 of file advansys.c.
#define SE 0x0400 /* SE Device Detect */ |
Definition at line 1538 of file advansys.c.
#define SEC_ACTIVE_NEGATE (uchar)(0x40) |
Definition at line 776 of file advansys.c.
#define SEC_ENABLE_FILTER (uchar)(0x10) |
Definition at line 778 of file advansys.c.
#define SEC_SCSI_CTL (uchar)(0x80) |
Definition at line 775 of file advansys.c.
#define SEC_SLEW_RATE (uchar)(0x20) |
Definition at line 777 of file advansys.c.
#define SEL_TMO_LONG 0x0040 /* Sel/Resel Timeout, 1: 400 ms, 0: 1.6 ms */ |
Definition at line 1499 of file advansys.c.
#define SLEW_RATE 0x1000 /* SCSI output buffer slew rate */ |
Definition at line 1509 of file advansys.c.
#define START_CTL 0x0C /* DMA start conditions */ |
Definition at line 1585 of file advansys.c.
#define START_CTL_EMFU 0x0C /* Wait SDMA FIFO empty/full */ |
Definition at line 1589 of file advansys.c.
#define START_CTL_ID 0x04 /* Wait SDMA/SBUS idle */ |
Definition at line 1587 of file advansys.c.
#define START_CTL_TH 0x00 /* Wait threshold level (default) */ |
Definition at line 1586 of file advansys.c.
#define START_CTL_THID 0x08 /* Wait threshold and SDMA/SBUS idle */ |
Definition at line 1588 of file advansys.c.
Definition at line 2205 of file advansys.c.
#define TERM_CTL 0x0030 /* External SCSI Termination Bits */ |
Definition at line 1518 of file advansys.c.
#define TERM_CTL_H 0x0020 /* Enable External SCSI Upper Termination */ |
Definition at line 1519 of file advansys.c.
#define TERM_CTL_L 0x0010 /* Enable External SCSI Lower Termination */ |
Definition at line 1520 of file advansys.c.
#define TERM_CTL_SEL 0x0040 /* Enable TERM_CTL_H and TERM_CTL_L */ |
Definition at line 1517 of file advansys.c.
#define TERM_LVD 0x00C0 /* LVD Termination Bits */ |
Definition at line 1539 of file advansys.c.
#define TERM_LVD_HI 0x0080 /* Enable LVD Upper Termination */ |
Definition at line 1540 of file advansys.c.
#define TERM_LVD_LO 0x0040 /* Enable LVD Lower Termination */ |
Definition at line 1541 of file advansys.c.
#define TERM_POL 0x2000 /* Terminator Polarity Ctrl. MIO:13, EEP:13 */ |
Definition at line 1508 of file advansys.c.
#define TERM_SE 0x0030 /* SE Termination Bits */ |
Definition at line 1542 of file advansys.c.
#define TERM_SE_HI 0x0020 /* Enable SE Upper Termination */ |
Definition at line 1543 of file advansys.c.
#define TERM_SE_LO 0x0010 /* Enable SE Lower Termination */ |
Definition at line 1544 of file advansys.c.
#define TIMER_MODEAB 0xC000 /* Watchdog, Second, and Select. Timer Ctrl. */ |
Definition at line 1492 of file advansys.c.
#define TOTEMPOLE 0x02 |
Definition at line 1625 of file advansys.c.
#define TRUE (1) |
Definition at line 96 of file advansys.c.
#define UW_ERR (uint)(0xFFFF) |
Definition at line 103 of file advansys.c.
#define WD_LONG 0x0800 /* Watchdog Interval, 1: 57 min, 0: 13 sec */ |
Definition at line 1495 of file advansys.c.
#define wdtr_width u_ext_msg.wdtr.wdtr_width |
Definition at line 514 of file advansys.c.
#define xfer_period u_ext_msg.sdtr.sdtr_xfer_period |
Definition at line 512 of file advansys.c.
typedef struct adv_carr_t ADV_CARR_T |
typedef struct adv_dvc_cfg ADV_DVC_CFG |
typedef struct adv_dvc_var ADV_DVC_VAR |
typedef struct adv_scsi_req_q ADV_SCSI_REQ_Q |
typedef struct asc_sg_block ADV_SG_BLOCK |
typedef struct adv_sgblk adv_sgblk_t |
typedef struct asc_cap_info ASC_CAP_INFO |
typedef struct asc_dvc_cfg ASC_DVC_CFG |
typedef struct asc_dvc_inq_info ASC_DVC_INQ_INFO |
typedef struct asc_dvc_var ASC_DVC_VAR |
typedef struct asc_mc_saved ASC_MC_SAVED |
typedef struct asc_q_done_info ASC_QDONE_INFO |
typedef struct asc_risc_q ASC_RISC_Q |
typedef struct asc_scsi_q ASC_SCSI_Q |
typedef struct asc_scsi_req_q ASC_SCSI_REQ_Q |
typedef struct asc_scsiq_1 ASC_SCSIQ_1 |
typedef struct asc_scsiq_2 ASC_SCSIQ_2 |
typedef struct asc_scsiq_3 ASC_SCSIQ_3 |
typedef struct asc_scsiq_4 ASC_SCSIQ_4 |
typedef struct asc_sg_head ASC_SG_HEAD |
typedef struct asc_sg_list ASC_SG_LIST |
typedef struct asc_sg_list_q ASC_SG_LIST_Q |
typedef struct asceep_config ASCEEP_CONFIG |
Definition at line 93 of file advansys.c.
MODULE_DEVICE_TABLE | ( | eisa | , |
advansys_eisa_table | |||
) |
MODULE_DEVICE_TABLE | ( | pci | , |
advansys_pci_tbl | |||
) |
module_exit | ( | advansys_exit | ) |
MODULE_FIRMWARE | ( | "advansys/mcode.bin" | ) |
MODULE_FIRMWARE | ( | "advansys/3550.bin" | ) |
MODULE_FIRMWARE | ( | "advansys/38C0800.bin" | ) |
MODULE_FIRMWARE | ( | "advansys/38C1600.bin" | ) |
module_init | ( | advansys_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |