Module Name: src
Committed By: dyoung
Date: Tue Apr 5 14:57:34 UTC 2011
Modified Files:
src/share/man/man9: pci.9 pci_intr.9
Log Message:
Update manual page for constification of pci_attach_args.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/share/man/man9/pci.9
cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/pci_intr.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/pci.9
diff -u src/share/man/man9/pci.9:1.32 src/share/man/man9/pci.9:1.33
--- src/share/man/man9/pci.9:1.32 Thu Dec 2 12:54:13 2010
+++ src/share/man/man9/pci.9 Tue Apr 5 14:57:33 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: pci.9,v 1.32 2010/12/02 12:54:13 wiz Exp $
+.\" $NetBSD: pci.9,v 1.33 2011/04/05 14:57:33 dyoung Exp $
.\"
.\" Copyright (c) 2001, 2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 28, 2010
+.Dd April 5, 2011
.Dt PCI 9
.Os
.Sh NAME
@@ -92,25 +92,25 @@
"struct pci_conf_state *"
.Ft int
.Fn pci_find_device "struct pci_attach_args *pa" \
-"int (*func)(struct pci_attach_args *)"
+"int (*func)(const struct pci_attach_args *)"
.Ft int
.Fn pci_get_capability "pci_chipset_tag_t pc" "pcitag_t tag" \
"int capid" "int *offsetp" "pcireg_t *valuep"
.Ft pcireg_t
.Fn pci_mapreg_type "pci_chipset_tag_t pc" "pcitag_t tag" "int reg"
.Ft int
-.Fn pci_mapreg_map "struct pci_attach_args *pa" "int reg" \
+.Fn pci_mapreg_map "const struct pci_attach_args *pa" "int reg" \
"pcireg_t type" "int busflags" "bus_space_tag_t *tagp" \
"bus_space_handle_t *handlep" "bus_addr_t *basep" "bus_size_t *sizep"
.Ft int
.Fn pci_mapreg_info "pci_chipset_tag_t pc" "pcitag_t tag" "int reg" \
"pcireg_t type" "bus_addr_t *basep" "bus_size_t *sizep" "int *flagsp"
.Ft int
-.Fn pci_find_rom "struct pci_attach_args *pa" \
+.Fn pci_find_rom "const struct pci_attach_args *pa" \
"bus_space_tag_t bst" "bus_space_handle_t bsh" "int code" \
"bus_space_handle_t *handlep" "bus_space_size_t *sizep"
.Ft int
-.Fn pci_intr_map "struct pci_attach_args *pa" "pci_intr_handle_t *ih"
+.Fn pci_intr_map "const struct pci_attach_args *pa" "pci_intr_handle_t *ih"
.Ft const char *
.Fn pci_intr_string "pci_chipset_tag_t pc" "pci_intr_handle_t ih"
.Ft const struct evcnt *
@@ -234,7 +234,7 @@
void (*ov_conf_write)(void *,
pci_chipset_tag_t, pcitag_t, int, pcireg_t);
int (*ov_intr_map)(void *,
- struct pci_attach_args *, pci_intr_handle_t *);
+ const struct pci_attach_args *, pci_intr_handle_t *);
const char *(*ov_intr_string)(void *,
pci_chipset_tag_t, pci_intr_handle_t);
const struct evcnt *(*ov_intr_evcnt)(void *,
Index: src/share/man/man9/pci_intr.9
diff -u src/share/man/man9/pci_intr.9:1.14 src/share/man/man9/pci_intr.9:1.15
--- src/share/man/man9/pci_intr.9:1.14 Mon Mar 22 18:58:33 2010
+++ src/share/man/man9/pci_intr.9 Tue Apr 5 14:57:33 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: pci_intr.9,v 1.14 2010/03/22 18:58:33 joerg Exp $
+.\" $NetBSD: pci_intr.9,v 1.15 2011/04/05 14:57:33 dyoung Exp $
.\"
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 19, 2002
+.Dd April 5, 2011
.Dt PCI_INTR 9
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.In dev/pci/pcivar.h
.Ft int
-.Fn pci_intr_map "struct pci_attach_args *pa" "pci_intr_handle_t *ih"
+.Fn pci_intr_map "const struct pci_attach_args *pa" "pci_intr_handle_t *ih"
.Ft const char *
.Fn pci_intr_string "pci_chipset_t *pc" "pci_intr_handle_t ih"
.Ft void *