iPXE
mca.h File Reference
#include <ipxe/isa_ids.h>
#include <ipxe/device.h>
#include <ipxe/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...

Macros

#define MCA_H
#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)
#define GENERIC_MCA_VENDOR   ISA_VENDOR ( 'M', 'C', 'A' )
#define MCA_ID(mca)
#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_OR_UBDL)
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.

Macro Definition Documentation

◆ MCA_H

#define MCA_H

Definition at line 11 of file mca.h.

◆ MCA_MOTHERBOARD_SETUP_REG

#define MCA_MOTHERBOARD_SETUP_REG   0x94

Definition at line 21 of file mca.h.

Referenced by mcabus_probe().

◆ MCA_ADAPTER_SETUP_REG

#define MCA_ADAPTER_SETUP_REG   0x96

Definition at line 22 of file mca.h.

Referenced by mcabus_probe().

◆ MCA_MAX_SLOT_NR

#define MCA_MAX_SLOT_NR   0x07 /* Must be 2^n - 1 */

Definition at line 23 of file mca.h.

Referenced by mcabus_probe().

◆ MCA_POS_REG

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

Definition at line 24 of file mca.h.

Referenced by mcabus_probe().

◆ GENERIC_MCA_VENDOR

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

Definition at line 27 of file mca.h.

Referenced by mcabus_probe().

◆ MCA_ID

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

Definition at line 55 of file mca.h.

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

◆ MCA_DRIVERS

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

MCA driver table.

Definition at line 81 of file mca.h.

Referenced by mca_probe().

◆ __mca_driver

#define __mca_driver   __table_entry ( MCA_DRIVERS, 01 )

Declare an MCA driver.

Definition at line 84 of file mca.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ mca_set_drvdata()

void mca_set_drvdata ( struct mca_device * mca,
void * priv )
inlinestatic

Set MCA driver-private data.

Parameters
mcaMCA device
privPrivate data

Definition at line 92 of file mca.h.

92 {
93 mca->priv = priv;
94}
void * priv
Driver-private data.
Definition mca.h:52
static struct tlan_private * priv
Definition tlan.c:225

References mca_device::priv, and priv.

Referenced by legacy_mca_set_drvdata().

◆ mca_get_drvdata()

void * mca_get_drvdata ( struct mca_device * mca)
inlinestatic

Get MCA driver-private data.

Parameters
mcaMCA device
Return values
privPrivate data

Definition at line 102 of file mca.h.

102 {
103 return mca->priv;
104}

References mca_device::priv.

Referenced by legacy_mca_get_drvdata().