Split off programmer.h from flash.h

Programmer specific functions are of absolutely no interest to any file
except those dealing with programmer specific actions (special SPI
commands and the generic core).

The new header structure is as follows (and yes, improvements are
possible):
flashchips.h  flash chip IDs
chipdrivers.h  chip-specific read/write/... functions
flash.h  common header for all stuff that doesn't fit elsewhere
hwaccess.h hardware access functions
programmer.h  programmer specific functions
coreboot_tables.h  header from coreboot, internal programmer only
spi.h SPI command definitions

Corresponding to flashrom svn r1112.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Carl-Daniel Hailfinger
2010-07-27 22:41:39 +00:00
parent 1d3a2fefbc
commit 5b997c3ed6
35 changed files with 593 additions and 527 deletions
+1
View File
@@ -22,6 +22,7 @@
#include <string.h>
#include <sys/types.h>
#include "flash.h"
#include "programmer.h"
#define BIOS_ROM_ADDR 0x90
#define BIOS_ROM_DATA 0x94
+1
View File
@@ -24,6 +24,7 @@
#include <ctype.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "spi.h"
/* Length of half a clock period in usecs. */
+1
View File
@@ -26,6 +26,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#if defined(__i386__) || defined(__x86_64__)
/*
+1
View File
@@ -24,6 +24,7 @@
#include <ctype.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "spi.h"
/* Change this to #define if you want to test without a serial implementation */
+1
View File
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "coreboot_tables.h"
char *lb_part = NULL, *lb_vendor = NULL;
+1
View File
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <unistd.h>
#include "flash.h"
#include "programmer.h"
#define NOT_DONE_YET 1
+1
View File
@@ -30,6 +30,7 @@
#include <getopt.h>
#include "flash.h"
#include "flashchips.h"
#include "programmer.h"
static void cli_classic_usage(const char *name)
{
+1
View File
@@ -21,6 +21,7 @@
#include <usb.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "spi.h"
#define DEFAULT_TIMEOUT 3000
+1
View File
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
int has_dmi_support = 0;
+1
View File
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#define PCI_VENDOR_ID_DRKAISER 0x1803
+1
View File
@@ -24,6 +24,7 @@
#include <sys/types.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
static void tolower_string(char *str)
{
-525
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -33,6 +33,7 @@
#endif
#include "flash.h"
#include "flashchips.h"
#include "programmer.h"
const char * const flashrom_version = FLASHROM_VERSION;
char *chip_to_probe = NULL;
+1
View File
@@ -27,6 +27,7 @@
#include <ctype.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "spi.h"
#include <ftdi.h>
+1
View File
@@ -22,6 +22,7 @@
#include <string.h>
#include <sys/types.h>
#include "flash.h"
#include "programmer.h"
#define PCI_VENDOR_ID_NVIDIA 0x10de
+1
View File
@@ -38,6 +38,7 @@
#include <string.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "spi.h"
/* ICH9 controller register definition */
+1
View File
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include "flash.h"
#include "programmer.h"
#if NEED_PCI == 1
struct pci_dev *pci_dev_find_filter(struct pci_filter filter)
+1
View File
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "spi.h"
#define ITE_SUPERIO_PORT1 0x2e
+1
View File
@@ -23,6 +23,7 @@
#include <string.h>
#include <ctype.h>
#include "flash.h"
#include "programmer.h"
#if CONFIG_INTERNAL == 1
char *mainboard_vendor = NULL;
+1
View File
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#define BIOS_ROM_ADDR 0x04
#define BIOS_ROM_DATA 0x08

Some files were not shown because too many files have changed in this diff Show More