Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
#include
2
 
3
int __menuet__get_stack_config_word(void)
4
{
5
 int __ret;
6
 __asm__("int $0x40":"=a"(__ret):"a"(__NET_stack),"b"(__NET_stack_rd_cfg_word));
7
 return __ret;
8
}
9
 
10
__u32 __menuet__get_my_IP(void)
11
{
12
 __u32 __ret;
13
 __asm__("int $0x40":"=a"(__ret):"a"(__NET_stack),"b"(__NET_stack_get_ip));
14
 return __ret;
15
}
16
 
17
void __menuet__set_stack_config_word(int cfg)
18
{
19
 __asm__("int $0x40"::"a"(__NET_stack),"b"(__NET_stack_wr_cfg_word),
20
         "c"(cfg));
21
}
22
 
23
void __menuet__set_my_IP(__u32 my_IP)
24
{
25
 __asm__("int $0x40"::"a"(__NET_stack),"b"(__NET_stack_put_ip),"c"(my_IP));
26
}