Module Name: src Committed By: dholland Date: Fri Jan 22 22:22:48 UTC 2016
Modified Files: src/lib/libpci: pci.h Log Message: u_int -> unsigned; also requires stddef.h and stdint.h to be compilable. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libpci/pci.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpci/pci.h diff -u src/lib/libpci/pci.h:1.6 src/lib/libpci/pci.h:1.7 --- src/lib/libpci/pci.h:1.6 Sun Sep 21 14:32:37 2014 +++ src/lib/libpci/pci.h Fri Jan 22 22:22:48 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: pci.h,v 1.6 2014/09/21 14:32:37 christos Exp $ */ +/* $NetBSD: pci.h,v 1.7 2016/01/22 22:22:48 dholland Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -38,6 +38,9 @@ #ifndef _PCI_H_ #define _PCI_H_ +#include <stddef.h> +#include <stdint.h> /* XXX */ + /* * Interface to the PCI bus for user programs. */ @@ -45,18 +48,18 @@ typedef uint32_t pcireg_t; /* XXX */ /* pci_bus.c */ -int pcibus_conf_read(int, u_int, u_int, u_int, u_int, pcireg_t *); -int pcibus_conf_write(int, u_int, u_int, u_int, u_int, pcireg_t); +int pcibus_conf_read(int, unsigned, unsigned, unsigned, unsigned, pcireg_t *); +int pcibus_conf_write(int, unsigned, unsigned, unsigned, unsigned, pcireg_t); /* pci_device.c */ -int pcidev_conf_read(int, u_int, pcireg_t *); -int pcidev_conf_write(int, u_int, pcireg_t); +int pcidev_conf_read(int, unsigned, pcireg_t *); +int pcidev_conf_write(int, unsigned, pcireg_t); /* pci_drvname.c */ -int pci_drvname(int, u_int, u_int, char *, size_t); +int pci_drvname(int, unsigned, unsigned, char *, size_t); /* pci_subr.c */ void pci_devinfo(pcireg_t, pcireg_t, int, char *, size_t); -void pci_conf_print(int, u_int, u_int, u_int); +void pci_conf_print(int, unsigned, unsigned, unsigned); #endif /* _PCI_H_ */