From 8406115834d38bb743e01f35bfd36e835532415e Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 19 Apr 2010 20:16:01 +0100 Subject: [build] Rename gPXE to iPXE Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown --- src/include/gpxe/mca.h | 108 ------------------------------------------------- 1 file changed, 108 deletions(-) delete mode 100644 src/include/gpxe/mca.h (limited to 'src/include/gpxe/mca.h') diff --git a/src/include/gpxe/mca.h b/src/include/gpxe/mca.h deleted file mode 100644 index da9d73e44..000000000 --- a/src/include/gpxe/mca.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * MCA bus driver code - * - * Abstracted from 3c509.c. - * - */ - -FILE_LICENCE ( GPL2_OR_LATER ); - -#ifndef MCA_H -#define MCA_H - -#include -#include -#include - -/* - * MCA constants - * - */ -#define MCA_MOTHERBOARD_SETUP_REG 0x94 -#define MCA_ADAPTER_SETUP_REG 0x96 -#define MCA_MAX_SLOT_NR 0x07 /* Must be 2^n - 1 */ -#define MCA_POS_REG(n) (0x100+(n)) - -/* Is there a standard that would define this? */ -#define GENERIC_MCA_VENDOR ISA_VENDOR ( 'M', 'C', 'A' ) - -/** An MCA device ID list entry */ -struct mca_device_id { - /** Name */ - const char *name; - /** Device ID */ - uint16_t id; -}; - -/** An MCA device */ -struct mca_device { - /** Generic device */ - struct device dev; - /** Slot number */ - unsigned int slot; - /** POS register values */ - unsigned char pos[8]; - /** Driver for this device */ - struct mca_driver *driver; - /** Driver-private data - * - * Use mca_set_drvdata() and mca_get_drvdata() to access - * this field. - */ - void *priv; - /** Driver name */ - const char *driver_name; -}; - -#define MCA_ID(mca) ( ( (mca)->pos[1] << 8 ) + (mca)->pos[0] ) - -/** An MCA driver */ -struct mca_driver { - /** MCA ID table */ - struct mca_device_id *ids; - /** Number of entries in MCA ID table */ - unsigned int id_count; - /** - * Probe device - * - * @v mca MCA device - * @v id Matching entry in ID table - * @ret rc Return status code - */ - int ( * probe ) ( struct mca_device *mca, - const struct mca_device_id *id ); - /** - * Remove device - * - * @v mca MCA device - */ - void ( * remove ) ( struct mca_device *mca ); -}; - -/** MCA driver table */ -#define MCA_DRIVERS __table ( struct mca_driver, "mca_drivers" ) - -/** Declare an MCA driver */ -#define __mca_driver __table_entry ( MCA_DRIVERS, 01 ) - -/** - * Set MCA driver-private data - * - * @v mca MCA device - * @v priv Private data - */ -static inline void mca_set_drvdata ( struct mca_device *mca, void *priv ) { - mca->priv = priv; -} - -/** - * Get MCA driver-private data - * - * @v mca MCA device - * @ret priv Private data - */ -static inline void * mca_get_drvdata ( struct mca_device *mca ) { - return mca->priv; -} - -#endif -- cgit v1.2.3-55-g7522