tag | line | file | source code |
gc | 828 | drivers/scsi/eata_dma.c | void print_config(struct get_conf *gc) |
gc | 831 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
gc | 832 | drivers/scsi/eata_dma.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support, |
gc | 833 | drivers/scsi/eata_dma.c | gc->DMA_support); |
gc | 835 | drivers/scsi/eata_dma.c | gc->DMA_valid, gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 836 | drivers/scsi/eata_dma.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 839 | drivers/scsi/eata_dma.c | gc->IRQ, gc->IRQ_TR, (8 - gc->DMA_channel) & 7, gc->FORCADR, |
gc | 840 | drivers/scsi/eata_dma.c | gc->SG_64K, gc->SG_UAE, gc->MAX_ID, gc->MAX_CHAN, gc->MAX_LUN); |
gc | 842 | drivers/scsi/eata_dma.c | gc->ID_qest, gc->is_PCI, gc->is_EISA); |
gc | 846 | drivers/scsi/eata_dma.c | short register_HBA(u32 base, struct get_conf *gc, Scsi_Host_Template * tpnt, |
gc | 858 | drivers/scsi/eata_dma.c | DBG(DBG_REGISTER, print_config(gc)); |
gc | 860 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) { |
gc | 865 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
gc | 866 | drivers/scsi/eata_dma.c | gc->MAX_CHAN = 0; |
gc | 868 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == FALSE) { /* Interrupt already registered ? */ |
gc | 869 | drivers/scsi/eata_dma.c | if (!request_irq(gc->IRQ, (void *) eata_fake_int_handler, SA_INTERRUPT, |
gc | 871 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 872 | drivers/scsi/eata_dma.c | if (!gc->IRQ_TR) |
gc | 873 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 875 | drivers/scsi/eata_dma.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 879 | drivers/scsi/eata_dma.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 884 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 889 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) { |
gc | 890 | drivers/scsi/eata_dma.c | if (request_dma(dma_channel = (8 - gc->DMA_channel) & 7, "eata_dma")) { |
gc | 893 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 894 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 895 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ, NULL); |
gc | 896 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 897 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 905 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
gc | 913 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) |
gc | 918 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 920 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 921 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 922 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ, NULL); |
gc | 923 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 924 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 931 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE && buff != NULL) |
gc | 940 | drivers/scsi/eata_dma.c | if(ntohs(gc->queuesiz) == 0) { |
gc | 941 | drivers/scsi/eata_dma.c | gc->queuesiz = ntohs(64); |
gc | 947 | drivers/scsi/eata_dma.c | * ntohs(gc->queuesiz)); |
gc | 954 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 957 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 958 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 959 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ, NULL); |
gc | 960 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 961 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 967 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 989 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
gc | 1005 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 1006 | drivers/scsi/eata_dma.c | if (gc->is_PCI == TRUE) |
gc | 1008 | drivers/scsi/eata_dma.c | else if (gc->is_EISA == TRUE) |
gc | 1022 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 1023 | drivers/scsi/eata_dma.c | sh->max_id = gc->MAX_ID + 1; |
gc | 1024 | drivers/scsi/eata_dma.c | sh->max_lun = gc->MAX_LUN + 1; |
gc | 1030 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
gc | 1031 | drivers/scsi/eata_dma.c | sh->max_channel = gc->MAX_CHAN; |
gc | 1036 | drivers/scsi/eata_dma.c | sh->irq = gc->IRQ; |
gc | 1042 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3]; |
gc | 1043 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
gc | 1045 | drivers/scsi/eata_dma.c | if (gc->OCS_enabled == TRUE) { |
gc | 1063 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
gc | 1067 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
gc | 1071 | drivers/scsi/eata_dma.c | if (ntohs(gc->SGsiz) == 0) |
gc | 1077 | drivers/scsi/eata_dma.c | if (gc->SECOND) |
gc | 1285 | drivers/scsi/eata_dma.c | struct get_conf gc; |
gc | 1301 | drivers/scsi/eata_dma.c | find_PCI(&gc, tpnt); |
gc | 1303 | drivers/scsi/eata_dma.c | find_EISA(&gc, tpnt); |
gc | 1305 | drivers/scsi/eata_dma.c | find_ISA(&gc, tpnt); |
gc | 634 | drivers/scsi/eata_pio.c | void print_pio_config(struct get_conf *gc) |
gc | 638 | drivers/scsi/eata_pio.c | (uint) ntohl(gc->len), gc->version, |
gc | 639 | drivers/scsi/eata_pio.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support); |
gc | 641 | drivers/scsi/eata_pio.c | gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 642 | drivers/scsi/eata_pio.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 644 | drivers/scsi/eata_pio.c | gc->IRQ, gc->IRQ_TR, gc->FORCADR, |
gc | 645 | drivers/scsi/eata_pio.c | gc->MAX_CHAN, gc->ID_qest); |
gc | 676 | drivers/scsi/eata_pio.c | int register_pio_HBA(long base, struct get_conf *gc, Scsi_Host_Template * tpnt) |
gc | 685 | drivers/scsi/eata_pio.c | DBG(DBG_REGISTER, print_pio_config(gc)); |
gc | 687 | drivers/scsi/eata_pio.c | if (gc->DMA_support == TRUE) { |
gc | 693 | drivers/scsi/eata_pio.c | if ((buff = get_pio_board_data((uint)base, gc->IRQ, gc->scsi_id[3], |
gc | 694 | drivers/scsi/eata_pio.c | cplen =(htonl(gc->cplen )+1)/2, |
gc | 695 | drivers/scsi/eata_pio.c | cppadlen=(htons(gc->cppadlen)+1)/2)) == NULL) |
gc | 708 | drivers/scsi/eata_pio.c | if (!reg_IRQ[gc->IRQ]) { /* Interrupt already registered ? */ |
gc | 709 | drivers/scsi/eata_pio.c | if (!request_irq(gc->IRQ, eata_pio_int_handler, SA_INTERRUPT, |
gc | 711 | drivers/scsi/eata_pio.c | reg_IRQ[gc->IRQ]++; |
gc | 712 | drivers/scsi/eata_pio.c | if (!gc->IRQ_TR) |
gc | 713 | drivers/scsi/eata_pio.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 715 | drivers/scsi/eata_pio.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 719 | drivers/scsi/eata_pio.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 724 | drivers/scsi/eata_pio.c | reg_IRQ[gc->IRQ]++; |
gc | 729 | drivers/scsi/eata_pio.c | size = sizeof(hostdata) + (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 734 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
gc | 748 | drivers/scsi/eata_pio.c | switch (ntohl(gc->len)) { |
gc | 764 | drivers/scsi/eata_pio.c | if(ntohl(gc->len) >= 0x22) { |
gc | 765 | drivers/scsi/eata_pio.c | if (gc->is_PCI == TRUE) |
gc | 767 | drivers/scsi/eata_pio.c | else if (gc->is_EISA == TRUE) |
gc | 782 | drivers/scsi/eata_pio.c | SD(sh)->hostid=gc->scsi_id[3]; |
gc | 783 | drivers/scsi/eata_pio.c | SD(sh)->devflags=1<<gc->scsi_id[3]; |
gc | 784 | drivers/scsi/eata_pio.c | SD(sh)->moresupport=gc->MORE_support; |
gc | 789 | drivers/scsi/eata_pio.c | sh->irq = gc->IRQ; |
gc | 791 | drivers/scsi/eata_pio.c | sh->this_id = gc->scsi_id[3]; |
gc | 801 | drivers/scsi/eata_pio.c | if (gc->SECOND) |
gc | 976 | drivers/scsi/eata_pio.c | struct get_conf gc; |
gc | 984 | drivers/scsi/eata_pio.c | find_pio_PCI(&gc, tpnt); |
gc | 986 | drivers/scsi/eata_pio.c | find_pio_EISA(&gc, tpnt); |
gc | 988 | 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; |