mirror of
https://review.coreboot.org/flashrom.git
synced 2025-11-13 19:20:41 +01:00
Change-Id: Ic24a54ab520053e49efcba02bd9fa5b8ce69b20a Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/89956 Reviewed-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> Reviewed-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
29 lines
704 B
C
29 lines
704 B
C
/*
|
|
* This file is part of the flashrom project.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
* SPDX-FileCopyrightText: 2009 Carl-Daniel Hailfinger
|
|
* SPDX-FileCopyrightText: 2022 secunet Security Networks AG (Written by Thomas Heijligen <thomas.heijligen@secunet.com)
|
|
*/
|
|
|
|
/*
|
|
* This file contains prototypes for x86 I/O Port access.
|
|
*/
|
|
|
|
#ifndef __HWACCESS_X86_IO_H__
|
|
#define __HWACCESS_X86_IO_H__ 1
|
|
|
|
#include <stdint.h>
|
|
/**
|
|
*/
|
|
int rget_io_perms(void);
|
|
|
|
void OUTB(uint8_t value, uint16_t port);
|
|
void OUTW(uint16_t value, uint16_t port);
|
|
void OUTL(uint32_t value, uint16_t port);
|
|
uint8_t INB(uint16_t port);
|
|
uint16_t INW(uint16_t port);
|
|
uint32_t INL(uint16_t port);
|
|
|
|
#endif /* __HWACCESS_X86_IO_H__ */
|