tag | line | file | source code |
shpnt | 457 | drivers/scsi/NCR53c406a.c | struct Scsi_Host *shpnt; |
shpnt | 566 | drivers/scsi/NCR53c406a.c | shpnt = scsi_register(tpnt, 0); |
shpnt | 567 | drivers/scsi/NCR53c406a.c | shpnt->irq = irq_level; |
shpnt | 568 | drivers/scsi/NCR53c406a.c | shpnt->io_port = port_base; |
shpnt | 569 | drivers/scsi/NCR53c406a.c | shpnt->n_io_port = 0x10; |
shpnt | 571 | drivers/scsi/NCR53c406a.c | shpnt->dma = dma_chan; |
shpnt | 347 | drivers/scsi/aha152x.c | #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) |
shpnt | 348 | drivers/scsi/aha152x.c | #define CURRENT_SC (HOSTDATA(shpnt)->current_SC) |
shpnt | 349 | drivers/scsi/aha152x.c | #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC) |
shpnt | 350 | drivers/scsi/aha152x.c | #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC) |
shpnt | 351 | drivers/scsi/aha152x.c | #define DELAY (HOSTDATA(shpnt)->delay) |
shpnt | 352 | drivers/scsi/aha152x.c | #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->target]) |
shpnt | 353 | drivers/scsi/aha152x.c | #define MSG(i) (HOSTDATA(shpnt)->message[i]) |
shpnt | 354 | drivers/scsi/aha152x.c | #define MSGLEN (HOSTDATA(shpnt)->message_len) |
shpnt | 382 | drivers/scsi/aha152x.c | void aha152x_done(struct Scsi_Host *shpnt, int error); |
shpnt | 386 | drivers/scsi/aha152x.c | static void aha152x_reset_ports(struct Scsi_Host *shpnt); |
shpnt | 387 | drivers/scsi/aha152x.c | static void aha152x_panic(struct Scsi_Host *shpnt, char *msg); |
shpnt | 389 | drivers/scsi/aha152x.c | static void disp_ports(struct Scsi_Host *shpnt); |
shpnt | 391 | drivers/scsi/aha152x.c | static void show_queues(struct Scsi_Host *shpnt); |
shpnt | 392 | drivers/scsi/aha152x.c | static void disp_enintr(struct Scsi_Host *shpnt); |
shpnt | 507 | drivers/scsi/aha152x.c | static void make_acklow(struct Scsi_Host *shpnt) |
shpnt | 527 | drivers/scsi/aha152x.c | static int getphase(struct Scsi_Host *shpnt) |
shpnt | 556 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 771 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt; |
shpnt | 773 | drivers/scsi/aha152x.c | shpnt = aha152x_host[setup[i].irq-IRQ_MIN] = |
shpnt | 776 | drivers/scsi/aha152x.c | shpnt->io_port = setup[i].io_port; |
shpnt | 777 | drivers/scsi/aha152x.c | shpnt->n_io_port = IO_RANGE; |
shpnt | 778 | drivers/scsi/aha152x.c | shpnt->irq = setup[i].irq; |
shpnt | 784 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect = setup[i].reconnect; |
shpnt | 785 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity = setup[i].parity; |
shpnt | 786 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous = setup[i].synchronous; |
shpnt | 787 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay = setup[i].delay; |
shpnt | 789 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->debug = setup[i].debug; |
shpnt | 792 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting = 0; |
shpnt | 793 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete = 0; |
shpnt | 794 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result = 0; |
shpnt | 795 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands = 0; |
shpnt | 797 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->message_len = 0; |
shpnt | 800 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[j] = 0; |
shpnt | 803 | drivers/scsi/aha152x.c | shpnt->this_id=setup[i].scsiid; |
shpnt | 806 | drivers/scsi/aha152x.c | shpnt->hostt->can_queue=AHA152X_MAXQUEUE; |
shpnt | 814 | drivers/scsi/aha152x.c | aha152x_reset_ports(shpnt); |
shpnt | 819 | drivers/scsi/aha152x.c | shpnt->io_port, |
shpnt | 820 | drivers/scsi/aha152x.c | shpnt->irq, |
shpnt | 821 | drivers/scsi/aha152x.c | shpnt->this_id, |
shpnt | 822 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect ? "enabled" : "disabled", |
shpnt | 823 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity ? "enabled" : "disabled", |
shpnt | 824 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous ? "enabled" : "disabled", |
shpnt | 825 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay); |
shpnt | 827 | drivers/scsi/aha152x.c | request_region(shpnt->io_port, IO_RANGE, "aha152x"); /* Register */ |
shpnt | 867 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 874 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queue) |
shpnt | 880 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queue) |
shpnt | 887 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 924 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands++; |
shpnt | 925 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->commands==1) |
shpnt | 929 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 930 | drivers/scsi/aha152x.c | printk("i+ (%d), ", HOSTDATA(shpnt)->commands); |
shpnt | 964 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 972 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_abort) |
shpnt | 975 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1032 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->aborting) |
shpnt | 1044 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target); |
shpnt | 1056 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_SUCCESS; |
shpnt | 1057 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting++; |
shpnt | 1058 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete=0; |
shpnt | 1063 | drivers/scsi/aha152x.c | while(!HOSTDATA(shpnt)->abortion_complete) |
shpnt | 1065 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting=0; |
shpnt | 1066 | drivers/scsi/aha152x.c | return HOSTDATA(shpnt)->abort_result; |
shpnt | 1084 | drivers/scsi/aha152x.c | static void aha152x_reset_ports(struct Scsi_Host *shpnt) |
shpnt | 1121 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 1125 | drivers/scsi/aha152x.c | aha152x_reset_ports(shpnt); |
shpnt | 1133 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_reset) |
shpnt | 1136 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1178 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_reset) |
shpnt | 1181 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1208 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_biosparam) |
shpnt | 1219 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_biosparam) |
shpnt | 1233 | drivers/scsi/aha152x.c | void aha152x_done(struct Scsi_Host *shpnt, int error) |
shpnt | 1239 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1242 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 1249 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1260 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands--; |
shpnt | 1261 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->commands) |
shpnt | 1265 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1266 | drivers/scsi/aha152x.c | printk("ok (%d), ", HOSTDATA(shpnt)->commands); |
shpnt | 1274 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 1280 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 1288 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1293 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1301 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "done() called outside of command"); |
shpnt | 1309 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = aha152x_host[irqno-IRQ_MIN]; |
shpnt | 1317 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 1344 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1360 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_queues|debug_phases)) |
shpnt | 1364 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << shpnt->this_id); |
shpnt | 1370 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "reconnecting target unknown"); |
shpnt | 1373 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1376 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | target); |
shpnt | 1380 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "RESELI failed"); |
shpnt | 1382 | drivers/scsi/aha152x.c | SETPORT(SCSIRATE, HOSTDATA(shpnt)->syncrate[target]&0x7f); |
shpnt | 1387 | drivers/scsi/aha152x.c | if((i=getphase(shpnt))!=P_MSGI) |
shpnt | 1390 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "unknown lun"); |
shpnt | 1402 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "unknown lun"); |
shpnt | 1405 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1406 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1409 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1417 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1427 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "no disconnected command for that lun"); |
shpnt | 1451 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1458 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_selection|debug_phases)) |
shpnt | 1464 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_selection|debug_phases)) |
shpnt | 1467 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target); |
shpnt | 1470 | drivers/scsi/aha152x.c | SETPORT(SXFRCTL1, HOSTDATA(shpnt)->parity ? (ENSPCHK|ENSTIMER) : ENSTIMER); |
shpnt | 1488 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1501 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 1502 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 1533 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_ERROR; |
shpnt | 1534 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1537 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_NO_CONNECT << 16); |
shpnt | 1541 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_selection|debug_phases)) |
shpnt | 1549 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_abort) && (CURRENT_SC->SCp.phase & aborted)) |
shpnt | 1556 | drivers/scsi/aha152x.c | ADDMSG(IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)); |
shpnt | 1558 | drivers/scsi/aha152x.c | if(!(SYNCRATE&0x80) && HOSTDATA(shpnt)->synchronous) |
shpnt | 1586 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "neither timeout nor selection\007"); |
shpnt | 1590 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_selection|debug_phases)) |
shpnt | 1609 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_abort) |
shpnt | 1612 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_ERROR; |
shpnt | 1613 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1618 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_BUS_BUSY << 16); |
shpnt | 1621 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_NO_CONNECT << 16); |
shpnt | 1628 | drivers/scsi/aha152x.c | phase = getphase(shpnt); |
shpnt | 1643 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_msgo|debug_phases)) |
shpnt | 1650 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1666 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1680 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1691 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1692 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1694 | drivers/scsi/aha152x.c | if(MSG(i)==IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)) |
shpnt | 1710 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_SUCCESS; |
shpnt | 1711 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1720 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_ABORT<<16); |
shpnt | 1728 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_cmd|debug_phases)) |
shpnt | 1748 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1749 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1753 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "target left COMMAND"); |
shpnt | 1758 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "Nothing to send while in COMMAND"); |
shpnt | 1766 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_msgi|debug_phases)) |
shpnt | 1781 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_msgi|debug_phases)) |
shpnt | 1786 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->reconnect) |
shpnt | 1787 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "target was not allowed to disconnect"); |
shpnt | 1792 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_msgi|debug_phases)) |
shpnt | 1808 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1815 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1826 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1829 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1830 | drivers/scsi/aha152x.c | if(getphase(shpnt)!=P_MSGI) |
shpnt | 1837 | drivers/scsi/aha152x.c | (make_acklow(shpnt), getphase(shpnt)==P_MSGI); i++) |
shpnt | 1841 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1852 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "SDTR message length != 3"); |
shpnt | 1854 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->synchronous) |
shpnt | 1865 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "received SDTR invalid"); |
shpnt | 1924 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1925 | drivers/scsi/aha152x.c | phase=getphase(shpnt); |
shpnt | 1945 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1965 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_status|debug_intr|debug_phases)) |
shpnt | 1977 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1978 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1981 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_status) |
shpnt | 1995 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datai|debug_intr|debug_phases)) |
shpnt | 2021 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2029 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2044 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2051 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2066 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2083 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2137 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2146 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_datai) && |
shpnt | 2160 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datai|debug_intr)) |
shpnt | 2173 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datao|debug_intr|debug_phases)) |
shpnt | 2177 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2187 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "FIFO should be empty"); |
shpnt | 2206 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2217 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2242 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2274 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2288 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2295 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2310 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datao|debug_intr)) |
shpnt | 2321 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 2326 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_ERROR << 16); /* Don't know any better */ |
shpnt | 2339 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_PARITY << 16); |
shpnt | 2351 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 2364 | drivers/scsi/aha152x.c | aha152x_done(shpnt, |
shpnt | 2382 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 2383 | drivers/scsi/aha152x.c | disp_enintr(shpnt); |
shpnt | 2396 | drivers/scsi/aha152x.c | static void aha152x_panic(struct Scsi_Host *shpnt, char *msg) |
shpnt | 2399 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 2406 | drivers/scsi/aha152x.c | static void disp_ports(struct Scsi_Host *shpnt) |
shpnt | 2412 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_skipports) |
shpnt | 2589 | drivers/scsi/aha152x.c | static void disp_enintr(struct Scsi_Host *shpnt) |
shpnt | 2715 | drivers/scsi/aha152x.c | static void show_queues(struct Scsi_Host *shpnt) |
shpnt | 2736 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 2737 | drivers/scsi/aha152x.c | disp_enintr(shpnt); |
shpnt | 2741 | drivers/scsi/aha152x.c | int aha152x_set_info(char *buffer, int length, struct Scsi_Host *shpnt) |
shpnt | 2819 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt; |
shpnt | 2823 | drivers/scsi/aha152x.c | for(i=0, shpnt= (struct Scsi_Host *) NULL; i<IRQS; i++) |
shpnt | 2825 | drivers/scsi/aha152x.c | shpnt=aha152x_host[i]; |
shpnt | 2827 | drivers/scsi/aha152x.c | if(!shpnt) |
shpnt | 2831 | drivers/scsi/aha152x.c | return(aha152x_set_info(buffer, length, shpnt)); |
shpnt | 2839 | drivers/scsi/aha152x.c | shpnt->io_port, shpnt->io_port+shpnt->n_io_port-1); |
shpnt | 2840 | drivers/scsi/aha152x.c | SPRINTF("interrupt 0x%02x\n", shpnt->irq); |
shpnt | 2842 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect ? "enabled" : "disabled"); |
shpnt | 2844 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity ? "enabled" : "disabled"); |
shpnt | 2846 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous ? "enabled" : "disabled"); |
shpnt | 2848 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands); |
shpnt | 2854 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
shpnt | 2857 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
shpnt | 2858 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)* |
shpnt | 2860 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
shpnt | 2864 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
shpnt | 2867 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
shpnt | 2868 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)*50, |
shpnt | 2869 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
shpnt | 2873 | drivers/scsi/aha152x.c | #define PDEBUG(flags,txt) if(HOSTDATA(shpnt)->debug & flags) SPRINTF("(%s) ", txt); |
shpnt | 2918 | drivers/scsi/aha152x.c | if (scd->host == shpnt) { |
shpnt | 56 | drivers/scsi/aha152x.h | #define SCSISEQ (shpnt->io_port+0x00) /* SCSI sequence control */ |
shpnt | 57 | drivers/scsi/aha152x.h | #define SXFRCTL0 (shpnt->io_port+0x01) /* SCSI transfer control 0 */ |
shpnt | 58 | drivers/scsi/aha152x.h | #define SXFRCTL1 (shpnt->io_port+0x02) /* SCSI transfer control 1 */ |
shpnt | 59 | drivers/scsi/aha152x.h | #define SCSISIG (shpnt->io_port+0x03) /* SCSI signal in/out */ |
shpnt | 60 | drivers/scsi/aha152x.h | #define SCSIRATE (shpnt->io_port+0x04) /* SCSI rate control */ |
shpnt | 61 | drivers/scsi/aha152x.h | #define SELID (shpnt->io_port+0x05) /* selection/reselection ID */ |
shpnt | 63 | drivers/scsi/aha152x.h | #define SCSIDAT (shpnt->io_port+0x06) /* SCSI latched data */ |
shpnt | 64 | drivers/scsi/aha152x.h | #define SCSIBUS (shpnt->io_port+0x07) /* SCSI data bus */ |
shpnt | 65 | drivers/scsi/aha152x.h | #define STCNT0 (shpnt->io_port+0x08) /* SCSI transfer count 0 */ |
shpnt | 66 | drivers/scsi/aha152x.h | #define STCNT1 (shpnt->io_port+0x09) /* SCSI transfer count 1 */ |
shpnt | 67 | drivers/scsi/aha152x.h | #define STCNT2 (shpnt->io_port+0x0a) /* SCSI transfer count 2 */ |
shpnt | 68 | drivers/scsi/aha152x.h | #define SSTAT0 (shpnt->io_port+0x0b) /* SCSI interrupt status 0 */ |
shpnt | 69 | drivers/scsi/aha152x.h | #define SSTAT1 (shpnt->io_port+0x0c) /* SCSI interrupt status 1 */ |
shpnt | 70 | drivers/scsi/aha152x.h | #define SSTAT2 (shpnt->io_port+0x0d) /* SCSI interrupt status 2 */ |
shpnt | 71 | drivers/scsi/aha152x.h | #define SCSITEST (shpnt->io_port+0x0e) /* SCSI test control */ |
shpnt | 73 | drivers/scsi/aha152x.h | #define SSTAT4 (shpnt->io_port+0x0f) /* SCSI status 4 */ |
shpnt | 74 | drivers/scsi/aha152x.h | #define SIMODE0 (shpnt->io_port+0x10) /* SCSI interrupt mode 0 */ |
shpnt | 75 | drivers/scsi/aha152x.h | #define SIMODE1 (shpnt->io_port+0x11) /* SCSI interrupt mode 1 */ |
shpnt | 76 | drivers/scsi/aha152x.h | #define DMACNTRL0 (shpnt->io_port+0x12) /* DMA control 0 */ |
shpnt | 77 | drivers/scsi/aha152x.h | #define DMACNTRL1 (shpnt->io_port+0x13) /* DMA control 1 */ |
shpnt | 78 | drivers/scsi/aha152x.h | #define DMASTAT (shpnt->io_port+0x14) /* DMA status */ |
shpnt | 79 | drivers/scsi/aha152x.h | #define FIFOSTAT (shpnt->io_port+0x15) /* FIFO status */ |
shpnt | 80 | drivers/scsi/aha152x.h | #define DATAPORT (shpnt->io_port+0x16) /* DATA port */ |
shpnt | 81 | drivers/scsi/aha152x.h | #define BRSTCNTRL (shpnt->io_port+0x18) /* burst control */ |
shpnt | 82 | drivers/scsi/aha152x.h | #define PORTA (shpnt->io_port+0x1a) /* PORT A */ |
shpnt | 83 | drivers/scsi/aha152x.h | #define PORTB (shpnt->io_port+0x1b) /* PORT B */ |
shpnt | 84 | drivers/scsi/aha152x.h | #define REV (shpnt->io_port+0x1c) /* revision */ |
shpnt | 85 | drivers/scsi/aha152x.h | #define STACK (shpnt->io_port+0x1d) /* stack */ |
shpnt | 86 | drivers/scsi/aha152x.h | #define TEST (shpnt->io_port+0x1e) /* test register */ |
shpnt | 119 | drivers/scsi/aha1542.c | static void setup_mailboxes(int base_io, struct Scsi_Host * shpnt); |
shpnt | 287 | drivers/scsi/aha1542.c | static int aha1542_test_port(int bse, struct Scsi_Host * shpnt) |
shpnt | 694 | drivers/scsi/aha1542.c | static void setup_mailboxes(int bse, struct Scsi_Host * shpnt) |
shpnt | 702 | drivers/scsi/aha1542.c | mb = HOSTDATA(shpnt)->mb; |
shpnt | 703 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
shpnt | 930 | drivers/scsi/aha1542.c | struct Scsi_Host * shpnt = NULL; |
shpnt | 940 | drivers/scsi/aha1542.c | shpnt = scsi_register(tpnt, |
shpnt | 945 | drivers/scsi/aha1542.c | if ((unsigned int) shpnt > 0xffffff) { |
shpnt | 950 | drivers/scsi/aha1542.c | if(!aha1542_test_port(bases[indx], shpnt)) goto unregister; |
shpnt | 996 | drivers/scsi/aha1542.c | setup_mailboxes(base_io, shpnt); |
shpnt | 1020 | drivers/scsi/aha1542.c | aha_host[irq_level - 9] = shpnt; |
shpnt | 1021 | drivers/scsi/aha1542.c | shpnt->this_id = scsi_id; |
shpnt | 1022 | drivers/scsi/aha1542.c | shpnt->unique_id = base_io; |
shpnt | 1023 | drivers/scsi/aha1542.c | shpnt->io_port = base_io; |
shpnt | 1024 | drivers/scsi/aha1542.c | shpnt->n_io_port = 4; /* Number of bytes of I/O space used */ |
shpnt | 1025 | drivers/scsi/aha1542.c | shpnt->dma_channel = dma_chan; |
shpnt | 1026 | drivers/scsi/aha1542.c | shpnt->irq = irq_level; |
shpnt | 1027 | drivers/scsi/aha1542.c | HOSTDATA(shpnt)->bios_translation = trans; |
shpnt | 1030 | drivers/scsi/aha1542.c | HOSTDATA(shpnt)->aha1542_last_mbi_used = (2*AHA1542_MAILBOXES - 1); |
shpnt | 1031 | drivers/scsi/aha1542.c | HOSTDATA(shpnt)->aha1542_last_mbo_used = (AHA1542_MAILBOXES - 1); |
shpnt | 1032 | drivers/scsi/aha1542.c | memset(HOSTDATA(shpnt)->SCint, 0, sizeof(HOSTDATA(shpnt)->SCint)); |
shpnt | 1071 | drivers/scsi/aha1542.c | scsi_unregister(shpnt); |
shpnt | 428 | drivers/scsi/fdomain.c | static void print_banner( struct Scsi_Host *shpnt ) |
shpnt | 430 | drivers/scsi/fdomain.c | if (!shpnt) return; /* This won't ever happen */ |
shpnt | 434 | drivers/scsi/fdomain.c | shpnt->host_no, shpnt->this_id ); |
shpnt | 436 | drivers/scsi/fdomain.c | printk( "scsi%d <fdomain>: BIOS version ", shpnt->host_no ); |
shpnt | 445 | drivers/scsi/fdomain.c | (unsigned)bios_base, shpnt->this_id ); |
shpnt | 453 | drivers/scsi/fdomain.c | shpnt->host_no, |
shpnt | 855 | drivers/scsi/fdomain.c | struct Scsi_Host *shpnt; |
shpnt | 974 | drivers/scsi/fdomain.c | shpnt = scsi_register( tpnt, 0 ); |
shpnt | 975 | drivers/scsi/fdomain.c | print_banner( shpnt ); |
shpnt | 250 | drivers/scsi/hosts.c | struct Scsi_Host * shpnt; |
shpnt | 255 | drivers/scsi/hosts.c | shpnt = scsi_hostlist; |
shpnt | 256 | drivers/scsi/hosts.c | while(shpnt->next != sh) shpnt = shpnt->next; |
shpnt | 257 | drivers/scsi/hosts.c | shpnt->next = shpnt->next->next; |
shpnt | 276 | drivers/scsi/hosts.c | struct Scsi_Host * retval, *shpnt; |
shpnt | 318 | drivers/scsi/hosts.c | shpnt = scsi_hostlist; |
shpnt | 319 | drivers/scsi/hosts.c | while(shpnt->next) shpnt = shpnt->next; |
shpnt | 320 | drivers/scsi/hosts.c | shpnt->next = retval; |
shpnt | 340 | drivers/scsi/hosts.c | struct Scsi_Host * shpnt; |
shpnt | 377 | drivers/scsi/hosts.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 379 | drivers/scsi/hosts.c | if(shpnt->hostt->info) |
shpnt | 380 | drivers/scsi/hosts.c | name = shpnt->hostt->info(shpnt); |
shpnt | 382 | drivers/scsi/hosts.c | name = shpnt->hostt->name; |
shpnt | 384 | drivers/scsi/hosts.c | shpnt->host_no, name); |
shpnt | 587 | drivers/scsi/in2000.c | struct Scsi_Host * shpnt; |
shpnt | 647 | drivers/scsi/in2000.c | shpnt = scsi_register(tpnt, 0); |
shpnt | 649 | drivers/scsi/in2000.c | shpnt->io_port = base; |
shpnt | 650 | drivers/scsi/in2000.c | shpnt->n_io_port = 12; |
shpnt | 651 | drivers/scsi/in2000.c | shpnt->irq = irq_level; |
shpnt | 82 | drivers/scsi/scsi.c | struct Scsi_Host *shpnt, char * scsi_result); |
shpnt | 296 | drivers/scsi/scsi.c | struct Scsi_Host * sh[128], * shpnt; |
shpnt | 320 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) { |
shpnt | 328 | drivers/scsi/scsi.c | if (shpnt->unchecked_isa_dma) shpnt->wish_block = 1; |
shpnt | 331 | drivers/scsi/scsi.c | if (shpnt->wish_block) sh[block_count++] = shpnt; |
shpnt | 384 | drivers/scsi/scsi.c | static void scan_scsis (struct Scsi_Host *shpnt, unchar hardcoded, |
shpnt | 400 | drivers/scsi/scsi.c | scsi_result = ( ( !shpnt->unchecked_isa_dma ) |
shpnt | 409 | drivers/scsi/scsi.c | if(shpnt->host_queue) |
shpnt | 410 | drivers/scsi/scsi.c | shpnt->host_queue->prev = SCpnt; |
shpnt | 411 | drivers/scsi/scsi.c | SCpnt->next = shpnt->host_queue; |
shpnt | 413 | drivers/scsi/scsi.c | shpnt->host_queue = SCpnt; |
shpnt | 420 | drivers/scsi/scsi.c | if(channel > shpnt->max_channel) goto leave; |
shpnt | 422 | drivers/scsi/scsi.c | if(dev >= shpnt->max_id) goto leave; |
shpnt | 424 | drivers/scsi/scsi.c | if(lun >= shpnt->max_lun) goto leave; |
shpnt | 426 | drivers/scsi/scsi.c | &SDpnt, SCpnt, shpnt, scsi_result); |
shpnt | 448 | drivers/scsi/scsi.c | for (channel = 0; channel <= shpnt->max_channel; channel++) { |
shpnt | 449 | drivers/scsi/scsi.c | for (dev = 0; dev < shpnt->max_id; ++dev) { |
shpnt | 450 | drivers/scsi/scsi.c | if (shpnt->this_id != dev) { |
shpnt | 457 | drivers/scsi/scsi.c | max_dev_lun = (max_scsi_luns < shpnt->max_lun ? |
shpnt | 458 | drivers/scsi/scsi.c | max_scsi_luns : shpnt->max_lun); |
shpnt | 461 | drivers/scsi/scsi.c | &SDpnt, SCpnt, shpnt, scsi_result)) |
shpnt | 473 | drivers/scsi/scsi.c | for(hqptr=shpnt->host_queue; hqptr!=SCpnt; hqptr=hqptr->next) ; |
shpnt | 480 | drivers/scsi/scsi.c | shpnt->host_queue=next; |
shpnt | 504 | drivers/scsi/scsi.c | Scsi_Device **SDpnt2, Scsi_Cmnd * SCpnt, struct Scsi_Host * shpnt, |
shpnt | 518 | drivers/scsi/scsi.c | SDpnt->host = shpnt; |
shpnt | 2319 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2346 | drivers/scsi/scsi.c | for (shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2347 | drivers/scsi/scsi.c | scan_scsis(shpnt,0,0,0,0); /* scan for scsi devices */ |
shpnt | 2536 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2577 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2664 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2694 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2695 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) |
shpnt | 2698 | drivers/scsi/scsi.c | name = tpnt->info(shpnt); |
shpnt | 2702 | drivers/scsi/scsi.c | shpnt->host_no, name); |
shpnt | 2714 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2715 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) scan_scsis(shpnt,0,0,0,0); |
shpnt | 2764 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt, *sh1; |
shpnt | 2774 | drivers/scsi/scsi.c | for(shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2776 | drivers/scsi/scsi.c | if (shpnt->hostt != tpnt) continue; |
shpnt | 2777 | drivers/scsi/scsi.c | for(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 2783 | drivers/scsi/scsi.c | for(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 2838 | drivers/scsi/scsi.c | shpnt = scsi_hostlist; |
shpnt | 2839 | drivers/scsi/scsi.c | while(shpnt) { |
shpnt | 2840 | drivers/scsi/scsi.c | sh1 = shpnt->next; |
shpnt | 2841 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) { |
shpnt | 2842 | drivers/scsi/scsi.c | if(shpnt->loaded_as_module) { |
shpnt | 2847 | drivers/scsi/scsi.c | shpnt->host_no + PROC_SCSI_FILE); |
shpnt | 2850 | drivers/scsi/scsi.c | (*tpnt->release)(shpnt); |
shpnt | 2856 | drivers/scsi/scsi.c | if (shpnt->irq) free_irq(shpnt->irq); |
shpnt | 2857 | drivers/scsi/scsi.c | if (shpnt->dma_channel != 0xff) free_dma(shpnt->dma_channel); |
shpnt | 2858 | drivers/scsi/scsi.c | if (shpnt->io_port && shpnt->n_io_port) |
shpnt | 2859 | drivers/scsi/scsi.c | release_region(shpnt->io_port, shpnt->n_io_port); |
shpnt | 2861 | drivers/scsi/scsi.c | if(pcount == next_scsi_host) scsi_unregister(shpnt); |
shpnt | 2865 | drivers/scsi/scsi.c | shpnt = sh1; |
shpnt | 3070 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 3074 | drivers/scsi/scsi.c | for(shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 3075 | drivers/scsi/scsi.c | for(SCpnt=shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 401 | drivers/scsi/seagate.c | const char *seagate_st0x_info(struct Scsi_Host * shpnt) { |
shpnt | 531 | drivers/scsi/ultrastor.c | struct Scsi_Host * shpnt = NULL; |
shpnt | 609 | drivers/scsi/ultrastor.c | shpnt = scsi_register(tpnt, 0); |
shpnt | 610 | drivers/scsi/ultrastor.c | shpnt->irq = config.interrupt; |
shpnt | 611 | drivers/scsi/ultrastor.c | shpnt->dma_channel = config.dma_channel; |
shpnt | 612 | drivers/scsi/ultrastor.c | shpnt->io_port = config.port_address; |
shpnt | 638 | drivers/scsi/ultrastor.c | const char *ultrastor_info(struct Scsi_Host * shpnt) |
shpnt | 18 | drivers/scsi/ultrastor.h | const char *ultrastor_info(struct Scsi_Host * shpnt); |