acpi_timer.c (be1841b4ae5b25d36b74e9d2a6194fe8c3e218c5) | acpi_timer.c (14827d7eaea26efe75292b41d14f5c934ebfe3a4) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 143 unchanged lines hidden (view full) --- 152 SYS_RES_IOPORT : SYS_RES_MEMORY; 153 acpi_timer_reg = bus_alloc_resource_any(dev, rtype, &rid, RF_ACTIVE); 154 if (acpi_timer_reg == NULL) { 155 device_printf(dev, "couldn't allocate resource (%s 0x%lx)\n", 156 (rtype == SYS_RES_IOPORT) ? "port" : "mem", 157 (u_long)AcpiGbl_FADT->XPmTmrBlk.Address); 158 return (ENXIO); 159 } | 1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 143 unchanged lines hidden (view full) --- 152 SYS_RES_IOPORT : SYS_RES_MEMORY; 153 acpi_timer_reg = bus_alloc_resource_any(dev, rtype, &rid, RF_ACTIVE); 154 if (acpi_timer_reg == NULL) { 155 device_printf(dev, "couldn't allocate resource (%s 0x%lx)\n", 156 (rtype == SYS_RES_IOPORT) ? "port" : "mem", 157 (u_long)AcpiGbl_FADT->XPmTmrBlk.Address); 158 return (ENXIO); 159 } |
160 acpi_timer_bsh = rman_get_bushandle(acpi_timer_reg); 161 acpi_timer_bst = rman_get_bustag(acpi_timer_reg); |
|
160 if (AcpiGbl_FADT->TmrValExt != 0) 161 acpi_timer_timecounter.tc_counter_mask = 0xffffffff; 162 else 163 acpi_timer_timecounter.tc_counter_mask = 0x00ffffff; 164 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 165 if (testenv("debug.acpi.timer_test")) 166 acpi_timer_boot_test(); 167 --- 195 unchanged lines hidden --- | 162 if (AcpiGbl_FADT->TmrValExt != 0) 163 acpi_timer_timecounter.tc_counter_mask = 0xffffffff; 164 else 165 acpi_timer_timecounter.tc_counter_mask = 0x00ffffff; 166 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 167 if (testenv("debug.acpi.timer_test")) 168 acpi_timer_boot_test(); 169 --- 195 unchanged lines hidden --- |