summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/hifn7751.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-06-29 21:34:09 +0000
committerderaadt <deraadt@openbsd.org>2006-06-29 21:34:09 +0000
commitceee68a783143e2100c67b0e8bca71533c0d59c0 (patch)
tree309975bbcd5ed552da3089745225a98137095d59 /sys/dev/pci/hifn7751.c
parentchange bytes to kilobytes so i dont have to think about where megabytes (diff)
downloadwireguard-openbsd-ceee68a783143e2100c67b0e8bca71533c0d59c0.tar.xz
wireguard-openbsd-ceee68a783143e2100c67b0e8bca71533c0d59c0.zip
do not check for master/io/mem enables; ok kettenis
Diffstat (limited to 'sys/dev/pci/hifn7751.c')
-rw-r--r--sys/dev/pci/hifn7751.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 13d8c3c5162..7ae75aae001 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.151 2006/01/04 00:02:29 brad Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.152 2006/06/29 21:34:51 deraadt Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -148,7 +148,6 @@ hifn_attach(struct device *parent, struct device *self, void *aux)
const char *intrstr = NULL;
char rbase;
bus_size_t iosize0, iosize1;
- u_int32_t cmd;
u_int16_t ena;
int rseg;
caddr_t kva;
@@ -172,16 +171,6 @@ hifn_attach(struct device *parent, struct device *self, void *aux)
sc->sc_flags |= HIFN_IS_7811 | HIFN_HAS_RNG | HIFN_HAS_LEDS |
HIFN_NO_BURSTWRITE;
- cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
- if (!(cmd & PCI_COMMAND_MEM_ENABLE)) {
- printf(": memory mapping not enabled\n");
- return;
- }
- if (!(cmd & PCI_COMMAND_MASTER_ENABLE)) {
- printf(": bus mastering not enabled\n");
- return;
- }
-
if (pci_mapreg_map(pa, HIFN_BAR0, PCI_MAPREG_TYPE_MEM, 0,
&sc->sc_st0, &sc->sc_sh0, NULL, &iosize0, 0)) {
printf(": can't find mem space %d\n", 0);