iPXE
pxe_call.c File Reference

PXE API entry point. More...

#include <ipxe/uaccess.h>
#include <ipxe/init.h>
#include <ipxe/profile.h>
#include <ipxe/netdevice.h>
#include <rmsetjmp.h>
#include <registers.h>
#include <biosint.h>
#include <pxe.h>
#include <pxe_call.h>

Go to the source code of this file.

Macros

#define EINFO_EPXENBP
#define EPXENBP(status)
#define pxe_int_1a_vector   __use_text16 ( pxe_int_1a_vector )
#define _text16_memsz   ABS_VALUE ( _text16_memsz )
#define _data16_memsz   ABS_VALUE ( _data16_memsz )

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
struct segoff __text16 (pxe_int_1a_vector)
 Vector for chaining INT 1A.
void pxe_int_1a (void)
 INT 1A handler.
size_t ABS_SYMBOL (_text16_memsz)
 Real-mode code segment size.
size_t ABS_SYMBOL (_data16_memsz)
 Real-mode data segment size.
static PXENV_EXIT_t pxenv_unknown (struct s_PXENV_UNKNOWN *pxenv_unknown)
 Handle an unknown PXE API call.
static struct pxe_api_callfind_pxe_api_call (uint16_t opcode)
 Locate PXE API call.
static struct profilerpxe_api_profiler (unsigned int opcode)
 Determine applicable profiler (for debugging)
__asmcall void pxe_api_call (struct i386_all_regs *ix86)
 Dispatch PXE API call.
int pxe_api_call_weak (struct i386_all_regs *ix86)
 Dispatch weak PXE API call with PXE stack available.
__asmcall void pxe_loader_call (struct i386_all_regs *ix86)
 Dispatch PXE loader call.
static uint8_t pxe_checksum (void *data, size_t size)
 Calculate byte checksum as used by PXE.
static void pxe_init_structures (void)
 Initialise !PXE and PXENV+ structures.
struct init_fn pxe_init_fn __init_fn (INIT_NORMAL)
 PXE structure initialiser.
void pxe_activate (struct net_device *netdev)
 Activate PXE stack.
int pxe_deactivate (void)
 Deactivate PXE stack.
int pxe_start_nbp (void)
 Start PXE NBP at 0000:7c00.
static int pxe_notify (struct net_device *netdev, void *priv __unused)
 Notify BIOS of existence of network device.
 REQUIRING_SYMBOL (pxe_api_call)
 REQUIRE_OBJECT (pxe_preboot)
 REQUIRE_OBJECT (pxe_undi)
 REQUIRE_OBJECT (pxe_udp)
 REQUIRE_OBJECT (pxe_tftp)
 REQUIRE_OBJECT (pxe_file)

Variables

static int int_1a_hooked = 0
 INT 1A hooked flag.
static struct profiler pxe_api_tx_profiler __profiler
 PXENV_UNDI_TRANSMIT API call profiler.
struct pxe_api_call pxenv_unknown_api __pxe_api_call
 Unknown PXE API call list.
rmjmp_buf pxe_restart_nbp
 Jump buffer for PXENV_RESTART_TFTP.
struct net_driver pxe_driver __net_driver
 PXE BIOS notification driver.

Detailed Description

PXE API entry point.

Definition in file pxe_call.c.

Macro Definition Documentation

◆ EINFO_EPXENBP

#define EINFO_EPXENBP
Value:
"External PXE NBP error" )
#define __einfo_uniqify(einfo_base, uniq, desc)
Declare disambiguated error.
Definition errno.h:181
#define EINFO_EPLATFORM
Platform-generated base error.
Definition errno.h:692

Definition at line 42 of file pxe_call.c.

42#define EINFO_EPXENBP \
43 __einfo_uniqify ( EINFO_EPLATFORM, 0x01, \
44 "External PXE NBP error" )

◆ EPXENBP

#define EPXENBP ( status)
Value:
uint8_t status
Status.
Definition ena.h:5
#define EPLATFORM(einfo_base, platform,...)
Generate an error based on an external platform error code.
Definition errno.h:249
#define EINFO_EPXENBP
Definition pxe_call.c:42

Definition at line 45 of file pxe_call.c.

Referenced by pxe_start_nbp().

◆ pxe_int_1a_vector

#define pxe_int_1a_vector   __use_text16 ( pxe_int_1a_vector )

Definition at line 49 of file pxe_call.c.

