diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-06-29 21:34:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-06-29 21:34:52 +0000 |
commit | c66b8d9e8f44d9cf57a383eab9733626f5bbccb7 (patch) | |
tree | 6fda747f5738d7b18016280ebf13664c6f565ec0 /sys/dev/pci/ubsec.c | |
parent | 80290b5358f469002c08bc1ec56ce9c7bca5b2b0 (diff) |
do not check for master/io/mem enables; ok kettenis
Diffstat (limited to 'sys/dev/pci/ubsec.c')
-rw-r--r-- | sys/dev/pci/ubsec.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index 74201c4a6c9..3749c19a85e 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.136 2005/08/09 04:10:13 mickey Exp $ */ +/* $OpenBSD: ubsec.c,v 1.137 2006/06/29 21:34:51 deraadt Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -154,7 +154,7 @@ ubsec_attach(struct device *parent, struct device *self, void *aux) const char *intrstr = NULL; struct ubsec_dma *dmap; bus_size_t iosize; - u_int32_t cmd, i; + u_int32_t i; int algs[CRYPTO_ALGORITHM_MAX + 1]; int kalgs[CRK_ALGORITHM_MAX + 1]; @@ -193,18 +193,6 @@ ubsec_attach(struct device *parent, struct device *self, void *aux) UBS_FLAGS_LONGCTX | UBS_FLAGS_HWNORM | UBS_FLAGS_BIGKEY; } - cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); - - if (!(cmd & PCI_COMMAND_MEM_ENABLE)) { - printf(": failed to enable memory mapping\n"); - return; - } - - if (!(cmd & PCI_COMMAND_MASTER_ENABLE)) { - printf(": failed to enable bus mastering\n"); - return; - } - if (pci_mapreg_map(pa, BS_BAR, PCI_MAPREG_TYPE_MEM, 0, &sc->sc_st, &sc->sc_sh, NULL, &iosize, 0)) { printf(": can't find mem space\n"); |