diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2024-03-30 11:27:50 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2024-03-30 11:27:50 +0100 |
commit | 799cfe411dd087a366fe1b9ed67621ca5f381b80 (patch) | |
tree | 318aeee181266cd80b22640a7a9465e6ab51d61d | |
parent | 61a255c1c55561eed48ad19ea5f40425766e88cc (diff) |
white space fixes
-rw-r--r-- | src/openbsd_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c index daf9118..30820a2 100644 --- a/src/openbsd_pci.c +++ b/src/openbsd_pci.c @@ -469,8 +469,8 @@ pci_device_openbsd_open_legacy_io(struct pci_io_handle *ret, struct amd64_iopl_args ia; #endif - /* With X server privilege separation, i/o access is - enabled early and never disabled, allow recursive, + /* With X server privilege separation, i/o access is + enabled early and never disabled, allow recursive, privilege-less calls */ if (legacy_io_handle != NULL) { ret->base = legacy_io_handle->base; @@ -633,7 +633,7 @@ pci_system_openbsd_create(void) for (domain = 0; domain < sizeof(pcifd) / sizeof(pcifd[0]); domain++) { snprintf(path, sizeof(path), "/dev/pci%d", domain); - pcifd[domain] = open(path, O_RDWR | O_CLOEXEC); + pcifd[domain] = open(path, O_RDWR | O_CLOEXEC); if (pcifd[domain] == -1) { pcifd[domain] = open(path, O_RDONLY | O_CLOEXEC); if (pcifd[domain] == -1) @@ -784,7 +784,7 @@ pci_device_vgaarb_init(void) if (ioctl(pcifd[0], PCIOCGETVGA, &pv)) continue; if (pv.pv_decode) - dev->vgaarb_rsrc = + dev->vgaarb_rsrc = VGA_ARB_RSRC_LEGACY_IO | VGA_ARB_RSRC_LEGACY_MEM; } |