|
@@ -76,13 +76,13 @@ static int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
|
76
|
76
|
/* Debug info */
|
77
|
77
|
DBGC ( undi, "UNDI %p loading UNDI ROM %p to CS %04x DS %04x for ",
|
78
|
78
|
undi, undirom, undi_loader.UNDI_CS, undi_loader.UNDI_DS );
|
79
|
|
- if ( undi->pci_busdevfn ) {
|
|
79
|
+ if ( undi->pci_busdevfn != 0xffff ) {
|
80
|
80
|
unsigned int bus = ( undi->pci_busdevfn >> 8 );
|
81
|
81
|
unsigned int devfn = ( undi->pci_busdevfn & 0xff );
|
82
|
82
|
DBGC ( undi, "PCI %02x:%02x.%x\n",
|
83
|
83
|
bus, PCI_SLOT ( devfn ), PCI_FUNC ( devfn ) );
|
84
|
84
|
}
|
85
|
|
- if ( undi->isapnp_csn != -1U ) {
|
|
85
|
+ if ( undi->isapnp_csn != 0xffff ) {
|
86
|
86
|
DBGC ( undi, "ISAPnP(%04x) CSN %04x\n",
|
87
|
87
|
undi->isapnp_read_port, undi->isapnp_csn );
|
88
|
88
|
}
|
|
@@ -149,8 +149,8 @@ static int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
|
149
|
149
|
int undi_load_pci ( struct undi_device *undi, struct undi_rom *undirom,
|
150
|
150
|
unsigned int bus, unsigned int devfn ) {
|
151
|
151
|
undi->pci_busdevfn = ( ( bus << 8 ) | devfn );
|
152
|
|
- undi->isapnp_csn = -1U;
|
153
|
|
- undi->isapnp_read_port = -1U;
|
|
152
|
+ undi->isapnp_csn = 0xffff;
|
|
153
|
+ undi->isapnp_read_port = 0xffff;
|
154
|
154
|
return undi_load ( undi, undirom );
|
155
|
155
|
}
|
156
|
156
|
|