edi: Move EDI related things into new chipdrivers/edi.h

Change-Id: I592449693647587b5817614b6c6cac07e8009a89
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/421
diff --git a/include/chipdrivers/edi.h b/include/chipdrivers/edi.h
new file mode 100644
index 0000000..9cf2a28
--- /dev/null
+++ b/include/chipdrivers/edi.h
@@ -0,0 +1,29 @@
+/*
+ * This file is part of the flashrom project.
+ *
+ * Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __CHIPDRIVERS_EDI_H__
+#define __CHIPDRIVERS_EDI_H__ 1
+
+#include <stdint.h>
+
+struct flashprog_flashctx;
+
+int edi_chip_block_erase(struct flashprog_flashctx *, unsigned int page, unsigned int size);
+int edi_chip_write(struct flashprog_flashctx *, const uint8_t *buf, unsigned int start, unsigned int len);
+int edi_chip_read(struct flashprog_flashctx *, uint8_t *buf, unsigned int start, unsigned int len);
+int edi_probe_kb9012(struct flashprog_flashctx *);
+
+#endif /* !__CHIPDRIVERS_EDI_H__ */