summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/drivers/net
diff options
context:
space:
mode:
authorMichael Brown2007-01-09 02:41:26 +0100
committerMichael Brown2007-01-09 02:41:26 +0100
commitcea2221737df534557b37ffaeca708aec4cedf29 (patch)
tree12a90eba59b3ab423f34090901a39221ee1b1610 /src/arch/i386/drivers/net
parentCopy pxelinux's shutdown sequence: use UNLOAD_STACK without STOP_BASE, (diff)
downloadipxe-cea2221737df534557b37ffaeca708aec4cedf29.tar.gz
ipxe-cea2221737df534557b37ffaeca708aec4cedf29.tar.xz
ipxe-cea2221737df534557b37ffaeca708aec4cedf29.zip
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
Diffstat (limited to 'src/arch/i386/drivers/net')
-rw-r--r--src/arch/i386/drivers/net/undiload.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/i386/drivers/net/undiload.c b/src/arch/i386/drivers/net/undiload.c
index 3f0b392d5..7ae62480d 100644
--- a/src/arch/i386/drivers/net/undiload.c
+++ b/src/arch/i386/drivers/net/undiload.c
@@ -76,13 +76,13 @@ static int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
/* Debug info */
DBGC ( undi, "UNDI %p loading UNDI ROM %p to CS %04x DS %04x for ",
undi, undirom, undi_loader.UNDI_CS, undi_loader.UNDI_DS );
- if ( undi->pci_busdevfn ) {
+ if ( undi->pci_busdevfn != 0xffff ) {
unsigned int bus = ( undi->pci_busdevfn >> 8 );
unsigned int devfn = ( undi->pci_busdevfn & 0xff );
DBGC ( undi, "PCI %02x:%02x.%x\n",
bus, PCI_SLOT ( devfn ), PCI_FUNC ( devfn ) );
}
- if ( undi->isapnp_csn != -1U ) {
+ if ( undi->isapnp_csn != 0xffff ) {
DBGC ( undi, "ISAPnP(%04x) CSN %04x\n",
undi->isapnp_read_port, undi->isapnp_csn );
}
@@ -149,8 +149,8 @@ static int undi_load ( struct undi_device *undi, struct undi_rom *undirom ) {
int undi_load_pci ( struct undi_device *undi, struct undi_rom *undirom,
unsigned int bus, unsigned int devfn ) {
undi->pci_busdevfn = ( ( bus << 8 ) | devfn );
- undi->isapnp_csn = -1U;
- undi->isapnp_read_port = -1U;
+ undi->isapnp_csn = 0xffff;
+ undi->isapnp_read_port = 0xffff;
return undi_load ( undi, undirom );
}