tag | line | file | source code |
gc | 799 | drivers/scsi/eata_dma.c | void print_config(struct get_conf *gc) |
gc | 803 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
gc | 804 | drivers/scsi/eata_dma.c | gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support, |
gc | 805 | drivers/scsi/eata_dma.c | gc->DMA_support); |
gc | 807 | drivers/scsi/eata_dma.c | gc->DMA_valid, gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], |
gc | 808 | drivers/scsi/eata_dma.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
gc | 811 | drivers/scsi/eata_dma.c | gc->IRQ, gc->IRQ_TR, (8 - gc->DMA_channel) & 7, gc->FORCADR, |
gc | 812 | drivers/scsi/eata_dma.c | gc->SG_64K, gc->SG_UAE, gc->MAX_ID, gc->MAX_CHAN, gc->MAX_LUN); |
gc | 814 | drivers/scsi/eata_dma.c | gc->ID_qest, gc->is_PCI, gc->is_EISA); |
gc | 818 | drivers/scsi/eata_dma.c | short register_HBA(u32 base, struct get_conf *gc, Scsi_Host_Template * tpnt, |
gc | 830 | drivers/scsi/eata_dma.c | DBG(DBG_REGISTER, print_config(gc)); |
gc | 832 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) { |
gc | 838 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
gc | 839 | drivers/scsi/eata_dma.c | gc->MAX_CHAN = 0; |
gc | 841 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == FALSE) { /* Interrupt already registered ? */ |
gc | 842 | drivers/scsi/eata_dma.c | if (!request_irq(gc->IRQ, (void *) eata_fake_int_handler, SA_INTERRUPT, |
gc | 844 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 845 | drivers/scsi/eata_dma.c | if (!gc->IRQ_TR) |
gc | 846 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = TRUE; /* IRQ is edge triggered */ |
gc | 848 | drivers/scsi/eata_dma.c | printk("Couldn't allocate IRQ %d, Sorry.", gc->IRQ); |
gc | 852 | drivers/scsi/eata_dma.c | if (reg_IRQL[gc->IRQ] == TRUE) { |
gc | 857 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]++; |
gc | 862 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) { |
gc | 863 | drivers/scsi/eata_dma.c | if (request_dma(dma_channel = (8 - gc->DMA_channel) & 7, "eata_dma")) { |
gc | 866 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 867 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 868 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 869 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 870 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 878 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
gc | 886 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE) |
gc | 891 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
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); |
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 | 904 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE && buff != NULL) |
gc | 913 | drivers/scsi/eata_dma.c | if(ntohs(gc->queuesiz) == 0) { |
gc | 914 | drivers/scsi/eata_dma.c | gc->queuesiz = ntohs(64); |
gc | 920 | drivers/scsi/eata_dma.c | * ntohs(gc->queuesiz)); |
gc | 927 | drivers/scsi/eata_dma.c | if (gc->DMA_valid) |
gc | 930 | drivers/scsi/eata_dma.c | reg_IRQ[gc->IRQ]--; |
gc | 931 | drivers/scsi/eata_dma.c | if (reg_IRQ[gc->IRQ] == 0) |
gc | 932 | drivers/scsi/eata_dma.c | free_irq(gc->IRQ); |
gc | 933 | drivers/scsi/eata_dma.c | if (gc->IRQ_TR == FALSE) |
gc | 934 | drivers/scsi/eata_dma.c | reg_IRQL[gc->IRQ] = FALSE; |
gc | 940 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
gc | 962 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
gc | 978 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 979 | drivers/scsi/eata_dma.c | if (gc->is_PCI == TRUE) |
gc | 981 | drivers/scsi/eata_dma.c | else if (gc->is_EISA == TRUE) |
gc | 995 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
gc | 996 | drivers/scsi/eata_dma.c | sh->max_id = gc->MAX_ID + 1; |
gc | 997 | drivers/scsi/eata_dma.c | sh->max_lun = gc->MAX_LUN + 1; |
gc | 1003 | drivers/scsi/eata_dma.c | hd->channel = gc->MAX_CHAN; |
gc | 1004 | drivers/scsi/eata_dma.c | sh->max_channel = gc->MAX_CHAN; |
gc | 1008 | drivers/scsi/eata_dma.c | sh->irq = gc->IRQ; |
gc | 1014 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3]; |
gc | 1015 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
gc | 1017 | drivers/scsi/eata_dma.c | if (gc->OCS_enabled == TRUE) { |
gc | 1034 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
gc | 1038 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
gc | 1042 | drivers/scsi/eata_dma.c | if (ntohs(gc->SGsiz) == 0) |
gc | 1048 | drivers/scsi/eata_dma.c | if (gc->SECOND) |
gc | 1247 | drivers/scsi/eata_dma.c | struct get_conf gc; |
gc | 1261 | drivers/scsi/eata_dma.c | find_PCI(&gc, tpnt); |
gc | 1263 | drivers/scsi/eata_dma.c | find_EISA(&gc, tpnt); |
gc | 1265 | 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; |