flashrom 

flashrom Svn Source Tree

Root/trunk/serprog.h

  • Property svn:eol-style set to native
1/* According to Serial Flasher Protocol Specification - version 1 */
2#define S_ACK 0x06
3#define S_NAK 0x15
4#define S_CMD_NOP0x00/* No operation*/
5#define S_CMD_Q_IFACE0x01/* Query interface version*/
6#define S_CMD_Q_CMDMAP0x02/* Query supported commands bitmap*/
7#define S_CMD_Q_PGMNAME0x03/* Query programmer name*/
8#define S_CMD_Q_SERBUF0x04/* Query Serial Buffer Size*/
9#define S_CMD_Q_BUSTYPE0x05/* Query supported bustypes*/
10#define S_CMD_Q_CHIPSIZE0x06/* Query supported chipsize (2^n format)*/
11#define S_CMD_Q_OPBUF0x07/* Query operation buffer size*/
12#define S_CMD_Q_WRNMAXLEN0x08/* Query Write to opbuf: Write-N maximum length */
13#define S_CMD_R_BYTE0x09/* Read a single byte*/
14#define S_CMD_R_NBYTES0x0A/* Read n bytes*/
15#define S_CMD_O_INIT0x0B/* Initialize operation buffer*/
16#define S_CMD_O_WRITEB0x0C/* Write opbuf: Write byte with address*/
17#define S_CMD_O_WRITEN0x0D/* Write to opbuf: Write-N*/
18#define S_CMD_O_DELAY0x0E/* Write opbuf: udelay*/
19#define S_CMD_O_EXEC0x0F/* Execute operation buffer*/
20#define S_CMD_SYNCNOP0x10/* Special no-operation that returns NAK+ACK*/
21#define S_CMD_Q_RDNMAXLEN0x11/* Query read-n maximum length*/
22#define S_CMD_S_BUSTYPE0x12/* Set used bustype(s).*/
23#define S_CMD_O_SPIOP0x13/* Perform SPI operation.*/
24#define S_CMD_S_SPI_FREQ0x14/* Set SPI clock frequency*/
25#define S_CMD_S_PIN_STATE0x15/* Enable/disable output drivers*/

Archive Download this file

Revision: HEAD