View | Details | Raw Unified | Return to bug 14380
Collapse All | Expand All

(-)src/sys/pci/if_de.c (+33 lines)
Lines 81-86 Link Here
81
81
82
#include <net/if_var.h>
82
#include <net/if_var.h>
83
#include <vm/pmap.h>
83
#include <vm/pmap.h>
84
#include <pci/pcireg.h>
84
#include <pci/pcivar.h>
85
#include <pci/pcivar.h>
85
#include <pci/dc21040reg.h>
86
#include <pci/dc21040reg.h>
86
87
Lines 5136-5141 Link Here
5136
#endif
5137
#endif
5137
    int retval, idx;
5138
    int retval, idx;
5138
    u_int32_t revinfo, cfdainfo, id;
5139
    u_int32_t revinfo, cfdainfo, id;
5140
    u_int32_t cfcsinfo;
5139
#if !defined(TULIP_IOMAPPED)
5141
#if !defined(TULIP_IOMAPPED)
5140
    vm_offset_t pa_csrs;
5142
    vm_offset_t pa_csrs;
5141
#endif
5143
#endif
Lines 5154-5159 Link Here
5154
    revinfo  = pci_conf_read(config_id, PCI_CFRV) & 0xFF;
5156
    revinfo  = pci_conf_read(config_id, PCI_CFRV) & 0xFF;
5155
    id       = pci_conf_read(config_id, PCI_CFID);
5157
    id       = pci_conf_read(config_id, PCI_CFID);
5156
    cfdainfo = pci_conf_read(config_id, PCI_CFDA);
5158
    cfdainfo = pci_conf_read(config_id, PCI_CFDA);
5159
    cfcsinfo = pci_conf_read(config_id, PCI_CFCS);
5160
5161
#if defined(TULIP_DEBUG)
5162
    printf("    revinfo = 0x%02x\n", revinfo);
5163
    printf("         id = 0x%08x\n", id);
5164
    printf("   cfdainfo = 0x%08x\n", cfdainfo);
5165
    printf("   cfcsinfo = 0x%08x\n", cfcsinfo);
5166
#endif
5167
5168
    /* turn busmaster on in case BIOS doesn't set it */
5169
    if(!(cfcsinfo & PCIM_CMD_BUSMASTEREN)) {
5170
	printf("de%d: enabling busmaster operation\n", unit);
5171
	cfcsinfo |= PCIM_CMD_BUSMASTEREN;
5172
	pci_conf_write(config_id, PCI_CFCS, cfcsinfo);
5173
    }
5174
5175
#if 0
5176
#if defined(TULIP_IOMAPPED)
5177
    /* XXX - "other operating systems" set this bit too */
5178
    if(!(cfcsinfo & PCIM_CMD_PORTEN)) {
5179
    	printf("de%d: enabling port mapped operation\n", unit);
5180
	cfcsinfo |= PCIM_CMD_PORTEN;
5181
	pci_conf_write(config_id, PCI_CFCS, cfcsinfo);
5182
    }
5183
#endif
5184
#endif
5185
5186
#if defined(TULIP_DEBUG)
5187
    printf("   cfcsinfo = 0x%08x\n", 
5188
	(unsigned) pci_conf_read(config_id, PCI_CFCS));
5189
#endif
5157
5190
5158
    if (PCI_VENDORID(id) == DEC_VENDORID) {
5191
    if (PCI_VENDORID(id) == DEC_VENDORID) {
5159
	if (PCI_CHIPID(id) == CHIPID_21040)
5192
	if (PCI_CHIPID(id) == CHIPID_21040)

Return to bug 14380