acpi_user.c | 51 static int acpi_mem_fd = -1; variable in typeref:typename:int 69 if (acpi_mem_fd == -1) { 73 acpi_mem_fd = open("/dev/acpi", O_RDONLY); 75 if (acpi_mem_fd == -1) { 77 acpi_mem_fd = open("/dev/mem", O_RDONLY); 78 if (acpi_mem_fd == -1) { 84 if (acpi_mem_fd == -1) { 101 len = pread(acpi_mem_fd, data, psize, pa); 129 map->va = mmap(0, size, PROT_READ, MAP_SHARED, acpi_mem_fd, pa); 148 pread(acpi_mem_fd, &rsdp, 8, addr) [all...] |