Make sure bus mastering is enabled.

This commit is contained in:
thorpej 1999-03-23 23:18:50 +00:00
parent 6c6ff861c6
commit 9f85a4a798
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_fxp.c,v 1.32 1999/02/28 17:08:52 explorer Exp $ */
/* $NetBSD: if_fxp.c,v 1.33 1999/03/23 23:18:50 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -326,6 +326,11 @@ fxp_attach(parent, self, aux)
printf(": Intel EtherExpress Pro 10+/100B Ethernet\n");
/* Make sure bus-mastering is enabled. */
pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) |
PCI_COMMAND_MASTER_ENABLE);
/*
* Allocate our interrupt.
*/