Referenced by __text16(), pxe_activate(), and pxe_deactivate().

◆ _text16_memsz

#define _text16_memsz   ABS_VALUE ( _text16_memsz )

Definition at line 59 of file pxe_call.c.

◆ _data16_memsz

#define _data16_memsz   ABS_VALUE ( _data16_memsz )

Definition at line 63 of file pxe_call.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ __text16()

struct segoff __text16 ( pxe_int_1a_vector )
extern

Vector for chaining INT 1A.

References __text16, and pxe_int_1a_vector.

◆ pxe_int_1a()

void pxe_int_1a ( void )
extern

INT 1A handler.

Referenced by pxe_activate(), and pxe_deactivate().

◆ ABS_SYMBOL() [1/2]

size_t ABS_SYMBOL ( _text16_memsz )
extern

Real-mode code segment size.

References _text16_memsz.

◆ ABS_SYMBOL() [2/2]

size_t ABS_SYMBOL ( _data16_memsz )
extern

Real-mode data segment size.

References _data16_memsz.

◆ pxenv_unknown()

PXENV_EXIT_t pxenv_unknown ( struct s_PXENV_UNKNOWN * pxenv_unknown)
static

Handle an unknown PXE API call.

Parameters
pxenv_unknownPointer to a struct s_PXENV_UNKNOWN
Return values
PXENV_EXIT_FAILUREAlways
Exceptions
PXENV_STATUS_UNSUPPORTEDAlways

Definition at line 92 of file pxe_call.c.

92 {
94 return PXENV_EXIT_FAILURE;
95}
#define PXENV_EXIT_FAILURE
An error occurred.
Definition pxe_types.h:46
#define PXENV_STATUS_UNSUPPORTED
Definition pxe_error.h:22
static PXENV_EXIT_t pxenv_unknown(struct s_PXENV_UNKNOWN *pxenv_unknown)
Handle an unknown PXE API call.
Definition pxe_call.c:92

References PXENV_EXIT_FAILURE, PXENV_STATUS_UNSUPPORTED, and pxenv_unknown().

Referenced by pxenv_unknown().

◆ find_pxe_api_call()

struct pxe_api_call * find_pxe_api_call ( uint16_t opcode)
static

Locate PXE API call.

Parameters
opcodeOpcode
Return values
callPXE API call, or NULL

Definition at line 107 of file pxe_call.c.

107 {
108 struct pxe_api_call *call;
109
111 if ( call->opcode == opcode )
112 return call;
113 }
114 return NULL;
115}
#define NULL
NULL pointer (VOID *)
Definition Base.h:322
uint8_t opcode
Opcode.
Definition ena.h:5
#define PXE_API_CALLS
PXE API call table.
Definition pxe.h:93
A PXE API call.
Definition pxe.h:81
uint16_t opcode
Opcode.
Definition pxe.h:89
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Definition tables.h:386

References for_each_table_entry, NULL, opcode, pxe_api_call::opcode, and PXE_API_CALLS.

Referenced by pxe_api_call().

◆ pxe_api_profiler()

struct profiler * pxe_api_profiler ( unsigned int opcode)
static

Determine applicable profiler (for debugging)

Parameters
opcodePXE opcode
Return values
profilerProfiler

Definition at line 123 of file pxe_call.c.

123 {
124
125 /* Determine applicable profiler */
126 switch ( opcode ) {
128 return &pxe_api_tx_profiler;
129 case PXENV_UNDI_ISR:
130 return &pxe_api_isr_profiler;
131 case PXENV_UNKNOWN:
132 return &pxe_api_unknown_profiler;
133 default:
134 return &pxe_api_misc_profiler;
135 }
136}
#define PXENV_UNDI_ISR
PXE API function code for pxenv_undi_isr()
Definition pxe_api.h:1450
#define PXENV_UNDI_TRANSMIT
PXE API function code for pxenv_undi_transmit()
Definition pxe_api.h:1009
#define PXENV_UNKNOWN
PXE API invalid function code.
Definition pxe.h:13

References opcode, PXENV_UNDI_ISR, PXENV_UNDI_TRANSMIT, and PXENV_UNKNOWN.

Referenced by pxe_api_call().

◆ pxe_api_call()

__asmcall void pxe_api_call ( struct i386_all_regs * ix86)

Dispatch PXE API call.

Parameters
bxPXE opcode
es:diAddress of PXE parameter block
Return values
axPXE exit code

