#if !defined(CONFIG_HPDCA) && !defined(CONFIG_HPAPCI) && !defined(CONFIG_COMPILE_TEST) #warning CONFIG_SERIAL_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure? #endif
#ifdef CONFIG_HPAPCI struct hp300_port { struct hp300_port *next; /* next port */ int line; /* line (tty) number */
};
if (DIO_ID(pa + DIO_VIRADDRBASE) & 0x80)
add_preferred_console("ttyS", port.line, "9600n8"); #else
pr_warn("Serial console is DCA but support is disabled (CONFIG_HPDCA)!\n"); return0; #endif
}
staticint __init hp300_8250_init(void)
{ staticint called; #ifdef CONFIG_HPAPCI int line; unsignedlong base; struct uart_8250_port uart; struct hp300_port *port; int i; #endif if (called) return -ENODEV;
called = 1;
if (!MACH_IS_HP300) return -ENODEV;
#ifdef CONFIG_HPDCA
dio_register_driver(&hpdca_driver); #endif #ifdef CONFIG_HPAPCI if (hp300_model < HP_400) { if (!num_ports) return -ENODEV; return0;
} /* These models have the Frodo chip. *Port0isreservedfortheApolloDomainkeyboard. *Port1iseithertheconsoleortheDCA.
*/ for (i = 1; i < 4; i++) { /* Port 1 is the console on a 425e, on other machines it's *mappedtoDCA.
*/ #ifdef CONFIG_SERIAL_8250_CONSOLE if (i == 1) continue; #endif
/* Create new serial device */
port = kmalloc(sizeof(struct hp300_port), GFP_KERNEL); if (!port) return -ENOMEM;
module_init(hp300_8250_init);
module_exit(hp300_8250_exit);
MODULE_DESCRIPTION("HP DCA/APCI serial driver");
MODULE_AUTHOR("Kars de Jong <jongk@linux-m68k.org>");
MODULE_LICENSE("GPL");
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.