tag | line | file | source code |
shpnt | 463 | drivers/scsi/NCR53c406a.c | struct Scsi_Host *shpnt; |
shpnt | 573 | drivers/scsi/NCR53c406a.c | shpnt = scsi_register(tpnt, 0); |
shpnt | 574 | drivers/scsi/NCR53c406a.c | shpnt->irq = irq_level; |
shpnt | 575 | drivers/scsi/NCR53c406a.c | shpnt->io_port = port_base; |
shpnt | 576 | drivers/scsi/NCR53c406a.c | shpnt->n_io_port = 0x10; |
shpnt | 578 | drivers/scsi/NCR53c406a.c | shpnt->dma = dma_chan; |
shpnt | 350 | drivers/scsi/aha152x.c | #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) |
shpnt | 351 | drivers/scsi/aha152x.c | #define CURRENT_SC (HOSTDATA(shpnt)->current_SC) |
shpnt | 352 | drivers/scsi/aha152x.c | #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC) |
shpnt | 353 | drivers/scsi/aha152x.c | #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC) |
shpnt | 354 | drivers/scsi/aha152x.c | #define DELAY (HOSTDATA(shpnt)->delay) |
shpnt | 355 | drivers/scsi/aha152x.c | #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->target]) |
shpnt | 356 | drivers/scsi/aha152x.c | #define MSG(i) (HOSTDATA(shpnt)->message[i]) |
shpnt | 357 | drivers/scsi/aha152x.c | #define MSGLEN (HOSTDATA(shpnt)->message_len) |
shpnt | 385 | drivers/scsi/aha152x.c | void aha152x_done(struct Scsi_Host *shpnt, int error); |
shpnt | 389 | drivers/scsi/aha152x.c | static void aha152x_reset_ports(struct Scsi_Host *shpnt); |
shpnt | 390 | drivers/scsi/aha152x.c | static void aha152x_panic(struct Scsi_Host *shpnt, char *msg); |
shpnt | 392 | drivers/scsi/aha152x.c | static void disp_ports(struct Scsi_Host *shpnt); |
shpnt | 394 | drivers/scsi/aha152x.c | static void show_queues(struct Scsi_Host *shpnt); |
shpnt | 395 | drivers/scsi/aha152x.c | static void disp_enintr(struct Scsi_Host *shpnt); |
shpnt | 510 | drivers/scsi/aha152x.c | static void make_acklow(struct Scsi_Host *shpnt) |
shpnt | 530 | drivers/scsi/aha152x.c | static int getphase(struct Scsi_Host *shpnt) |
shpnt | 559 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 774 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt; |
shpnt | 776 | drivers/scsi/aha152x.c | shpnt = aha152x_host[setup[i].irq-IRQ_MIN] = |
shpnt | 779 | drivers/scsi/aha152x.c | shpnt->io_port = setup[i].io_port; |
shpnt | 780 | drivers/scsi/aha152x.c | shpnt->n_io_port = IO_RANGE; |
shpnt | 781 | drivers/scsi/aha152x.c | shpnt->irq = setup[i].irq; |
shpnt | 787 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect = setup[i].reconnect; |
shpnt | 788 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity = setup[i].parity; |
shpnt | 789 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous = setup[i].synchronous; |
shpnt | 790 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay = setup[i].delay; |
shpnt | 792 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->debug = setup[i].debug; |
shpnt | 795 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting = 0; |
shpnt | 796 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete = 0; |
shpnt | 797 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result = 0; |
shpnt | 798 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands = 0; |
shpnt | 800 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->message_len = 0; |
shpnt | 803 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[j] = 0; |
shpnt | 806 | drivers/scsi/aha152x.c | shpnt->this_id=setup[i].scsiid; |
shpnt | 809 | drivers/scsi/aha152x.c | shpnt->hostt->can_queue=AHA152X_MAXQUEUE; |
shpnt | 817 | drivers/scsi/aha152x.c | aha152x_reset_ports(shpnt); |
shpnt | 822 | drivers/scsi/aha152x.c | shpnt->io_port, |
shpnt | 823 | drivers/scsi/aha152x.c | shpnt->irq, |
shpnt | 824 | drivers/scsi/aha152x.c | shpnt->this_id, |
shpnt | 825 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect ? "enabled" : "disabled", |
shpnt | 826 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity ? "enabled" : "disabled", |
shpnt | 827 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous ? "enabled" : "disabled", |
shpnt | 828 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay); |
shpnt | 830 | drivers/scsi/aha152x.c | request_region(shpnt->io_port, IO_RANGE, "aha152x"); /* Register */ |
shpnt | 870 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 877 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queue) |
shpnt | 883 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queue) |
shpnt | 890 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 927 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands++; |
shpnt | 928 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->commands==1) |
shpnt | 932 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 933 | drivers/scsi/aha152x.c | printk("i+ (%d), ", HOSTDATA(shpnt)->commands); |
shpnt | 967 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 975 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_abort) |
shpnt | 978 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1035 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->aborting) |
shpnt | 1047 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target); |
shpnt | 1059 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_SUCCESS; |
shpnt | 1060 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting++; |
shpnt | 1061 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete=0; |
shpnt | 1066 | drivers/scsi/aha152x.c | while(!HOSTDATA(shpnt)->abortion_complete) |
shpnt | 1068 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting=0; |
shpnt | 1069 | drivers/scsi/aha152x.c | return HOSTDATA(shpnt)->abort_result; |
shpnt | 1087 | drivers/scsi/aha152x.c | static void aha152x_reset_ports(struct Scsi_Host *shpnt) |
shpnt | 1124 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 1128 | drivers/scsi/aha152x.c | aha152x_reset_ports(shpnt); |
shpnt | 1136 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_reset) |
shpnt | 1139 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1181 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_reset) |
shpnt | 1184 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1211 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_biosparam) |
shpnt | 1222 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_biosparam) |
shpnt | 1236 | drivers/scsi/aha152x.c | void aha152x_done(struct Scsi_Host *shpnt, int error) |
shpnt | 1242 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1245 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 1252 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1263 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands--; |
shpnt | 1264 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->commands) |
shpnt | 1268 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1269 | drivers/scsi/aha152x.c | printk("ok (%d), ", HOSTDATA(shpnt)->commands); |
shpnt | 1277 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 1283 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 1291 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1296 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1304 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "done() called outside of command"); |
shpnt | 1312 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = aha152x_host[irqno-IRQ_MIN]; |
shpnt | 1320 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 1347 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1363 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_queues|debug_phases)) |
shpnt | 1367 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << shpnt->this_id); |
shpnt | 1373 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "reconnecting target unknown"); |
shpnt | 1376 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1379 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | target); |
shpnt | 1383 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "RESELI failed"); |
shpnt | 1385 | drivers/scsi/aha152x.c | SETPORT(SCSIRATE, HOSTDATA(shpnt)->syncrate[target]&0x7f); |
shpnt | 1390 | drivers/scsi/aha152x.c | if((i=getphase(shpnt))!=P_MSGI) |
shpnt | 1393 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "unknown lun"); |
shpnt | 1405 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "unknown lun"); |
shpnt | 1410 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1418 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1428 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "no disconnected command for that lun"); |
shpnt | 1434 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1435 | drivers/scsi/aha152x.c | if(getphase(shpnt)!=P_MSGI) { |
shpnt | 1455 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1462 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_selection|debug_phases)) |
shpnt | 1468 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_selection|debug_phases)) |
shpnt | 1471 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target); |
shpnt | 1474 | drivers/scsi/aha152x.c | SETPORT(SXFRCTL1, HOSTDATA(shpnt)->parity ? (ENSPCHK|ENSTIMER) : ENSTIMER); |
shpnt | 1492 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1505 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 1506 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 1537 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_ERROR; |
shpnt | 1538 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1541 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_NO_CONNECT << 16); |
shpnt | 1545 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_selection|debug_phases)) |
shpnt | 1553 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_abort) && (CURRENT_SC->SCp.phase & aborted)) |
shpnt | 1560 | drivers/scsi/aha152x.c | ADDMSG(IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)); |
shpnt | 1562 | drivers/scsi/aha152x.c | if(!(SYNCRATE&0x80) && HOSTDATA(shpnt)->synchronous) |
shpnt | 1590 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "neither timeout nor selection\007"); |
shpnt | 1594 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_selection|debug_phases)) |
shpnt | 1613 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_abort) |
shpnt | 1616 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_ERROR; |
shpnt | 1617 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1622 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_BUS_BUSY << 16); |
shpnt | 1625 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_NO_CONNECT << 16); |
shpnt | 1632 | drivers/scsi/aha152x.c | phase = getphase(shpnt); |
shpnt | 1647 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_msgo|debug_phases)) |
shpnt | 1654 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1670 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1684 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1695 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1696 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1698 | drivers/scsi/aha152x.c | if(MSG(i)==IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)) |
shpnt | 1714 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_SUCCESS; |
shpnt | 1715 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1724 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_ABORT<<16); |
shpnt | 1732 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_cmd|debug_phases)) |
shpnt | 1752 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1753 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1757 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "target left COMMAND"); |
shpnt | 1762 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "Nothing to send while in COMMAND"); |
shpnt | 1770 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_msgi|debug_phases)) |
shpnt | 1785 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_msgi|debug_phases)) |
shpnt | 1790 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->reconnect) |
shpnt | 1791 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "target was not allowed to disconnect"); |
shpnt | 1796 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_msgi|debug_phases)) |
shpnt | 1812 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1819 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1830 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1833 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1834 | drivers/scsi/aha152x.c | if(getphase(shpnt)!=P_MSGI) |
shpnt | 1841 | drivers/scsi/aha152x.c | (make_acklow(shpnt), getphase(shpnt)==P_MSGI); i++) |
shpnt | 1845 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1856 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "SDTR message length != 3"); |
shpnt | 1858 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->synchronous) |
shpnt | 1869 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "received SDTR invalid"); |
shpnt | 1928 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1929 | drivers/scsi/aha152x.c | phase=getphase(shpnt); |
shpnt | 1949 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1970 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_status|debug_intr|debug_phases)) |
shpnt | 1982 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1983 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1986 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_status) |
shpnt | 2000 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datai|debug_intr|debug_phases)) |
shpnt | 2026 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2034 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2049 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2056 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2071 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2088 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2142 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2151 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_datai) && |
shpnt | 2165 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datai|debug_intr)) |
shpnt | 2178 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datao|debug_intr|debug_phases)) |
shpnt | 2182 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2192 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "FIFO should be empty"); |
shpnt | 2211 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2222 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2247 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2279 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2293 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2300 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2315 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datao|debug_intr)) |
shpnt | 2326 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 2331 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_ERROR << 16); /* Don't know any better */ |
shpnt | 2344 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_PARITY << 16); |
shpnt | 2356 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 2369 | drivers/scsi/aha152x.c | aha152x_done(shpnt, |
shpnt | 2387 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 2388 | drivers/scsi/aha152x.c | disp_enintr(shpnt); |
shpnt | 2401 | drivers/scsi/aha152x.c | static void aha152x_panic(struct Scsi_Host *shpnt, char *msg) |
shpnt | 2404 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 2411 | drivers/scsi/aha152x.c | static void disp_ports(struct Scsi_Host *shpnt) |
shpnt | 2417 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_skipports) |
shpnt | 2594 | drivers/scsi/aha152x.c | static void disp_enintr(struct Scsi_Host *shpnt) |
shpnt | 2720 | drivers/scsi/aha152x.c | static void show_queues(struct Scsi_Host *shpnt) |
shpnt | 2741 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 2742 | drivers/scsi/aha152x.c | disp_enintr(shpnt); |
shpnt | 2746 | drivers/scsi/aha152x.c | int aha152x_set_info(char *buffer, int length, struct Scsi_Host *shpnt) |
shpnt | 2824 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt; |
shpnt | 2828 | drivers/scsi/aha152x.c | for(i=0, shpnt= (struct Scsi_Host *) NULL; i<IRQS; i++) |
shpnt | 2830 | drivers/scsi/aha152x.c | shpnt=aha152x_host[i]; |
shpnt | 2832 | drivers/scsi/aha152x.c | if(!shpnt) |
shpnt | 2836 | drivers/scsi/aha152x.c | return(aha152x_set_info(buffer, length, shpnt)); |
shpnt | 2844 | drivers/scsi/aha152x.c | shpnt->io_port, shpnt->io_port+shpnt->n_io_port-1); |
shpnt | 2845 | drivers/scsi/aha152x.c | SPRINTF("interrupt 0x%02x\n", shpnt->irq); |
shpnt | 2847 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect ? "enabled" : "disabled"); |
shpnt | 2849 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity ? "enabled" : "disabled"); |
shpnt | 2851 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous ? "enabled" : "disabled"); |
shpnt | 2853 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands); |
shpnt | 2859 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
shpnt | 2862 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
shpnt | 2863 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)* |
shpnt | 2865 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
shpnt | 2869 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
shpnt | 2872 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
shpnt | 2873 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)*50, |
shpnt | 2874 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
shpnt | 2878 | drivers/scsi/aha152x.c | #define PDEBUG(flags,txt) if(HOSTDATA(shpnt)->debug & flags) SPRINTF("(%s) ", txt); |
shpnt | 2923 | 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 | 487 | drivers/scsi/fdomain.c | static void print_banner( struct Scsi_Host *shpnt ) |
shpnt | 489 | drivers/scsi/fdomain.c | if (!shpnt) return; /* This won't ever happen */ |
shpnt | 493 | drivers/scsi/fdomain.c | shpnt->host_no, shpnt->this_id ); |
shpnt | 495 | drivers/scsi/fdomain.c | printk( "scsi%d <fdomain>: BIOS version ", shpnt->host_no ); |
shpnt | 504 | drivers/scsi/fdomain.c | (unsigned)bios_base, shpnt->this_id ); |
shpnt | 512 | drivers/scsi/fdomain.c | shpnt->host_no, |
shpnt | 914 | drivers/scsi/fdomain.c | struct Scsi_Host *shpnt; |
shpnt | 1033 | drivers/scsi/fdomain.c | shpnt = scsi_register( tpnt, 0 ); |
shpnt | 1034 | drivers/scsi/fdomain.c | shpnt->irq = interrupt_level; |
shpnt | 1035 | drivers/scsi/fdomain.c | shpnt->io_port = port_base; |
shpnt | 1036 | drivers/scsi/fdomain.c | shpnt->n_io_port = 0x10; |
shpnt | 1037 | drivers/scsi/fdomain.c | print_banner( shpnt ); |
shpnt | 272 | drivers/scsi/hosts.c | struct Scsi_Host * shpnt; |
shpnt | 277 | drivers/scsi/hosts.c | shpnt = scsi_hostlist; |
shpnt | 278 | drivers/scsi/hosts.c | while(shpnt->next != sh) shpnt = shpnt->next; |
shpnt | 279 | drivers/scsi/hosts.c | shpnt->next = shpnt->next->next; |
shpnt | 298 | drivers/scsi/hosts.c | struct Scsi_Host * retval, *shpnt; |
shpnt | 343 | drivers/scsi/hosts.c | shpnt = scsi_hostlist; |
shpnt | 344 | drivers/scsi/hosts.c | while(shpnt->next) shpnt = shpnt->next; |
shpnt | 345 | drivers/scsi/hosts.c | shpnt->next = retval; |
shpnt | 365 | drivers/scsi/hosts.c | struct Scsi_Host * shpnt; |
shpnt | 402 | drivers/scsi/hosts.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 404 | drivers/scsi/hosts.c | if(shpnt->hostt->info) |
shpnt | 405 | drivers/scsi/hosts.c | name = shpnt->hostt->info(shpnt); |
shpnt | 407 | drivers/scsi/hosts.c | name = shpnt->hostt->name; |
shpnt | 409 | 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 | 90 | drivers/scsi/scsi.c | struct Scsi_Host *shpnt, char * scsi_result); |
shpnt | 312 | drivers/scsi/scsi.c | struct Scsi_Host * sh[128], * shpnt; |
shpnt | 336 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) { |
shpnt | 344 | drivers/scsi/scsi.c | if (shpnt->unchecked_isa_dma) shpnt->wish_block = 1; |
shpnt | 347 | drivers/scsi/scsi.c | if (shpnt->wish_block) sh[block_count++] = shpnt; |
shpnt | 400 | drivers/scsi/scsi.c | static void scan_scsis (struct Scsi_Host *shpnt, unchar hardcoded, |
shpnt | 416 | drivers/scsi/scsi.c | scsi_result = ( ( !shpnt->unchecked_isa_dma ) |
shpnt | 425 | drivers/scsi/scsi.c | if(shpnt->host_queue) |
shpnt | 426 | drivers/scsi/scsi.c | shpnt->host_queue->prev = SCpnt; |
shpnt | 427 | drivers/scsi/scsi.c | SCpnt->next = shpnt->host_queue; |
shpnt | 429 | drivers/scsi/scsi.c | shpnt->host_queue = SCpnt; |
shpnt | 436 | drivers/scsi/scsi.c | if(channel > shpnt->max_channel) goto leave; |
shpnt | 438 | drivers/scsi/scsi.c | if(dev >= shpnt->max_id) goto leave; |
shpnt | 440 | drivers/scsi/scsi.c | if(lun >= shpnt->max_lun) goto leave; |
shpnt | 442 | drivers/scsi/scsi.c | &SDpnt, SCpnt, shpnt, scsi_result); |
shpnt | 464 | drivers/scsi/scsi.c | for (channel = 0; channel <= shpnt->max_channel; channel++) { |
shpnt | 465 | drivers/scsi/scsi.c | for (dev = 0; dev < shpnt->max_id; ++dev) { |
shpnt | 466 | drivers/scsi/scsi.c | if (shpnt->this_id != dev) { |
shpnt | 473 | drivers/scsi/scsi.c | max_dev_lun = (max_scsi_luns < shpnt->max_lun ? |
shpnt | 474 | drivers/scsi/scsi.c | max_scsi_luns : shpnt->max_lun); |
shpnt | 477 | drivers/scsi/scsi.c | &SDpnt, SCpnt, shpnt, scsi_result)) |
shpnt | 489 | drivers/scsi/scsi.c | for(hqptr = shpnt->host_queue; hqptr != SCpnt; hqptr = hqptr->next) ; |
shpnt | 496 | drivers/scsi/scsi.c | shpnt->host_queue = next; |
shpnt | 520 | drivers/scsi/scsi.c | Scsi_Device **SDpnt2, Scsi_Cmnd * SCpnt, struct Scsi_Host * shpnt, |
shpnt | 534 | drivers/scsi/scsi.c | SDpnt->host = shpnt; |
shpnt | 2438 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2467 | drivers/scsi/scsi.c | for (shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) { |
shpnt | 2468 | drivers/scsi/scsi.c | scan_scsis(shpnt,0,0,0,0); /* scan for scsi devices */ |
shpnt | 2469 | drivers/scsi/scsi.c | if (shpnt->select_queue_depths != NULL) |
shpnt | 2470 | drivers/scsi/scsi.c | (shpnt->select_queue_depths)(shpnt, scsi_devices); |
shpnt | 2736 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2777 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2864 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2894 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2895 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) |
shpnt | 2898 | drivers/scsi/scsi.c | name = tpnt->info(shpnt); |
shpnt | 2902 | drivers/scsi/scsi.c | shpnt->host_no, name); |
shpnt | 2914 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2915 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) scan_scsis(shpnt,0,0,0,0); |
shpnt | 2964 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt, *sh1; |
shpnt | 2974 | drivers/scsi/scsi.c | for(shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2976 | drivers/scsi/scsi.c | if (shpnt->hostt != tpnt) continue; |
shpnt | 2977 | drivers/scsi/scsi.c | for(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 2983 | drivers/scsi/scsi.c | for(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 3038 | drivers/scsi/scsi.c | shpnt = scsi_hostlist; |
shpnt | 3039 | drivers/scsi/scsi.c | while(shpnt) { |
shpnt | 3040 | drivers/scsi/scsi.c | sh1 = shpnt->next; |
shpnt | 3041 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) { |
shpnt | 3042 | drivers/scsi/scsi.c | if(shpnt->loaded_as_module) { |
shpnt | 3047 | drivers/scsi/scsi.c | shpnt->host_no + PROC_SCSI_FILE); |
shpnt | 3050 | drivers/scsi/scsi.c | (*tpnt->release)(shpnt); |
shpnt | 3056 | drivers/scsi/scsi.c | if (shpnt->irq) free_irq(shpnt->irq, NULL); |
shpnt | 3057 | drivers/scsi/scsi.c | if (shpnt->dma_channel != 0xff) free_dma(shpnt->dma_channel); |
shpnt | 3058 | drivers/scsi/scsi.c | if (shpnt->io_port && shpnt->n_io_port) |
shpnt | 3059 | drivers/scsi/scsi.c | release_region(shpnt->io_port, shpnt->n_io_port); |
shpnt | 3061 | drivers/scsi/scsi.c | if(pcount == next_scsi_host) scsi_unregister(shpnt); |
shpnt | 3065 | drivers/scsi/scsi.c | shpnt = sh1; |
shpnt | 3274 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 3278 | drivers/scsi/scsi.c | for(shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 3279 | 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); |