mirror of https://github.com/ipxe/ipxe.git
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.pull/1/head
parent
c41e89af41
commit
8aa3b9d972
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue