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_set_mas...
details: https://anonhg.NetBSD.org/src/rev/56644d635616
branches: riastradh-drm2
changeset: 788285:56644d635616
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:04:18 2013 +0000
description:
Add pci_set_master to <linux/pci.h>.
diffstat:
sys/external/bsd/drm2/include/linux/pci.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 697c91286e3d -r 56644d635616 sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Wed Jul 24 03:04:04 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Wed Jul 24 03:04:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci.h,v 1.1.2.7 2013/07/24 03:02:07 riastradh Exp $ */
+/* $NetBSD: pci.h,v 1.1.2.8 2013/07/24 03:04:18 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -90,6 +90,18 @@
pdev->msi_enabled = false;
}
+static inline void
+pci_set_master(struct pci_dev *pdev)
+{
+ pcireg_t csr;
+
+ csr = pci_conf_read(pdev->pd_pa.pa_pc, pdev->pd_pa.pa_tag,
+ PCI_COMMAND_STATUS_REG);
+ csr |= PCI_COMMAND_MASTER_ENABLE;
+ pci_conf_write(pdev->pd_pa.pa_pc, pdev->pd_pa.pa_tag,
+ PCI_COMMAND_STATUS_REG, csr);
+}
+
#define PCIBIOS_MIN_MEM 0 /* XXX bogus x86 kludge bollocks */
static inline bus_addr_t
Home |
Main Index |
Thread Index |
Old Index