Changeset 84afc7b in mainline for kernel/genarch/src/drivers/ns16550/ns16550.c
- Timestamp:
- 2009-03-18T10:53:12Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e749794
- Parents:
- 8015eeec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/ns16550/ns16550.c
r8015eeec r84afc7b 40 40 #include <console/chardev.h> 41 41 #include <mm/slab.h> 42 #include <ddi/device.h> 42 43 43 44 #define LSR_DATA_READY 0x01 … … 80 81 * 81 82 */ 82 indev_t *ns16550_init(ns16550_t *dev, devno_t devno,inr_t inr, cir_t cir, void *cir_arg)83 indev_t *ns16550_init(ns16550_t *dev, inr_t inr, cir_t cir, void *cir_arg) 83 84 { 84 85 ns16550_instance_t *instance … … 89 90 indev_initialize("ns16550", &instance->kbrdin, &kbrdin_ops); 90 91 91 instance->devno = devno;92 92 instance->ns16550 = dev; 93 93 94 94 irq_initialize(&instance->irq); 95 instance->irq.devno = dev no;95 instance->irq.devno = device_assign_devno(); 96 96 instance->irq.inr = inr; 97 97 instance->irq.claim = ns16550_claim;
Note:
See TracChangeset
for help on using the changeset viewer.