MFC: Move initialization of offsets up since the ISA probe case needs to
have them reset.
This commit is contained in:
parent
2b1a1d8611
commit
2fe75aec4f
@ -80,6 +80,9 @@ ed_probe_RTL80x9(device_t dev, int port_rid, int flags)
|
||||
|
||||
if ((error = ed_alloc_port(dev, port_rid, ED_NOVELL_IO_PORTS)))
|
||||
return (error);
|
||||
|
||||
sc->asic_offset = ED_NOVELL_ASIC_OFFSET;
|
||||
sc->nic_offset = ED_NOVELL_NIC_OFFSET;
|
||||
|
||||
if (ed_nic_inb(sc, ED_P0_CR) & (ED_CR_PS0 | ED_CR_PS1))
|
||||
ed_nic_outb(sc, ED_P0_CR, ED_CR_RD2 | ED_CR_STP);
|
||||
@ -100,9 +103,6 @@ ed_probe_RTL80x9(device_t dev, int port_rid, int flags)
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
sc->asic_offset = ED_NOVELL_ASIC_OFFSET;
|
||||
sc->nic_offset = ED_NOVELL_NIC_OFFSET;
|
||||
|
||||
if ((error = ed_probe_Novell_generic(dev, flags)))
|
||||
return (error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user