Module Name: src
Committed By: riastradh
Date: Wed Jul 24 03:00:34 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: pci.h
Log Message:
Add pci_config_{read,write}_dword to <linux/pci.h>.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 \
src/sys/external/bsd/drm2/include/linux/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/sys/external/bsd/drm2/include/linux/pci.h
diff -u src/sys/external/bsd/drm2/include/linux/pci.h:1.1.2.2 src/sys/external/bsd/drm2/include/linux/pci.h:1.1.2.3
--- src/sys/external/bsd/drm2/include/linux/pci.h:1.1.2.2 Wed Jul 24 01:59:37 2013
+++ src/sys/external/bsd/drm2/include/linux/pci.h Wed Jul 24 03:00:34 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: pci.h,v 1.1.2.2 2013/07/24 01:59:37 riastradh Exp $ */
+/* $NetBSD: pci.h,v 1.1.2.3 2013/07/24 03:00:34 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,4 +49,16 @@ pci_find_capability(struct pci_dev *pdev
NULL, NULL);
}
+static inline void
+pci_config_read_dword(struct pci_dev *pdev, int reg, uint32_t *valuep)
+{
+ *valuep = pci_conf_read(pdev->pd_pa.pa_pc, pdev->pd_pa.pa_tag, reg);
+}
+
+static inline void
+pci_config_write_dword(struct pci_dev *pdev, int reg, uint32_t value)
+{
+ pci_conf_write(pdev->pd_pa.pa_pc, pdev->pd_pa.pa_tag, reg, value);
+}
+
#endif /* _LINUX_PCI_H_ */