pci_activate() wants a device and not a softc. This matches the implementation.

This commit is contained in:
cegger 2009-04-17 19:02:03 +00:00
parent 7bd8016175
commit 6655a8f4e6
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pci.9,v 1.28 2009/04/17 18:28:39 cegger Exp $
.\" $NetBSD: pci.9,v 1.29 2009/04/17 19:02:03 cegger Exp $
.\"
.\" Copyright (c) 2001, 2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -66,9 +66,9 @@
.In dev/pci/pcireg.h
.In dev/pci/pcidevs.h
.Ft int
.Fn pci_activate "pci_chipset_tag_t pc" "pcitag_t tag" "void *sc" \
.Fn pci_activate "pci_chipset_tag_t pc" "pcitag_t tag" "device_t dev" \
"int (*wakeup)(pci_chipset_tag_t pc, pcitag_t tag" \
"\t\tvoid *sc, pcireg_t reg)"
"\t\tdevice_t dev, pcireg_t reg)"
.Ft pcireg_t
.Fn pci_conf_read "pci_chipset_tag_t pc" "pcitag_t tag" "int reg"
.Ft void
@ -216,7 +216,7 @@ It contains the following member:
.El
.Sh FUNCTIONS
.Bl -tag -width compact
.It Fn pci_activate "pc" "tag" "sc" "fun"
.It Fn pci_activate "pc" "tag" "dev" "fun"
Attempt to bring the device to state D0.
If the device is not in the D0 state call
.Fa fun