Make TX on davicom 9102A working again. This chip needs

its mbufs aligned on TX.

PR:		53656, 42714
MFC after:	3 days
This commit is contained in:
Martin Blapp 2003-08-24 23:47:44 +00:00
parent 6a6eeb429a
commit 7dfdc26c46
2 changed files with 4 additions and 0 deletions

View File

@ -1928,6 +1928,8 @@ dc_attach(device_t dev)
sc->dc_flags |= DC_TX_COALESCE | DC_TX_INTR_ALWAYS;
sc->dc_flags |= DC_REDUCED_MII_POLL | DC_TX_STORENFWD;
sc->dc_pmode = DC_PMODE_MII;
if (revision >= DC_REVISION_DM9102A)
sc->dc_flags |= DC_TX_ALIGN;
/* Increase the latency timer value. */
command = pci_read_config(dev, DC_PCI_CFLT, 4);
command &= 0xFFFF00FF;

View File

@ -1928,6 +1928,8 @@ dc_attach(device_t dev)
sc->dc_flags |= DC_TX_COALESCE | DC_TX_INTR_ALWAYS;
sc->dc_flags |= DC_REDUCED_MII_POLL | DC_TX_STORENFWD;
sc->dc_pmode = DC_PMODE_MII;
if (revision >= DC_REVISION_DM9102A)
sc->dc_flags |= DC_TX_ALIGN;
/* Increase the latency timer value. */
command = pci_read_config(dev, DC_PCI_CFLT, 4);
command &= 0xFFFF00FF;