1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-10-18 08:11:23 +02:00
Files
flashrom/include/parallel.h
Antonio Vázquez 08d9c383ac parallel.h: Extract parallel declarations to a separate header
This patch moves all the declarations relevant to parallel into their own
header in include/parallel.h
The corresponding functions implementations are already in parallel.c,
so the declarations naturally can be in parallel.h
Currently, most of the declarations reside in flash.h making it difficult
to really understand file dependency.

Change-Id: I69f6e224a7ece373fbd6606e802930a52da1dd85
Signed-off-by: Antonio Vázquez <antoniovazquezblanco@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/89503
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-10-16 02:11:21 +00:00

21 lines
834 B
C

/*
* This file is part of the flashrom project.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __PARALLEL_H__
#define __PARALLEL_H__ 1
#include "flash.h"
void chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr);
void chip_writew(const struct flashctx *flash, uint16_t val, chipaddr addr);
void chip_writel(const struct flashctx *flash, uint32_t val, chipaddr addr);
void chip_writen(const struct flashctx *flash, const uint8_t *buf, chipaddr addr, size_t len);
uint8_t chip_readb(const struct flashctx *flash, const chipaddr addr);
uint16_t chip_readw(const struct flashctx *flash, const chipaddr addr);
uint32_t chip_readl(const struct flashctx *flash, const chipaddr addr);
void chip_readn(const struct flashctx *flash, uint8_t *buf, const chipaddr addr, size_t len);
#endif /* !__PARALLEL_H__ */