Definition at line 145 of file pxe_call.c.

145 {
146 uint16_t opcode = ix86->regs.bx;
148 union u_PXENV_ANY *params =
149 real_to_virt ( ix86->segs.es, ix86->regs.di );
150 struct pxe_api_call *call;
151 PXENV_EXIT_t ret;
152
153 /* Start profiling */
155
156 /* Locate API call */
157 call = find_pxe_api_call ( opcode );
158 if ( ! call ) {
159 DBGC ( &pxe_netdev, "PXENV_UNKNOWN_%04x\n", opcode );
160 call = &pxenv_unknown_api;
161 }
162
163 /* Set default status in case child routine fails to do so */
165
166 /* Hand off to relevant API routine */
167 ret = call->entry ( params );
168
169 /* Return exit code in %ax */
170 ix86->regs.ax = ret;
171
172 /* Stop profiling, if applicable */
174}
unsigned short uint16_t
Definition stdint.h:11
#define DBGC(...)
Definition compiler.h:505
UINT16_t PXENV_EXIT_t
A PXE exit code.
Definition pxe_types.h:44
#define PXENV_STATUS_FAILURE
Definition pxe_error.h:20
static void profile_stop(struct profiler *profiler)
Stop profiling.
Definition profile.h:174
static void profile_start(struct profiler *profiler)
Start profiling.
Definition profile.h:161
static struct pxe_api_call * find_pxe_api_call(uint16_t opcode)
Locate PXE API call.
Definition pxe_call.c:107
static struct profiler * pxe_api_profiler(unsigned int opcode)
Determine applicable profiler (for debugging)
Definition pxe_call.c:123
struct net_device * pxe_netdev
Definition pxe_undi.c:59
static __always_inline void * real_to_virt(unsigned int segment, unsigned int offset)
Convert segment:offset address to virtual address.
Definition realmode.h:77
struct i386_seg_regs segs
Definition registers.h:175
struct i386_regs regs
Definition registers.h:176
uint16_t ax
Definition registers.h:108
uint16_t bx
Definition registers.h:84
uint16_t di
Definition registers.h:64
uint16_t es
Definition registers.h:142
A data structure for storing profiling information.
Definition profile.h:27
PXENV_EXIT_t(* entry)(union u_PXENV_ANY *params)
Entry point.
Definition pxe.h:87
PXENV_STATUS_t Status
Definition pxe.h:29

References __asmcall, i386_regs::ax, i386_regs::bx, DBGC, i386_regs::di, pxe_api_call::entry, i386_seg_regs::es, find_pxe_api_call(), opcode, profile_start(), profile_stop(), pxe_api_profiler(), pxe_netdev, PXENV_STATUS_FAILURE, real_to_virt(), i386_all_regs::regs, i386_all_regs::segs, and u_PXENV_ANY::Status.

Referenced by pxe_api_call_weak().

◆ pxe_api_call_weak()

int pxe_api_call_weak ( struct i386_all_regs * ix86)

Dispatch weak PXE API call with PXE stack available.

Parameters
ix86Registers for PXE call
Return values
presentZero (PXE stack present)

Definition at line 182 of file pxe_call.c.

182 {
183 pxe_api_call ( ix86 );
184 return 0;
185}
__asmcall void pxe_api_call(struct i386_all_regs *ix86)
Dispatch PXE API call.
Definition pxe_call.c:145

References pxe_api_call().

Referenced by int22().

◆ pxe_loader_call()

__asmcall void pxe_loader_call ( struct i386_all_regs * ix86)

Dispatch PXE loader call.

Parameters
es:diAddress of PXE parameter block
Return values
axPXE exit code

Definition at line 193 of file pxe_call.c.

193 {
194 struct s_UNDI_LOADER *params =
195 real_to_virt ( ix86->segs.es, ix86->regs.di );
196 PXENV_EXIT_t ret;
197
198 /* Fill in ROM segment address */
199 ppxe.UNDIROMID.segment = ix86->segs.ds;
200
201 /* Set default status in case child routine fails to do so */
203
204 /* Call UNDI loader */
205 ret = undi_loader ( params );
206
207 /* Return exit code in %ax */
208 ix86->regs.ax = ret;
209}
#define ppxe
Definition pxe_call.h:28
uint16_t ds
Definition registers.h:141
Parameter block for undi_loader()
Definition pxe_api.h:1729
PXENV_STATUS_t Status
PXE status code.
Definition pxe_api.h:1731
#define undi_loader
Definition undiload.c:53

