tag | line | file | source code |
gc | 800 | drivers/scsi/eata_dma.c | void print_config(struct get_conf *gc) |
gc | 804 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
gc | 805 | drivers/scsi/eata_dma.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support, |
gc | 806 | drivers/scsi/eata_dma.c | gc->DMA_support); |
gc | 808 | drivers/scsi/eata_dma.c | gc->DMA_valid, gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 809 | drivers/scsi/eata_dma.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 812 | drivers/scsi/eata_dma.c | gc->IRQ, gc->IRQ_TR, (8 - gc->DMA_channel) & 7, gc->FORCADR, |
gc | 813 | drivers/scsi/eata_dma.c | gc->SG_64K, gc->SG_UAE, gc->MAX_ID, gc->MAX_CHAN, gc->MAX_LUN); |
gc | 815 | drivers/scsi/eata_dma.c | gc->ID_qest, gc->is_PCI, gc->is_EISA); |
gc | 819 | drivers/scsi/eata_dma.c | short register_HBA(u32 base, struct get_conf *gc, Scsi_Host_Template * tpnt, |
gc | 831 | drivers/scsi/eata_dma.c | DBG(DBG_REGISTER, print_config(gc)); |
gc | 833 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) { |
gc | 839 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
gc | 840 | drivers/scsi/eata_dma.c | gc->MAX_CHAN = 0; |
gc | 842 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == FALSE) { /* Interrupt already registered ? */ |
gc | 843 | drivers/scsi/eata_dma.c | if (!request_irq(gc->IRQ, (void *) eata_fake_int_handler, SA_INTERRUPT, |
gc | 845 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 846 | drivers/scsi/eata_dma.c | if (!gc->IRQ_TR) |
gc | 847 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 849 | drivers/scsi/eata_dma.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 853 | drivers/scsi/eata_dma.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 858 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 863 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) { |
gc | 864 | drivers/scsi/eata_dma.c | if (request_dma(dma_channel = (8 - gc->DMA_channel) & 7, "eata_dma")) { |
gc | 867 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 868 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 869 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 870 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 871 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 879 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
gc | 887 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) |
gc | 892 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 894 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 895 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 896 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 897 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 898 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 905 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE && buff != NULL) |
gc | 914 | drivers/scsi/eata_dma.c | if(ntohs(gc->queuesiz) == 0) { |
gc | 915 | drivers/scsi/eata_dma.c | gc->queuesiz = ntohs(64); |
gc | 921 | drivers/scsi/eata_dma.c | * ntohs(gc->queuesiz)); |
gc | 928 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 931 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 932 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 933 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 934 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 935 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 941 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 963 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
gc | 979 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 980 | drivers/scsi/eata_dma.c | if (gc->is_PCI == TRUE) |
gc | 982 | drivers/scsi/eata_dma.c | else if (gc->is_EISA == TRUE) |
gc | 996 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 997 | drivers/scsi/eata_dma.c | sh->max_id = gc->MAX_ID + 1; |
gc | 998 | drivers/scsi/eata_dma.c | sh->max_lun = gc->MAX_LUN + 1; |
gc | 1004 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
gc | 1005 | drivers/scsi/eata_dma.c | sh->max_channel = gc->MAX_CHAN; |
gc | 1009 | drivers/scsi/eata_dma.c | sh->irq = gc->IRQ; |
gc | 1015 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3]; |
gc | 1016 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
gc | 1018 | drivers/scsi/eata_dma.c | if (gc->OCS_enabled == TRUE) { |
gc | 1035 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
gc | 1039 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
gc | 1043 | drivers/scsi/eata_dma.c | if (ntohs(gc->SGsiz) == 0) |
gc | 1049 | drivers/scsi/eata_dma.c | if (gc->SECOND) |
gc | 1248 | drivers/scsi/eata_dma.c | struct get_conf gc; |
gc | 1262 | drivers/scsi/eata_dma.c | find_PCI(&gc, tpnt); |
gc | 1264 | drivers/scsi/eata_dma.c | find_EISA(&gc, tpnt); |
gc | 1266 | drivers/scsi/eata_dma.c | find_ISA(&gc, tpnt); |
gc | 628 | drivers/scsi/eata_pio.c | void print_pio_config(struct get_conf *gc) |
gc | 632 | drivers/scsi/eata_pio.c | (uint) ntohl(gc->len), gc->version, |
gc | 633 | drivers/scsi/eata_pio.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support); |
gc | 635 | drivers/scsi/eata_pio.c | gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 636 | drivers/scsi/eata_pio.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 638 | drivers/scsi/eata_pio.c | gc->IRQ, gc->IRQ_TR, gc->FORCADR, |
gc | 639 | drivers/scsi/eata_pio.c | gc->MAX_CHAN, gc->ID_qest); |
gc | 670 | drivers/scsi/eata_pio.c | int register_pio_HBA(long base, struct get_conf *gc, Scsi_Host_Template * tpnt) |
gc | 679 | drivers/scsi/eata_pio.c | DBG(DBG_REGISTER, print_pio_config(gc)); |
gc | 681 | drivers/scsi/eata_pio.c | if (gc->DMA_support == TRUE) { |
gc | 687 | drivers/scsi/eata_pio.c | if ((buff = get_pio_board_data((uint)base, gc->IRQ, gc->scsi_id[3], |
gc | 688 | drivers/scsi/eata_pio.c | cplen =(htonl(gc->cplen )+1)/2, |
gc | 689 | drivers/scsi/eata_pio.c | cppadlen=(htons(gc->cppadlen)+1)/2)) == NULL) |
gc | 702 | drivers/scsi/eata_pio.c | if (!reg_IRQ[gc->IRQ]) { /* Interrupt already registered ? */ |
gc | 703 | drivers/scsi/eata_pio.c | if (!request_irq(gc->IRQ, eata_pio_int_handler, SA_INTERRUPT, |
gc | 705 | drivers/scsi/eata_pio.c | reg_IRQ[gc->IRQ]++; |
gc | 706 | drivers/scsi/eata_pio.c | if (!gc->IRQ_TR) |
gc | 707 | drivers/scsi/eata_pio.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 709 | drivers/scsi/eata_pio.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 713 | drivers/scsi/eata_pio.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 718 | drivers/scsi/eata_pio.c | reg_IRQ[gc->IRQ]++; |
gc | 723 | drivers/scsi/eata_pio.c | size = sizeof(hostdata) + (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 728 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
gc | 742 | drivers/scsi/eata_pio.c | switch (ntohl(gc->len)) { |
gc | 758 | drivers/scsi/eata_pio.c | if(ntohl(gc->len) >= 0x22) { |
gc | 759 | drivers/scsi/eata_pio.c | if (gc->is_PCI == TRUE) |
gc | 761 | drivers/scsi/eata_pio.c | else if (gc->is_EISA == TRUE) |
gc | 776 | drivers/scsi/eata_pio.c | SD(sh)->hostid=gc->scsi_id[3]; |
gc | 777 | drivers/scsi/eata_pio.c | SD(sh)->devflags=1<<gc->scsi_id[3]; |
gc | 778 | drivers/scsi/eata_pio.c | SD(sh)->moresupport=gc->MORE_support; |
gc | 782 | drivers/scsi/eata_pio.c | sh->irq = gc->IRQ; |
gc | 784 | drivers/scsi/eata_pio.c | sh->this_id = gc->scsi_id[3]; |
gc | 794 | drivers/scsi/eata_pio.c | if (gc->SECOND) |
gc | 969 | drivers/scsi/eata_pio.c | struct get_conf gc; |
gc | 976 | drivers/scsi/eata_pio.c | find_pio_PCI(&gc, tpnt); |
gc | 978 | drivers/scsi/eata_pio.c | find_pio_EISA(&gc, tpnt); |
gc | 980 | drivers/scsi/eata_pio.c | find_pio_ISA(&gc, tpnt); |
gc | 311 | drivers/sound/aedsp16.c | static int gc = 0; /* generic counter (utility counter) */ |
gc | 361 | drivers/sound/aedsp16.c | for (gc = 0; gc < 1000; gc++) |
gc | 558 | drivers/sound/aedsp16.c | for (gc = 0; orIRQ[gc].or; gc++) |
gc | 559 | drivers/sound/aedsp16.c | if (orIRQ[gc].val == irq) |
gc | 560 | drivers/sound/aedsp16.c | oredparams |= orIRQ[gc].or; |
gc | 562 | drivers/sound/aedsp16.c | for (gc = 0; orMIRQ[gc].or; gc++) |
gc | 563 | drivers/sound/aedsp16.c | if (orMIRQ[gc].or == mirq) |
gc | 564 | drivers/sound/aedsp16.c | oredparams |= orMIRQ[gc].or; |
gc | 566 | drivers/sound/aedsp16.c | for (gc = 0; orDMA[gc].or; gc++) |
gc | 567 | drivers/sound/aedsp16.c | if (orDMA[gc].val == dma) |
gc | 568 | drivers/sound/aedsp16.c | oredparams |= orDMA[gc].or; |