Changeset da1bafb in mainline for kernel/generic/include/ipc/sysipc.h


Ignore:
Timestamp:
2010-05-24T18:57:31Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0095368
Parents:
666f492
Message:

major code revision

  • replace spinlocks taken with interrupts disabled with irq_spinlocks
  • change spacing (not indendation) to be tab-size independent
  • use unsigned integer types where appropriate (especially bit flags)
  • visual separation
  • remove argument names in function prototypes
  • string changes
  • correct some formating directives
  • replace various cryptic single-character variables (t, a, m, c, b, etc.) with proper identifiers (thread, task, timeout, as, itm, itc, etc.)
  • unify some assembler constructs
  • unused page table levels are now optimized out in compile time
  • replace several ints (with boolean semantics) with bools
  • use specifically sized types instead of generic types where appropriate (size_t, uint32_t, btree_key_t)
  • improve comments
  • split asserts with conjuction into multiple independent asserts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/sysipc.h

    r666f492 rda1bafb  
    4040#include <typedefs.h>
    4141
    42 unative_t sys_ipc_call_sync_fast(unative_t phoneid, unative_t method,
     42extern unative_t sys_ipc_call_sync_fast(unative_t phoneid, unative_t method,
    4343    unative_t arg1, unative_t arg2, unative_t arg3, ipc_data_t *data);
    44 unative_t sys_ipc_call_sync_slow(unative_t phoneid, ipc_data_t *question,
     44extern unative_t sys_ipc_call_sync_slow(unative_t phoneid, ipc_data_t *question,
    4545    ipc_data_t *reply);
    46 unative_t sys_ipc_call_async_fast(unative_t phoneid, unative_t method,
     46extern unative_t sys_ipc_call_async_fast(unative_t phoneid, unative_t method,
    4747    unative_t arg1, unative_t arg2, unative_t arg3, unative_t arg4);
    48 unative_t sys_ipc_call_async_slow(unative_t phoneid, ipc_data_t *data);
    49 unative_t sys_ipc_answer_fast(unative_t callid, unative_t retval,
     48extern unative_t sys_ipc_call_async_slow(unative_t phoneid, ipc_data_t *data);
     49extern unative_t sys_ipc_answer_fast(unative_t callid, unative_t retval,
    5050    unative_t arg1, unative_t arg2, unative_t arg3, unative_t arg4);
    51 unative_t sys_ipc_answer_slow(unative_t callid, ipc_data_t *data);
    52 unative_t sys_ipc_wait_for_call(ipc_data_t *calldata, uint32_t usec,
    53     int nonblocking);
    54 unative_t sys_ipc_poke(void);
    55 unative_t sys_ipc_forward_fast(unative_t callid, unative_t phoneid,
    56     unative_t method, unative_t arg1, unative_t arg2, int mode);
    57 unative_t sys_ipc_forward_slow(unative_t callid, unative_t phoneid,
    58     ipc_data_t *data, int mode);
    59 unative_t sys_ipc_hangup(unative_t phoneid);
    60 unative_t sys_ipc_register_irq(inr_t inr, devno_t devno, unative_t method,
     51extern unative_t sys_ipc_answer_slow(unative_t callid, ipc_data_t *data);
     52extern unative_t sys_ipc_wait_for_call(ipc_data_t *calldata, uint32_t usec,
     53    unsigned int nonblocking);
     54extern unative_t sys_ipc_poke(void);
     55extern unative_t sys_ipc_forward_fast(unative_t callid, unative_t phoneid,
     56    unative_t method, unative_t arg1, unative_t arg2, unsigned int mode);
     57extern unative_t sys_ipc_forward_slow(unative_t callid, unative_t phoneid,
     58    ipc_data_t *data, unsigned int mode);
     59extern unative_t sys_ipc_hangup(unative_t phoneid);
     60extern unative_t sys_ipc_register_irq(inr_t inr, devno_t devno, unative_t method,
    6161    irq_code_t *ucode);
    62 unative_t sys_ipc_unregister_irq(inr_t inr, devno_t devno);
    63 unative_t sys_ipc_connect_kbox(sysarg64_t *task_id);
     62extern unative_t sys_ipc_unregister_irq(inr_t inr, devno_t devno);
     63extern unative_t sys_ipc_connect_kbox(sysarg64_t *task_id);
    6464
    6565#endif
Note: See TracChangeset for help on using the changeset viewer.