mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 15:33:42 +02:00

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>
27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
/*
|
|
* 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__ */ |