/
githubmirror
/
flashrom
Обзор
Документация
Войти
/
githubmirror
/
flashrom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
include/par_mmio.h
26 строк
642 B
Abdelkader Boudih
par_mmio: Add shared MMIO accessors for parallel PCI drivers
22 июл 2026, 05:50
22 июл 2026, 05:50
f9e9dd8
Код
Авторство
О чём код?
/* * This file is part of the flashrom project. * * SPDX-License-Identifier: GPL-2.0-only */ #ifndef __PAR_MMIO_H__ #define __PAR_MMIO_H__ 1 #include "flash.h" #include <stdint.h> /* * Shared state for memory-mapped parallel programmers. Embed it as the first * member of the driver data struct so that par_mmio_chip_readb()/writeb() can * recover the mapping from par.data. */ struct par_mmio_data { uint8_t *bar; uint32_t mask; }; void par_mmio_chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr); uint8_t par_mmio_chip_readb(const struct flashctx *flash, const chipaddr addr); #endif /* !__PAR_MMIO_H__ */