Use the same naming convention and placement for "include guards" in
all header files. This closes #40, as I think we don't need to invest time to fix this in LinuxBIOSv2, but only in LinuxBIOSv3. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@332 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
a4d3de4621
commit
464ef4613d
45 changed files with 142 additions and 90 deletions
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef DEVICE_AGP_H
|
||||
#define DEVICE_AGP_H
|
||||
/* (c) 2005 Linux Networx GPL see COPYING for details */
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -18,11 +16,13 @@
|
|||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_AGP_H
|
||||
#define DEVICE_AGP_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);
|
||||
|
||||
extern struct device_operations default_agp_ops_bus;
|
||||
|
||||
|
||||
#endif /* DEVICE_AGP_H */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#ifndef DEVICE_CARDBUS_H
|
||||
#define DEVICE_CARDBUS_H
|
||||
/* (c) 2005 Linux Networx GPL see COPYING for details */
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -17,6 +15,10 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_CARDBUS_H
|
||||
#define DEVICE_CARDBUS_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);
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_H
|
||||
#define DEVICE_H
|
||||
#ifndef DEVICE_DEVICE_H
|
||||
#define DEVICE_DEVICE_H
|
||||
|
||||
#include <types.h>
|
||||
#include <device/resource.h>
|
||||
|
|
@ -276,4 +276,4 @@ void phase4_assign_resources(struct bus *bus);
|
|||
unsigned int dev_phase3(struct device * bus, unsigned int max);
|
||||
void dev_phase5(struct device *dev);
|
||||
|
||||
#endif /* DEVICE_H */
|
||||
#endif /* DEVICE_DEVICE_H */
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_HYPERTRANSPORT_H
|
||||
#define DEVICE_HYPERTRANSPORT_H
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_HYPERTRANSPORT_DEF_H
|
||||
#define DEVICE_HYPERTRANSPORT_DEF_H
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_PATH_H
|
||||
#define DEVICE_PATH_H
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,16 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_PCI_H
|
||||
#define DEVICE_PCI_H
|
||||
|
||||
#include <types.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <device/resource.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/pci_rom.h>
|
||||
|
||||
/*
|
||||
* For more information, please consult the following manuals (look at
|
||||
* http://www.pcisig.com/ for how to get them):
|
||||
|
|
@ -30,16 +40,6 @@
|
|||
* PCI System Design Guide
|
||||
*/
|
||||
|
||||
#ifndef PCI_H
|
||||
#define PCI_H
|
||||
|
||||
#include <types.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <device/resource.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <device/pci_rom.h>
|
||||
|
||||
/* Common pci operations without a standard interface */
|
||||
struct pci_operations {
|
||||
/* set the Subsystem IDs for the PCI device */
|
||||
|
|
@ -119,4 +119,4 @@ static inline const struct pci_bus_operations *ops_pci_bus(struct bus *bus)
|
|||
return bops;
|
||||
}
|
||||
|
||||
#endif /* PCI_H */
|
||||
#endif /* DEVICE_PCI_H */
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
#ifndef PCI_DEF_H
|
||||
#define PCI_DEF_H
|
||||
|
||||
#ifndef DEVICE_PCI_DEF_H
|
||||
#define DEVICE_PCI_DEF_H
|
||||
|
||||
/*
|
||||
* Under PCI, each device has 256 bytes of configuration address space,
|
||||
|
|
@ -481,4 +482,4 @@
|
|||
#define PCI_FUNC(devfn) ((devfn) & 0x07)
|
||||
#define PCI_BDF(bus,dev,func) ((bus) << 16 | (dev) << 11 | (func) << 8)
|
||||
|
||||
#endif /* PCI_DEF_H */
|
||||
#endif /* DEVICE_PCI_DEF_H */
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
* The 'Device classes and subclasses' section is copied from the Linux file.
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_PCI_IDS_H
|
||||
#define DEVICE_PCI_IDS_H
|
||||
|
||||
/*
|
||||
* PCI Class, Vendor and Device IDs
|
||||
*
|
||||
|
|
@ -145,3 +148,4 @@
|
|||
|
||||
#define PCI_VENDOR_ID_AMD 0x1022
|
||||
|
||||
#endif /* DEVICE_PCI_IDS_H */
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
#ifndef PCI_OPS_H
|
||||
#define PCI_OPS_H
|
||||
|
||||
#ifndef DEVICE_PCI_OPS_H
|
||||
#define DEVICE_PCI_OPS_H
|
||||
|
||||
#include <types.h>
|
||||
#include <device/device.h>
|
||||
|
|
@ -28,4 +29,4 @@ void pci_write_config8(struct device * dev, unsigned where, u8 val);
|
|||
void pci_write_config16(struct device * dev, unsigned where, u16 val);
|
||||
void pci_write_config32(struct device * dev, unsigned where, u32 val);
|
||||
|
||||
#endif /* PCI_OPS_H */
|
||||
#endif /* DEVICE_PCI_OPS_H */
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef PCI_ROM_H
|
||||
#define PCI_ROM_H
|
||||
#ifndef DEVICE_PCI_ROM_H
|
||||
#define DEVICE_PCI_ROM_H
|
||||
|
||||
#include <types.h>
|
||||
#include <byteorder.h>
|
||||
|
||||
|
|
@ -54,4 +55,4 @@ extern struct rom_header *pci_rom_load(struct device *dev, struct rom_header *ro
|
|||
|
||||
extern void pci_dev_init(struct device *dev);
|
||||
|
||||
#endif
|
||||
#endif /* DEVICE_PCI_ROM_H */
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
/* (c) 2005 Linux Networx GPL see COPYING for details */
|
||||
|
||||
#ifndef DEVICE_PCIE_H
|
||||
#define DEVICE_PCIE_H
|
||||
/* (c) 2005 Linux Networx GPL see COPYING for details */
|
||||
|
||||
unsigned int pcie_scan_bus(struct bus *bus,
|
||||
unsigned min_devfn, unsigned max_devfn, unsigned int max);
|
||||
|
|
|
|||
|
|
@ -14,8 +14,10 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_PCIX_H
|
||||
#define DEVICE_PCIX_H
|
||||
|
||||
/* (c) 2005 Linux Networx GPL see COPYING for details */
|
||||
|
||||
unsigned int pcix_scan_bus(struct bus *bus,
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_PNP_DEF_H
|
||||
#define DEVICE_PNP_DEF_H
|
||||
|
||||
|
|
@ -26,5 +27,4 @@
|
|||
#define PNP_IDX_DRQ0 0x74
|
||||
#define PNP_IDX_DRQ1 0x75
|
||||
|
||||
|
||||
#endif /* DEVICE_PNP_DEF_H */
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
#ifndef RESOURCE_H
|
||||
#define RESOURCE_H
|
||||
|
||||
#ifndef DEVICE_RESOURCE_H
|
||||
#define DEVICE_RESOURCE_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
|
|
@ -117,4 +118,4 @@ extern void search_global_resources(
|
|||
#define RESOURCE_TYPE_MAX 20
|
||||
extern const char *resource_type(struct resource *resource);
|
||||
|
||||
#endif /* RESOURCE_H */
|
||||
#endif /* DEVICE_RESOURCE_H */
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_SMBUS_H
|
||||
#define DEVICE_SMBUS_H
|
||||
|
||||
|
|
@ -61,5 +62,4 @@ int smbus_process_call(struct device *dev, u8 cmd, u16 data);
|
|||
int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer);
|
||||
int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer);
|
||||
|
||||
|
||||
#endif /* DEVICE_SMBUS_H */
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DEVICE_SMBUS_DEF_H
|
||||
#define DEVICE_SMBUS_DEF_H
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue