Changeset 432a269 in mainline for uspace/lib/softint/include/lltype.h


Ignore:
Timestamp:
2011-09-16T21:13:57Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a11f17
Parents:
c0e53ff (diff), fd07e526 (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
  • uspace/lib/softint/include/lltype.h

    rc0e53ff r432a269  
    11/*
    2  * Copyright (c) 2006 Ondrej Palkovsky
     2 * Copyright (c) 2011 Petr Koupy
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup console
     29/** @addtogroup softint
    3030 * @{
    3131 */
    32 /** @file
     32/**
     33 * @file Abstraction over 64-bit integral type to allow simple manipulation.
    3334 */
    3435
    35 #ifndef GCONS_H_
    36 #define GCONS_H_
     36#ifndef __SOFTINT_LLTYPE_H__
     37#define __SOFTINT_LLTYPE_H__
    3738
    38 #include <sys/types.h>
     39#include <stdint.h>
    3940
    40 void gcons_init(int);
     41#define HALF_BIT_CNT (sizeof(int32_t) * sizeof(char))
     42#define WHOLE_BIT_CNT (sizeof(int64_t) * sizeof(char))
    4143
    42 void gcons_redraw_console(void);
    43 void gcons_change_console(size_t);
    44 void gcons_notify_char(size_t);
    45 void gcons_in_kernel(void);
     44#ifdef __BE__
     45        #define LO 1
     46        #define HI 0
     47#else
     48        #define LO 0
     49        #define HI 1
     50#endif
    4651
    47 void gcons_notify_connect(size_t);
    48 void gcons_notify_disconnect(size_t);
    49 
    50 void gcons_mouse_move(ssize_t, ssize_t);
    51 int gcons_mouse_btn(bool state);
     52union lltype {
     53        int64_t s_whole;
     54        uint64_t u_whole;
     55        int32_t s_half[2];
     56        uint32_t u_half[2];
     57};
    5258
    5359#endif
Note: See TracChangeset for help on using the changeset viewer.