-static void setup_parisc_serial(struct serial_struct *serial,
- unsigned long address, int irq, int line)
-{
- memset(serial, 0, sizeof(struct serial_struct));
-
- /* autoconfig() sets state->type. This sets info->type */
- serial->type = PORT_16550A;
-
- serial->line = line;
- serial->iomap_base = address;
- serial->iomem_base = ioremap(address, 0x8);
-
- serial->irq = irq;
- serial->io_type = SERIAL_IO_MEM; /* define access method */
- serial->flags = 0;
- serial->xmit_fifo_size = 16;
- serial->custom_divisor = 0;
- serial->baud_base = LASI_BASE_BAUD;
-}