Changeset 6a44ee4 in mainline for kernel/arch/mips64/include/types.h


Ignore:
Timestamp:
2011-07-20T15:26:21Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efcebe1
Parents:
25bef0ff (diff), a701812 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips64/include/types.h

    r25bef0ff r6a44ee4  
    11/*
    2  * Copyright (c) 2010 Jakub Jermar
     2 * Copyright (c) 2003-2004 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup mips64
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef LIBC_ASYNC_SESS_H_
    36 #define LIBC_ASYNC_SESS_H_
     35#ifndef KERN_mips64_TYPES_H_
     36#define KERN_mips64_TYPES_H_
    3737
    38 #include <adt/list.h>
     38typedef uint64_t size_t;
     39typedef int64_t ssize_t;
     40
     41typedef uint64_t uintptr_t;
     42typedef uint64_t pfn_t;
     43
     44typedef uint64_t ipl_t;
     45
     46typedef uint64_t sysarg_t;
     47typedef int64_t native_t;
     48typedef uint64_t atomic_count_t;
    3949
    4050typedef struct {
    41         int sess_phone;         /**< Phone for cloning off the connections. */
    42         sysarg_t connect_arg1;  /**< Argument for CONNECT_ME_TO. */
    43         link_t conn_head;       /**< List of open data connections. */
    44         link_t sess_link;       /**< Link in global list of open sessions. */
    45 } async_sess_t;
     51} fncptr_t;
    4652
    47 extern void async_session_create(async_sess_t *, int, sysarg_t);
    48 extern void async_session_destroy(async_sess_t *);
    49 extern int async_exchange_begin(async_sess_t *);
    50 extern void async_exchange_end(async_sess_t *, int);
     53#define INTN_C(c)   INT64_C(c)
     54#define UINTN_C(c)  UINT64_C(c)
     55
     56#define PRIdn  PRId64  /**< Format for native_t. */
     57#define PRIun  PRIu64  /**< Format for sysarg_t. */
     58#define PRIxn  PRIx64  /**< Format for hexadecimal sysarg_t. */
     59#define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5160
    5261#endif
Note: See TracChangeset for help on using the changeset viewer.