diff options
Diffstat (limited to 'sys/dev/pci/if_wb.c')
-rw-r--r-- | sys/dev/pci/if_wb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/if_wb.c b/sys/dev/pci/if_wb.c index e165eeda209..c3804a8de1d 100644 --- a/sys/dev/pci/if_wb.c +++ b/sys/dev/pci/if_wb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wb.c,v 1.28 2005/07/02 23:10:11 brad Exp $ */ +/* $OpenBSD: if_wb.c,v 1.29 2005/08/09 04:10:12 mickey Exp $ */ /* * Copyright (c) 1997, 1998 @@ -718,7 +718,7 @@ wb_attach(parent, self, aux) bus_addr_t iobase; bus_size_t iosize; int s, rseg; - u_int32_t command; + pcireg_t command; bus_dma_segment_t seg; bus_dmamap_t dmamap; caddr_t kva; @@ -760,10 +760,6 @@ wb_attach(parent, self, aux) * Map control/status registers. */ command = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); - command |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE | - PCI_COMMAND_MASTER_ENABLE; - pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command); - command = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); #ifdef WB_USEIOSPACE if (!(command & PCI_COMMAND_IO_ENABLE)) { |