Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / clients / net-snk / include / kernel.h
1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  *     IBM Corporation - initial implementation
11  *****************************************************************************/
12
13 #ifndef KERNEL_H
14 #define KERNEL_H
15
16 #include <stddef.h>
17 #include <stdint.h>
18 #include <unistd.h>
19 #include <string.h>
20 #include <stdio.h>
21 #include <of.h>
22
23 uint64_t get_time(void);
24 int getchar(void);
25
26 void *malloc_aligned(size_t size, int align);
27
28 int pre_open_ih(int fd, ihandle_t ih);
29
30 void exception_forward(void);
31 void undo_exception(void);
32
33 #endif