mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
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:
@@ -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
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "etherboot.h"
|
||||
#include "nic.h"
|
||||
#include "pci.h"
|
||||
#include <gpxe/pci.h>
|
||||
#include "3c595.h"
|
||||
#include "timer.h"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include "etherboot.h"
|
||||
#include "nic.h"
|
||||
#include "pci.h"
|
||||
#include <gpxe/pci.h>
|
||||
|
||||
#undef DAVICOM_DEBUG
|
||||
#undef DAVICOM_DEBUG_WHERE
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
#include "etherboot.h"
|
||||
#include "nic.h"
|
||||
#include "pci.h"
|
||||
#include <gpxe/pci.h>
|
||||
#include "timer.h"
|
||||
|
||||
static int ioaddr;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
#include "etherboot.h"
|
||||
#include "nic.h"
|
||||
#include "pci.h"
|
||||
#include <gpxe/pci.h>
|
||||
|
||||
/* defines */
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
#include "etherboot.h"
|
||||
#include "nic.h"
|
||||
#include "pci.h"
|
||||
#include <gpxe/pci.h>
|
||||
#include "timer.h"
|
||||
|
||||
#include "sis900.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
#include "etherboot.h"
|
||||
#include "nic.h"
|
||||
#include "pci.h"
|
||||
#include <gpxe/pci.h>
|
||||
|
||||
/* User settable parameters */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user