Rev 1787 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1866 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | /** @file |
29 | /** @file |
30 | * @ingroup libcia32, libcamd64 |
30 | * @ingroup libcia32, libcamd64 |
31 | */ |
31 | */ |
32 | 32 | ||
33 | #ifndef __ia32_libc_DDI_H_ |
33 | #ifndef LIBC_ia32_DDI_H_ |
34 | #define __ia32_libc_DDI_H_ |
34 | #define LIBC_ia32_DDI_H_ |
35 | 35 | ||
36 | static inline void outb(int16_t port, uint8_t b) |
36 | static inline void outb(int16_t port, uint8_t b) |
37 | { |
37 | { |
38 | asm volatile ("outb %0, %1\n" :: "a" (b), "d" (port)); |
38 | asm volatile ("outb %0, %1\n" :: "a" (b), "d" (port)); |
39 | } |
39 | } |
Line 70... | Line 70... | ||
70 | 70 | ||
71 | asm volatile ("inl %1, %0 \n" : "=a" (val) : "d"(port)); |
71 | asm volatile ("inl %1, %0 \n" : "=a" (val) : "d"(port)); |
72 | return val; |
72 | return val; |
73 | } |
73 | } |
74 | 74 | ||
75 | - | ||
76 | #endif |
75 | #endif |