A lot of the v3 header files require other header files to be #included

before they can be #included. That is completely counter-intuitive. Add 
necessary #includes to the header files themselves.

Fix a few cases where nonexisting files were #included.

Compile tested on Qemu and Alix1C.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@611 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Carl-Daniel Hailfinger 2008-02-19 00:34:32 +00:00
parent 975d9ef2ef
commit 31a9e22fa4
14 changed files with 21 additions and 2 deletions

View file

@ -20,7 +20,6 @@
*/
#include <console.h>
#include <stdint.h>
#include <device/device.h>
#include <device/path.h>
#include <device/smbus.h>

View file

@ -20,6 +20,8 @@
#ifndef CPU_X86_MSR_H
#define CPU_X86_MSR_H
#include <types.h>
/* standard MSR operations, everyone has written these one hundred times */
struct msr {
u32 lo;

View file

@ -17,6 +17,8 @@
#ifndef ARCH_X86_PCI_OPS_H
#define ARCH_X86_PCI_OPS_H
#include <device/device.h>
extern const struct pci_bus_operations pci_cf8_conf1;
extern const struct pci_bus_operations pci_cf8_conf2;

View file

@ -21,6 +21,8 @@
#ifndef ARCH_PIRQ_ROUTING_H
#define ARCH_PIRQ_ROUTING_H
#include <types.h>
#define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24))
#define PIRQ_VERSION 0x0100

View file

@ -19,6 +19,8 @@
#ifndef DEVICE_AGP_H
#define DEVICE_AGP_H
#include <device/device.h>
unsigned int agp_scan_bus(struct bus *bus,
unsigned min_devfn, unsigned max_devfn, unsigned int max);
unsigned int agp_scan_bridge(struct device *dev, unsigned int max);

View file

@ -19,6 +19,8 @@
#ifndef DEVICE_CARDBUS_H
#define DEVICE_CARDBUS_H
#include <device/device.h>
void cardbus_read_resources(struct device *dev);
unsigned int cardbus_scan_bus(struct bus *bus,
unsigned min_devfn, unsigned max_devfn, unsigned int max);

View file

@ -18,6 +18,7 @@
#ifndef DEVICE_HYPERTRANSPORT_H
#define DEVICE_HYPERTRANSPORT_H
#include <device/device.h>
#include <device/hypertransport_def.h>
unsigned int hypertransport_scan_chain(struct bus *bus,

View file

@ -19,6 +19,7 @@
#include <types.h>
#include <byteorder.h>
#include <device/device.h>
#define PCI_ROM_HDR 0xAA55
#define PCI_DATA_HDR (u32) ( ('R' << 24) | ('I' << 16) | ('C' << 8) | 'P' )

View file

@ -20,6 +20,8 @@
#ifndef DEVICE_PCIE_H
#define DEVICE_PCIE_H
#include <device/device.h>
unsigned int pcie_scan_bus(struct bus *bus,
unsigned min_devfn, unsigned max_devfn, unsigned int max);
unsigned int pcie_scan_bridge(struct device *dev, unsigned int max);

View file

@ -18,6 +18,8 @@
#ifndef DEVICE_PCIX_H
#define DEVICE_PCIX_H
#include <device/device.h>
/* (c) 2005 Linux Networx GPL see COPYING for details */
unsigned int pcix_scan_bus(struct bus *bus,

View file

@ -18,7 +18,6 @@
#ifndef DEVICE_SMBUS_H
#define DEVICE_SMBUS_H
#include <stdint.h>
#include <device/device.h>
#include <device/path.h>
#include <device/smbus_def.h>

View file

@ -21,6 +21,7 @@
#ifndef POST_CODE_H
#define POST_CODE_H
#include <types.h>
#include <shared.h>
SHARED(post_code, void, u8 value);

View file

@ -36,6 +36,8 @@
#ifndef _SPD_H_
#define _SPD_H_
#include <types.h>
/* Byte numbers. */
#define SPD_NUM_MANUFACTURER_BYTES 0 /* Number of bytes used by module manufacturer */
#define SPD_TOTAL_SPD_MEMORY_SIZE 1 /* Total SPD memory size */

View file

@ -21,6 +21,8 @@
#ifndef NORTHBRIDGE_INTEL_I440BXEMULATION_I440BX_H
#define NORTHBRIDGE_INTEL_I440BXEMULATION_I440BX_H
#include <device/device.h>
/*
* Datasheet:
* - Name: Intel 440BX AGPset: 82443BX Host Bridge/Controller