iPXE
Data Structures | Macros | 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...
 

Macros

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

Functions

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

Variables

struct undi_device __attribute__
 

Detailed Description

UNDI driver.

Definition in file undi.h.

Macro Definition Documentation

◆ UNDI_NO_PCI_BUSDEVFN

#define UNDI_NO_PCI_BUSDEVFN   0xffff

PCI bus:dev.fn field is invalid.

Definition at line 87 of file undi.h.

◆ UNDI_NO_ISAPNP_CSN

#define UNDI_NO_ISAPNP_CSN   0xffff

ISAPnP card select number field is invalid.

Definition at line 90 of file undi.h.

◆ UNDI_NO_ISAPNP_READ_PORT

#define UNDI_NO_ISAPNP_READ_PORT   0xffff

ISAPnP read port field is invalid.

Definition at line 93 of file undi.h.

◆ UNDI_FL_STARTED

#define UNDI_FL_STARTED   0x0001

UNDI flag: START_UNDI has been called.

Definition at line 96 of file undi.h.

◆ UNDI_FL_INITIALIZED

#define UNDI_FL_INITIALIZED   0x0002

UNDI flag: UNDI_STARTUP and UNDI_INITIALIZE have been called.

Definition at line 99 of file undi.h.

◆ UNDI_FL_KEEP_ALL

#define UNDI_FL_KEEP_ALL   0x0004

UNDI flag: keep stack resident.

Definition at line 102 of file undi.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ undi_set_drvdata()

static void undi_set_drvdata ( struct undi_device undi,
void *  priv 
)
inlinestatic

Set UNDI driver-private data.

Parameters
undiUNDI device
privPrivate data

Definition at line 70 of file undi.h.

70  {
71  undi->priv = priv;
72 }
void * priv
Driver-private data.
Definition: undi.h:61
static struct tlan_private * priv
Definition: tlan.c:224

References undi_device::priv, and priv.

Referenced by undinet_probe().

◆ undi_get_drvdata()

static void* undi_get_drvdata ( struct undi_device undi)
inlinestatic

Get UNDI driver-private data.

Parameters
undiUNDI device
Return values
privPrivate data

Definition at line 80 of file undi.h.

80  {
81  return undi->priv;
82 }
void * priv
Driver-private data.
Definition: undi.h:61

References undi_device::priv.

Referenced by undinet_remove().

Variable Documentation

◆ __attribute__