Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8add9ca5 in mainline


Ignore:
Timestamp:
2011-01-29T11:52:53Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial
Children:
4f14e1f8
Parents:
46b881c
Message:

ABI change: syscalls for registering IRQ notifications are probably more DDI-related than IPC-related

Files:
15 edited

Legend:

Unmodified
Added
Removed
  • contrib/arch/kernel/kernel.adl

    r46b881c r8add9ca5  
    203203               
    204204                /* Connect an IRQ handler to the current task */
    205                 sysarg_t sys_ipc_register_irq(inr_t inr, devno_t devno, sysarg_t method, irq_code_t *ucode);
     205                sysarg_t sys_register_irq(inr_t inr, devno_t devno, sysarg_t method, irq_code_t *ucode);
    206206               
    207207                /* Disconnect an IRQ handler from the current task */
    208                 sysarg_t sys_ipc_unregister_irq(inr_t inr, devno_t devno);
     208                sysarg_t sys_unregister_irq(inr_t inr, devno_t devno);
    209209        protocol:
    210210                (
     
    213213                        ?sys_device_assign_devno +
    214214                        ?sys_preempt_control +
    215                         ?sys_ipc_register_irq +
    216                         ?sys_ipc_unregister_irq
     215                        ?sys_register_irq +
     216                        ?sys_unregister_irq
    217217                )*
    218218};
  • contrib/arch/uspace/lib/libc/protocol

    r46b881c r8add9ca5  
    3434        !sys_ddi.sys_device_assign_devno +
    3535        !sys_ddi.sys_preempt_control +
    36         !sys_ddi.sys_ipc_register_irq +
    37         !sys_ddi.sys_ipc_unregister_irq +
     36        !sys_ddi.sys_register_irq +
     37        !sys_ddi.sys_unregister_irq +
    3838        !sys_sysinfo.sys_sysinfo_valid +
    3939        !sys_sysinfo.sys_sysinfo_value +
  • kernel/generic/include/ipc/sysipc.h

    r46b881c r8add9ca5  
    5656    unsigned int);
    5757extern sysarg_t sys_ipc_hangup(sysarg_t);
    58 extern sysarg_t sys_ipc_register_irq(inr_t, devno_t, sysarg_t, irq_code_t *);
    59 extern sysarg_t sys_ipc_unregister_irq(inr_t, devno_t);
     58extern sysarg_t sys_register_irq(inr_t, devno_t, sysarg_t, irq_code_t *);
     59extern sysarg_t sys_unregister_irq(inr_t, devno_t);
    6060
    6161#ifdef __32_BITS__
  • kernel/generic/include/syscall/syscall.h

    r46b881c r8add9ca5  
    7070        SYS_IPC_POKE,
    7171        SYS_IPC_HANGUP,
    72         SYS_IPC_REGISTER_IRQ,
    73         SYS_IPC_UNREGISTER_IRQ,
    7472        SYS_IPC_CONNECT_KBOX,
    7573       
     
    8280        SYS_PHYSMEM_MAP,
    8381        SYS_IOSPACE_ENABLE,
     82        SYS_REGISTER_IRQ,
     83        SYS_UNREGISTER_IRQ,
    8484       
    8585        SYS_SYSINFO_GET_TAG,
  • kernel/generic/src/ipc/irq.c

    r46b881c r8add9ca5  
    4242 *
    4343 * The structure of a notification message is as follows:
    44  * - IMETHOD: interface and method as registered by the SYS_IPC_REGISTER_IRQ
     44 * - IMETHOD: interface and method as registered by the SYS_REGISTER_IRQ
    4545 *            syscall
    4646 * - ARG1: payload modified by a 'top-half' handler
  • kernel/generic/src/ipc/sysipc.c

    r46b881c r8add9ca5  
    11051105 *
    11061106 */
    1107 sysarg_t sys_ipc_register_irq(inr_t inr, devno_t devno, sysarg_t imethod,
     1107sysarg_t sys_register_irq(inr_t inr, devno_t devno, sysarg_t imethod,
    11081108    irq_code_t *ucode)
    11091109{
     
    11221122 *
    11231123 */
    1124 sysarg_t sys_ipc_unregister_irq(inr_t inr, devno_t devno)
     1124sysarg_t sys_unregister_irq(inr_t inr, devno_t devno)
    11251125{
    11261126        if (!(cap_get(TASK) & CAP_IRQ_REG))
  • kernel/generic/src/syscall/syscall.c

    r46b881c r8add9ca5  
    156156        (syshandler_t) sys_ipc_poke,
    157157        (syshandler_t) sys_ipc_hangup,
    158         (syshandler_t) sys_ipc_register_irq,
    159         (syshandler_t) sys_ipc_unregister_irq,
    160158        (syshandler_t) sys_ipc_connect_kbox,
    161159       
     
    171169        (syshandler_t) sys_physmem_map,
    172170        (syshandler_t) sys_iospace_enable,
     171        (syshandler_t) sys_register_irq,
     172        (syshandler_t) sys_unregister_irq,
    173173       
    174174        /* Sysinfo syscalls */
  • uspace/app/trace/syscalls.c

    r46b881c r8add9ca5  
    6464    [SYS_IPC_POKE] = { "ipc_poke",                      0,      V_ERRNO },
    6565    [SYS_IPC_HANGUP] = { "ipc_hangup",                  1,      V_ERRNO },
    66     [SYS_IPC_REGISTER_IRQ] = { "ipc_register_irq",      4,      V_ERRNO },
    67     [SYS_IPC_UNREGISTER_IRQ] = { "ipc_unregister_irq",  2,      V_ERRNO },
    6866
    6967    [SYS_EVENT_SUBSCRIBE] = { "event_subscribe",        2,      V_ERRNO },
     
    7371    [SYS_PHYSMEM_MAP] = { "physmem_map",                4,      V_ERRNO },
    7472    [SYS_IOSPACE_ENABLE] = { "iospace_enable",          1,      V_ERRNO },
     73    [SYS_REGISTER_IRQ] = { "register_irq",      4,      V_ERRNO },
     74    [SYS_UNREGISTER_IRQ] = { "unregister_irq",  2,      V_ERRNO },
    7575
    7676    [SYS_SYSINFO_GET_TAG] = { "sysinfo_get_tag",                2,      V_INTEGER },
  • uspace/lib/c/generic/ddi.c

    r46b881c r8add9ca5  
    139139int register_irq(int inr, int devno, int method, irq_code_t *ucode)
    140140{
    141         return __SYSCALL4(SYS_IPC_REGISTER_IRQ, inr, devno, method,
     141        return __SYSCALL4(SYS_REGISTER_IRQ, inr, devno, method,
    142142            (sysarg_t) ucode);
    143143}
     
    153153int unregister_irq(int inr, int devno)
    154154{
    155         return __SYSCALL2(SYS_IPC_UNREGISTER_IRQ, inr, devno);
     155        return __SYSCALL2(SYS_UNREGISTER_IRQ, inr, devno);
    156156}
    157157
  • uspace/srv/hid/kbd/port/gxemul.c

    r46b881c r8add9ca5  
    7373        async_set_interrupt_received(gxemul_irq_handler);
    7474        gxemul_cmds[0].addr = (void *) addr;
    75         ipc_register_irq(inr, device_assign_devno(), 0, &gxemul_kbd);
     75        register_irq(inr, device_assign_devno(), 0, &gxemul_kbd);
    7676        return 0;
    7777}
  • uspace/srv/hid/kbd/port/msim.c

    r46b881c r8add9ca5  
    7373        msim_cmds[0].addr = (void *) vaddr;
    7474        async_set_interrupt_received(msim_irq_handler);
    75         ipc_register_irq(inr, device_assign_devno(), 0, &msim_kbd);
     75        register_irq(inr, device_assign_devno(), 0, &msim_kbd);
    7676       
    7777        return 0;
  • uspace/srv/hid/kbd/port/ns16550.c

    r46b881c r8add9ca5  
    110110       
    111111        async_set_interrupt_received(ns16550_irq_handler);
    112         ipc_register_irq(inr, device_assign_devno(), inr, &ns16550_kbd);
     112        register_irq(inr, device_assign_devno(), inr, &ns16550_kbd);
    113113       
    114114        return pio_enable((void *) ns16550_physical, 8, &vaddr);
  • uspace/srv/hid/kbd/port/pl050.c

    r46b881c r8add9ca5  
    100100       
    101101        async_set_interrupt_received(pl050_irq_handler);
    102         ipc_register_irq(inr, device_assign_devno(), 0, &pl050_kbd);
     102        register_irq(inr, device_assign_devno(), 0, &pl050_kbd);
    103103       
    104104        return 0;
  • uspace/srv/hid/kbd/port/z8530.c

    r46b881c r8add9ca5  
    9898       
    9999        async_set_interrupt_received(z8530_irq_handler);
    100         ipc_register_irq(inr, device_assign_devno(), inr, &z8530_kbd);
     100        register_irq(inr, device_assign_devno(), inr, &z8530_kbd);
    101101       
    102102        return 0;
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r46b881c r8add9ca5  
    276276        cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_kernel)->ifr;
    277277        async_set_interrupt_received(cuda_irq_handler);
    278         ipc_register_irq(10, device_assign_devno(), 0, &cuda_irq_code);
     278        register_irq(10, device_assign_devno(), 0, &cuda_irq_code);
    279279
    280280        /* Enable SR interrupt. */
Note: See TracChangeset for help on using the changeset viewer.