Lines Matching +full:0 +full:x00001

37  *  iobase   base address of the port; common values are 0x378, 0x278, 0x3bc
102 #define PAR96_ACK 0x40
103 #define PAR96_RXBIT 0x20
104 #define PAR96_DCD 0x10
105 #define PAR97_POWER 0xf8
154 bc->debug_vals.cur_intcnt = 0; in baycom_int_freq()
156 bc->debug_vals.cur_pllcorr = 0; in baycom_int_freq()
166 #define PAR96_DESCRAM_TAP1 0x20000
167 #define PAR96_DESCRAM_TAP2 0x01000
168 #define PAR96_DESCRAM_TAP3 0x00001
172 #define PAR96_DESCRAM_TAPSH3 0
174 #define PAR96_SCRAM_TAP1 0x20000 /* X^17 */
175 #define PAR96_SCRAM_TAPN 0x00021 /* X^0+X^5 */
185 for(i = 0; i < PAR96_BURSTBITS; i++, data >>= 1) { in par96_tx()
212 for(data = i = 0; i < PAR96_BURSTBITS; i++) { in par96_rx()
224 data |= 0x8000; in par96_rx()
235 for(mask = 0x1fe00, mask2 = 0xfc00, i = 0; in par96_rx()
240 for(mask = 0x1fe00, mask2 = 0x1fe00, i = 0; in par96_rx()
243 (bc->modem.par96.dcd_count >= 0)) in par96_rx()
246 if (bc->modem.par96.dcd_count >= 0) in par96_rx()
248 hdlcdrv_setdcd(&bc->hdrv, bc->modem.par96.dcd_count > 0); in par96_rx()
269 if (--bc->modem.arb_divider <= 0) { in par96_interrupt()
306 printk(KERN_ERR "baycom_par: parport at 0x%lx unknown\n", dev->base_addr); in par96_open()
309 if (pp->irq < 0) { in par96_open()
310 printk(KERN_ERR "baycom_par: parport at 0x%lx has no irq\n", pp->base); in par96_open()
315 printk(KERN_ERR "baycom_par: parport at 0x%lx cannot be used\n", pp->base); in par96_open()
319 memset(&bc->modem, 0, sizeof(bc->modem)); in par96_open()
321 memset(&par_cb, 0, sizeof(par_cb)); in par96_open()
326 for (i = 0; i < NR_PORTS; i++) in par96_open()
338 printk(KERN_ERR "baycom_par: cannot register parport at 0x%lx\n", dev->base_addr); in par96_open()
342 printk(KERN_ERR "baycom_par: parport at 0x%lx busy\n", pp->base); in par96_open()
352 printk(KERN_INFO "%s: par96 at iobase 0x%lx irq %u options 0x%x\n", in par96_open()
354 return 0; in par96_open()
373 printk(KERN_INFO "%s: close par96 at iobase 0x%lx irq %u\n", in par96_close()
375 return 0; in par96_close()
401 bc->options = 0; in baycom_setmode()
406 return 0; in baycom_setmode()
433 return 0; in baycom_ioctl()
438 hi->data.modename[sizeof(hi->data.modename)-1] = '\0'; in baycom_ioctl()
445 return 0; in baycom_ioctl()
469 return 0; in baycom_ioctl()
479 static int iobase[NR_PORTS] = { 0x378, };
481 module_param_array(mode, charp, NULL, 0);
483 module_param_hw_array(iobase, int, ioport, NULL, 0);
500 return 0; in baycom_par_probe()
510 int i, found = 0, ret; in init_baycompar()
522 for (i = 0; i < NR_PORTS; i++) { in init_baycompar()
530 set_hw = 0; in init_baycompar()
532 iobase[i] = 0; in init_baycompar()
536 ifname, iobase[i], 0, 0); in init_baycompar()
542 set_hw = 0; in init_baycompar()
551 return 0; in init_baycompar()
558 for(i = 0; i < NR_PORTS; i++) { in cleanup_baycompar()
585 return 0; in baycom_par_setup()
587 if (ints[0] < 1) in baycom_par_setup()
588 return 0; in baycom_par_setup()