mirror of
https://review.coreboot.org/flashrom.git
synced 2025-10-19 00:31:23 +02:00
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>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
3461f65b23
commit
08d9c383ac
21
include/parallel.h
Normal file
21
include/parallel.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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__ */
|
Reference in New Issue
Block a user