Changeset 24abb85d in mainline for uspace/lib/c/generic


Ignore:
Timestamp:
2017-08-18T23:27:08Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d76cfc
Parents:
e9d15d9
Message:

Remove SYS_DEVICE_ASSIGN_DEVNO

Location:
uspace/lib/c/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    re9d15d9 r24abb85d  
    10221022 *
    10231023 * @param inr     IRQ number.
    1024  * @param devno   Device number of the device generating inr.
    10251024 * @param handler Notification handler.
    10261025 * @param data    Notification handler client data.
     
    10311030 *
    10321031 */
    1033 int async_irq_subscribe(int inr, int devno,
    1034     async_notification_handler_t handler, void *data, const irq_code_t *ucode)
     1032int async_irq_subscribe(int inr, async_notification_handler_t handler,
     1033    void *data, const irq_code_t *ucode)
    10351034{
    10361035        notification_t *notification =
     
    10521051        futex_up(&async_futex);
    10531052       
    1054         return ipc_irq_subscribe(inr, devno, imethod, ucode);
     1053        return ipc_irq_subscribe(inr, imethod, ucode);
    10551054}
    10561055
  • uspace/lib/c/generic/ddi.c

    re9d15d9 r24abb85d  
    5050#include "private/libc.h"
    5151
    52 
    53 /** Return unique device number.
    54  *
    55  * @return New unique device number.
    56  *
    57  */
    58 int device_assign_devno(void)
    59 {
    60         return __SYSCALL0(SYS_DEVICE_ASSIGN_DEVNO);
    61 }
    6252
    6353/** Map a piece of physical memory to task.
  • uspace/lib/c/generic/irq.c

    re9d15d9 r24abb85d  
    5555 *
    5656 * @param inr    IRQ number.
    57  * @param devno  Device number of the device generating inr.
    5857 * @param method Use this method for notifying me.
    5958 * @param ucode  Top-half pseudocode handler.
     
    6362 *
    6463 */
    65 int ipc_irq_subscribe(int inr, int devno, sysarg_t method,
    66     const irq_code_t *ucode)
     64int ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode)
    6765{
    6866        if (ucode == NULL)
    6967                ucode = &default_ucode;
    7068       
    71         return __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, devno, method,
    72             (sysarg_t) ucode);
     69        return __SYSCALL3(SYS_IPC_IRQ_SUBSCRIBE, inr, method, (sysarg_t) ucode);
    7370}
    7471
Note: See TracChangeset for help on using the changeset viewer.