Changeset 432a269 in mainline for uspace/lib/softint/include/lltype.h
- Timestamp:
- 2011-09-16T21:13:57Z (13 years ago)
- 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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softint/include/lltype.h
rc0e53ff r432a269 1 1 /* 2 * Copyright (c) 20 06 Ondrej Palkovsky2 * Copyright (c) 2011 Petr Koupy 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup console29 /** @addtogroup softint 30 30 * @{ 31 31 */ 32 /** @file 32 /** 33 * @file Abstraction over 64-bit integral type to allow simple manipulation. 33 34 */ 34 35 35 #ifndef GCONS_H_36 #define GCONS_H_36 #ifndef __SOFTINT_LLTYPE_H__ 37 #define __SOFTINT_LLTYPE_H__ 37 38 38 #include <s ys/types.h>39 #include <stdint.h> 39 40 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)) 41 43 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 46 51 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); 52 union lltype { 53 int64_t s_whole; 54 uint64_t u_whole; 55 int32_t s_half[2]; 56 uint32_t u_half[2]; 57 }; 52 58 53 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.