xref: /openbmc/qemu/bsd-user/freebsd/qemu-os.h (revision bf616ce4)
1 /*
2  *  FreeBSD conversion extern declarations
3  *
4  *  Copyright (c) 2013 Stacey D. Son
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef QEMU_OS_H
21 #define QEMU_OS_H
22 
23 /* qemu/osdep.h pulls in the rest */
24 
25 #include <sys/acl.h>
26 #include <sys/mount.h>
27 #include <sys/timex.h>
28 #include <sys/rtprio.h>
29 #include <sys/select.h>
30 #include <sys/socket.h>
31 #include <netinet/in.h>
32 
33 struct freebsd11_stat;
34 
35 /* os-stat.c */
36 abi_long h2t_freebsd11_stat(abi_ulong target_addr,
37         struct freebsd11_stat *host_st);
38 abi_long h2t_freebsd11_nstat(abi_ulong target_addr,
39         struct freebsd11_stat *host_st);
40 abi_long t2h_freebsd_fhandle(fhandle_t *host_fh, abi_ulong target_addr);
41 abi_long h2t_freebsd_fhandle(abi_ulong target_addr, fhandle_t *host_fh);
42 abi_long h2t_freebsd11_statfs(abi_ulong target_addr,
43     struct freebsd11_statfs *host_statfs);
44 abi_long target_to_host_fcntl_cmd(int cmd);
45 abi_long h2t_freebsd_stat(abi_ulong target_addr,
46         struct stat *host_st);
47 abi_long h2t_freebsd_statfs(abi_ulong target_addr,
48     struct statfs *host_statfs);
49 
50 #endif /* QEMU_OS_H */
51