References __asmcall, i386_regs::ax, i386_regs::di, i386_seg_regs::ds, i386_seg_regs::es, ppxe, PXENV_STATUS_FAILURE, real_to_virt(), i386_all_regs::regs, i386_all_regs::segs, s_UNDI_LOADER::Status, and undi_loader.

◆ pxe_checksum()

uint8_t pxe_checksum ( void * data,
size_t size )
static

Calculate byte checksum as used by PXE.

Parameters
dataData
sizeLength of data
Return values
sumChecksum

Definition at line 218 of file pxe_call.c.

218 {
219 uint8_t *bytes = data;
220 uint8_t sum = 0;
221
222 while ( size-- ) {
223 sum += *bytes++;
224 }
225 return sum;
226}
unsigned char uint8_t
Definition stdint.h:10
uint8_t data[48]
Additional event data.
Definition ena.h:11
uint16_t size
Buffer size.
Definition dwmac.h:3
uint8_t bytes[64]
Definition ib_mad.h:5

References bytes, data, and size.

Referenced by pxe_init_structures().

◆ pxe_init_structures()

void pxe_init_structures ( void )
static

Initialise !PXE and PXENV+ structures.

Definition at line 232 of file pxe_call.c.

232 {
233 uint32_t rm_cs_phys = ( rm_cs << 4 );
234 uint32_t rm_ds_phys = ( rm_ds << 4 );
235
236 /* Fill in missing segment fields */
237 ppxe.EntryPointSP.segment = rm_cs;
238 ppxe.EntryPointESP.segment = rm_cs;
239 ppxe.Stack.segment_address = rm_ds;
240 ppxe.Stack.Physical_address = rm_ds_phys;
241 ppxe.UNDIData.segment_address = rm_ds;
242 ppxe.UNDIData.Physical_address = rm_ds_phys;
243 ppxe.UNDICode.segment_address = rm_cs;
244 ppxe.UNDICode.Physical_address = rm_cs_phys;
245 ppxe.UNDICodeWrite.segment_address = rm_cs;
246 ppxe.UNDICodeWrite.Physical_address = rm_cs_phys;
247 pxenv.RMEntry.segment = rm_cs;
248 pxenv.StackSeg = rm_ds;
249 pxenv.UNDIDataSeg = rm_ds;
250 pxenv.UNDICodeSeg = rm_cs;
251 pxenv.PXEPtr.segment = rm_cs;
252
253 /* Update checksums */
254 ppxe.StructCksum -= pxe_checksum ( &ppxe, sizeof ( ppxe ) );
255 pxenv.Checksum -= pxe_checksum ( &pxenv, sizeof ( pxenv ) );
256}
unsigned int uint32_t
Definition stdint.h:12
#define rm_ds
Definition libkir.h:39
#define rm_cs
Definition libkir.h:38
static uint8_t pxe_checksum(void *data, size_t size)
Calculate byte checksum as used by PXE.
Definition pxe_call.c:218
#define pxenv
Definition pxe_call.h:32

References ppxe, pxe_checksum(), pxenv, rm_cs, and rm_ds.

Referenced by __init_fn().

◆ __init_fn()

struct init_fn pxe_init_fn __init_fn ( INIT_NORMAL )

PXE structure initialiser.

References __init_fn, INIT_NORMAL, and pxe_init_structures().

◆ pxe_activate()

void pxe_activate ( struct net_device * netdev)

Activate PXE stack.

Parameters
netdevNet device to use as PXE net device

Definition at line 269 of file pxe_call.c.

