Changeset 84afc7b in mainline for uspace/srv/kbd/port/ns16550.c


Ignore:
Timestamp:
2009-03-18T10:53:12Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e749794
Parents:
8015eeec
Message:

as kernel little brother drivers are not needed anymore, the device numbers do not have to be correlated between kernel and uspace in any way
introduce new syscall sys_device_assign_devno() for generating system-wide unique device numbers for uspace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/port/ns16550.c

    r8015eeec r84afc7b  
    100100        ns16550_kbd.cmds[0].addr = (void *) (ns16550_kernel + LSR_REG);
    101101        ns16550_kbd.cmds[3].addr = (void *) (ns16550_kernel + RBR_REG);
    102         ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"),
     102        ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
    103103            0, &ns16550_kbd);
    104104        return pio_enable((void *) ns16550_physical, 8, &vaddr);
Note: See TracChangeset for help on using the changeset viewer.