Header rearrangement.

I want to get to the point where any header in include/ reflects a
standard user-level header (e.g. a POSIX header), while everything that's
specific to gPXE lives in include/gpxe/.  Headers that reflect a Linux
header (e.g. if_ether.h) should also be in include/gpxe/, with the same
name as the Linux header and, preferably, the same names used for the
definitions.
This commit is contained in:
Michael Brown
2006-04-24 15:42:49 +00:00
parent 53f78346bf
commit 824d6ffa7f
60 changed files with 108 additions and 89 deletions

View File

@@ -2,7 +2,7 @@
#include "string.h"
#include "console.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
/*
* pci_io.c may know how many buses we have, in which case it can

View File

@@ -27,7 +27,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "3c595.h"
#include "timer.h"

View File

@@ -39,7 +39,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
static struct nic_operations a3c90x_operations;

View File

@@ -31,7 +31,7 @@
#include "etherboot.h"
#include "nic.h"
#include "mii.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#include "string.h"
#include "stdint.h"

View File

@@ -43,7 +43,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#undef DAVICOM_DEBUG
#undef DAVICOM_DEBUG_WHERE

View File

@@ -41,7 +41,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
/* #define EDEBUG 1 */

View File

@@ -52,7 +52,7 @@ Drivers are port from Intel's Linux driver e1000-4.3.15
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
typedef unsigned char *dma_addr_t;

View File

@@ -105,7 +105,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
static int ioaddr;

View File

@@ -5,7 +5,7 @@
#define LINUX_OUT_MACROS
#include "etherboot.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "nic.h"
#include "timer.h"
#include "console.h"

View File

@@ -18,7 +18,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#define dma_addr_t unsigned long
#include "etherfabric.h"

View File

@@ -48,7 +48,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
/* Include timer support functions */
#include "timer.h"
#include "mii.h"

View File

@@ -21,7 +21,7 @@
#include "mt23108.h"
#include "ib_driver.h"
#include "pci.h"
#include <gpxe/pci.h>
struct device_buffers_st {
union recv_wqe_u mads_qp_rcv_queue[NUM_MADS_RCV_WQES]

View File

@@ -21,7 +21,7 @@
#include "mt25218.h"
#include "ib_driver.h"
#include "pci.h"
#include <gpxe/pci.h>
#define MOD_INC(counter, max_count) (counter) = ((counter)+1) & ((max_count) - 1)

View File

@@ -15,7 +15,7 @@ Skeleton NIC driver for Etherboot
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
/* to get the ISA support functions, if this is an ISA NIC */
#include "isa.h"

View File

@@ -15,7 +15,7 @@ Skeleton NIC driver for Etherboot
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
/* to get the ISA support functions, if this is an ISA NIC */
#include "isa.h"

View File

@@ -28,7 +28,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
/* Condensed operations for readability. */
#define virt_to_le32desc(addr) cpu_to_le32(virt_to_bus(addr))

View File

@@ -55,7 +55,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
/* defines */

View File

@@ -40,7 +40,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#if ARCH == ia64 /* Support 64-bit addressing */
#define USE_64BIT_ADDR

View File

@@ -33,7 +33,7 @@ SMC8416 PIO support added by Andrew Bettison (andrewb@zip.com.au) on 4/3/02
#include "nic.h"
#include "ns8390.h"
#ifdef INCLUDE_NS8390
#include "pci.h"
#include <gpxe/pci.h>
#else
#include "isa.h"
#endif

View File

@@ -44,7 +44,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
/* Include the time functions */
#include "timer.h"
#include "mii.h"

View File

@@ -18,7 +18,7 @@ $Id$
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
/*
* Hard-coded SSID

View File

@@ -14,7 +14,7 @@ $Id$
* your option) any later version.
*/
#include "pci.h"
#include <gpxe/pci.h>
#include "nic.h"
#define WLAN_HOSTIF WLAN_PCI

View File

@@ -14,7 +14,7 @@ $Id$
* your option) any later version.
*/
#include "pci.h"
#include <gpxe/pci.h>
#include "nic.h"
#define WLAN_HOSTIF WLAN_PLX

View File

@@ -49,7 +49,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#define drv_version "v1.6"

View File

@@ -64,7 +64,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#define RTL_TIMEOUT (1*TICKS_PER_SEC)

View File

@@ -45,7 +45,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#include "sis900.h"

View File

@@ -15,7 +15,7 @@ Skeleton NIC driver for Etherboot
/* to get the interface to the body of the program */
#include "nic.h"
/* Drag in support for whichever bus(es) we want for this NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "isa.h"
#include "eisa.h"
#include "isapnp.h"

View File

@@ -45,7 +45,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#include "mii.h"

View File

@@ -14,7 +14,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#include "string.h"
#include "tg3.h"

View File

@@ -43,7 +43,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
#include "tlan.h"

View File

@@ -108,7 +108,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
/* User settable parameters */

View File

@@ -48,7 +48,7 @@ static const char *version = "rhine.c v1.0.2 2004-10-29\n";
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
/* define all ioaddr */

View File

@@ -43,7 +43,7 @@
/* to get the interface to the body of the program */
#include "nic.h"
/* to get the PCI support functions, if this is a PCI NIC */
#include "pci.h"
#include <gpxe/pci.h>
#include "via-velocity.h"

View File

@@ -79,7 +79,7 @@
#include "etherboot.h"
#include "nic.h"
#include "pci.h"
#include <gpxe/pci.h>
#include "timer.h"
static const char *w89c840_version = "driver Version 0.94 - December 12, 2003";