269 {
270 uint32_t discard_a;
271 uint32_t discard_b;
272 uint32_t discard_d;
273
274 /* Ensure INT 1A is hooked */
275 if ( ! int_1a_hooked ) {
278 devices_get();
279 int_1a_hooked = 1;
280 }
281
282 /* Set PXE network device */
284
285 /* Notify BIOS of installation */
286 __asm__ __volatile__ ( REAL_CODE ( "pushw %%cs\n\t"
287 "popw %%es\n\t"
288 "int $0x1a\n\t" )
289 : "=a" ( discard_a ), "=b" ( discard_b ),
290 "=d" ( discard_d )
291 : "0" ( 0x564e ),
292 "1" ( __from_text16 ( &pxenv ) ) );
293}
__asm__ __volatile__("call *%9" :"=a"(result), "=c"(discard_ecx), "=d"(discard_edx) :"d"(0), "a"(code), "b"(0), "c"(in_phys), "D"(0), "S"(out_phys), "m"(hypercall))
unsigned long intptr_t
Definition stdint.h:21
void hook_bios_interrupt(unsigned int interrupt, unsigned int handler, struct segoff *chain_vector)
Hook INT vector.
Definition biosint.c:25
static void devices_get(void)
Prevent devices from being removed on shutdown.
Definition device.h:165
static struct net_device * netdev
Definition gdbudp.c:53
#define __from_text16(pointer)
Definition libkir.h:23
#define REAL_CODE(asm_code_str)
Definition libkir.h:226
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
void pxe_int_1a(void)
INT 1A handler.
static int int_1a_hooked
INT 1A hooked flag.
Definition pxe_call.c:55
#define pxe_int_1a_vector
Definition pxe_call.c:49
void pxe_set_netdev(struct net_device *netdev)
Set network device as current PXE network device.
Definition pxe_undi.c:69

References __asm__(), __from_text16, __volatile__(), devices_get(), hook_bios_interrupt(), int_1a_hooked, netdev, pxe_int_1a(), pxe_int_1a_vector, pxe_set_netdev(), pxenv, and REAL_CODE.

Referenced by pxe_exec(), pxe_notify(), pxenv_start_undi(), and startpxe_payload().

◆ pxe_deactivate()

int pxe_deactivate ( void )

Deactivate PXE stack.

Return values
rcReturn status code

Definition at line 300 of file pxe_call.c.

300 {
301 int rc;
302
303 /* Clear PXE network device */
305
306 /* Ensure INT 1A is unhooked, if possible */
307 if ( int_1a_hooked ) {
308 if ( ( rc = unhook_bios_interrupt ( 0x1a,
310 &pxe_int_1a_vector ))!= 0){
311 DBGC ( &pxe_netdev, "PXE could not unhook INT 1A: %s\n",
312 strerror ( rc ) );
313 return rc;
314 }
315 devices_put();
316 int_1a_hooked = 0;
317 }
318
319 return 0;
320}
struct arbelprm_rc_send_wqe rc
Definition arbel.h:3
int unhook_bios_interrupt(unsigned int interrupt, unsigned int handler, struct segoff *chain_vector)
Unhook INT vector.
Definition biosint.c:70
static void devices_put(void)
Allow devices to be removed on shutdown.
Definition device.h:173
char * strerror(int errno)
Retrieve string representation of error number.
Definition strerror.c:79

References DBGC, devices_put(), int_1a_hooked, NULL, pxe_int_1a(), pxe_int_1a_vector, pxe_netdev, pxe_set_netdev(), rc, strerror(), and unhook_bios_interrupt().

Referenced by pxe_exec(), pxe_notify(), pxenv_stop_undi(), and stoppxe_exec().

◆ pxe_start_nbp()

int pxe_start_nbp ( void )

Start PXE NBP at 0000:7c00.

Return values
rcReturn status code

Definition at line 330 of file pxe_call.c.

330 {
331 int jmp;
332 int discard_b, discard_c, discard_d, discard_D;
334
335 DBGC ( &pxe_netdev, "PXE NBP starting with netdev %s, code %04x:%04zx, "
336 "data %04x:%04zx\n", ( pxe_netdev ? pxe_netdev->name : "<none>"),
338
339 /* Allow restarting NBP via PXENV_RESTART_TFTP */
341 if ( jmp )
342 DBGC ( &pxe_netdev, "PXE NBP restarting (%x)\n", jmp );
343
344 /* Far call to PXE NBP */
345 __asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */
346 "movw %%cx, %%es\n\t"
347 "pushw %%es\n\t"
348 "pushw %%di\n\t"
349 "sti\n\t"
350 "lcall $0, $0x7c00\n\t"
351 "popl %%ebp\n\t" /* discard */
352 "popl %%ebp\n\t" /* gcc bug */ )
353 : "=a" ( status ), "=b" ( discard_b ),
354 "=c" ( discard_c ), "=d" ( discard_d ),
355 "=D" ( discard_D )
356 : "a" ( 0 ), "b" ( __from_text16 ( &pxenv ) ),
357 "c" ( rm_cs ),
358 "d" ( virt_to_phys ( &pxenv ) ),
359 "D" ( __from_text16 ( &ppxe ) )
360 : "esi", "memory" );
361 if ( status )
362 return -EPXENBP ( status );
363
364 return 0;
365}
void * discard_D
Definition bigint.h:32
long discard_c
Definition bigint.h:33
#define _text16_memsz
Definition hidemem.c:85
#define _data16_memsz
Definition hidemem.c:87
uint8_t jmp
"jmp" instruction
Definition librm.h:7
#define EPXENBP(status)
Definition pxe_call.c:45
rmjmp_buf pxe_restart_nbp
Jump buffer for PXENV_RESTART_TFTP.
Definition pxe_call.c:323
#define rmsetjmp(_env)
Definition rmsetjmp.h:17

