Changeset 84afc7b in mainline for uspace/srv/kbd/port/gxemul.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/gxemul.c

    r8015eeec r84afc7b  
    4040#include <kbd_port.h>
    4141#include <kbd.h>
     42#include <ddi.h>
    4243
    4344static irq_cmd_t gxemul_cmds[] = {
     
    6465        async_set_interrupt_received(gxemul_irq_handler);
    6566        gxemul_cmds[0].addr = (void *) sysinfo_value("kbd.address.virtual");
    66         ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"),
     67        ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
    6768            0, &gxemul_kbd);
    6869        return 0;
Note: See TracChangeset for help on using the changeset viewer.