Lines Matching +full:0 +full:x3f8
24 #define VGABASE (__ISA_IO_base + 0xb8000)
34 while ((c = *str++) != '\0' && n-- > 0) { in early_vga_write()
37 for (k = 1, j = 0; k < max_ypos; k++, j++) { in early_vga_write()
38 for (i = 0; i < max_xpos; i++) { in early_vga_write()
43 for (i = 0; i < max_xpos; i++) in early_vga_write()
44 writew(0x720, VGABASE + 2*(max_xpos*j + i)); in early_vga_write()
49 if (current_xpos > 0) in early_vga_write()
52 current_xpos = 0; in early_vga_write()
56 current_xpos = 0; in early_vga_write()
59 writew(((0x7 << 8) | (unsigned short) c), in early_vga_write()
63 current_xpos = 0; in early_vga_write()
79 static unsigned long early_serial_base = 0x3f8; /* ttyS0 */
81 #define XMTRDY 0x20
83 #define DLAB 0x80
85 #define TXR 0 /* Transmit register (WRITE) */
86 #define RXR 0 /* Receive register (READ) */
94 #define DLL 0 /* Divisor Latch Low */
112 unsigned timeout = 0xffff; in early_serial_putc()
114 while ((serial_in(early_serial_base, LSR) & XMTRDY) == 0 && --timeout) in early_serial_putc()
117 return timeout ? 0 : -1; in early_serial_putc()
122 while (*s && n-- > 0) { in early_serial_write()
134 serial_out(early_serial_base, LCR, 0x3); /* 8n1 */ in early_serial_hw_init()
135 serial_out(early_serial_base, IER, 0); /* no interrupt */ in early_serial_hw_init()
136 serial_out(early_serial_base, FCR, 0); /* no fifo */ in early_serial_hw_init()
137 serial_out(early_serial_base, MCR, 0x3); /* DTR + RTS */ in early_serial_hw_init()
141 serial_out(early_serial_base, DLL, divisor & 0xff); in early_serial_hw_init()
142 serial_out(early_serial_base, DLH, (divisor >> 8) & 0xff); in early_serial_hw_init()
159 if (!strncmp(s, "0x", 2)) { in early_serial_init()
162 static const int __initconst bases[] = { 0x3f8, 0x2f8 }; in early_serial_init()
168 port = 0; in early_serial_init()
177 baud = simple_strtoull(s, &e, 0); in early_serial_init()
179 if (baud == 0 || s == e) in early_serial_init()
225 int force = 0; in early_pci_serial_init()
230 if (*s == 0) in early_pci_serial_init()
271 (((classcode >> 8) & 0xff) != PCI_SERIAL_16550_COMPATIBLE)) { in early_pci_serial_init()
292 (unsigned long)early_ioremap(bar0 & PCI_BASE_ADDRESS_MEM_MASK, 0x10); in early_pci_serial_init()
301 if (strcmp(s, "nocfg") == 0) in early_pci_serial_init()
308 if (kstrtoul(s, 0, &baud) < 0 || baud == 0) in early_pci_serial_init()
347 return 0; in setup_early_printk()
350 return 0; in setup_early_printk()
354 while (*buf != '\0') { in setup_early_printk()
395 return 0; in setup_early_printk()