tag | line | file | source code |
gc | 808 | drivers/scsi/eata_dma.c | void print_config(struct get_conf *gc) |
gc | 812 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
gc | 813 | drivers/scsi/eata_dma.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support, |
gc | 814 | drivers/scsi/eata_dma.c | gc->DMA_support); |
gc | 816 | drivers/scsi/eata_dma.c | gc->DMA_valid, gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 817 | drivers/scsi/eata_dma.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 820 | drivers/scsi/eata_dma.c | gc->IRQ, gc->IRQ_TR, (8 - gc->DMA_channel) & 7, gc->FORCADR, |
gc | 821 | drivers/scsi/eata_dma.c | gc->SG_64K, gc->SG_UAE, gc->MAX_ID, gc->MAX_CHAN, gc->MAX_LUN); |
gc | 823 | drivers/scsi/eata_dma.c | gc->ID_qest, gc->is_PCI, gc->is_EISA); |
gc | 827 | drivers/scsi/eata_dma.c | short register_HBA(u32 base, struct get_conf *gc, Scsi_Host_Template * tpnt, |
gc | 839 | drivers/scsi/eata_dma.c | DBG(DBG_REGISTER, print_config(gc)); |
gc | 841 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) { |
gc | 847 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
gc | 848 | drivers/scsi/eata_dma.c | gc->MAX_CHAN = 0; |
gc | 850 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == FALSE) { /* Interrupt already registered ? */ |
gc | 851 | drivers/scsi/eata_dma.c | if (!request_irq(gc->IRQ, (void *) eata_fake_int_handler, SA_INTERRUPT, |
gc | 853 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 854 | drivers/scsi/eata_dma.c | if (!gc->IRQ_TR) |
gc | 855 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 857 | drivers/scsi/eata_dma.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 861 | drivers/scsi/eata_dma.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 866 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 871 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) { |
gc | 872 | drivers/scsi/eata_dma.c | if (request_dma(dma_channel = (8 - gc->DMA_channel) & 7, "eata_dma")) { |
gc | 875 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 876 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 877 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 878 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 879 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 885 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
gc | 891 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) |
gc | 896 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 898 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 899 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 900 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 901 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 902 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 907 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE && buff != NULL) |
gc | 916 | drivers/scsi/eata_dma.c | if(ntohs(gc->queuesiz) == 0) { |
gc | 917 | drivers/scsi/eata_dma.c | gc->queuesiz = ntohs(64); |
gc | 923 | drivers/scsi/eata_dma.c | * ntohs(gc->queuesiz)); |
gc | 930 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 933 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 934 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 935 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 936 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 937 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 943 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 965 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
gc | 981 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 982 | drivers/scsi/eata_dma.c | if (gc->is_PCI == TRUE) |
gc | 984 | drivers/scsi/eata_dma.c | else if (gc->is_EISA == TRUE) |
gc | 998 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 999 | drivers/scsi/eata_dma.c | sh->max_id = gc->MAX_ID; |
gc | 1000 | drivers/scsi/eata_dma.c | sh->max_lun = gc->MAX_LUN; |
gc | 1006 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
gc | 1007 | drivers/scsi/eata_dma.c | sh->max_channel = gc->MAX_CHAN; |
gc | 1011 | drivers/scsi/eata_dma.c | sh->irq = gc->IRQ; |
gc | 1017 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3]; |
gc | 1018 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz) - 1; /* Keep one free for internals */ |
gc | 1020 | drivers/scsi/eata_dma.c | if (gc->OCS_enabled == TRUE) |
gc | 1036 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
gc | 1040 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
gc | 1044 | drivers/scsi/eata_dma.c | if (ntohs(gc->SGsiz) == 0) |
gc | 1050 | drivers/scsi/eata_dma.c | if (gc->SECOND) |
gc | 1248 | drivers/scsi/eata_dma.c | struct get_conf gc; |
gc | 1257 | drivers/scsi/eata_dma.c | find_PCI(&gc, tpnt); |
gc | 1259 | drivers/scsi/eata_dma.c | find_EISA(&gc, tpnt); |
gc | 1261 | drivers/scsi/eata_dma.c | find_ISA(&gc, tpnt); |
gc | 641 | drivers/scsi/eata_pio.c | void print_pio_config(struct get_conf *gc) |
gc | 645 | drivers/scsi/eata_pio.c | (uint) ntohl(gc->len), gc->version, |
gc | 646 | drivers/scsi/eata_pio.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support); |
gc | 648 | drivers/scsi/eata_pio.c | gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 649 | drivers/scsi/eata_pio.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 651 | drivers/scsi/eata_pio.c | gc->IRQ, gc->IRQ_TR, gc->FORCADR, |
gc | 652 | drivers/scsi/eata_pio.c | gc->MAX_CHAN, gc->ID_qest); |
gc | 683 | drivers/scsi/eata_pio.c | int register_pio_HBA(long base, struct get_conf *gc, Scsi_Host_Template * tpnt) |
gc | 692 | drivers/scsi/eata_pio.c | DBG(DBG_REGISTER, print_pio_config(gc)); |
gc | 694 | drivers/scsi/eata_pio.c | if (gc->DMA_support == TRUE) { |
gc | 700 | drivers/scsi/eata_pio.c | if ((buff = get_pio_board_data((uint)base, gc->IRQ, gc->scsi_id[3], |
gc | 701 | drivers/scsi/eata_pio.c | cplen =(htonl(gc->cplen )+1)/2, |
gc | 702 | drivers/scsi/eata_pio.c | cppadlen=(htons(gc->cppadlen)+1)/2)) == NULL) |
gc | 715 | drivers/scsi/eata_pio.c | if (!reg_IRQ[gc->IRQ]) { /* Interrupt already registered ? */ |
gc | 716 | drivers/scsi/eata_pio.c | if (!request_irq(gc->IRQ, eata_pio_int_handler, SA_INTERRUPT, |
gc | 718 | drivers/scsi/eata_pio.c | reg_IRQ[gc->IRQ]++; |
gc | 719 | drivers/scsi/eata_pio.c | if (!gc->IRQ_TR) |
gc | 720 | drivers/scsi/eata_pio.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 722 | drivers/scsi/eata_pio.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 726 | drivers/scsi/eata_pio.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 731 | drivers/scsi/eata_pio.c | reg_IRQ[gc->IRQ]++; |
gc | 736 | drivers/scsi/eata_pio.c | size = sizeof(hostdata) + (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 741 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
gc | 754 | drivers/scsi/eata_pio.c | switch (ntohl(gc->len)) { |
gc | 769 | drivers/scsi/eata_pio.c | SD(sh)->hostid=gc->scsi_id[3]; |
gc | 770 | drivers/scsi/eata_pio.c | SD(sh)->devflags=1<<gc->scsi_id[3]; |
gc | 771 | drivers/scsi/eata_pio.c | SD(sh)->moresupport=gc->MORE_support; |
gc | 775 | drivers/scsi/eata_pio.c | sh->irq = gc->IRQ; |
gc | 777 | drivers/scsi/eata_pio.c | sh->this_id = gc->scsi_id[3]; |
gc | 784 | drivers/scsi/eata_pio.c | if(ntohl(gc->len) >= 0x22) { |
gc | 785 | drivers/scsi/eata_pio.c | if (gc->is_PCI == TRUE) |
gc | 787 | drivers/scsi/eata_pio.c | else if (gc->is_EISA == TRUE) |
gc | 803 | drivers/scsi/eata_pio.c | if (gc->SECOND) |
gc | 978 | drivers/scsi/eata_pio.c | struct get_conf gc; |
gc | 985 | drivers/scsi/eata_pio.c | find_pio_PCI(&gc, tpnt); |
gc | 987 | drivers/scsi/eata_pio.c | find_pio_EISA(&gc, tpnt); |
gc | 989 | 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; |