static void superio_init(void) { /* Enter the configuration state. */ pnp_enter_ext_func_mode_alt(0x2e); /* COMA */ pnp_set_logical_device(0x2e, 4); pnp_set_enable(0x2e, 0); pnp_set_iobase0(0x2e, 0x3f8); pnp_set_irq0(0x2e, 4); pnp_set_enable(0x2e, 1); /* Exit the configuration state. */ pnp_exit_ext_func_mode(0x2e); }
static void superio_init(void) { pnp_enter_ext_func_mode_alt(SUPERIO_CONFIG_PORT); pnp_set_logical_device(SUPERIO_CONFIG_PORT, 4); /* COM1 */ pnp_set_enable(SUPERIO_CONFIG_PORT, 0); pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x3f8); pnp_set_irq0(SUPERIO_CONFIG_PORT, 4); pnp_set_enable(SUPERIO_CONFIG_PORT, 1); #if 0 /* Must route GPIO to UART2 before enabling this */ pnp_set_logical_device(SUPERIO_CONFIG_PORT, 5); /* COM2 */ pnp_set_enable(SUPERIO_CONFIG_PORT, 0); pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x2f8); pnp_set_irq0(SUPERIO_CONFIG_PORT, 3); pnp_set_enable(SUPERIO_CONFIG_PORT, 1); #endif pnp_exit_ext_func_mode(SUPERIO_CONFIG_PORT); }