if_dc.c (119288) | if_dc.c (119434) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 76 unchanged lines hidden (view full) --- 85 * All of the workalike chips use some form of MII transceiver support 86 * with the exception of the Macronix chips, which also have a SYM port. 87 * The ASIX AX88140A is also documented to have a SYM port, but all 88 * the cards I've seen use an MII transceiver, probably because the 89 * AX88140A doesn't support internal NWAY. 90 */ 91 92#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 76 unchanged lines hidden (view full) --- 85 * All of the workalike chips use some form of MII transceiver support 86 * with the exception of the Macronix chips, which also have a SYM port. 87 * The ASIX AX88140A is also documented to have a SYM port, but all 88 * the cards I've seen use an MII transceiver, probably because the 89 * AX88140A doesn't support internal NWAY. 90 */ 91 92#include <sys/cdefs.h> |
93__FBSDID("$FreeBSD: head/sys/dev/dc/if_dc.c 119288 2003-08-22 07:20:27Z imp $"); | 93__FBSDID("$FreeBSD: head/sys/dev/dc/if_dc.c 119434 2003-08-24 23:47:44Z mbr $"); |
94 95#include <sys/param.h> 96#include <sys/endian.h> 97#include <sys/systm.h> 98#include <sys/sockio.h> 99#include <sys/mbuf.h> 100#include <sys/malloc.h> 101#include <sys/kernel.h> --- 1821 unchanged lines hidden (view full) --- 1923 break; 1924 case DC_DEVICEID_DM9009: 1925 case DC_DEVICEID_DM9100: 1926 case DC_DEVICEID_DM9102: 1927 sc->dc_type = DC_TYPE_DM9102; 1928 sc->dc_flags |= DC_TX_COALESCE | DC_TX_INTR_ALWAYS; 1929 sc->dc_flags |= DC_REDUCED_MII_POLL | DC_TX_STORENFWD; 1930 sc->dc_pmode = DC_PMODE_MII; | 94 95#include <sys/param.h> 96#include <sys/endian.h> 97#include <sys/systm.h> 98#include <sys/sockio.h> 99#include <sys/mbuf.h> 100#include <sys/malloc.h> 101#include <sys/kernel.h> --- 1821 unchanged lines hidden (view full) --- 1923 break; 1924 case DC_DEVICEID_DM9009: 1925 case DC_DEVICEID_DM9100: 1926 case DC_DEVICEID_DM9102: 1927 sc->dc_type = DC_TYPE_DM9102; 1928 sc->dc_flags |= DC_TX_COALESCE | DC_TX_INTR_ALWAYS; 1929 sc->dc_flags |= DC_REDUCED_MII_POLL | DC_TX_STORENFWD; 1930 sc->dc_pmode = DC_PMODE_MII; |
1931 if (revision >= DC_REVISION_DM9102A) 1932 sc->dc_flags |= DC_TX_ALIGN; |
|
1931 /* Increase the latency timer value. */ 1932 command = pci_read_config(dev, DC_PCI_CFLT, 4); 1933 command &= 0xFFFF00FF; 1934 command |= 0x00008000; 1935 pci_write_config(dev, DC_PCI_CFLT, command, 4); 1936 break; 1937 case DC_DEVICEID_AL981: 1938 sc->dc_type = DC_TYPE_AL981; --- 1902 unchanged lines hidden --- | 1933 /* Increase the latency timer value. */ 1934 command = pci_read_config(dev, DC_PCI_CFLT, 4); 1935 command &= 0xFFFF00FF; 1936 command |= 0x00008000; 1937 pci_write_config(dev, DC_PCI_CFLT, command, 4); 1938 break; 1939 case DC_DEVICEID_AL981: 1940 sc->dc_type = DC_TYPE_AL981; --- 1902 unchanged lines hidden --- |