diff options
author | 2001-06-25 20:25:55 +0000 | |
---|---|---|
committer | 2001-06-25 20:25:55 +0000 | |
commit | 13a72c90add24e85b8894b60d749f27f48e20b0f (patch) | |
tree | fbcc48720b81e07573dee2ac9f2e7a0b83ef7a2d | |
parent | Change autonegotiation timeout for devices with a gigabit phy to 10s. All (diff) | |
download | wireguard-openbsd-13a72c90add24e85b8894b60d749f27f48e20b0f.tar.xz wireguard-openbsd-13a72c90add24e85b8894b60d749f27f48e20b0f.zip |
pci_mapreg_map requires another argument
-rw-r--r-- | sys/dev/pci/cz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c index d3978231f12..4037ba6d249 100644 --- a/sys/dev/pci/cz.c +++ b/sys/dev/pci/cz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cz.c,v 1.1 2001/06/21 13:21:50 nate Exp $ */ +/* $OpenBSD: cz.c,v 1.2 2001/06/25 20:25:55 nate Exp $ */ /* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */ /*- @@ -316,14 +316,14 @@ cz_attach(parent, self, aux) if (pci_mapreg_map(pa, PLX_PCI_RUNTIME_MEMADDR, PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0, - &cz->cz_plx.plx_st, &cz->cz_plx.plx_sh, NULL, NULL) != 0) { + &cz->cz_plx.plx_st, &cz->cz_plx.plx_sh, NULL, NULL, 0) != 0) { printf("%s: unable to map PLX registers\n", cz->cz_dev.dv_xname); return; } if (pci_mapreg_map(pa, PLX_PCI_LOCAL_ADDR0, PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0, - &cz->cz_win_st, &cz->cz_win_sh, NULL, NULL) != 0) { + &cz->cz_win_st, &cz->cz_win_sh, NULL, NULL, 0) != 0) { printf("%s: unable to map device window\n", cz->cz_dev.dv_xname); return; |