Rev 954 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 954 | Rev 1026 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | void* STDCALL CreateRingBuffer(size_t size, u32_t map)__asm__("CreateRingBuffer"); |
47 | void* STDCALL CreateRingBuffer(size_t size, u32_t map)__asm__("CreateRingBuffer"); |
Line 48... | Line 48... | ||
48 | 48 | ||
Line -... | Line 49... | ||
- | 49 | u32_t STDCALL RegService(char *name, srv_proc_t proc)__asm__("RegService"); |
|
- | 50 | ||
- | 51 | int STDCALL AttachIntHandler(int irq, void *handler, u32_t access) __asm__("AttachIntHandler"); |
|
49 | u32_t STDCALL RegService(char *name, srv_proc_t proc)__asm__("RegService"); |
52 | |
50 | 53 | ||
Line 51... | Line 54... | ||
51 | //void *CreateObject(u32 pid, size_t size); |
54 | //void *CreateObject(u32 pid, size_t size); |
Line 52... | Line 55... | ||
52 | //void *DestroyObject(void *obj); |
55 | //void *DestroyObject(void *obj); |
Line 53... | Line 56... | ||
53 | 56 | ||
54 | addr_t STDCALL MapIoMem(void* base,size_t size,u32_t flags)__asm__("MapIoMem"); |
57 | addr_t STDCALL MapIoMem(addr_t base, size_t size, u32_t flags)__asm__("MapIoMem"); |
Line 269... | Line 272... | ||
269 | __asm__ __volatile__ |
272 | __asm__ __volatile__ |
270 | ("outl %1, %0\n" : : "dN"(port), "a"(val)); |
273 | ("outl %1, %0\n" : : "dN"(port), "a"(val)); |
271 | } |
274 | } |
272 | 275 | ||
Line -... | Line 276... | ||
- | 276 | extern inline u8_t in8(const u16_t port) |
|
- | 277 | { |
|
- | 278 | u8_t tmp; |
|
- | 279 | __asm__ __volatile__ |
|
- | 280 | ("inb %1, %0\n" : "=a"(tmp) : "dN"(port)); |
|
- | 281 | return tmp; |
|
- | 282 | }; |
|
- | 283 | ||
273 | extern inline u16_t in16(const u16_t port) |
284 | extern inline u16_t in16(const u16_t port) |
274 | { |
285 | { |
275 | u16_t tmp; |
286 | u16_t tmp; |
276 | __asm__ __volatile__ |
287 | __asm__ __volatile__ |
277 | ("inw %1, %0\n" : "=a"(tmp) : "dN"(port)); |
288 | ("inw %1, %0\n" : "=a"(tmp) : "dN"(port)); |