blob: 7563f7481d583710e75e409d865c753e2dd9f0c3 [file] [log] [blame] [edit]
/*
* This file is part of the flashprog project.
*
* Copyright (C) 2023 Nico Huber <nico.h@gmx.de>
*
* 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 __PROBING_H__
#define __PROBING_H__ 1
#include <stdint.h>
enum id_type {
ID_FIXME = 0,
ID_NONE,
ID_82802AB,
ID_EDI,
ID_EN29LV640B,
ID_JEDEC,
ID_JEDEC_29GL,
ID_OPAQUE,
ID_SPI_AT25F,
ID_SPI_RDID,
ID_SPI_RDID4,
ID_SPI_REMS,
ID_SPI_RES1,
ID_SPI_RES2,
ID_SPI_RES3,
ID_SPI_SFDP,
ID_SPI_ST95,
ID_W29EE011,
};
/*
* With 32bit manufacture_id and model_id we can cover IDs up to
* (including) the 4th bank of JEDEC JEP106W Standard Manufacturer's
* Identification code.
*/
struct id_info {
uint32_t manufacture;
uint32_t model;
enum id_type type;
};
#endif /* !__PROBING_H__ */