Lines Matching +full:0 +full:x22c

28 #define IRDA_IO_BASE		0x180
29 #define GP1_IO_BASE 0x338
30 #define GP2_IO_BASE 0x33a
37 outb(0x87, 0x370); in wb977_open()
38 outb(0x87, 0x370); in wb977_open()
43 outb(0xaa, 0x370); in wb977_close()
48 outb(reg, 0x370); in wb977_wb()
49 outb(val, 0x371); in wb977_wb()
54 outb(reg, 0x370); in wb977_ww()
55 outb(val >> 8, 0x371); in wb977_ww()
56 outb(reg + 1, 0x370); in wb977_ww()
57 outb(val & 255, 0x371); in wb977_ww()
60 #define wb977_device_select(dev) wb977_wb(0x07, dev)
61 #define wb977_device_disable() wb977_wb(0x30, 0x00)
62 #define wb977_device_enable() wb977_wb(0x30, 0x01)
82 if (changed & 0xff) in nw_gpio_modify_op()
84 if (changed & 0xff00) in nw_gpio_modify_op()
103 for (port = 0xe1; changed && port < 0xe8; changed >>= 1) { in __gpio_modify_io()
112 for (port = 0xe8; changed && port < 0xec; changed >>= 1) { in __gpio_modify_io()
146 wb977_wb(0x26, 0x40); in wb977_init_global()
151 wb977_wb(0x22, 0xfe); in wb977_init_global()
156 wb977_wb(0x2a, 0xc1); in wb977_init_global()
161 wb977_wb(0x2b, 0x6b); in wb977_init_global()
166 wb977_wb(0x2c, 0x55); in wb977_init_global()
179 wb977_wb(0xf0, 0x01); in wb977_init_printer()
192 wb977_ww(0x60, 0x0060); in wb977_init_keyboard()
193 wb977_ww(0x62, 0x0064); in wb977_init_keyboard()
198 wb977_wb(0x70, 1); in wb977_init_keyboard()
199 wb977_wb(0x71, 0x02); in wb977_init_keyboard()
204 wb977_wb(0x72, 5); in wb977_init_keyboard()
205 wb977_wb(0x73, 0x02); in wb977_init_keyboard()
210 wb977_wb(0xf0, 0x40); in wb977_init_keyboard()
228 wb977_ww(0x60, IRDA_IO_BASE); in wb977_init_irda()
233 wb977_wb(0x70, 6); in wb977_init_irda()
234 wb977_wb(0x71, 0x02); in wb977_init_irda()
237 * RX DMA - ISA DMA 0 in wb977_init_irda()
239 wb977_wb(0x74, 0x00); in wb977_init_irda()
244 wb977_wb(0x75, 0x04); in wb977_init_irda()
249 wb977_wb(0xf0, 0x03); in wb977_init_irda()
275 wb977_ww(0x60, GP1_IO_BASE); in wb977_init_gpio()
276 wb977_ww(0x62, 0); in wb977_init_gpio()
277 wb977_ww(0x64, 0); in wb977_init_gpio()
282 wb977_wb(0x70, 10); in wb977_init_gpio()
283 wb977_wb(0x71, 0x02); in wb977_init_gpio()
288 wb977_wb(0xe0, 0x19); in wb977_init_gpio()
300 wb977_ww(0x60, GP2_IO_BASE); in wb977_init_gpio()
306 wb977_wb(0xf2, 0x00); in wb977_init_gpio()
311 wb977_wb(0xf3, 0x00); in wb977_init_gpio()
316 wb977_wb(0xf4, 0x00); in wb977_init_gpio()
336 request_region(0x370, 2, "W83977AF configuration"); in wb977_init()
369 nw_gpio_modify_io(GPIO_DATA | GPIO_IOCLK | GPIO_IOLOAD, 0); in nw_cpld_modify()
370 nw_gpio_modify_op(GPIO_IOLOAD, 0); in nw_cpld_modify()
375 nw_gpio_modify_op(GPIO_DATA | GPIO_IOCLK, bit ? GPIO_DATA : 0); in nw_cpld_modify()
379 nw_gpio_modify_op(GPIO_IOCLK|GPIO_DATA, 0); in nw_cpld_modify()
381 nw_gpio_modify_op(GPIO_IOLOAD, 0); in nw_cpld_modify()
395 { 0x00, 0x00, 0x6a, 0xb5, 0xda, 0xed, 0xf6, 0xfb, 0x7d, 0xbe, 0xdf, 0x6f, 0x37, 0x1b,
396 0x0d, 0x86, 0xc3, 0x61, 0xb0, 0x58, 0x2c, 0x16, 0x8b, 0x45, 0xa2, 0xd1, 0xe8, 0x74,
397 0x3a, 0x9d, 0xce, 0xe7, 0x73, 0x39 };
405 #define WRITE_RWA(r,v) do { outb((r), 0x279); udelay(10); outb((v), 0xa79); } while (0)
414 for (i = 0; i < sizeof(rwa_unlock); i++) { in rwa010_unlock()
415 outb(rwa_unlock[i], 0x279); in rwa010_unlock()
425 WRITE_RWA(3, 0); in rwa010_read_ident()
426 WRITE_RWA(0, 128); in rwa010_read_ident()
428 outb(1, 0x279); in rwa010_read_ident()
433 for (i = 0; i < 9; i++) { in rwa010_read_ident()
434 si[i] = 0; in rwa010_read_ident()
435 for (j = 0; j < 8; j++) { in rwa010_read_ident()
438 inb(0x203); in rwa010_read_ident()
440 bit = inb(0x203); in rwa010_read_ident()
442 bit = (bit == 0xaa) ? 1 : 0; in rwa010_read_ident()
454 dprintk("Card no = %d\n", inb(0x203)); in rwa010_global_init()
458 WRITE_RWA(0x30, 0); in rwa010_global_init()
462 WRITE_RWA(0x30, 0); in rwa010_global_init()
466 WRITE_RWA(0x30, 0); in rwa010_global_init()
476 WRITE_RWA(0x61, 1); in rwa010_game_port_init()
477 i = inb(0x203); in rwa010_game_port_init()
479 WRITE_RWA(0x60, 2); in rwa010_game_port_init()
480 dprintk("%02X%02X (201)\n", inb(0x203), i); in rwa010_game_port_init()
482 WRITE_RWA(0x30, 1); in rwa010_game_port_init()
489 WRITE_RWA(7, 0); in rwa010_waveartist_init()
492 WRITE_RWA(0x61, base & 255); in rwa010_waveartist_init()
493 i = inb(0x203); in rwa010_waveartist_init()
495 WRITE_RWA(0x60, base >> 8); in rwa010_waveartist_init()
496 dprintk("%02X%02X (%X),", inb(0x203), i, base); in rwa010_waveartist_init()
498 WRITE_RWA(0x70, irq); in rwa010_waveartist_init()
499 dprintk(" irq: %d (%d),", inb(0x203), irq); in rwa010_waveartist_init()
501 WRITE_RWA(0x74, dma); in rwa010_waveartist_init()
502 dprintk(" dma: %d (%d)\n", inb(0x203), dma); in rwa010_waveartist_init()
504 WRITE_RWA(0x30, 1); in rwa010_waveartist_init()
514 WRITE_RWA(0x61, sb_base & 255); in rwa010_soundblaster_init()
515 i = inb(0x203); in rwa010_soundblaster_init()
517 WRITE_RWA(0x60, sb_base >> 8); in rwa010_soundblaster_init()
518 dprintk("%02X%02X (%X),", inb(0x203), i, sb_base); in rwa010_soundblaster_init()
521 WRITE_RWA(0x70, irq); in rwa010_soundblaster_init()
522 dprintk("%d (%d),", inb(0x203), irq); in rwa010_soundblaster_init()
525 WRITE_RWA(0x74, dma); in rwa010_soundblaster_init()
526 dprintk("%d (%d)\n", inb(0x203), dma); in rwa010_soundblaster_init()
529 WRITE_RWA(0x63, al_base & 255); in rwa010_soundblaster_init()
530 i = inb(0x203); in rwa010_soundblaster_init()
532 WRITE_RWA(0x62, al_base >> 8); in rwa010_soundblaster_init()
533 dprintk("%02X%02X (%X)\n", inb(0x203), i, al_base); in rwa010_soundblaster_init()
535 WRITE_RWA(0x30, 1); in rwa010_soundblaster_init()
542 outb(1, 0x226); in rwa010_soundblaster_reset()
544 outb(0, 0x226); in rwa010_soundblaster_reset()
546 for (i = 0; i < 5; i++) { in rwa010_soundblaster_reset()
547 if (inb(0x22e) & 0x80) in rwa010_soundblaster_reset()
554 dprintk("SoundBlaster DSP reset: %02X (AA)\n", inb(0x22a)); in rwa010_soundblaster_reset()
556 for (i = 0; i < 5; i++) { in rwa010_soundblaster_reset()
557 if ((inb(0x22c) & 0x80) == 0) in rwa010_soundblaster_reset()
565 outb(0xe1, 0x22c); in rwa010_soundblaster_reset()
568 i = inb(0x22a); in rwa010_soundblaster_reset()
570 i |= inb(0x22a) << 8; in rwa010_soundblaster_reset()
573 for (i = 0; i < 5; i++) { in rwa010_soundblaster_reset()
574 if ((inb(0x22c) & 0x80) == 0) in rwa010_soundblaster_reset()
582 outb(0xd3, 0x22c); in rwa010_soundblaster_reset()
586 outb(5, 0x38a); in rwa010_soundblaster_reset()
587 outb(1, 0x38b); in rwa010_soundblaster_reset()
596 rwa010_waveartist_init(0x250, 3, 7); in rwa010_init()
597 rwa010_soundblaster_init(0x220, 0x388, 3, 1); in rwa010_init()
613 return 0; in nw_hw_init()
642 soft_restart(0x41000000); in netwinder_restart()
648 outb(0x87, 0x370); in netwinder_restart()
649 outb(0x87, 0x370); in netwinder_restart()
652 outb(0x07, 0x370); in netwinder_restart()
653 outb(0x07, 0x371); in netwinder_restart()
656 outb(0xe6, 0x370); in netwinder_restart()
657 outb(0x00, 0x371); in netwinder_restart()
660 outb(0xc4, 0x338); in netwinder_restart()
727 for (i = 0; i < ARRAY_SIZE(netwinder_leds); i++) { in netwinder_leds_init()
739 if (i == 0) in netwinder_leds_init()
744 if (led_classdev_register(NULL, &led->cdev) < 0) { in netwinder_leds_init()
750 return 0; in netwinder_leds_init()
762 .atag_offset = 0x100,
763 .video_start = 0x000a0000,
764 .video_end = 0x000bffff,