Subject: kern/31973: pcmcia(9) man page is out of date (patch included)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <plunky@rya-online.net>
List: netbsd-bugs
Date: 11/01/2005 19:31:00
>Number:         31973
>Category:       kern
>Synopsis:       pcmcia(9) man page is out of date
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 01 19:31:00 +0000 2005
>Originator:     Iain Hibbert
>Release:        NetBSD 3.99.10
>Organization:
	
>Environment:
	
	
System: NetBSD galant 3.99.10 NetBSD 3.99.10 (GALANT) #26: Tue Nov 1 17:34:13 GMT 2005 plunky@galant:/home/plunky/src/sys/arch/i386/compile/GALANT i386
Architecture: i386
Machine: i386
>Description:
	src/sys/dev/pcmcia/pcmcia.c was changed by mycroft (v1.41) such that
	two arguments to pcmcia_io_map() were removed. The man page was not
	updated at the same time.
	
>How-To-Repeat:
	
>Fix:
	

apply this patch to share/man/man9/pcmcia.9

--- pcmcia.9.old	2005-11-01 19:18:05.000000000 +0000
+++ pcmcia.9	2005-11-01 19:20:08.000000000 +0000
@@ -79,8 +79,7 @@
 "struct pcmcia_io_handle *pcihp"
 .Ft int
 .Fn pcmcia_io_map "struct pcmcia_function *pf" "int width" \
-"bus_size_t offset" "bus_size_t size" "struct pcmcia_io_handle *pcihp" \
-"int *windowp"
+"struct pcmcia_io_handle *pcihp" "int *windowp"
 .Ft void
 .Fn pcmcia_io_unmap "struct pcmcia_function *pf" "int window"
 .Ft int
@@ -239,16 +238,11 @@
 .Fa pcihp
 for device function
 .Fa pf .
-.It Fn pcmcia_io_map "pf" "width" "offset" "size" "pcihp" "windowp"
+.It Fn pcmcia_io_map "pf" "width" "pcihp" "windowp"
 Map device I/O for device function
 .Fa pf
 to the I/O space with handle
 .Fa pcihp .
-An I/O window of size
-.Fa size
-is mapped at offset
-.Fa offset
-in the chipset I/O window.
 The width of data access is specified by
 .Fa width .
 Valid values for the width are:

>Unformatted: