summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-14 16:42:43 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-14 16:42:43 +0000
commit208450fee193a7c8af10652476330083e063a10f (patch)
treea48e2d0f7926e8a291e45fb36837345105bc527a /share/man/man9
parent015d91481e50c39e85a9d9ef4853c21fdf51b895 (diff)
add pci_decompose_tag()
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/Makefile3
-rw-r--r--share/man/man9/pci_conf_read.98
2 files changed, 9 insertions, 2 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index ec8ba88ca5e..3beb5477fd3 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.106 2005/11/14 14:30:21 mickey Exp $
+# $OpenBSD: Makefile,v 1.107 2005/11/14 16:42:42 mickey Exp $
# $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@@ -214,6 +214,7 @@ MLINKS+=rssadapt.9 ieee80211_rssadapt_choose.9 \
rssadapt.9 ieee80211_rssadapt_raise_rate.9 \
rssadapt.9 ieee80211_rssadapt_updatestats.9
MLINKS+=pci_conf_read.9 pci_conf_write.9 pci_conf_read.9 pci_make_tag.9
+MLINKS+=pci_conf_read.9 pci_decompose_tag.9
MLINKS+=pfind.9 pgfind.9
MLINKS+=pmap.9 pmap_init.9 pmap.9 pmap_enter.9 pmap.9 pmap_remove.9 \
pmap.9 pmap_unwire.9 pmap.9 pmap_protect.9 pmap.9 pmap_page_protect.9 \
diff --git a/share/man/man9/pci_conf_read.9 b/share/man/man9/pci_conf_read.9
index 554552dc2c5..69adf8289dc 100644
--- a/share/man/man9/pci_conf_read.9
+++ b/share/man/man9/pci_conf_read.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pci_conf_read.9,v 1.2 2005/11/14 16:35:33 mickey Exp $
+.\" $OpenBSD: pci_conf_read.9,v 1.3 2005/11/14 16:42:42 mickey Exp $
.\"
.\" Copyright (c) 2005 Michael Shalayeff
.\" All rights reserved.
@@ -32,6 +32,9 @@
.Fd #include <machine/pci_machdep.h>
.Ft pcitag_t
.Fn pci_make_tag "pci_chipset_tag_t pc" "int bus" "int dev" "int func"
+.Ft void
+.Fn pci_decompose_tag "pci_chipset_tag_t pc" "pcitag_t tag" "int *busp" \
+"int *devp" "int *funcp"
.Ft pcireg_t
.Fn pci_conf_read "pci_chipset_tag_t pc" "pcitag_t tag" "int reg"
.Ft void
@@ -62,6 +65,9 @@ and the device specification in a tuple of
.Ar function .
The PCI tag composition is a PCI chipset dependant operation
although often as simple as shift and logical OR combination.
+The
+.Nm pci_decompose_tag
+provides a reverse opration.
Having a tag composed now it is possible to perform configuration
space read and write with
.Nm pci_conf_read