| Nico Huber | 6bd4f10 | 2026-02-22 23:28:13 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the flashrom project. |
| 3 | * |
| 4 | * Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __CHIPDRIVERS_EDI_H__ |
| 18 | #define __CHIPDRIVERS_EDI_H__ 1 |
| 19 | |
| 20 | #include <stdint.h> |
| 21 | |
| 22 | struct flashprog_flashctx; |
| 23 | |
| 24 | int edi_chip_block_erase(struct flashprog_flashctx *, unsigned int page, unsigned int size); |
| 25 | int edi_chip_write(struct flashprog_flashctx *, const uint8_t *buf, unsigned int start, unsigned int len); |
| 26 | int edi_chip_read(struct flashprog_flashctx *, uint8_t *buf, unsigned int start, unsigned int len); |
| 27 | int edi_probe_kb9012(struct flashprog_flashctx *); |
| 28 | |
| 29 | #endif /* !__CHIPDRIVERS_EDI_H__ */ |