1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 14:42:36 +02:00

Hide hwaccess.h from public API

Move hwaccess.h #include from flash.h to individual drivers.
libflashrom users need flash.h, but they do not care about hwaccess.h
and should not see its definitions because they may conflict with
other hardware access functions and #defines used by the libflashrom
user.

Corresponding to flashrom svn r1549.

Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Patrick Georgi 2012-07-20 20:35:14 +00:00 committed by Carl-Daniel Hailfinger
parent 3834c2d7e5
commit 32508eb304
26 changed files with 26 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define BIOS_ROM_ADDR 0x90
#define BIOS_ROM_DATA 0x94

View File

@ -27,6 +27,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#if defined(__i386__) || defined(__x86_64__)
/*

View File

@ -34,6 +34,7 @@
#include <errno.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define NOT_DONE_YET 1

View File

@ -21,6 +21,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_DRKAISER 0x1803

View File

@ -26,7 +26,6 @@
#include <stdint.h>
#include <stddef.h>
#include "hwaccess.h"
#ifdef _WIN32
#include <windows.h>
#undef min

View File

@ -22,6 +22,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_NVIDIA 0x10de

View File

@ -30,6 +30,7 @@
#include <errno.h>
#endif
#include "flash.h"
#include "hwaccess.h"
#if defined(__i386__) || defined(__x86_64__)

View File

@ -29,6 +29,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#include "spi.h"
#include "ich_descriptors.h"

View File

@ -22,6 +22,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#if NEED_PCI == 1
struct pci_dev *pci_dev_find_filter(struct pci_filter filter)

View File

@ -32,6 +32,7 @@
#include "flash.h"
#include "spi.h"
#include "programmer.h"
#include "hwaccess.h"
#define MAX_TIMEOUT 100000
#define MAX_TRY 5

View File

@ -30,6 +30,7 @@
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "hwaccess.h"
#include "spi.h"
#define ITE_SUPERIO_PORT1 0x2e

View File

@ -29,6 +29,7 @@
#include <ctype.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
/* Bit positions for each pin. */

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define BIOS_ROM_ADDR 0x04
#define BIOS_ROM_DATA 0x08

View File

@ -22,6 +22,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
uint8_t *nicintel_bar;
uint8_t *nicintel_control_bar;

View File

@ -28,6 +28,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_INTEL 0x8086

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_NATSEMI 0x100b

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_REALTEK 0x10ec
#define PCI_VENDOR_ID_SMC1211 0x1113

View File

@ -21,6 +21,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_OGP 0x1227

View File

@ -23,6 +23,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
uint32_t io_base_addr;
struct pci_access *pacc;

View File

@ -25,6 +25,7 @@
#include <stdlib.h>
#include <string.h>
#include "flash.h"
#include "hwaccess.h"
/* Do we need any file access or ioctl for physmap or MSR? */
#if !defined(__DJGPP__) && !defined(__LIBPAYLOAD__)

View File

@ -144,6 +144,7 @@ struct bitbang_spi_master {
};
#if CONFIG_INTERNAL == 1
struct pci_dev;
struct penable {
uint16_t vendor_id;
uint16_t device_id;
@ -294,6 +295,7 @@ extern int superio_count;
#define SUPERIO_VENDOR_WINBOND 0x2
#endif
#if NEED_PCI == 1
struct pci_filter;
struct pci_dev *pci_dev_find_filter(struct pci_filter filter);
struct pci_dev *pci_dev_find_vendorclass(uint16_t vendor, uint16_t devclass);
struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device);

View File

@ -34,6 +34,7 @@
#include <string.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
enum rayer_type {
TYPE_RAYER,

View File

@ -24,6 +24,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
uint8_t *mv_bar;
uint16_t mv_iobar;

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#define PCI_VENDOR_ID_SII 0x1095

View File

@ -25,6 +25,7 @@
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
#include "spi.h"
/* This struct is unused, but helps visualize the SB600 SPI BAR layout.

View File

@ -23,6 +23,7 @@
#include "flash.h"
#include "chipdrivers.h"
#include "programmer.h"
#include "hwaccess.h"
#include "spi.h"
#define WBSIO_PORT1 0x2e