1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-10-27 19:32:11 +01:00

serial.h: Extract serial declarations to a separate header

This patch moves all the declarations relevant to serial into their own
header in include/serial.h.
The corresponding functions implementations are already in serial.c,
so the declarations naturally can be in serial.h
Currently, most of the declarations reside in flash.h making it difficult
to really understand file dependency.

Change-Id: Id0b4d188e2a94dbc4d90747c05eabca39c6b3f26
Signed-off-by: Antonio Vázquez <antoniovazquezblanco@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/89650
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Antonio Vázquez
2025-10-20 23:10:19 +02:00
committed by Anastasia Klimchuk
parent db43ab2989
commit 78ef763042
7 changed files with 61 additions and 48 deletions

View File

@@ -15,6 +15,8 @@
* GNU General Public License for more details.
*/
#include "serial.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>