Lines Matching refs:cfg_base
207 int cfg_base; in nsc_ircc_init() local
234 cfg_base = chip->cfg[cfg]; in nsc_ircc_init()
235 if (!cfg_base) in nsc_ircc_init()
239 reg = inb(cfg_base); in nsc_ircc_init()
242 __func__, cfg_base); in nsc_ircc_init()
247 outb(chip->cid_index, cfg_base); in nsc_ircc_init()
248 id = inb(cfg_base+1); in nsc_ircc_init()
260 info.cfg_base = cfg_base; in nsc_ircc_init()
285 info.cfg_base = cfg_base; in nsc_ircc_init()
382 driver_name, info->cfg_base); in nsc_ircc_open()
405 self->io.cfg_base = info->cfg_base; in nsc_ircc_open()
560 int cfg_base = info->cfg_base; in nsc_ircc_init_108() local
563 outb(2, cfg_base); /* Mode Control Register (MCTL) */ in nsc_ircc_init_108()
564 outb(0x00, cfg_base+1); /* Disable device */ in nsc_ircc_init_108()
567 outb(CFG_108_BAIC, cfg_base); in nsc_ircc_init_108()
569 case 0x3e8: outb(0x14, cfg_base+1); break; in nsc_ircc_init_108()
570 case 0x2e8: outb(0x15, cfg_base+1); break; in nsc_ircc_init_108()
571 case 0x3f8: outb(0x16, cfg_base+1); break; in nsc_ircc_init_108()
572 case 0x2f8: outb(0x17, cfg_base+1); break; in nsc_ircc_init_108()
587 outb(CFG_108_CSRT, cfg_base); in nsc_ircc_init_108()
590 case 0: outb(0x08+temp, cfg_base+1); break; in nsc_ircc_init_108()
591 case 1: outb(0x10+temp, cfg_base+1); break; in nsc_ircc_init_108()
592 case 3: outb(0x18+temp, cfg_base+1); break; in nsc_ircc_init_108()
596 outb(CFG_108_MCTL, cfg_base); /* Mode Control Register (MCTL) */ in nsc_ircc_init_108()
597 outb(0x03, cfg_base+1); /* Enable device */ in nsc_ircc_init_108()
610 int cfg_base = info->cfg_base; in nsc_ircc_probe_108() local
614 outb(CFG_108_BAIC, cfg_base); in nsc_ircc_probe_108()
615 reg = inb(cfg_base+1); in nsc_ircc_probe_108()
636 outb(CFG_108_CSRT, cfg_base); in nsc_ircc_probe_108()
637 reg = inb(cfg_base+1); in nsc_ircc_probe_108()
685 outb(CFG_108_MCTL, cfg_base); in nsc_ircc_probe_108()
686 reg = inb(cfg_base+1); in nsc_ircc_probe_108()
717 int cfg_base = info->cfg_base; in nsc_ircc_probe_338() local
722 outb(CFG_338_FER, cfg_base); in nsc_ircc_probe_338()
723 reg = inb(cfg_base+1); in nsc_ircc_probe_338()
728 outb(CFG_338_PNP0, cfg_base); in nsc_ircc_probe_338()
729 reg = inb(cfg_base+1); in nsc_ircc_probe_338()
734 outb(0x46, cfg_base); in nsc_ircc_probe_338()
735 reg = (inb(cfg_base+1) & 0xfe) << 2; in nsc_ircc_probe_338()
737 outb(0x47, cfg_base); in nsc_ircc_probe_338()
738 reg |= ((inb(cfg_base+1) & 0xfc) << 8); in nsc_ircc_probe_338()
743 outb(CFG_338_FAR, cfg_base); in nsc_ircc_probe_338()
744 reg = inb(cfg_base+1); in nsc_ircc_probe_338()
793 outb(CFG_338_PNP1, cfg_base); in nsc_ircc_probe_338()
794 reg = inb(cfg_base+1); in nsc_ircc_probe_338()
799 outb(CFG_338_PNP3, cfg_base); in nsc_ircc_probe_338()
800 reg = inb(cfg_base+1); in nsc_ircc_probe_338()
805 outb(CFG_338_PTR, cfg_base); in nsc_ircc_probe_338()
806 reg = inb(cfg_base+1); in nsc_ircc_probe_338()
833 int cfg_base = info->cfg_base; in nsc_ircc_init_39x() local
841 outb(CFG_39X_LDN, cfg_base); in nsc_ircc_init_39x()
842 outb(0x02, cfg_base+1); in nsc_ircc_init_39x()
847 outb(CFG_39X_ACT, cfg_base); in nsc_ircc_init_39x()
848 enabled = inb(cfg_base+1) & 0x01; in nsc_ircc_init_39x()
852 outb(CFG_39X_SIOCF1, cfg_base); in nsc_ircc_init_39x()
853 outb(0x01, cfg_base+1); in nsc_ircc_init_39x()
859 outb(CFG_39X_SPC, cfg_base); in nsc_ircc_init_39x()
860 outb(0x82, cfg_base+1); in nsc_ircc_init_39x()
874 int cfg_base = info->cfg_base; in nsc_ircc_probe_39x() local
879 __func__, cfg_base); in nsc_ircc_probe_39x()
885 outb(CFG_39X_LDN, cfg_base); in nsc_ircc_probe_39x()
886 outb(0x02, cfg_base+1); in nsc_ircc_probe_39x()
889 outb(CFG_39X_BASEH, cfg_base); in nsc_ircc_probe_39x()
890 reg1 = inb(cfg_base+1); in nsc_ircc_probe_39x()
891 outb(CFG_39X_BASEL, cfg_base); in nsc_ircc_probe_39x()
892 reg2 = inb(cfg_base+1); in nsc_ircc_probe_39x()
895 outb(CFG_39X_IRQNUM, cfg_base); in nsc_ircc_probe_39x()
896 irq = inb(cfg_base+1); in nsc_ircc_probe_39x()
897 outb(CFG_39X_IRQSEL, cfg_base); in nsc_ircc_probe_39x()
898 irqt = inb(cfg_base+1); in nsc_ircc_probe_39x()
901 outb(CFG_39X_DMA0, cfg_base); in nsc_ircc_probe_39x()
902 dma1 = inb(cfg_base+1); in nsc_ircc_probe_39x()
903 outb(CFG_39X_DMA1, cfg_base); in nsc_ircc_probe_39x()
904 dma2 = inb(cfg_base+1); in nsc_ircc_probe_39x()
907 outb(CFG_39X_ACT, cfg_base); in nsc_ircc_probe_39x()
908 info->enabled = enabled = inb(cfg_base+1) & 0x01; in nsc_ircc_probe_39x()
910 outb(CFG_39X_SPC, cfg_base); in nsc_ircc_probe_39x()
911 susp = 1 - ((inb(cfg_base+1) & 0x02) >> 1); in nsc_ircc_probe_39x()
919 outb(CFG_39X_ACT, cfg_base); in nsc_ircc_probe_39x()
920 enabled = inb(cfg_base+1) & 0x01; in nsc_ircc_probe_39x()
924 outb(CFG_39X_SIOCF1, cfg_base); in nsc_ircc_probe_39x()
925 outb(0x01, cfg_base+1); in nsc_ircc_probe_39x()
931 outb(CFG_39X_SPC, cfg_base); in nsc_ircc_probe_39x()
932 outb(0x82, cfg_base+1); in nsc_ircc_probe_39x()