Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Add pci_config_...
details: https://anonhg.NetBSD.org/src/rev/008f934c868f
branches: riastradh-drm2
changeset: 788270:008f934c868f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:00:34 2013 +0000
description:
Add pci_config_{read,write}_dword to <linux/pci.h>.
diffstat:
sys/external/bsd/drm2/include/linux/pci.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 27e686d1c032 -r 008f934c868f sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Wed Jul 24 03:00:18 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Wed Jul 24 03:00:34 2013 +0000
@@ -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 @@
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_ */
Home |
Main Index |
Thread Index |
Old Index