mirror of
https://github.com/Dasharo/flashrom.git
synced 2026-03-06 14:49:20 -08:00
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:
@@ -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
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
/*
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
|
||||
#define NOT_DONE_YET 1
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <getopt.h>
|
||||
#include "flash.h"
|
||||
#include "flashchips.h"
|
||||
#include "programmer.h"
|
||||
|
||||
static void cli_classic_usage(const char *name)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <usb.h>
|
||||
#include "flash.h"
|
||||
#include "chipdrivers.h"
|
||||
#include "programmer.h"
|
||||
#include "spi.h"
|
||||
|
||||
#define DEFAULT_TIMEOUT 3000
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
|
||||
int has_dmi_support = 0;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
|
||||
#define PCI_VENDOR_ID_DRKAISER 0x1803
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <sys/types.h>
|
||||
#include "flash.h"
|
||||
#include "chipdrivers.h"
|
||||
#include "programmer.h"
|
||||
|
||||
static void tolower_string(char *str)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <ctype.h>
|
||||
#include "flash.h"
|
||||
#include "chipdrivers.h"
|
||||
#include "programmer.h"
|
||||
#include "spi.h"
|
||||
#include <ftdi.h>
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
|
||||
#define PCI_VENDOR_ID_NVIDIA 0x10de
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <string.h>
|
||||
#include "flash.h"
|
||||
#include "chipdrivers.h"
|
||||
#include "programmer.h"
|
||||
#include "spi.h"
|
||||
|
||||
/* ICH9 controller register definition */
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
#include "chipdrivers.h"
|
||||
#include "programmer.h"
|
||||
#include "spi.h"
|
||||
|
||||
#define ITE_SUPERIO_PORT1 0x2e
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
|
||||
#if CONFIG_INTERNAL == 1
|
||||
char *mainboard_vendor = NULL;
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user