mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Need to do isolation when find_isapnp_device is first called,
otherwise isapnp_max_csn is zero and we never call fill_isapnp_device. Fix debug message.
This commit is contained in:
@@ -372,7 +372,8 @@ static int isapnp_try_isolate ( void ) {
|
|||||||
isapnp_wait_for_key ();
|
isapnp_wait_for_key ();
|
||||||
|
|
||||||
/* Return number of cards found */
|
/* Return number of cards found */
|
||||||
DBG ( "ISAPnP found %d cards at read port %hx\n", isapnp_read_port );
|
DBG ( "ISAPnP found %d cards at read port %hx\n",
|
||||||
|
isapnp_max_csn, isapnp_read_port );
|
||||||
return isapnp_max_csn;
|
return isapnp_max_csn;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -407,13 +408,6 @@ static int fill_isapnp_device ( struct isapnp_device *isapnp ) {
|
|||||||
unsigned int i;
|
unsigned int i;
|
||||||
struct isapnp_logdevid logdevid;
|
struct isapnp_logdevid logdevid;
|
||||||
|
|
||||||
/* Ensure that all ISAPnP cards have CSNs allocated to them,
|
|
||||||
* if we haven't already done so.
|
|
||||||
*/
|
|
||||||
if ( ! isapnp_read_port ) {
|
|
||||||
isapnp_isolate();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Wake the card */
|
/* Wake the card */
|
||||||
isapnp_wait_for_key ();
|
isapnp_wait_for_key ();
|
||||||
isapnp_send_key ();
|
isapnp_send_key ();
|
||||||
@@ -469,6 +463,13 @@ int find_isapnp_device ( struct isapnp_device *isapnp,
|
|||||||
isapnp->csn = 1;
|
isapnp->csn = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure that all ISAPnP cards have CSNs allocated to them,
|
||||||
|
* if we haven't already done so.
|
||||||
|
*/
|
||||||
|
if ( ! isapnp_read_port ) {
|
||||||
|
isapnp_isolate();
|
||||||
|
}
|
||||||
|
|
||||||
/* Iterate through all possible ISAPNP CSNs, starting where we
|
/* Iterate through all possible ISAPNP CSNs, starting where we
|
||||||
* left off.
|
* left off.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user