mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
lib/intel_io: rename mmio setup functions
Makes their intent a bit clearer. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -2277,9 +2277,9 @@ int main(int argc, char **argv)
|
||||
do_self_tests();
|
||||
|
||||
if (argc == 2)
|
||||
intel_map_file(argv[1]);
|
||||
intel_mmio_use_dump_file(argv[1]);
|
||||
else
|
||||
intel_get_mmio(pci_dev);
|
||||
intel_mmio_use_pci_bar(pci_dev);
|
||||
|
||||
if (IS_VALLEYVIEW(devid)) {
|
||||
printf("Valleyview audio registers:\n\n");
|
||||
|
||||
@@ -50,7 +50,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
uint32_t current, max;
|
||||
|
||||
intel_get_mmio(intel_get_pci_device());
|
||||
intel_mmio_use_pci_bar(intel_get_pci_device());
|
||||
|
||||
current = reg_read(BLC_PWM_CPU_CTL) & BACKLIGHT_DUTY_CYCLE_MASK;
|
||||
max = reg_read(BLC_PWM_PCH_CTL2) >> 16;
|
||||
|
||||
@@ -67,7 +67,7 @@ int main(int argc, char **argv)
|
||||
static struct rusage rusage;
|
||||
int status;
|
||||
|
||||
intel_get_mmio(intel_get_pci_device());
|
||||
intel_mmio_use_pci_bar(intel_get_pci_device());
|
||||
|
||||
if (argc == 1) {
|
||||
fprintf(stderr, "usage: %s cmd [args...]\n", argv[0]);
|
||||
|
||||
@@ -473,7 +473,7 @@ int main(int argc, char **argv)
|
||||
|
||||
pci_dev = intel_get_pci_device();
|
||||
devid = pci_dev->device_id;
|
||||
intel_get_mmio(pci_dev);
|
||||
intel_mmio_use_pci_bar(pci_dev);
|
||||
init_instdone_definitions(devid);
|
||||
|
||||
/* Do we have a command to run? */
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
int swf14, acpi_lid;
|
||||
|
||||
intel_get_mmio(intel_get_pci_device());
|
||||
intel_mmio_use_pci_bar(intel_get_pci_device());
|
||||
|
||||
while (1) {
|
||||
swf14 = INREG(SWF14);
|
||||
|
||||
@@ -350,7 +350,7 @@ int main(int argc, char** argv)
|
||||
|
||||
dev = intel_get_pci_device();
|
||||
devid = dev->device_id;
|
||||
intel_get_mmio(dev);
|
||||
intel_mmio_use_pci_bar(dev);
|
||||
|
||||
if (IS_GEN7(devid))
|
||||
gen = 7;
|
||||
|
||||
@@ -2931,7 +2931,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
if (file) {
|
||||
intel_map_file(file);
|
||||
intel_mmio_use_dump_file(file);
|
||||
if (devid) {
|
||||
if (IS_GEN5(devid))
|
||||
intel_pch = PCH_IBX;
|
||||
|
||||
@@ -38,7 +38,7 @@ int main(int argc, char** argv)
|
||||
|
||||
pci_dev = intel_get_pci_device();
|
||||
devid = pci_dev->device_id;
|
||||
intel_get_mmio(pci_dev);
|
||||
intel_mmio_use_pci_bar(pci_dev);
|
||||
|
||||
if (IS_GEN2(devid))
|
||||
mmio_bar = 1;
|
||||
|
||||
Reference in New Issue
Block a user