xref: /openbmc/qemu/include/exec/target_page.h (revision 390e8fc6b0e7b521c9eceb8dfe0958e141009ab9)
151180423SJuan Quintela /*
251180423SJuan Quintela  * Target page sizes and friends for non target files
351180423SJuan Quintela  *
451180423SJuan Quintela  * Copyright (c) 2017 Red Hat Inc
551180423SJuan Quintela  *
651180423SJuan Quintela  * Authors:
751180423SJuan Quintela  *  David Alan Gilbert <dgilbert@redhat.com>
851180423SJuan Quintela  *  Juan Quintela <quintela@redhat.com>
951180423SJuan Quintela  *
1051180423SJuan Quintela  * This work is licensed under the terms of the GNU GPL, version 2 or later.
1151180423SJuan Quintela  * See the COPYING file in the top-level directory.
1251180423SJuan Quintela  */
1351180423SJuan Quintela 
1451180423SJuan Quintela #ifndef EXEC_TARGET_PAGE_H
1551180423SJuan Quintela #define EXEC_TARGET_PAGE_H
1651180423SJuan Quintela 
1751180423SJuan Quintela size_t qemu_target_page_size(void);
18*b3b408ffSPhilippe Mathieu-Daudé int qemu_target_page_mask(void);
1946d702b1SJuan Quintela int qemu_target_page_bits(void);
2046d702b1SJuan Quintela int qemu_target_page_bits_min(void);
2151180423SJuan Quintela 
2262c5e181SJuan Quintela size_t qemu_target_pages_to_MiB(size_t pages);
2351180423SJuan Quintela #endif
24