diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2021-12-14 17:52:30 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-12-22 22:53:47 +0000 |
commit | b8f364bece63ad8c8e0a015f4485ad59104b3209 (patch) | |
tree | 6c5875900f09ca95a843bd50ae5b6230e44a718d /hwaccess_physmap.h | |
parent | 50720a4b0b251eb1d97d4682a4db9c2c589d6019 (diff) | |
download | flashrom-b8f364bece63ad8c8e0a015f4485ad59104b3209.tar.gz flashrom-b8f364bece63ad8c8e0a015f4485ad59104b3209.tar.bz2 flashrom-b8f364bece63ad8c8e0a015f4485ad59104b3209.zip |
physmap: rename to hwaccess_physmap, create own header
Line up physmap with the other hwaccess related code.
Change-Id: Ieba6f4e94cfc3e668fcb8b3c978de5908aed2592
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/60113
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'hwaccess_physmap.h')
-rw-r--r-- | hwaccess_physmap.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/hwaccess_physmap.h b/hwaccess_physmap.h new file mode 100644 index 00000000..eb3ddb8f --- /dev/null +++ b/hwaccess_physmap.h @@ -0,0 +1,27 @@ +/* + * This file is part of the flashrom project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __HWACCESS_PHYSMAP_H__ +#define __HWACCESS_PHYSMAP_H__ + +#include <stddef.h> +#include <stdint.h> + +void *physmap(const char *descr, uintptr_t phys_addr, size_t len); +void *rphysmap(const char *descr, uintptr_t phys_addr, size_t len); +void *physmap_ro(const char *descr, uintptr_t phys_addr, size_t len); +void *physmap_ro_unaligned(const char *descr, uintptr_t phys_addr, size_t len); +void physunmap(void *virt_addr, size_t len); +void physunmap_unaligned(void *virt_addr, size_t len); + +#endif /* __HWACCESS_PHYSMAP_H__ */
\ No newline at end of file |