Subversion Repositories Kolibri OS

Rev

Rev 3900 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3900 Rev 4102
Line 43... Line 43...
43
  int           inp_size;
43
  int           inp_size;
44
  void          *output;
44
  void          *output;
45
  int           out_size;
45
  int           out_size;
46
}ioctl_t;
46
}ioctl_t;
Line -... Line 47...
-
 
47
 
-
 
48
 
-
 
49
static inline
-
 
50
void DefineButton(uint32_t x_w, uint32_t y_h, uint32_t id, uint32_t color)
-
 
51
{
-
 
52
    __asm__ __volatile__(
-
 
53
    "int $0x40"
-
 
54
    ::"a"(8),
-
 
55
      "b"(x_w),
-
 
56
      "c"(y_h),
-
 
57
      "d"(id),
-
 
58
      "S"(color));
-
 
59
 
-
 
60
 
-
 
61
};
47
 
62
 
48
static inline
63
static inline
49
void BeginDraw(void)
64
void BeginDraw(void)
50
{
65
{
51
    __asm__ __volatile__(
66
    __asm__ __volatile__(
Line 164... Line 179...
164
    :"=a"(val)
179
    :"=a"(val)
165
    :"a"(2));
180
    :"a"(2));
166
    return val;
181
    return val;
167
}
182
}
Line -... Line 183...
-
 
183
 
-
 
184
static inline
-
 
185
uint32_t get_os_button()
-
 
186
{
-
 
187
    uint32_t val;
-
 
188
    __asm__ __volatile__(
-
 
189
    "int $0x40"
-
 
190
    :"=a"(val)
-
 
191
    :"a"(17));
-
 
192
    return val>>8;
Line 168... Line 193...
168
 
193
};
169
 
194
 
170
static inline uint32_t get_service(char *name)
195
static inline uint32_t get_service(char *name)
171
{
196
{