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

Changeset f044e96 in mainline


Ignore:
Timestamp:
2011-12-19T15:42:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
17b3cc6
Parents:
1761268
Message:

use systematic names

  • register_irq → irq_register
  • unregister_irq → irq_unregister
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • abi/include/syscall.h

    r1761268 rf044e96  
    8888        SYS_DMAMEM_UNMAP,
    8989        SYS_IOSPACE_ENABLE,
    90         SYS_REGISTER_IRQ,
    91         SYS_UNREGISTER_IRQ,
     90        SYS_IRQ_REGISTER,
     91        SYS_IRQ_UNREGISTER,
    9292       
    9393        SYS_SYSINFO_GET_VAL_TYPE,
  • kernel/generic/include/ipc/sysipc.h

    r1761268 rf044e96  
    5656    unsigned int);
    5757extern sysarg_t sys_ipc_hangup(sysarg_t);
    58 extern sysarg_t sys_register_irq(inr_t, devno_t, sysarg_t, irq_code_t *);
    59 extern sysarg_t sys_unregister_irq(inr_t, devno_t);
     58extern sysarg_t sys_irq_register(inr_t, devno_t, sysarg_t, irq_code_t *);
     59extern sysarg_t sys_irq_unregister(inr_t, devno_t);
    6060
    6161#ifdef __32_BITS__
  • kernel/generic/src/ipc/sysipc.c

    r1761268 rf044e96  
    11851185 *
    11861186 */
    1187 sysarg_t sys_register_irq(inr_t inr, devno_t devno, sysarg_t imethod,
     1187sysarg_t sys_irq_register(inr_t inr, devno_t devno, sysarg_t imethod,
    11881188    irq_code_t *ucode)
    11891189{
     
    12021202 *
    12031203 */
    1204 sysarg_t sys_unregister_irq(inr_t inr, devno_t devno)
     1204sysarg_t sys_irq_unregister(inr_t inr, devno_t devno)
    12051205{
    12061206        if (!(cap_get(TASK) & CAP_IRQ_REG))
  • kernel/generic/src/syscall/syscall.c

    r1761268 rf044e96  
    179179        (syshandler_t) sys_dmamem_unmap,
    180180        (syshandler_t) sys_iospace_enable,
    181         (syshandler_t) sys_register_irq,
    182         (syshandler_t) sys_unregister_irq,
     181        (syshandler_t) sys_irq_register,
     182        (syshandler_t) sys_irq_unregister,
    183183       
    184184        /* Sysinfo syscalls. */
  • uspace/app/trace/syscalls.c

    r1761268 rf044e96  
    7272    [SYS_PHYSMEM_MAP] = { "physmem_map",                4,      V_ERRNO },
    7373    [SYS_IOSPACE_ENABLE] = { "iospace_enable",          1,      V_ERRNO },
    74     [SYS_REGISTER_IRQ] = { "register_irq",      4,      V_ERRNO },
    75     [SYS_UNREGISTER_IRQ] = { "unregister_irq",  2,      V_ERRNO },
     74    [SYS_IRQ_REGISTER] = { "irq_register",      4,      V_ERRNO },
     75    [SYS_IRQ_UNREGISTER] = { "irq_unregister",  2,      V_ERRNO },
    7676
    7777    [SYS_SYSINFO_GET_VAL_TYPE] = { "sysinfo_get_val_type",              2,      V_INTEGER },
  • uspace/lib/c/generic/ddi.c

    r1761268 rf044e96  
    176176 *
    177177 */
    178 int register_irq(int inr, int devno, int method, irq_code_t *ucode)
     178int irq_register(int inr, int devno, int method, irq_code_t *ucode)
    179179{
    180         return __SYSCALL4(SYS_REGISTER_IRQ, inr, devno, method,
     180        return __SYSCALL4(SYS_IRQ_REGISTER, inr, devno, method,
    181181            (sysarg_t) ucode);
    182182}
     
    190190 *
    191191 */
    192 int unregister_irq(int inr, int devno)
     192int irq_unregister(int inr, int devno)
    193193{
    194         return __SYSCALL2(SYS_UNREGISTER_IRQ, inr, devno);
     194        return __SYSCALL2(SYS_IRQ_UNREGISTER, inr, devno);
    195195}
    196196
  • uspace/lib/c/include/ddi.h

    r1761268 rf044e96  
    5353extern int pio_enable(void *, size_t, void **);
    5454
    55 extern int register_irq(int, int, int, irq_code_t *);
    56 extern int unregister_irq(int, int);
     55extern int irq_register(int, int, int, irq_code_t *);
     56extern int irq_unregister(int, int);
    5757
    5858#endif
  • uspace/lib/drv/generic/driver.c

    r1761268 rf044e96  
    198198                pseudocode = &default_pseudocode;
    199199       
    200         int res = register_irq(irq, dev->handle, ctx->id, pseudocode);
     200        int res = irq_register(irq, dev->handle, ctx->id, pseudocode);
    201201        if (res != EOK) {
    202202                remove_interrupt_context(&interrupt_contexts, ctx);
     
    211211        interrupt_context_t *ctx = find_interrupt_context(&interrupt_contexts,
    212212            dev, irq);
    213         int res = unregister_irq(irq, dev->handle);
     213        int res = irq_unregister(irq, dev->handle);
    214214       
    215215        if (ctx != NULL) {
  • uspace/srv/hid/input/port/gxemul.c

    r1761268 rf044e96  
    9090        async_set_interrupt_received(gxemul_irq_handler);
    9191        gxemul_cmds[0].addr = (void *) addr;
    92         register_irq(inr, device_assign_devno(), 0, &gxemul_kbd);
     92        irq_register(inr, device_assign_devno(), 0, &gxemul_kbd);
    9393        return 0;
    9494}
  • uspace/srv/hid/input/port/msim.c

    r1761268 rf044e96  
    8989        msim_cmds[0].addr = (void *) vaddr;
    9090        async_set_interrupt_received(msim_irq_handler);
    91         register_irq(inr, device_assign_devno(), 0, &msim_kbd);
     91        irq_register(inr, device_assign_devno(), 0, &msim_kbd);
    9292       
    9393        return 0;
  • uspace/srv/hid/input/port/ns16550.c

    r1761268 rf044e96  
    135135       
    136136        async_set_interrupt_received(ns16550_irq_handler);
    137         register_irq(inr, device_assign_devno(), inr, &ns16550_kbd);
     137        irq_register(inr, device_assign_devno(), inr, &ns16550_kbd);
    138138       
    139139        return pio_enable((void *) ns16550_physical, 8, &vaddr);
  • uspace/srv/hid/input/port/pl050.c

    r1761268 rf044e96  
    117117       
    118118        async_set_interrupt_received(pl050_irq_handler);
    119         register_irq(inr, device_assign_devno(), 0, &pl050_kbd);
     119        irq_register(inr, device_assign_devno(), 0, &pl050_kbd);
    120120       
    121121        return 0;
  • uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c

    r1761268 rf044e96  
    139139
    140140        async_set_interrupt_received(s3c24xx_ts_irq_handler);
    141         register_irq(inr, device_assign_devno(), 0, &ts_irq_code);
     141        irq_register(inr, device_assign_devno(), 0, &ts_irq_code);
    142142
    143143        s3c24xx_ts_wait_for_int_mode(ts, updn_down);
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r1761268 rf044e96  
    275275        cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_kernel)->ifr;
    276276        async_set_interrupt_received(cuda_irq_handler);
    277         register_irq(10, device_assign_devno(), 0, &cuda_irq_code);
     277        irq_register(10, device_assign_devno(), 0, &cuda_irq_code);
    278278
    279279        /* Enable SR interrupt. */
  • uspace/srv/hw/char/i8042/i8042.c

    r1761268 rf044e96  
    197197        i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status;
    198198        i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data;
    199         register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);
    200         register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd);
     199        irq_register(inr_a, device_assign_devno(), 0, &i8042_kbd);
     200        irq_register(inr_b, device_assign_devno(), 0, &i8042_kbd);
    201201        printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n",
    202202            NAME, inr_a, inr_b);
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    r1761268 rf044e96  
    194194        async_set_interrupt_received(s3c24xx_uart_irq_handler);
    195195
    196         register_irq(inr, device_assign_devno(), 0, &uart_irq_code);
     196        irq_register(inr, device_assign_devno(), 0, &uart_irq_code);
    197197
    198198        /* Enable FIFO, Tx trigger level: empty, Rx trigger level: 1 byte. */
Note: See TracChangeset for help on using the changeset viewer.