iPXE
Data Structures | Defines | Functions | Variables
undi.h File Reference

UNDI driver. More...

#include <ipxe/device.h>
#include <pxe_types.h>

Go to the source code of this file.

Data Structures

struct  undi_device
 An UNDI device. More...

Defines

#define UNDI_NO_PCI_BUSDEVFN   0xffff
 PCI bus:dev.fn field is invalid.
#define UNDI_NO_ISAPNP_CSN   0xffff
 ISAPnP card select number field is invalid.
#define UNDI_NO_ISAPNP_READ_PORT   0xffff
 ISAPnP read port field is invalid.
#define UNDI_FL_STARTED   0x0001
 UNDI flag: START_UNDI has been called.
#define UNDI_FL_INITIALIZED   0x0002
 UNDI flag: UNDI_STARTUP and UNDI_INITIALIZE have been called.
#define UNDI_FL_KEEP_ALL   0x0004
 UNDI flag: keep stack resident.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static void undi_set_drvdata (struct undi_device *undi, void *priv)
 Set UNDI driver-private data.
static void * undi_get_drvdata (struct undi_device *undi)
 Get UNDI driver-private data.

Variables

struct undi_device __attribute__

Detailed Description

UNDI driver.

Definition in file undi.h.


Define Documentation

#define UNDI_NO_PCI_BUSDEVFN   0xffff

PCI bus:dev.fn field is invalid.

Definition at line 87 of file undi.h.

Referenced by undi_load(), and undibus_probe().

#define UNDI_NO_ISAPNP_CSN   0xffff

ISAPnP card select number field is invalid.

Definition at line 90 of file undi.h.

Referenced by undi_load(), undi_load_pci(), and undibus_probe().

#define UNDI_NO_ISAPNP_READ_PORT   0xffff

ISAPnP read port field is invalid.

Definition at line 93 of file undi.h.

Referenced by undi_load_pci().

#define UNDI_FL_STARTED   0x0001

UNDI flag: START_UNDI has been called.

Definition at line 96 of file undi.h.

Referenced by undinet_probe(), and undinet_remove().

#define UNDI_FL_INITIALIZED   0x0002

UNDI flag: UNDI_STARTUP and UNDI_INITIALIZE have been called.

Definition at line 99 of file undi.h.

Referenced by undinet_probe(), and undinet_remove().

#define UNDI_FL_KEEP_ALL   0x0004

UNDI flag: keep stack resident.

Definition at line 102 of file undi.h.

Referenced by undinet_remove(), and undionly_shutdown().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static void undi_set_drvdata ( struct undi_device undi,
void *  priv 
) [inline, static]

Set UNDI driver-private data.

Parameters:
undiUNDI device
privPrivate data

Definition at line 70 of file undi.h.

References undi_device::priv, and priv.

Referenced by undinet_probe().

                                                                             {
        undi->priv = priv;
}
static void* undi_get_drvdata ( struct undi_device undi) [inline, static]

Get UNDI driver-private data.

Parameters:
undiUNDI device
Return values:
privPrivate data

Definition at line 80 of file undi.h.

References undi_device::priv.

Referenced by undinet_remove().

                                                                   {
        return undi->priv;
}

Variable Documentation