si.c (00af6729b52ede86a08173c8d5f2c8cd9fa3390d) | si.c (e66cdf250e7cba9fa7308b179fceeb2fdcbed3ba) |
---|---|
1/* 2 * Copyright 2015 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 1325 unchanged lines hidden (view full) --- 1334 return RREG32(mmCONFIG_MEMSIZE); 1335} 1336 1337static void si_vga_set_state(struct amdgpu_device *adev, bool state) 1338{ 1339 uint32_t temp; 1340 1341 temp = RREG32(CONFIG_CNTL); | 1/* 2 * Copyright 2015 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 1325 unchanged lines hidden (view full) --- 1334 return RREG32(mmCONFIG_MEMSIZE); 1335} 1336 1337static void si_vga_set_state(struct amdgpu_device *adev, bool state) 1338{ 1339 uint32_t temp; 1340 1341 temp = RREG32(CONFIG_CNTL); |
1342 if (state == false) { | 1342 if (!state) { |
1343 temp &= ~(1<<0); 1344 temp |= (1<<1); 1345 } else { 1346 temp &= ~(1<<1); 1347 } 1348 WREG32(CONFIG_CNTL, temp); 1349} 1350 --- 1338 unchanged lines hidden --- | 1343 temp &= ~(1<<0); 1344 temp |= (1<<1); 1345 } else { 1346 temp &= ~(1<<1); 1347 } 1348 WREG32(CONFIG_CNTL, temp); 1349} 1350 --- 1338 unchanged lines hidden --- |