intel_extreme: Tab cleanup; no functional change.

* It seems like the Atom editor has been injecting
  spaces in strange spots.
* Clean up spaces. Should help gcc6 as well.
* Sorry for the mess! Atom is on probation.
This commit is contained in:
Alexander von Gluck IV
2016-05-09 16:36:25 -05:00
parent ab9903c56a
commit 95e38537e0
5 changed files with 37 additions and 36 deletions
@@ -64,13 +64,13 @@ FDITransmitter::Enable()
void void
FDITransmitter::Disable() FDITransmitter::Disable()
{ {
CALLED(); CALLED();
uint32 targetRegister = fRegisterBase + PCH_FDI_TX_CONTROL; uint32 targetRegister = fRegisterBase + PCH_FDI_TX_CONTROL;
uint32 value = read32(targetRegister); uint32 value = read32(targetRegister);
write32(targetRegister, value & ~FDI_TX_ENABLE); write32(targetRegister, value & ~FDI_TX_ENABLE);
read32(targetRegister); read32(targetRegister);
spin(150); spin(150);
} }
@@ -149,13 +149,13 @@ FDIReceiver::Enable()
void void
FDIReceiver::Disable() FDIReceiver::Disable()
{ {
CALLED(); CALLED();
uint32 targetRegister = fRegisterBase + PCH_FDI_RX_CONTROL; uint32 targetRegister = fRegisterBase + PCH_FDI_RX_CONTROL;
uint32 value = read32(targetRegister); uint32 value = read32(targetRegister);
write32(targetRegister, value & ~FDI_RX_ENABLE); write32(targetRegister, value & ~FDI_RX_ENABLE);
read32(targetRegister); read32(targetRegister);
spin(150); spin(150);
} }
@@ -237,7 +237,7 @@ FDILink::Train(display_mode* target)
default: default:
bitsPerPixel = 8; bitsPerPixel = 8;
break; break;
} }
// Khz / 10. ( each output octet encoded as 10 bits. // Khz / 10. ( each output octet encoded as 10 bits.
uint32 linkBandwidth = gInfo->shared_info->fdi_link_frequency * 1000 / 10; uint32 linkBandwidth = gInfo->shared_info->fdi_link_frequency * 1000 / 10;
@@ -105,14 +105,14 @@ Port::HasEDID()
status_t status_t
Port::SetPipe(Pipe* pipe) Port::SetPipe(Pipe* pipe)
{ {
CALLED(); CALLED();
if (pipe == NULL) { if (pipe == NULL) {
ERROR("%s: Invalid pipe provided!\n", __func__); ERROR("%s: Invalid pipe provided!\n", __func__);
return B_ERROR; return B_ERROR;
} }
uint32 portRegister = _PortRegister(); uint32 portRegister = _PortRegister();
if (portRegister == 0) { if (portRegister == 0) {
ERROR("%s: Invalid PortRegister ((0x%" B_PRIx32 ") for %s\n", __func__, ERROR("%s: Invalid PortRegister ((0x%" B_PRIx32 ") for %s\n", __func__,
portRegister, PortName()); portRegister, PortName());
@@ -128,7 +128,7 @@ Port::SetPipe(Pipe* pipe)
TRACE("%s: Assigning %s (0x%" B_PRIx32 ") to pipe %s\n", __func__, TRACE("%s: Assigning %s (0x%" B_PRIx32 ") to pipe %s\n", __func__,
PortName(), portRegister, (pipe->Index() == INTEL_PIPE_A) ? "A" : "B"); PortName(), portRegister, (pipe->Index() == INTEL_PIPE_A) ? "A" : "B");
uint32 portState = read32(portRegister); uint32 portState = read32(portRegister);
if (pipe->Index() == INTEL_PIPE_A) if (pipe->Index() == INTEL_PIPE_A)
write32(portRegister, portState & ~DISPLAY_MONITOR_PIPE_B); write32(portRegister, portState & ~DISPLAY_MONITOR_PIPE_B);
@@ -422,7 +422,7 @@ LVDSPort::_PortRegister()
status_t status_t
LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode) LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode)
{ {
CALLED(); CALLED();
if (target == NULL) { if (target == NULL) {
ERROR("%s: Invalid target mode passed!\n", __func__); ERROR("%s: Invalid target mode passed!\n", __func__);
return B_ERROR; return B_ERROR;
@@ -955,8 +955,8 @@ EmbeddedDisplayPort::IsConnected()
DigitalDisplayInterface::DigitalDisplayInterface(port_index index, DigitalDisplayInterface::DigitalDisplayInterface(port_index index,
const char* baseName) const char* baseName)
: :
Port(index, baseName) Port(index, baseName)
{ {
// As of Haswell, Intel decided to change eDP ports to a "DDI" bus... // As of Haswell, Intel decided to change eDP ports to a "DDI" bus...
// on a dare because the hardware engineers were drunk one night. // on a dare because the hardware engineers were drunk one night.
@@ -415,9 +415,10 @@ intel_propose_display_mode(display_mode* target, const display_mode* low,
// TODO: improve this, ie. adapt pixel clock to allowed values!!! // TODO: improve this, ie. adapt pixel clock to allowed values!!!
if (target->virtual_width != mode->virtual_width if (target->virtual_width != mode->virtual_width
|| target->virtual_height != mode->virtual_height || target->virtual_height != mode->virtual_height
|| target->space != mode->space) || target->space != mode->space) {
continue; continue;
}
*target = *mode; *target = *mode;
return B_OK; return B_OK;
+13 -13
View File
@@ -14,22 +14,22 @@
struct pll_divisors { struct pll_divisors {
uint32 post; uint32 post;
uint32 post1; uint32 post1;
uint32 post2; uint32 post2;
bool post2_high; bool post2_high;
uint32 n; uint32 n;
uint32 m; uint32 m;
uint32 m1; uint32 m1;
uint32 m2; uint32 m2;
}; };
struct pll_limits { struct pll_limits {
pll_divisors min; pll_divisors min;
pll_divisors max; pll_divisors max;
uint32 min_post2_frequency; uint32 min_post2_frequency;
uint32 min_vco; uint32 min_vco;
uint32 max_vco; uint32 max_vco;
}; };
@@ -52,7 +52,7 @@ intel_en_gating(intel_info &info)
uint32 gateValue = (1L << 28) | (1L << 3) | (1L << 2); uint32 gateValue = (1L << 28) | (1L << 3) | (1L << 2);
if ((info.device_type.type & INTEL_TYPE_MOBILE) == INTEL_TYPE_MOBILE) { if ((info.device_type.type & INTEL_TYPE_MOBILE) == INTEL_TYPE_MOBILE) {
TRACE("G4x mobile clock gating\n"); TRACE("G4x mobile clock gating\n");
gateValue |= 1L << 18; gateValue |= 1L << 18;
} }
write32(info, 0x6200, gateValue); write32(info, 0x6200, gateValue);
} else { } else {