|
@@ -32,6 +32,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
32
|
32
|
#include <gpxe/ethernet.h>
|
33
|
33
|
#include <undi.h>
|
34
|
34
|
#include <undinet.h>
|
|
35
|
+#include <pxeparent.h>
|
35
|
36
|
|
36
|
37
|
|
37
|
38
|
/** @file
|
|
@@ -62,178 +63,8 @@ struct undi_nic {
|
62
|
63
|
|
63
|
64
|
static void undinet_close ( struct net_device *netdev );
|
64
|
65
|
|
65
|
|
-/*****************************************************************************
|
66
|
|
- *
|
67
|
|
- * UNDI API call
|
68
|
|
- *
|
69
|
|
- *****************************************************************************
|
70
|
|
- */
|
71
|
|
-
|
72
|
|
-/**
|
73
|
|
- * Name UNDI API call
|
74
|
|
- *
|
75
|
|
- * @v function API call number
|
76
|
|
- * @ret name API call name
|
77
|
|
- */
|
78
|
|
-static inline __attribute__ (( always_inline )) const char *
|
79
|
|
-undinet_function_name ( unsigned int function ) {
|
80
|
|
- switch ( function ) {
|
81
|
|
- case PXENV_START_UNDI:
|
82
|
|
- return "PXENV_START_UNDI";
|
83
|
|
- case PXENV_STOP_UNDI:
|
84
|
|
- return "PXENV_STOP_UNDI";
|
85
|
|
- case PXENV_UNDI_STARTUP:
|
86
|
|
- return "PXENV_UNDI_STARTUP";
|
87
|
|
- case PXENV_UNDI_CLEANUP:
|
88
|
|
- return "PXENV_UNDI_CLEANUP";
|
89
|
|
- case PXENV_UNDI_INITIALIZE:
|
90
|
|
- return "PXENV_UNDI_INITIALIZE";
|
91
|
|
- case PXENV_UNDI_RESET_ADAPTER:
|
92
|
|
- return "PXENV_UNDI_RESET_ADAPTER";
|
93
|
|
- case PXENV_UNDI_SHUTDOWN:
|
94
|
|
- return "PXENV_UNDI_SHUTDOWN";
|
95
|
|
- case PXENV_UNDI_OPEN:
|
96
|
|
- return "PXENV_UNDI_OPEN";
|
97
|
|
- case PXENV_UNDI_CLOSE:
|
98
|
|
- return "PXENV_UNDI_CLOSE";
|
99
|
|
- case PXENV_UNDI_TRANSMIT:
|
100
|
|
- return "PXENV_UNDI_TRANSMIT";
|
101
|
|
- case PXENV_UNDI_SET_MCAST_ADDRESS:
|
102
|
|
- return "PXENV_UNDI_SET_MCAST_ADDRESS";
|
103
|
|
- case PXENV_UNDI_SET_STATION_ADDRESS:
|
104
|
|
- return "PXENV_UNDI_SET_STATION_ADDRESS";
|
105
|
|
- case PXENV_UNDI_SET_PACKET_FILTER:
|
106
|
|
- return "PXENV_UNDI_SET_PACKET_FILTER";
|
107
|
|
- case PXENV_UNDI_GET_INFORMATION:
|
108
|
|
- return "PXENV_UNDI_GET_INFORMATION";
|
109
|
|
- case PXENV_UNDI_GET_STATISTICS:
|
110
|
|
- return "PXENV_UNDI_GET_STATISTICS";
|
111
|
|
- case PXENV_UNDI_CLEAR_STATISTICS:
|
112
|
|
- return "PXENV_UNDI_CLEAR_STATISTICS";
|
113
|
|
- case PXENV_UNDI_INITIATE_DIAGS:
|
114
|
|
- return "PXENV_UNDI_INITIATE_DIAGS";
|
115
|
|
- case PXENV_UNDI_FORCE_INTERRUPT:
|
116
|
|
- return "PXENV_UNDI_FORCE_INTERRUPT";
|
117
|
|
- case PXENV_UNDI_GET_MCAST_ADDRESS:
|
118
|
|
- return "PXENV_UNDI_GET_MCAST_ADDRESS";
|
119
|
|
- case PXENV_UNDI_GET_NIC_TYPE:
|
120
|
|
- return "PXENV_UNDI_GET_NIC_TYPE";
|
121
|
|
- case PXENV_UNDI_GET_IFACE_INFO:
|
122
|
|
- return "PXENV_UNDI_GET_IFACE_INFO";
|
123
|
|
- /*
|
124
|
|
- * Duplicate case value; this is a bug in the PXE specification.
|
125
|
|
- *
|
126
|
|
- * case PXENV_UNDI_GET_STATE:
|
127
|
|
- * return "PXENV_UNDI_GET_STATE";
|
128
|
|
- */
|
129
|
|
- case PXENV_UNDI_ISR:
|
130
|
|
- return "PXENV_UNDI_ISR";
|
131
|
|
- default:
|
132
|
|
- return "UNKNOWN API CALL";
|
133
|
|
- }
|
134
|
|
-}
|
135
|
|
-
|
136
|
|
-/**
|
137
|
|
- * UNDI parameter block
|
138
|
|
- *
|
139
|
|
- * Used as the paramter block for all UNDI API calls. Resides in base
|
140
|
|
- * memory.
|
141
|
|
- */
|
142
|
|
-static union u_PXENV_ANY __bss16 ( undinet_params );
|
143
|
|
-#define undinet_params __use_data16 ( undinet_params )
|
144
|
|
-
|
145
|
|
-/** UNDI entry point
|
146
|
|
- *
|
147
|
|
- * Used as the indirection vector for all UNDI API calls. Resides in
|
148
|
|
- * base memory.
|
149
|
|
- */
|
150
|
|
-SEGOFF16_t __bss16 ( undinet_entry_point );
|
151
|
|
-#define undinet_entry_point __use_data16 ( undinet_entry_point )
|
152
|
|
-
|
153
|
|
-/**
|
154
|
|
- * Issue UNDI API call
|
155
|
|
- *
|
156
|
|
- * @v undinic UNDI NIC
|
157
|
|
- * @v function API call number
|
158
|
|
- * @v params UNDI parameter block
|
159
|
|
- * @v params_len Length of UNDI parameter block
|
160
|
|
- * @ret rc Return status code
|
161
|
|
- */
|
162
|
|
-static int undinet_call ( struct undi_nic *undinic, unsigned int function,
|
163
|
|
- void *params, size_t params_len ) {
|
164
|
|
- PXENV_EXIT_t exit;
|
165
|
|
- int discard_b, discard_D;
|
166
|
|
- int rc;
|
167
|
|
-
|
168
|
|
- /* Copy parameter block and entry point */
|
169
|
|
- assert ( params_len <= sizeof ( undinet_params ) );
|
170
|
|
- memcpy ( &undinet_params, params, params_len );
|
171
|
|
-
|
172
|
|
- /* Call real-mode entry point. This calling convention will
|
173
|
|
- * work with both the !PXE and the PXENV+ entry points.
|
174
|
|
- */
|
175
|
|
- __asm__ __volatile__ ( REAL_CODE ( "pushw %%es\n\t"
|
176
|
|
- "pushw %%di\n\t"
|
177
|
|
- "pushw %%bx\n\t"
|
178
|
|
- "lcall *undinet_entry_point\n\t"
|
179
|
|
- "addw $6, %%sp\n\t" )
|
180
|
|
- : "=a" ( exit ), "=b" ( discard_b ),
|
181
|
|
- "=D" ( discard_D )
|
182
|
|
- : "b" ( function ),
|
183
|
|
- "D" ( __from_data16 ( &undinet_params ) )
|
184
|
|
- : "ecx", "edx", "esi", "ebp" );
|
185
|
|
-
|
186
|
|
- /* UNDI API calls may rudely change the status of A20 and not
|
187
|
|
- * bother to restore it afterwards. Intel is known to be
|
188
|
|
- * guilty of this.
|
189
|
|
- *
|
190
|
|
- * Note that we will return to this point even if A20 gets
|
191
|
|
- * screwed up by the UNDI driver, because Etherboot always
|
192
|
|
- * resides in an even megabyte of RAM.
|
193
|
|
- */
|
194
|
|
- gateA20_set();
|
195
|
|
-
|
196
|
|
- /* Determine return status code based on PXENV_EXIT and
|
197
|
|
- * PXENV_STATUS
|
198
|
|
- */
|
199
|
|
- if ( exit == PXENV_EXIT_SUCCESS ) {
|
200
|
|
- rc = 0;
|
201
|
|
- } else {
|
202
|
|
- rc = -undinet_params.Status;
|
203
|
|
- /* Paranoia; don't return success for the combination
|
204
|
|
- * of PXENV_EXIT_FAILURE but PXENV_STATUS_SUCCESS
|
205
|
|
- */
|
206
|
|
- if ( rc == 0 )
|
207
|
|
- rc = -EIO;
|
208
|
|
- }
|
209
|
|
-
|
210
|
|
- /* If anything goes wrong, print as much debug information as
|
211
|
|
- * it's possible to give.
|
212
|
|
- */
|
213
|
|
- if ( rc != 0 ) {
|
214
|
|
- SEGOFF16_t rm_params = {
|
215
|
|
- .segment = rm_ds,
|
216
|
|
- .offset = __from_data16 ( &undinet_params ),
|
217
|
|
- };
|
218
|
|
-
|
219
|
|
- DBGC ( undinic, "UNDINIC %p %s failed: %s\n", undinic,
|
220
|
|
- undinet_function_name ( function ), strerror ( rc ) );
|
221
|
|
- DBGC ( undinic, "UNDINIC %p parameters at %04x:%04x length "
|
222
|
|
- "%#02zx, entry point at %04x:%04x\n", undinic,
|
223
|
|
- rm_params.segment, rm_params.offset, params_len,
|
224
|
|
- undinet_entry_point.segment,
|
225
|
|
- undinet_entry_point.offset );
|
226
|
|
- DBGC ( undinic, "UNDINIC %p parameters provided:\n", undinic );
|
227
|
|
- DBGC_HDA ( undinic, rm_params, params, params_len );
|
228
|
|
- DBGC ( undinic, "UNDINIC %p parameters returned:\n", undinic );
|
229
|
|
- DBGC_HDA ( undinic, rm_params, &undinet_params, params_len );
|
230
|
|
- }
|
231
|
|
-
|
232
|
|
- /* Copy parameter block back */
|
233
|
|
- memcpy ( params, &undinet_params, params_len );
|
234
|
|
-
|
235
|
|
- return rc;
|
236
|
|
-}
|
|
66
|
+/** Address of UNDI entry point */
|
|
67
|
+static SEGOFF16_t undinet_entry;
|
237
|
68
|
|
238
|
69
|
/*****************************************************************************
|
239
|
70
|
*
|
|
@@ -336,7 +167,6 @@ static struct s_PXENV_UNDI_TBD __data16 ( undinet_tbd );
|
336
|
167
|
*/
|
337
|
168
|
static int undinet_transmit ( struct net_device *netdev,
|
338
|
169
|
struct io_buffer *iobuf ) {
|
339
|
|
- struct undi_nic *undinic = netdev->priv;
|
340
|
170
|
struct s_PXENV_UNDI_TRANSMIT undi_transmit;
|
341
|
171
|
size_t len = iob_len ( iobuf );
|
342
|
172
|
int rc;
|
|
@@ -369,9 +199,9 @@ static int undinet_transmit ( struct net_device *netdev,
|
369
|
199
|
undinet_tbd.Xmit.offset = __from_data16 ( basemem_packet );
|
370
|
200
|
|
371
|
201
|
/* Issue PXE API call */
|
372
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_TRANSMIT,
|
373
|
|
- &undi_transmit,
|
374
|
|
- sizeof ( undi_transmit ) ) ) != 0 )
|
|
202
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_TRANSMIT,
|
|
203
|
+ &undi_transmit,
|
|
204
|
+ sizeof ( undi_transmit ) ) ) != 0 )
|
375
|
205
|
goto done;
|
376
|
206
|
|
377
|
207
|
/* Free I/O buffer */
|
|
@@ -441,8 +271,9 @@ static void undinet_poll ( struct net_device *netdev ) {
|
441
|
271
|
|
442
|
272
|
/* Run through the ISR loop */
|
443
|
273
|
while ( 1 ) {
|
444
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_ISR, &undi_isr,
|
445
|
|
- sizeof ( undi_isr ) ) ) != 0 )
|
|
274
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_ISR,
|
|
275
|
+ &undi_isr,
|
|
276
|
+ sizeof ( undi_isr ) ) ) != 0 )
|
446
|
277
|
break;
|
447
|
278
|
switch ( undi_isr.FuncFlag ) {
|
448
|
279
|
case PXENV_UNDI_ISR_OUT_TRANSMIT:
|
|
@@ -538,8 +369,8 @@ static int undinet_open ( struct net_device *netdev ) {
|
538
|
369
|
*/
|
539
|
370
|
memcpy ( undi_set_address.StationAddress, netdev->ll_addr,
|
540
|
371
|
sizeof ( undi_set_address.StationAddress ) );
|
541
|
|
- undinet_call ( undinic, PXENV_UNDI_SET_STATION_ADDRESS,
|
542
|
|
- &undi_set_address, sizeof ( undi_set_address ) );
|
|
372
|
+ pxeparent_call ( undinet_entry, PXENV_UNDI_SET_STATION_ADDRESS,
|
|
373
|
+ &undi_set_address, sizeof ( undi_set_address ) );
|
543
|
374
|
|
544
|
375
|
/* Open NIC. We ask for promiscuous operation, since it's the
|
545
|
376
|
* only way to ask for all multicast addresses. On any
|
|
@@ -548,8 +379,8 @@ static int undinet_open ( struct net_device *netdev ) {
|
548
|
379
|
*/
|
549
|
380
|
memset ( &undi_open, 0, sizeof ( undi_open ) );
|
550
|
381
|
undi_open.PktFilter = ( FLTR_DIRECTED | FLTR_BRDCST | FLTR_PRMSCS );
|
551
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_OPEN, &undi_open,
|
552
|
|
- sizeof ( undi_open ) ) ) != 0 )
|
|
382
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_OPEN,
|
|
383
|
+ &undi_open, sizeof ( undi_open ) ) ) != 0 )
|
553
|
384
|
goto err;
|
554
|
385
|
|
555
|
386
|
DBGC ( undinic, "UNDINIC %p opened\n", undinic );
|
|
@@ -574,8 +405,9 @@ static void undinet_close ( struct net_device *netdev ) {
|
574
|
405
|
/* Ensure ISR has exited cleanly */
|
575
|
406
|
while ( undinic->isr_processing ) {
|
576
|
407
|
undi_isr.FuncFlag = PXENV_UNDI_ISR_IN_GET_NEXT;
|
577
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_ISR, &undi_isr,
|
578
|
|
- sizeof ( undi_isr ) ) ) != 0 )
|
|
408
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_ISR,
|
|
409
|
+ &undi_isr,
|
|
410
|
+ sizeof ( undi_isr ) ) ) != 0 )
|
579
|
411
|
break;
|
580
|
412
|
switch ( undi_isr.FuncFlag ) {
|
581
|
413
|
case PXENV_UNDI_ISR_OUT_TRANSMIT:
|
|
@@ -590,8 +422,8 @@ static void undinet_close ( struct net_device *netdev ) {
|
590
|
422
|
}
|
591
|
423
|
|
592
|
424
|
/* Close NIC */
|
593
|
|
- undinet_call ( undinic, PXENV_UNDI_CLOSE, &undi_close,
|
594
|
|
- sizeof ( undi_close ) );
|
|
425
|
+ pxeparent_call ( undinet_entry, PXENV_UNDI_CLOSE,
|
|
426
|
+ &undi_close, sizeof ( undi_close ) );
|
595
|
427
|
|
596
|
428
|
/* Disable interrupt and unhook ISR */
|
597
|
429
|
disable_irq ( undinic->irq );
|
|
@@ -651,7 +483,7 @@ int undinet_probe ( struct undi_device *undi ) {
|
651
|
483
|
undi_set_drvdata ( undi, netdev );
|
652
|
484
|
netdev->dev = &undi->dev;
|
653
|
485
|
memset ( undinic, 0, sizeof ( *undinic ) );
|
654
|
|
- undinet_entry_point = undi->entry;
|
|
486
|
+ undinet_entry = undi->entry;
|
655
|
487
|
DBGC ( undinic, "UNDINIC %p using UNDI %p\n", undinic, undi );
|
656
|
488
|
|
657
|
489
|
/* Hook in UNDI stack */
|
|
@@ -662,9 +494,9 @@ int undinet_probe ( struct undi_device *undi ) {
|
662
|
494
|
start_undi.DX = undi->isapnp_read_port;
|
663
|
495
|
start_undi.ES = BIOS_SEG;
|
664
|
496
|
start_undi.DI = find_pnp_bios();
|
665
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_START_UNDI,
|
666
|
|
- &start_undi,
|
667
|
|
- sizeof ( start_undi ) ) ) != 0 )
|
|
497
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_START_UNDI,
|
|
498
|
+ &start_undi,
|
|
499
|
+ sizeof ( start_undi ) ) ) != 0 )
|
668
|
500
|
goto err_start_undi;
|
669
|
501
|
}
|
670
|
502
|
undi->flags |= UNDI_FL_STARTED;
|
|
@@ -672,22 +504,23 @@ int undinet_probe ( struct undi_device *undi ) {
|
672
|
504
|
/* Bring up UNDI stack */
|
673
|
505
|
if ( ! ( undi->flags & UNDI_FL_INITIALIZED ) ) {
|
674
|
506
|
memset ( &undi_startup, 0, sizeof ( undi_startup ) );
|
675
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_STARTUP,
|
676
|
|
- &undi_startup,
|
677
|
|
- sizeof ( undi_startup ) ) ) != 0 )
|
|
507
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_STARTUP,
|
|
508
|
+ &undi_startup,
|
|
509
|
+ sizeof ( undi_startup ) ) ) != 0 )
|
678
|
510
|
goto err_undi_startup;
|
679
|
511
|
memset ( &undi_initialize, 0, sizeof ( undi_initialize ) );
|
680
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_INITIALIZE,
|
681
|
|
- &undi_initialize,
|
682
|
|
- sizeof ( undi_initialize ))) != 0 )
|
|
512
|
+ if ( ( rc = pxeparent_call ( undinet_entry,
|
|
513
|
+ PXENV_UNDI_INITIALIZE,
|
|
514
|
+ &undi_initialize,
|
|
515
|
+ sizeof ( undi_initialize ))) != 0 )
|
683
|
516
|
goto err_undi_initialize;
|
684
|
517
|
}
|
685
|
518
|
undi->flags |= UNDI_FL_INITIALIZED;
|
686
|
519
|
|
687
|
520
|
/* Get device information */
|
688
|
521
|
memset ( &undi_info, 0, sizeof ( undi_info ) );
|
689
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_GET_INFORMATION,
|
690
|
|
- &undi_info, sizeof ( undi_info ) ) ) != 0 )
|
|
522
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_GET_INFORMATION,
|
|
523
|
+ &undi_info, sizeof ( undi_info ) ) ) != 0 )
|
691
|
524
|
goto err_undi_get_information;
|
692
|
525
|
memcpy ( netdev->hw_addr, undi_info.PermNodeAddress, ETH_ALEN );
|
693
|
526
|
undinic->irq = undi_info.IntNumber;
|
|
@@ -701,9 +534,9 @@ int undinet_probe ( struct undi_device *undi ) {
|
701
|
534
|
|
702
|
535
|
/* Get interface information */
|
703
|
536
|
memset ( &undi_iface, 0, sizeof ( undi_iface ) );
|
704
|
|
- if ( ( rc = undinet_call ( undinic, PXENV_UNDI_GET_IFACE_INFO,
|
705
|
|
- &undi_iface,
|
706
|
|
- sizeof ( undi_iface ) ) ) != 0 )
|
|
537
|
+ if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_GET_IFACE_INFO,
|
|
538
|
+ &undi_iface,
|
|
539
|
+ sizeof ( undi_iface ) ) ) != 0 )
|
707
|
540
|
goto err_undi_get_iface_info;
|
708
|
541
|
DBGC ( undinic, "UNDINIC %p has type %s, speed %d, flags %08x\n",
|
709
|
542
|
undinic, undi_iface.IfaceType, undi_iface.LinkSpeed,
|
|
@@ -732,17 +565,17 @@ int undinet_probe ( struct undi_device *undi ) {
|
732
|
565
|
err_undi_initialize:
|
733
|
566
|
/* Shut down UNDI stack */
|
734
|
567
|
memset ( &undi_shutdown, 0, sizeof ( undi_shutdown ) );
|
735
|
|
- undinet_call ( undinic, PXENV_UNDI_SHUTDOWN, &undi_shutdown,
|
736
|
|
- sizeof ( undi_shutdown ) );
|
|
568
|
+ pxeparent_call ( undinet_entry, PXENV_UNDI_SHUTDOWN, &undi_shutdown,
|
|
569
|
+ sizeof ( undi_shutdown ) );
|
737
|
570
|
memset ( &undi_cleanup, 0, sizeof ( undi_cleanup ) );
|
738
|
|
- undinet_call ( undinic, PXENV_UNDI_CLEANUP, &undi_cleanup,
|
739
|
|
- sizeof ( undi_cleanup ) );
|
|
571
|
+ pxeparent_call ( undinet_entry, PXENV_UNDI_CLEANUP, &undi_cleanup,
|
|
572
|
+ sizeof ( undi_cleanup ) );
|
740
|
573
|
undi->flags &= ~UNDI_FL_INITIALIZED;
|
741
|
574
|
err_undi_startup:
|
742
|
575
|
/* Unhook UNDI stack */
|
743
|
576
|
memset ( &stop_undi, 0, sizeof ( stop_undi ) );
|
744
|
|
- undinet_call ( undinic, PXENV_STOP_UNDI, &stop_undi,
|
745
|
|
- sizeof ( stop_undi ) );
|
|
577
|
+ pxeparent_call ( undinet_entry, PXENV_STOP_UNDI, &stop_undi,
|
|
578
|
+ sizeof ( stop_undi ) );
|
746
|
579
|
undi->flags &= ~UNDI_FL_STARTED;
|
747
|
580
|
err_start_undi:
|
748
|
581
|
netdev_nullify ( netdev );
|
|
@@ -773,22 +606,22 @@ void undinet_remove ( struct undi_device *undi ) {
|
773
|
606
|
|
774
|
607
|
/* Shut down UNDI stack */
|
775
|
608
|
memset ( &undi_shutdown, 0, sizeof ( undi_shutdown ) );
|
776
|
|
- undinet_call ( undinic, PXENV_UNDI_SHUTDOWN, &undi_shutdown,
|
777
|
|
- sizeof ( undi_shutdown ) );
|
|
609
|
+ pxeparent_call ( undinet_entry, PXENV_UNDI_SHUTDOWN,
|
|
610
|
+ &undi_shutdown, sizeof ( undi_shutdown ) );
|
778
|
611
|
memset ( &undi_cleanup, 0, sizeof ( undi_cleanup ) );
|
779
|
|
- undinet_call ( undinic, PXENV_UNDI_CLEANUP, &undi_cleanup,
|
780
|
|
- sizeof ( undi_cleanup ) );
|
|
612
|
+ pxeparent_call ( undinet_entry, PXENV_UNDI_CLEANUP,
|
|
613
|
+ &undi_cleanup, sizeof ( undi_cleanup ) );
|
781
|
614
|
undi->flags &= ~UNDI_FL_INITIALIZED;
|
782
|
615
|
|
783
|
616
|
/* Unhook UNDI stack */
|
784
|
617
|
memset ( &stop_undi, 0, sizeof ( stop_undi ) );
|
785
|
|
- undinet_call ( undinic, PXENV_STOP_UNDI, &stop_undi,
|
786
|
|
- sizeof ( stop_undi ) );
|
|
618
|
+ pxeparent_call ( undinet_entry, PXENV_STOP_UNDI, &stop_undi,
|
|
619
|
+ sizeof ( stop_undi ) );
|
787
|
620
|
undi->flags &= ~UNDI_FL_STARTED;
|
788
|
621
|
}
|
789
|
622
|
|
790
|
623
|
/* Clear entry point */
|
791
|
|
- memset ( &undinet_entry_point, 0, sizeof ( undinet_entry_point ) );
|
|
624
|
+ memset ( &undinet_entry, 0, sizeof ( undinet_entry ) );
|
792
|
625
|
|
793
|
626
|
/* Free network device */
|
794
|
627
|
netdev_nullify ( netdev );
|