/*
* Copyright © 2013 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/
#include "i915_drv.h"
#include "intel_drv.h"
/* IOSF sideband */
{
(bar << IOSF_BAR_SHIFT);
DRM_DEBUG_DRIVER("IOSF sideband idle wait (%s) timed out\n",
return -EAGAIN;
}
if (!is_read)
DRM_DEBUG_DRIVER("IOSF sideband finish wait (%s) timed out\n",
return -ETIMEDOUT;
}
if (is_read)
I915_WRITE(VLV_IOSF_DATA, 0);
return 0;
}
{
return val;
}
{
}
{
return val;
}
{
return val;
}
{
}
/* SBI access */
{
100)) {
DRM_ERROR("timeout waiting for SBI to become ready\n");
return 0;
}
if (destination == SBI_ICLK)
else
100)) {
DRM_ERROR("timeout waiting for SBI to complete read transaction\n");
return 0;
}
}
{
100)) {
DRM_ERROR("timeout waiting for SBI to become ready\n");
return;
}
if (destination == SBI_ICLK)
else
100)) {
DRM_ERROR("timeout waiting for SBI to complete write transaction\n");
return;
}
}