Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Fix compilation (debug)
details: https://anonhg.NetBSD.org/src/rev/684be3baeaab
branches: trunk
changeset: 333498:684be3baeaab
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 06 01:26:02 2014 +0000
description:
Fix compilation (debug)
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_acpi.c | 4 ++++
sys/external/bsd/drm2/dist/drm/i915/intel_opregion.c | 16 ++++++++--------
2 files changed, 12 insertions(+), 8 deletions(-)
diffs (79 lines):
diff -r 4da09ee47333 -r 684be3baeaab sys/external/bsd/drm2/dist/drm/i915/intel_acpi.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_acpi.c Thu Nov 06 00:45:58 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_acpi.c Thu Nov 06 01:26:02 2014 +0000
@@ -12,6 +12,10 @@
#ifdef CONFIG_ACPI
#ifdef __NetBSD__
+#include <dev/acpi/acpireg.h>
+#define _COMPONENT ACPI_BUTTON_COMPONENT
+ACPI_MODULE_NAME("acpi_intel_brightness")
+
static ACPI_OBJECT *
acpi_evaluate_dsm(ACPI_HANDLE handle, const uint8_t *uuid, int rev, int func,
ACPI_OBJECT *argv4)
diff -r 4da09ee47333 -r 684be3baeaab sys/external/bsd/drm2/dist/drm/i915/intel_opregion.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_opregion.c Thu Nov 06 00:45:58 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_opregion.c Thu Nov 06 01:26:02 2014 +0000
@@ -257,12 +257,12 @@
static int swsci(struct drm_device *dev, u32 function, u32 parm, u32 *parm_out)
{
struct drm_i915_private *dev_priv = dev->dev_private;
- struct opregion_swsci __iomem *swsci = dev_priv->opregion.swsci;
+ struct opregion_swsci __iomem *region_swsci = dev_priv->opregion.swsci;
u32 main_function, sub_function, scic;
u16 pci_swsci;
u32 dslp;
- if (!swsci)
+ if (!region_swsci)
return -ENODEV;
main_function = (function & SWSCI_SCIC_MAIN_FUNCTION_MASK) >>
@@ -282,7 +282,7 @@
}
/* Driver sleep timeout in ms. */
- dslp = ioread32(&swsci->dslp);
+ dslp = ioread32(®ion_swsci->dslp);
if (!dslp) {
/* The spec says 2ms should be the default, but it's too small
* for some machines. */
@@ -295,7 +295,7 @@
}
/* The spec tells us to do this, but we are the only user... */
- scic = ioread32(&swsci->scic);
+ scic = ioread32(®ion_swsci->scic);
if (scic & SWSCI_SCIC_INDICATOR) {
DRM_DEBUG_DRIVER("SWSCI request already in progress\n");
return -EBUSY;
@@ -303,8 +303,8 @@
scic = function | SWSCI_SCIC_INDICATOR;
- iowrite32(parm, &swsci->parm);
- iowrite32(scic, &swsci->scic);
+ iowrite32(parm, ®ion_swsci->parm);
+ iowrite32(scic, ®ion_swsci->scic);
/* Ensure SCI event is selected and event trigger is cleared. */
pci_read_config_word(dev->pdev, PCI_SWSCI, &pci_swsci);
@@ -319,7 +319,7 @@
pci_write_config_word(dev->pdev, PCI_SWSCI, pci_swsci);
/* Poll for the result. */
-#define C (((scic = ioread32(&swsci->scic)) & SWSCI_SCIC_INDICATOR) == 0)
+#define C (((scic = ioread32(®ion_swsci->scic)) & SWSCI_SCIC_INDICATOR) == 0)
if (wait_for(C, dslp)) {
DRM_DEBUG_DRIVER("SWSCI request timed out\n");
return -ETIMEDOUT;
@@ -335,7 +335,7 @@
}
if (parm_out)
- *parm_out = ioread32(&swsci->parm);
+ *parm_out = ioread32(®ion_swsci->parm);
return 0;
Home |
Main Index |
Thread Index |
Old Index