Catch up with the kernel: new buffer length argument to pci_devinfo().

This commit is contained in:
kleink 2004-04-24 09:56:36 +00:00
parent 9bfa4ce964
commit 7407d114f9
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pci.3,v 1.4 2003/04/16 13:35:12 wiz Exp $
.\" $NetBSD: pci.3,v 1.5 2004/04/24 09:56:36 kleink Exp $
.\"
.\" Copyright 2001 Wasabi Systems, Inc.
.\" All rights reserved.
@ -33,7 +33,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd September 12, 2001
.Dd April 24, 2004
.Os
.Dt PCI 3
.Sh NAME
@ -56,7 +56,7 @@
.Ft char *
.Fn pci_findvendor "pcireg_t id_reg"
.Ft void
.Fn pci_devinfo "pcireg_t id_reg" "pcireg_t class_reg" "char *devinfo"
.Fn pci_devinfo "pcireg_t id_reg" "pcireg_t class_reg" "char *devinfo" "size_t len"
.Ft void
.Fn pci_conf_print "int pcifd" "u_int bus" "u_int dev" "u_int func"
.Sh DESCRIPTION
@ -123,8 +123,9 @@ and PCI class specified by the PCI ID register
and PCI class ID register
.Fa class_reg .
The description is placed into the buffer pointed to by
.Fa devinfo .
The buffer should be at least 256 bytes long.
.Fa devinfo ;
the size of that buffer is specified in
.Fa len .
.It Fn pci_conf_print
Print the PCI configuration information for the device located
at

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci.h,v 1.1 2001/09/13 22:52:20 thorpej Exp $ */
/* $NetBSD: pci.h,v 1.2 2004/04/24 09:56:36 kleink Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@ -54,7 +54,7 @@ int pcidev_conf_write(int, u_int, pcireg_t);
/* pci_subr.c */
char *pci_findvendor(pcireg_t);
void pci_devinfo(pcireg_t, pcireg_t, int, char *);
void pci_devinfo(pcireg_t, pcireg_t, int, char *, size_t);
void pci_conf_print(int, u_int, u_int, u_int);
#endif /* _PCI_H_ */