References __asm__(), __from_text16, __volatile__(), _data16_memsz, _text16_memsz, DBGC, discard_c, discard_D, EPXENBP, jmp, ppxe, pxe_netdev, pxe_restart_nbp, pxenv, REAL_CODE, rm_cs, rm_ds, rmsetjmp, and status.

Referenced by pxe_exec().

◆ pxe_notify()

int pxe_notify ( struct net_device * netdev,
void *priv __unused )
static

Notify BIOS of existence of network device.

Parameters
netdevNetwork device
privPrivate data
Return values
rcReturn status code

Definition at line 374 of file pxe_call.c.

374 {
375
376 /* Do nothing if we already have a network device */
377 if ( pxe_netdev )
378 return 0;
379
380 /* Activate (and deactivate) PXE stack to notify BIOS */
383
384 return 0;
385}
void pxe_activate(struct net_device *netdev)
Activate PXE stack.
Definition pxe_call.c:269
int pxe_deactivate(void)
Deactivate PXE stack.
Definition pxe_call.c:300

References __unused, netdev, priv, pxe_activate(), pxe_deactivate(), and pxe_netdev.

◆ REQUIRING_SYMBOL()

REQUIRING_SYMBOL ( pxe_api_call )

◆ REQUIRE_OBJECT() [1/5]

REQUIRE_OBJECT ( pxe_preboot )

◆ REQUIRE_OBJECT() [2/5]

REQUIRE_OBJECT ( pxe_undi )

◆ REQUIRE_OBJECT() [3/5]

REQUIRE_OBJECT ( pxe_udp )

References pxe_udp.

◆ REQUIRE_OBJECT() [4/5]

REQUIRE_OBJECT ( pxe_tftp )

References pxe_tftp.

◆ REQUIRE_OBJECT() [5/5]

REQUIRE_OBJECT ( pxe_file )

Variable Documentation

◆ int_1a_hooked

int int_1a_hooked = 0
static

INT 1A hooked flag.

Definition at line 55 of file pxe_call.c.

Referenced by pxe_activate(), and pxe_deactivate().

◆ __profiler

struct profiler pxe_api_misc_profiler __profiler
static
Initial value:
=
{ .name = "pxeapi.tx" }

PXENV_UNDI_TRANSMIT API call profiler.

Miscellaneous PXE API call profiler.

PXE unknown API call profiler.

PXENV_UNDI_ISR API call profiler.

This profiler can be used to measure the overhead of a dummy PXE API call.

Definition at line 66 of file pxe_call.c.

67 { .name = "pxeapi.tx" };

◆ __pxe_api_call

struct pxe_api_call pxenv_unknown_api __pxe_api_call
Initial value:
=
#define PXE_API_CALL(_opcode, _entry, _params_type)
Define a PXE API call.
Definition pxe.h:106
Parameter block for pxenv_unknown()
Definition pxe.h:16

Unknown PXE API call list.

Definition at line 98 of file pxe_call.c.

◆ pxe_restart_nbp

rmjmp_buf pxe_restart_nbp

Jump buffer for PXENV_RESTART_TFTP.

PXENV_RESTART_TFTP jump buffer.

Definition at line 323 of file pxe_call.c.

Referenced by pxe_start_nbp(), and pxenv_restart_tftp().

◆ __net_driver

struct net_driver pxe_driver __net_driver
Initial value:
= {
.name = "PXE",
.probe = pxe_notify,
}
static int pxe_notify(struct net_device *netdev, void *priv __unused)
Notify BIOS of existence of network device.
Definition pxe_call.c:374

PXE BIOS notification driver.

Definition at line 388 of file pxe_call.c.

388 {
389 .name = "PXE",
390 .probe = pxe_notify,
391};