Lines Matching defs:NCR53c7x0_hostdata
1149 struct NCR53c7x0_hostdata { struct
1150 int size; /* Size of entire Scsi_Host
1152 int board; /* set to board type, useful if
1158 int chip; /* set to chip type; 700-66 is
1167 unsigned char pci_bus, pci_device_fn;
1168 unsigned pci_valid:1;
1170 u32 *dsp; /* dsp to restart with after
1174 unsigned dsp_changed:1; /* Has dsp changed within this
1177 unsigned char dstat; /* Most recent value of dstat */
1178 unsigned dstat_valid:1;
1180 unsigned expecting_iid:1; /* Expect IID interrupt */
1181 unsigned expecting_sto:1; /* Expect STO interrupt */
1194 void (* init_fixup)(struct Scsi_Host *host);
1195 void (* init_save_regs)(struct Scsi_Host *host);
1196 void (* dsa_fixup)(struct NCR53c7x0_cmd *cmd);
1197 void (* soft_reset)(struct Scsi_Host *host);
1198 int (* run_tests)(struct Scsi_Host *host);
1206 int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
1208 int dsa_len; /* Size of DSA structure */
1215 s32 dsa_start;
1216 s32 dsa_end;
1217 s32 dsa_next;
1218 s32 dsa_prev;
1219 s32 dsa_cmnd;
1220 s32 dsa_select;
1221 s32 dsa_msgout;
1222 s32 dsa_cmdout;
1223 s32 dsa_dataout;
1224 s32 dsa_datain;
1225 s32 dsa_msgin;
1226 s32 dsa_msgout_other;
1227 s32 dsa_write_sync;
1228 s32 dsa_write_resume;
1229 s32 dsa_check_reselect;
1230 s32 dsa_status;
1231 s32 dsa_saved_pointer;
1232 s32 dsa_jump_dest;
1239 s32 E_accept_message;
1240 s32 E_command_complete;
1241 s32 E_data_transfer;
1242 s32 E_dsa_code_template;
1243 s32 E_dsa_code_template_end;
1244 s32 E_end_data_transfer;
1245 s32 E_msg_in;
1246 s32 E_initiator_abort;
1247 s32 E_other_transfer;
1248 s32 E_other_in;
1249 s32 E_other_out;
1250 s32 E_target_abort;
1251 s32 E_debug_break;
1252 s32 E_reject_message;
1253 s32 E_respond_message;
1254 s32 E_select;
1255 s32 E_select_msgout;
1256 s32 E_test_0;
1257 s32 E_test_1;
1258 s32 E_test_2;
1259 s32 E_test_3;
1260 s32 E_dsa_zero;
1261 s32 E_cmdout_cmdout;
1262 s32 E_wait_reselect;
1263 s32 E_dsa_code_begin;
1265 long long options; /* Bitfielded set of options enabled */
1266 volatile u32 test_completed; /* Test completed */
1267 int test_running; /* Test currently running */
1268 s32 test_source;
1269 volatile s32 test_dest;
1271 volatile int state; /* state of driver, only used for
1274 unsigned char dmode; /*
1278 unsigned char istat; /*
1283 int scsi_clock; /*
1289 volatile int intrs; /* Number of interrupts */
1290 volatile int resets; /* Number of SCSI resets */
1291 unsigned char saved_dmode;
1292 unsigned char saved_ctest4;
1293 unsigned char saved_ctest7;
1294 unsigned char saved_dcntl;
1295 unsigned char saved_scntl3;
1297 unsigned char this_id_mask;
1300 struct NCR53c7x0_break *breakpoints, /* Linked list of all break points */
1301 *breakpoint_current; /* Current breakpoint being stepped
1305 int debug_size; /* Size of debug buffer */
1306 volatile int debug_count; /* Current data count */
1307 volatile char *debug_buf; /* Output ring buffer */
1308 volatile char *debug_write; /* Current write pointer */
1309 volatile char *debug_read; /* Current read pointer */
1313 int debug_print_limit; /* Number of commands to print
1318 unsigned char debug_lun_limit[16]; /* If OPTION_DEBUG_TARGET_LIMIT
1322 int debug_count_limit; /* Number of commands to execute
1327 volatile unsigned idle:1; /* set to 1 if idle */
1334 volatile struct NCR53c7x0_synchronous sync[16];
1336 volatile Scsi_Cmnd *issue_queue;
1339 volatile struct NCR53c7x0_cmd *running_list;
1343 volatile struct NCR53c7x0_cmd *curr; /* currently connected
1348 volatile struct NCR53c7x0_cmd *spare; /* pointer to spare,
1352 volatile struct NCR53c7x0_cmd *free;
1353 int max_cmd_size; /* Maximum size of NCR53c7x0_cmd
1357 volatile int num_cmds; /* Number of commands
1359 volatile int extra_allocate;
1360 volatile unsigned char cmd_allocated[16]; /* Have we allocated commands
1363 volatile unsigned char busy[16][8]; /* number of commands
1372 volatile struct NCR53c7x0_cmd *finished_queue;
1376 volatile u32 *schedule; /* Array of JUMPs to dsa_begin
1382 volatile unsigned char msg_buf[16]; /* buffer for messages
1387 volatile unsigned char synchronous_want[16][5];
1388 volatile unsigned char wide_want[16][4];
1391 volatile u16 initiate_sdtr;
1393 volatile u16 initiate_wdtr;
1395 volatile u16 talked_to;
1398 volatile unsigned char request_sense[16];
1400 u32 addr_reconnect_dsa_head; /* RISCy style constant,
1402 volatile u32 reconnect_dsa_head;
1404 volatile unsigned char reselected_identify; /* IDENTIFY message */
1405 volatile unsigned char reselected_tag; /* second byte of queue tag
1409 s32 NCR53c7xx_zero;
1410 s32 NCR53c7xx_sink;
1411 u32 NOP_insn;
1412 char NCR53c7xx_msg_reject;
1413 char NCR53c7xx_msg_abort;
1414 char NCR53c7xx_msg_nop;
1416 volatile int event_size, event_index;
1417 volatile struct NCR53c7x0_event *events;
1424 u32 *abort_script;
1426 int script_count; /* Size of script in words */
1450 NCR53c7x0_memory_mapped = ((struct NCR53c7x0_hostdata *) \ argument