mca.h File Reference

#include <gpxe/isa_ids.h>
#include <gpxe/device.h>
#include <gpxe/tables.h>

Go to the source code of this file.

Data Structures

struct  mca_device_id
 An MCA device ID list entry. More...
struct  mca_device
 An MCA device. More...
struct  mca_driver
 An MCA driver. More...

Defines

#define MCA_MOTHERBOARD_SETUP_REG   0x94
#define MCA_ADAPTER_SETUP_REG   0x96
#define MCA_MAX_SLOT_NR   0x07
#define MCA_POS_REG(n)   (0x100+(n))
#define GENERIC_MCA_VENDOR   ISA_VENDOR ( 'M', 'C', 'A' )
#define MCA_ID(mca)   ( ( (mca)->pos[1] << 8 ) + (mca)->pos[0] )
#define MCA_DRIVERS   __table ( struct mca_driver, "mca_drivers" )
 MCA driver table.
#define __mca_driver   __table_entry ( MCA_DRIVERS, 01 )
 Declare an MCA driver.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static void mca_set_drvdata (struct mca_device *mca, void *priv)
 Set MCA driver-private data.
static void * mca_get_drvdata (struct mca_device *mca)
 Get MCA driver-private data.


Define Documentation

#define MCA_MOTHERBOARD_SETUP_REG   0x94

Definition at line 21 of file mca.h.

Referenced by mcabus_probe().

#define MCA_ADAPTER_SETUP_REG   0x96

Definition at line 22 of file mca.h.

Referenced by mcabus_probe().

#define MCA_MAX_SLOT_NR   0x07

Definition at line 23 of file mca.h.

Referenced by mcabus_probe().

#define MCA_POS_REG (  )     (0x100+(n))

Definition at line 24 of file mca.h.

Referenced by mcabus_probe().

#define GENERIC_MCA_VENDOR   ISA_VENDOR ( 'M', 'C', 'A' )

Definition at line 27 of file mca.h.

Referenced by mcabus_probe().

#define MCA_ID ( mca   )     ( ( (mca)->pos[1] << 8 ) + (mca)->pos[0] )

Definition at line 57 of file mca.h.

Referenced by mca_probe(), mcabus_probe(), and t529_probe().

#define MCA_DRIVERS   __table ( struct mca_driver, "mca_drivers" )

MCA driver table.

Definition at line 83 of file mca.h.

Referenced by mca_probe().

#define __mca_driver   __table_entry ( MCA_DRIVERS, 01 )

Declare an MCA driver.

Definition at line 86 of file mca.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static void mca_set_drvdata ( struct mca_device mca,
void *  priv 
) [inline, static]

Set MCA driver-private data.

Parameters:
mca MCA device
priv Private data

Definition at line 94 of file mca.h.

References mca_device::priv.

Referenced by legacy_mca_set_drvdata().

00094                                                                           {
00095         mca->priv = priv;
00096 }

static void* mca_get_drvdata ( struct mca_device mca  )  [inline, static]

Get MCA driver-private data.

Parameters:
mca MCA device
Return values:
priv Private data

Definition at line 104 of file mca.h.

References mca_device::priv.

Referenced by legacy_mca_get_drvdata().

00104                                                                 {
00105         return mca->priv;
00106 }


Generated on Tue Apr 6 20:01:51 2010 for gPXE by  doxygen 1.5.7.1