#ifndef _3W_XXXX_H
#define _3W_XXXX_H
#include <linux/types.h>
static char *tw_aen_string[] = …;
static unsigned char tw_sense_table[][4] = …;
#define TW_CONTROL_CLEAR_HOST_INTERRUPT …
#define TW_CONTROL_CLEAR_ATTENTION_INTERRUPT …
#define TW_CONTROL_MASK_COMMAND_INTERRUPT …
#define TW_CONTROL_MASK_RESPONSE_INTERRUPT …
#define TW_CONTROL_UNMASK_COMMAND_INTERRUPT …
#define TW_CONTROL_UNMASK_RESPONSE_INTERRUPT …
#define TW_CONTROL_CLEAR_ERROR_STATUS …
#define TW_CONTROL_ISSUE_SOFT_RESET …
#define TW_CONTROL_ENABLE_INTERRUPTS …
#define TW_CONTROL_DISABLE_INTERRUPTS …
#define TW_CONTROL_ISSUE_HOST_INTERRUPT …
#define TW_CONTROL_CLEAR_PARITY_ERROR …
#define TW_CONTROL_CLEAR_QUEUE_ERROR …
#define TW_CONTROL_CLEAR_PCI_ABORT …
#define TW_CONTROL_CLEAR_SBUF_WRITE_ERROR …
#define TW_STATUS_MAJOR_VERSION_MASK …
#define TW_STATUS_MINOR_VERSION_MASK …
#define TW_STATUS_PCI_PARITY_ERROR …
#define TW_STATUS_QUEUE_ERROR …
#define TW_STATUS_MICROCONTROLLER_ERROR …
#define TW_STATUS_PCI_ABORT …
#define TW_STATUS_HOST_INTERRUPT …
#define TW_STATUS_ATTENTION_INTERRUPT …
#define TW_STATUS_COMMAND_INTERRUPT …
#define TW_STATUS_RESPONSE_INTERRUPT …
#define TW_STATUS_COMMAND_QUEUE_FULL …
#define TW_STATUS_RESPONSE_QUEUE_EMPTY …
#define TW_STATUS_MICROCONTROLLER_READY …
#define TW_STATUS_COMMAND_QUEUE_EMPTY …
#define TW_STATUS_ALL_INTERRUPTS …
#define TW_STATUS_CLEARABLE_BITS …
#define TW_STATUS_EXPECTED_BITS …
#define TW_STATUS_UNEXPECTED_BITS …
#define TW_STATUS_SBUF_WRITE_ERROR …
#define TW_STATUS_VALID_INTERRUPT …
#define TW_RESPONSE_ID_MASK …
#define TW_IO_ADDRESS_RANGE …
#define TW_DEVICE_NAME …
#define TW_VENDOR_ID …
#define TW_DEVICE_ID …
#define TW_DEVICE_ID2 …
#define TW_NUMDEVICES …
#define TW_PCI_CLEAR_PARITY_ERRORS …
#define TW_PCI_CLEAR_PCI_ABORT …
#define TW_OP_NOP …
#define TW_OP_INIT_CONNECTION …
#define TW_OP_READ …
#define TW_OP_WRITE …
#define TW_OP_VERIFY …
#define TW_OP_GET_PARAM …
#define TW_OP_SET_PARAM …
#define TW_OP_SECTOR_INFO …
#define TW_OP_AEN_LISTEN …
#define TW_OP_FLUSH_CACHE …
#define TW_CMD_PACKET …
#define TW_CMD_PACKET_WITH_DATA …
#define TW_AEN_QUEUE_EMPTY …
#define TW_AEN_SOFT_RESET …
#define TW_AEN_DEGRADED_MIRROR …
#define TW_AEN_CONTROLLER_ERROR …
#define TW_AEN_REBUILD_FAIL …
#define TW_AEN_REBUILD_DONE …
#define TW_AEN_QUEUE_FULL …
#define TW_AEN_TABLE_UNDEFINED …
#define TW_AEN_APORT_TIMEOUT …
#define TW_AEN_DRIVE_ERROR …
#define TW_AEN_SMART_FAIL …
#define TW_AEN_SBUF_FAIL …
#define TW_ALIGNMENT_6000 …
#define TW_ALIGNMENT_7000 …
#define TW_MAX_UNITS …
#define TW_COMMAND_ALIGNMENT_MASK …
#define TW_INIT_MESSAGE_CREDITS …
#define TW_INIT_COMMAND_PACKET_SIZE …
#define TW_POLL_MAX_RETRIES …
#define TW_MAX_SGL_LENGTH …
#define TW_ATA_PASS_SGL_MAX …
#define TW_Q_LENGTH …
#define TW_Q_START …
#define TW_MAX_SLOT …
#define TW_MAX_PCI_BUSES …
#define TW_MAX_RESET_TRIES …
#define TW_UNIT_INFORMATION_TABLE_BASE …
#define TW_MAX_CMDS_PER_LUN …
#define TW_BLOCK_SIZE …
#define TW_IOCTL …
#define TW_UNIT_ONLINE …
#define TW_IN_INTR …
#define TW_IN_RESET …
#define TW_IN_CHRDEV_IOCTL …
#define TW_MAX_SECTORS …
#define TW_MAX_IOCTL_SECTORS …
#define TW_AEN_WAIT_TIME …
#define TW_IOCTL_WAIT_TIME …
#define TW_ISR_DONT_COMPLETE …
#define TW_ISR_DONT_RESULT …
#define TW_IOCTL_TIMEOUT …
#define TW_IOCTL_CHRDEV_TIMEOUT …
#define TW_IOCTL_CHRDEV_FREE …
#define TW_MAX_CDB_LEN …
#define TW_OPSGL_IN(x,y) …
#define TW_SGL_OUT(x) …
#define TW_RESID_OUT(x) …
#define TW_UNITHOST_IN(x,y) …
#define TW_UNIT_OUT(x) …
#define TW_CONTROL_REG_ADDR(x) …
#define TW_STATUS_REG_ADDR(x) …
#define TW_COMMAND_QUEUE_REG_ADDR(x) …
#define TW_RESPONSE_QUEUE_REG_ADDR(x) …
#define TW_CLEAR_ALL_INTERRUPTS(x) …
#define TW_CLEAR_ATTENTION_INTERRUPT(x) …
#define TW_CLEAR_HOST_INTERRUPT(x) …
#define TW_DISABLE_INTERRUPTS(x) …
#define TW_ENABLE_AND_CLEAR_INTERRUPTS(x) …
#define TW_MASK_COMMAND_INTERRUPT(x) …
#define TW_UNMASK_COMMAND_INTERRUPT(x) …
#define TW_SOFT_RESET(x) …
#define TW_STATUS_ERRORS(x) …
#ifdef TW_DEBUG
#define dprintk …
#else
#define dprintk(msg...) …
#endif
#pragma pack(1)
TW_SG_Entry;
TW_Sector;
TW_Command;
#pragma pack()
TW_Ioctl;
#pragma pack(1)
TW_New_Ioctl;
PTW_Param;
TW_Response_Queue;
TW_Cmd_State;
#define TW_S_INITIAL …
#define TW_S_STARTED …
#define TW_S_POSTED …
#define TW_S_PENDING …
#define TW_S_COMPLETED …
#define TW_S_FINISHED …
#define TW_START_MASK …
TW_Passthru;
#pragma pack()
TW_Device_Extension;
#endif