diff options
| author | Prafulla Deuskar <pdeuskar@FreeBSD.org> | 2001-12-06 17:50:21 +0000 |
|---|---|---|
| committer | Prafulla Deuskar <pdeuskar@FreeBSD.org> | 2001-12-06 17:50:21 +0000 |
| commit | 8798701fd565a9eda978db0767c6a74aa9694f6e (patch) | |
| tree | 08b551bd0aa1e3aa2dce0076040092cc6ec8cf95 | |
| parent | c26c7886d17486a2441c9dd45645fa2ec29cdfe2 (diff) | |
Notes
| -rw-r--r-- | sys/dev/em/if_em.c | 10 | ||||
| -rw-r--r-- | sys/dev/em/if_em_fxhw.c | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 199e9070bddb..6073af51c17c 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -55,7 +55,7 @@ struct adapter *em_adapter_list = NULL; * Driver version *********************************************************************/ -char em_driver_version[] = "1.0.6"; +char em_driver_version[] = "1.0.7"; /********************************************************************* @@ -1142,12 +1142,8 @@ em_identify_hardware(struct adapter * Adapter) /* Make sure our PCI config space has the necessary stuff set */ Adapter->PciCommandWord = pci_read_config(dev, PCIR_COMMAND, 2); - if (!(Adapter->PciCommandWord & (PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN))) { - printf("em%d: Memory Access or Bus Master bits were not set!", - Adapter->unit); - Adapter->PciCommandWord |= (PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN); - pci_write_config(dev, PCIR_COMMAND, Adapter->PciCommandWord, 2); - } + Adapter->PciCommandWord |= (PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN); + pci_write_config(dev, PCIR_COMMAND, Adapter->PciCommandWord, 2); /* Save off the information about this board */ Adapter->VendorId = pci_get_vendor(dev); diff --git a/sys/dev/em/if_em_fxhw.c b/sys/dev/em/if_em_fxhw.c index e49f8ab8695d..0fdde0f68ff5 100644 --- a/sys/dev/em/if_em_fxhw.c +++ b/sys/dev/em/if_em_fxhw.c @@ -344,7 +344,7 @@ void em_mta_set(struct adapter *Adapter, u32 HashValue) MtaRegisterValue |= (1 << HashBit); - if ((Adapter->MacType == MAC_CORDOVA) && ((HashReg & 0x0E) == 1)) { + if ((Adapter->MacType == MAC_CORDOVA) && ((HashReg & 0x1) == 1)) { Temp = E1000_READ_REG(Mta[HashReg - 1]); E1000_WRITE_REG(Mta[HashReg], HashValue); E1000_WRITE_REG(Mta[HashReg - 1], Temp); @@ -375,7 +375,7 @@ void em_write_vfta(struct adapter *Adapter, u32 Offset, u32 Value) { u32 Temp; - if ((Adapter->MacType == MAC_CORDOVA) && ((Offset & 0x0E) == 1)) { + if ((Adapter->MacType == MAC_CORDOVA) && ((Offset & 0x1) == 1)) { Temp = E1000_READ_REG(Vfta[Offset - 1]); E1000_WRITE_REG(Vfta[Offset], Value); E1000_WRITE_REG(Vfta[Offset - 1], Temp); |
