Changeset 8d2760f in mainline for kernel/genarch/src/kbd/ns16550.c
- Timestamp:
- 2008-11-29T20:24:47Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 57e76cb
- Parents:
- dfd77382
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/kbd/ns16550.c
rdfd77382 r8d2760f 108 108 /** Initialize ns16550. 109 109 * 110 * @param devno Device number. 111 * @param inr Interrupt number. 112 * @param vaddr Virtual address of device's registers. 113 */ 114 void ns16550_init(devno_t devno, inr_t inr, ioport_t port) 110 * @param devno Device number. 111 * @param port Virtual/IO address of device's registers. 112 * @param inr Interrupt number. 113 * @param cir Clear interrupt function. 114 * @param cir_arg First argument to cir. 115 */ 116 void 117 ns16550_init(devno_t devno, ioport_t port, inr_t inr, cir_t cir, void *cir_arg) 115 118 { 116 119 chardev_initialize("ns16550_kbd", &kbrd, &ops); … … 125 128 ns16550_irq.claim = ns16550_claim; 126 129 ns16550_irq.handler = ns16550_irq_handler; 130 ns16550_irq.cir = cir; 131 ns16550_irq.cir_arg = cir_arg; 127 132 irq_register(&ns16550_irq); 128 133
Note:
See TracChangeset
for help on using the changeset viewer.