| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | timex.h | 18 * Copyright 1996-1997, 2002 Sun Microsystems, Inc. All rights reserved. 36 * phase-lock loop (PLL) model used in the kernel implementation. These 41 * establishes the timer interrupt frequency. 54 #define SCALE_KF (1<<16) /* PLL frequency factor (multiplier) */ 55 #define SCALE_KH (1<<2) /* FLL frequency factor (multiplier) */ 62 * possible without overflow of a 32-bit word. 65 * which serves as a an extension to the low-order bits of the system 66 * clock variable time.tv_usec. 73 * time_tolerance variables, which represent the current frequency 74 * offset and maximum frequency tolerance. [all …]
|
| /illumos-gate/usr/src/uts/i86pc/os/cpupm/ |
| H A D | cpupm_amd.c | 29 * AMD-specific CPU power management support. 36 * In the early 2000s, AMD shipped a feature called PowerNow! in the K6 era - 37 * K6-2E+ and K6-III+ cores, according to "AMD PowerNow! Technology Dynamically 40 * that is very similar to ACPI P-states. That is, selectable core voltage and 41 * frequency levels, with default "power-saver" and "high-performance" modes 42 * that are reflective of Pmin and Pmax on a 2024-era AMD processor. 45 * frequency management with the "Turbo Core" feature. They talk about this in 51 * * introduces the notion of boosting all cores beyond a "base frequency" 54 * * introduces the notion of power-governed turbo boost 56 * Somewhere in the K10 era, AMD also introduced C-state support, allowing cores [all …]
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | clock.c | 84 * clock() is called straight from the clock cyclic; see clock_init(). 87 * reprime clock 99 * high-precision avenrun values. These are needed to make the 104 time_t time; /* time in seconds since 1970 - for compatibility only */ 108 * Phase/frequency-lock loop (PLL/FLL) definitions 113 * time_state shows the state of the system clock, with values defined 116 * time_status shows the status of the system clock, with bits defined 124 * time_tolerance determines maximum frequency error or tolerance of the 125 * CPU clock oscillator and is a property of the architecture; however, 130 * in cases where a precision clock counter or external clock is [all …]
|
| /illumos-gate/usr/src/man/man2/ |
| H A D | ntp_adjtime.2 | 9 ntp_adjtime \- adjust local clock parameters 21 local clock, according to the values in the struct \fBtimex\fR pointed to by 26 The adjustment is effected in part by speeding up or slowing down the clock, as 27 necessary, and in part by phase-locking onto a once-per second pulse (PPS) 33 uint32_t modes; /* clock mode bits (w) */ 35 int32_t freq; /* frequency offset (scaled ppm) (rw) */ 38 int32_t status; /* clock status bits (rw) */ 40 int32_t precision; /* clock precision (us) (r) */ 41 int32_t tolerance; /* clock frequency tolerance 43 int32_t ppsfreq; /* pps frequency (scaled ppm) (r) */ [all …]
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | ntptime.c | 35 * Added code for external clock 38 * Revised frequency scaling to conform with adjusted parameters 44 * ntp_gettime(), ntp_adjtime() - precision time interface 50 * routine is used by the NTP daemon to adjust the system clock to an 52 * this routine are used by clock() to adjust the phase and 53 * frequency of the phase-lock loop which controls the system clock. 71 * ntp_gettime() - NTP user application interface 110 * the system clock may not be trusted, not about the in ntp_gettime() 117 * PPS signal lost when either time or frequency in ntp_gettime() 131 * frequency synchronization requested in ntp_gettime() [all …]
|
| /illumos-gate/usr/src/uts/sun4u/sunfire/sys/ |
| H A D | sysctrl.h | 89 * OBP supplies us with 3 register sets for the clock-board node. The code for 96 * 0 Clock frequency registers 98 * 2 Clock version register 107 #define SYS_OFF_CLK_FREQ2 0x2 /* offset of clock register 2 */ 109 /* Important bits for Clock Frequency register 2 */ 113 #define CLOCK_FREQ_8 0x01 /* Frequency bit 8 */ 115 #define CLOCK_RANGE 0x0c /* Bits 3:2 control the clock range */ 129 /* Register set 2 (not present on old vintage clock boards) */ 130 #define CLK_VERSION_REG 0x0 /* Offset of clock version register */ 157 #define SYS_GEN_NOT_RST 0x01 /* ==0 if clock freq reset occured */ [all …]
|
| /illumos-gate/usr/src/lib/libprtdiag/common/ |
| H A D | cpu.c | 55 * Return the operating frequency of a processor in Hertz. This function 57 * is passed in or the clock-frequency property does not exist, the 67 if ((prop = find_prop(pnode, "clock-frequency")) == NULL) { in get_cpu_freq() 90 "ecache-size"))) { in get_ecache_size() 94 "l3-cache-size"))) { in get_ecache_size() 98 "l2-cache-size"))) { in get_ecache_size() 118 * frequency, cache size, and processor revision of all cpus. in display_cpu_devices() 130 log_printf("--- --- ------- ----- ------ " in display_cpu_devices() 131 "------ ----\n", 0); in display_cpu_devices() 134 for (bnode = tree->bd_list; bnode != NULL; bnode = bnode->next) in display_cpu_devices() [all …]
|
| H A D | display_sun4u.c | 67 sys_clk = -1; /* System clock freq. (in MHz) */ in display() 88 get_prop_val(find_prop(root, "banner-name")), 0); in display() 90 /* display system clock frequency */ in display() 91 value = get_prop_val(find_prop(root, "clock-frequency")); in display() 94 log_printf(dgettext(TEXT_DOMAIN, "System clock " in display() 95 "frequency: %d MHz\n"), sys_clk, 0); in display() 201 * The various platforms can over-ride this function to
|
| /illumos-gate/usr/src/man/man1/ |
| H A D | audiotest.1 | 9 audiotest \- test audio device 12 \fBaudiotest\fR [\fB-2457\fR] [\fB-l\fR] [\fB-r\fR \fIrate\fR] [\fIdev\fR] ... 18 an audio sample over each channel and measuring the rate of playback for clock 25 \fB-l\fR 34 \fB-r\fR \fIrate\fR 43 \fB-2\fR 46 Stereo (2-channel) mode. This is the default mode. Playback assumes 2 channels 53 \fB-4\fR 56 Quadraphonic mode (4-channel surround). The test assumes that four surround 63 \fB-5\fR [all …]
|
| /illumos-gate/usr/src/boot/include/ |
| H A D | time.h | 50 * Frequency of the clock ticks reported by times(). Deprecated - use 51 * sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.) 56 /* Frequency of the clock ticks reported by clock(). */ 76 * New in POSIX 1003.1b-1993. 106 #define CLOCK_UPTIME 5 /* FreeBSD-specific. */ 107 #define CLOCK_UPTIME_PRECISE 7 /* FreeBSD-specific. */ 108 #define CLOCK_UPTIME_FAST 8 /* FreeBSD-specific. */ 109 #define CLOCK_REALTIME_PRECISE 9 /* FreeBSD-specific. */ 110 #define CLOCK_REALTIME_FAST 10 /* FreeBSD-specific. */ 111 #define CLOCK_MONOTONIC_PRECISE 11 /* FreeBSD-specific. */ [all …]
|
| /illumos-gate/usr/src/boot/sys/sys/ |
| H A D | time.h | 1 /*- 63 _u = _bt->frac; in bintime_addx() 64 _bt->frac += _x; in bintime_addx() 65 if (_u > _bt->frac) in bintime_addx() 66 _bt->sec++; in bintime_addx() 74 _u = _bt->frac; in bintime_add() 75 _bt->frac += _bt2->frac; in bintime_add() 76 if (_u > _bt->frac) in bintime_add() 77 _bt->sec++; in bintime_add() 78 _bt->sec += _bt2->sec; in bintime_add() [all …]
|
| /illumos-gate/usr/src/uts/sun4v/sys/ |
| H A D | machclock.h | 75 * The frequency of %tick cannot be relied upon by kernel code, 77 * So, always use the constant-frequency %stick on sun4v. 142 * If the kernel variable passed in as 'use_stick' is non-zero, 144 * read the %tick counter. Note the label-less branches. 198 * Constants used to convert hi-res timestamps into nanoseconds 199 * (see <sys/clock.h> file for more information) 203 * At least 62.5 MHz, for faster %tick-based systems. 208 * NOTE: the macros below assume that the various time-related variables 210 * are all stored together on a 64-byte boundary. The primary motivation 218 * number of nanoseconds since the last clock tick ('nslt'). It also [all …]
|
| /illumos-gate/usr/src/uts/sun4/sys/ |
| H A D | bbc_beep.h | 23 * Copyright (c) 1999-2000 by Sun Microsystems, Inc. 48 * clock) that is used to generate the audio signal. So, bit[10] 49 * generates a signal at 1/(2^12) the system frequency, and 50 * bit[18], at 1/(2^20). So if s = system frequency(in MHz), 66 /* Register to set the frequency */ 90 #define BEEP_WRITE_CTRL_REG(val) ddi_put8(bbc_beeptr->bbc_beep_regs_handle, \ 91 ((uint8_t *)&bbc_beeptr->bbc_beep_regsp->bbc_beep_control), \ 94 ddi_put8(bbc_beeptr->bbc_beep_regs_handle, \ 95 ((uint8_t *)&bbc_beeptr->bbc_beep_regsp->bbc_beep_counter[no]), \
|
| /illumos-gate/usr/src/uts/sun4u/os/ |
| H A D | mach_mp_startup.c | 35 * Useful for disabling MP bring-up for an MP capable kernel 41 * Init CPU info - get CPU type info for processor_info system call. 46 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info() 47 int cpuid = cp->cpu_id; in init_cpu_info() 50 cp->cpu_fpowner = NULL; /* not used for V9 */ in init_cpu_info() 53 * Get clock-frequency property from cpunodes[] for the CPU. in init_cpu_info() 55 pi->pi_clock = (cpunode->clock_freq + 500000) / 1000000; in init_cpu_info() 58 * Current frequency in Hz. in init_cpu_info() 60 cp->cpu_curr_clock = cpunode->clock_freq; in init_cpu_info() 67 (void) strcpy(pi->pi_processor_type, "sparcv9"); in init_cpu_info() [all …]
|
| H A D | fillsysinfo.c | 31 #include <sys/clock.h> 132 #define WATCHDOG_ENABLE "watchdog-enable" 147 * If this variable is non-zero, cpr should return "not supported" when 154 * energystar-v* property (Enchilada server, for example). If this 155 * variable is non-zero, cpr should proceed even in the absence 156 * of the energystar-v* property. 205 GETPROP(prom_chosennode(), CHOSEN_EEPROM, (caddr_t)&ieeprom) != -1) in map_wellknown_devices() 210 * Get System clock frequency from root node if it exists. in map_wellknown_devices() 212 if (GETPROP(root, "stick-frequency", (caddr_t)&stick_freq) != -1) in map_wellknown_devices() 220 for (wkp = wkdevice; wkp->wk_namep; ++wkp) { in map_wellknown_devices() [all …]
|
| /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
| H A D | opl_picl.h | 42 #define OBP_PROP_CLOCK_FREQ "clock-frequency" 44 #define OBP_PROP_REVISION_ID "revision-id" 45 #define OBP_PROP_VENDOR_ID "vendor-id" 46 #define OBP_PROP_DEVICE_ID "device-id" 49 #define OBP_PROP_ECACHE_SIZE "ecache-size" 53 #define OBP_PROP_BANNER_NAME "banner-name" 55 #define OBP_PROP_66MHZ_CAPABLE "66mhz-capable" 61 #define PCI_UNKN -1 91 /* PCI frequency shift bits */ 97 /* PCI frequency modes */ [all …]
|
| /illumos-gate/usr/src/uts/sun4v/os/ |
| H A D | mach_mp_startup.c | 41 * Useful for disabling MP bring-up for an MP capable kernel 47 * Init CPU info - get CPU type info for processor_info system call. 52 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info() 53 int cpuid = cp->cpu_id; in init_cpu_info() 56 cp->cpu_fpowner = NULL; /* not used for V9 */ in init_cpu_info() 59 * Get clock-frequency property from cpunodes[] for the CPU. in init_cpu_info() 61 pi->pi_clock = (cpunode->clock_freq + 500000) / 1000000; in init_cpu_info() 64 * Current frequency in Hz. in init_cpu_info() 66 cp->cpu_curr_clock = cpunode->clock_freq; in init_cpu_info() 73 (void) strcpy(pi->pi_processor_type, "sparcv9"); in init_cpu_info() [all …]
|
| /illumos-gate/usr/src/man/man8/ |
| H A D | ccidadm.8 | 41 in a human-readable form where applicable. 45 .Bl -tag -width "device" 55 or in a short-hand form. 56 The short-hand form consists of the reader instance, specified by the driver 69 .Bl -tag -width "" 86 A human-readable summary of the ATR data is printed when no flags are given. 90 .Bl -tag -width Ds 93 in a human-readable form. 114 .Bl -tag -width "" 116 .Bd -literal [all …]
|
| /illumos-gate/usr/src/cmd/picl/plugins/sun4u/ents/devtree/ |
| H A D | picl_asr.conf | 30 # Platform specific .conf file for picldevtree plug-in 32 dimm0 memory-module-group unused /memory-controller@0,0/memory-module-group I?ID=0 33 dimm0 memory-module disabled /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=0 34 dimm0 memory-module unused /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=1 35 dimm1 memory-module-group unused /memory-controller@0,0/memory-module-group I?ID=0 36 dimm1 memory-module unused /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=0 37 dimm1 memory-module disabled /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=1 38 dimm2 memory-module-group unused /memory-controller@0,0/memory-module-group I?ID=1 39 dimm2 memory-module disabled /memory-controller@0,0/memory-module-group?ID=1/memory-module I?ID=0 40 dimm2 memory-module unused /memory-controller@0,0/memory-module-group?ID=1/memory-module I?ID=1 [all …]
|
| /illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/devtree/ |
| H A D | picl_asr.conf | 30 # Platform specific .conf file for picldevtree plug-in 32 dimm0 memory-module-group unused /memory-controller@0,0/memory-module-group I?ID=0 33 dimm0 memory-module disabled /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=0 34 dimm0 memory-module unused /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=1 35 dimm1 memory-module-group unused /memory-controller@0,0/memory-module-group I?ID=0 36 dimm1 memory-module unused /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=0 37 dimm1 memory-module disabled /memory-controller@0,0/memory-module-group?ID=0/memory-module I?ID=1 38 dimm2 memory-module-group unused /memory-controller@0,0/memory-module-group I?ID=1 39 dimm2 memory-module disabled /memory-controller@0,0/memory-module-group?ID=1/memory-module I?ID=0 40 dimm2 memory-module unused /memory-controller@0,0/memory-module-group?ID=1/memory-module I?ID=1 [all …]
|
| /illumos-gate/usr/src/uts/sun4u/io/ |
| H A D | todmostek.c | 38 #include <sys/clock.h> 114 * Read the current time from the clock chip and convert to UNIX form. 115 * Assumes that the year in the clock chip is valid. 129 CLOCK->clk_ctrl |= CLK_CTRL_READ; in todm_get() 130 tod.tod_year = BCD_TO_BYTE(CLOCK->clk_year) + YRBASE; in todm_get() 131 tod.tod_month = BCD_TO_BYTE(CLOCK->clk_month & 0x1f); in todm_get() 132 tod.tod_day = BCD_TO_BYTE(CLOCK->clk_day & 0x3f); in todm_get() 133 tod.tod_dow = BCD_TO_BYTE(CLOCK->clk_weekday & 0x7); in todm_get() 134 tod.tod_hour = BCD_TO_BYTE(CLOCK->clk_hour & 0x3f); in todm_get() 135 tod.tod_min = BCD_TO_BYTE(CLOCK->clk_min & 0x7f); in todm_get() [all …]
|
| H A D | bbc_beep.c | 212 bbc_beeptr->bbc_beep_dip = dip; in bbc_beep_attach() 215 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF; in bbc_beep_attach() 263 if (bbc_beeptr->bbc_beep_mode == BBC_BEEP_OFF) { in bbc_beep_detach() 299 *result = (void *)bbc_beeptr->bbc_beep_dip; in bbc_beep_info() 322 * Set the frequency 334 /* Convert the frequency in hz to the bbc counter value */ in bbc_beep_freq() 371 bbc_beeptr->bbc_beep_mode = BBC_BEEP_ON; in bbc_beep_on() 390 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF; in bbc_beep_off() 401 * should be mapped into a non-cacheable portion of the system 418 (caddr_t *)&bbc_beeptr->bbc_beep_regsp, in bbc_beep_map_regs() [all …]
|
| /illumos-gate/usr/src/man/man9f/ |
| H A D | ddi_get_lbolt.9f | 9 ddi_get_lbolt \- returns the value of lbolt 25 integer that represents the number of clock ticks since the last system reboot. 27 frequency can be determined by using \fBdrv_usectohz\fR(9F) which converts 28 microseconds into clock ticks.
|
| /illumos-gate/usr/src/cmd/dtrace/demo/sdt/ |
| H A D | interval.d | 29 sdt:::callout-start 31 self->callout = ((callout_t *)arg0)->c_func; 35 /self->callout && arg2 <= 100/ 40 * 100 ticks. The system clock's frequency ? set by the variable 41 * "hz" ? defaults to 100, so 100 system clock ticks is one second. 43 @callout[self->callout] = lquantize(arg2, 0, 100); 46 sdt:::callout-end 48 self->callout = NULL;
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | clock.c | 34 #include <sys/param.h> /* for HZ (clock frequency in Hz) */ 40 clock(void) in clock() function 47 if (times(&buffer) == (clock_t)-1) in clock() 48 return ((clock_t)-1); in clock() 55 return ((TIMES(buffer) - first) * (CLOCKS_PER_SEC/Hz)); in clock()
|