summaryrefslogtreecommitdiffstats
path: root/serprog.h
diff options
context:
space:
mode:
authorFelix Singer <felix.singer@secunet.com>2021-10-13 13:40:07 +0200
committerNico Huber <nico.h@gmx.de>2021-10-15 14:31:34 +0000
commit8c768c2191c078d30a8053b783226bf662e651ea (patch)
tree954cde471b5310e1b6f8fa9b9466705ccbb0e26b /serprog.h
parent638123045b68da96f97509a614d215d52b5b17ca (diff)
downloadflashrom-8c768c2191c078d30a8053b783226bf662e651ea.tar.gz
flashrom-8c768c2191c078d30a8053b783226bf662e651ea.tar.bz2
flashrom-8c768c2191c078d30a8053b783226bf662e651ea.zip
serprog: Move content of programmer specific header to C file
Move the programmer specific code into serprog.c and remove its related header file. Change-Id: I5c65f43db200129489d487ff948daa08bd0e92fa Signed-off-by: Felix Singer <felix.singer@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58300 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'serprog.h')
-rw-r--r--serprog.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/serprog.h b/serprog.h
deleted file mode 100644
index b54aaeae2..000000000
--- a/serprog.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* According to Serial Flasher Protocol Specification - version 1 */
-#define S_ACK 0x06
-#define S_NAK 0x15
-#define S_CMD_NOP 0x00 /* No operation */
-#define S_CMD_Q_IFACE 0x01 /* Query interface version */
-#define S_CMD_Q_CMDMAP 0x02 /* Query supported commands bitmap */
-#define S_CMD_Q_PGMNAME 0x03 /* Query programmer name */
-#define S_CMD_Q_SERBUF 0x04 /* Query Serial Buffer Size */
-#define S_CMD_Q_BUSTYPE 0x05 /* Query supported bustypes */
-#define S_CMD_Q_CHIPSIZE 0x06 /* Query supported chipsize (2^n format) */
-#define S_CMD_Q_OPBUF 0x07 /* Query operation buffer size */
-#define S_CMD_Q_WRNMAXLEN 0x08 /* Query Write to opbuf: Write-N maximum length */
-#define S_CMD_R_BYTE 0x09 /* Read a single byte */
-#define S_CMD_R_NBYTES 0x0A /* Read n bytes */
-#define S_CMD_O_INIT 0x0B /* Initialize operation buffer */
-#define S_CMD_O_WRITEB 0x0C /* Write opbuf: Write byte with address */
-#define S_CMD_O_WRITEN 0x0D /* Write to opbuf: Write-N */
-#define S_CMD_O_DELAY 0x0E /* Write opbuf: udelay */
-#define S_CMD_O_EXEC 0x0F /* Execute operation buffer */
-#define S_CMD_SYNCNOP 0x10 /* Special no-operation that returns NAK+ACK */
-#define S_CMD_Q_RDNMAXLEN 0x11 /* Query read-n maximum length */
-#define S_CMD_S_BUSTYPE 0x12 /* Set used bustype(s). */
-#define S_CMD_O_SPIOP 0x13 /* Perform SPI operation. */
-#define S_CMD_S_SPI_FREQ 0x14 /* Set SPI clock frequency */
-#define S_CMD_S_PIN_STATE 0x15 /* Enable/disable output drivers */