|
@@ -49,7 +49,7 @@ static SEGOFF16_t __data16 ( undi_loader_entry );
|
49
|
49
|
* @v undirom UNDI ROM
|
50
|
50
|
* @ret rc Return status code
|
51
|
51
|
*/
|
52
|
|
-static int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
|
|
52
|
+int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
|
53
|
53
|
struct s_PXE ppxe;
|
54
|
54
|
uint16_t fbms;
|
55
|
55
|
unsigned int fbms_seg;
|
|
@@ -138,22 +138,6 @@ static int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
|
138
|
138
|
return 0;
|
139
|
139
|
}
|
140
|
140
|
|
141
|
|
-/**
|
142
|
|
- * Call UNDI loader to create a pixie
|
143
|
|
- *
|
144
|
|
- * @v undi UNDI device
|
145
|
|
- * @v undirom UNDI ROM
|
146
|
|
- * @v pci_busdevfn PCI bus:dev.fn
|
147
|
|
- * @ret rc Return status code
|
148
|
|
- */
|
149
|
|
-int undi_load_pci ( struct undi_device *undi, struct undi_rom *undirom,
|
150
|
|
- unsigned int bus, unsigned int devfn ) {
|
151
|
|
- undi->pci_busdevfn = ( ( bus << 8 ) | devfn );
|
152
|
|
- undi->isapnp_csn = 0xffff;
|
153
|
|
- undi->isapnp_read_port = 0xffff;
|
154
|
|
- return undi_load ( undi, undirom );
|
155
|
|
-}
|
156
|
|
-
|
157
|
141
|
/**
|
158
|
142
|
* Unload a pixie
|
159
|
143
|
*
|
|
@@ -172,7 +156,7 @@ int undi_unload ( struct undi_device *undi ) {
|
172
|
156
|
/* Erase signatures */
|
173
|
157
|
if ( undi->pxenv.segment )
|
174
|
158
|
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
|
175
|
|
- if ( undi->ppxe_segment )
|
|
159
|
+ if ( undi->ppxe.segment )
|
176
|
160
|
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
|
177
|
161
|
|
178
|
162
|
/* Free base memory, if possible */
|