atrtc.c (36719) | atrtc.c (36741) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz and Don Ahn. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz and Don Ahn. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 |
37 * $Id: clock.c,v 1.121 1998/05/28 09:30:06 phk Exp $ | 37 * $Id: clock.c,v 1.122 1998/06/07 08:40:23 phk Exp $ |
38 */ 39 40/* 41 * Routines to handle clock hardware. 42 */ 43 44/* 45 * inittodr, settodr and support routines written --- 124 unchanged lines hidden (view full) --- 170static u_int tsc_present; 171 172static unsigned i8254_get_timecount __P((struct timecounter *tc)); 173static unsigned tsc_get_timecount __P((struct timecounter *tc)); 174static void set_timer_freq(u_int freq, int intr_freq); 175 176static struct timecounter tsc_timecounter[3] = { 177 tsc_get_timecount, /* get_timecount */ | 38 */ 39 40/* 41 * Routines to handle clock hardware. 42 */ 43 44/* 45 * inittodr, settodr and support routines written --- 124 unchanged lines hidden (view full) --- 170static u_int tsc_present; 171 172static unsigned i8254_get_timecount __P((struct timecounter *tc)); 173static unsigned tsc_get_timecount __P((struct timecounter *tc)); 174static void set_timer_freq(u_int freq, int intr_freq); 175 176static struct timecounter tsc_timecounter[3] = { 177 tsc_get_timecount, /* get_timecount */ |
178 0, /* no poll_pps */ |
|
178 ~0u, /* counter_mask */ 179 0, /* frequency */ 180 "TSC" /* name */ 181}; 182 183SYSCTL_OPAQUE(_debug, OID_AUTO, tsc_timecounter, CTLFLAG_RD, 184 tsc_timecounter, sizeof(tsc_timecounter), "S,timecounter", ""); 185 186static struct timecounter i8254_timecounter[3] = { 187 i8254_get_timecount, /* get_timecount */ | 179 ~0u, /* counter_mask */ 180 0, /* frequency */ 181 "TSC" /* name */ 182}; 183 184SYSCTL_OPAQUE(_debug, OID_AUTO, tsc_timecounter, CTLFLAG_RD, 185 tsc_timecounter, sizeof(tsc_timecounter), "S,timecounter", ""); 186 187static struct timecounter i8254_timecounter[3] = { 188 i8254_get_timecount, /* get_timecount */ |
189 0, /* no poll_pps */ |
|
188 ~0u, /* counter_mask */ 189 0, /* frequency */ 190 "i8254" /* name */ 191}; 192 193SYSCTL_OPAQUE(_debug, OID_AUTO, i8254_timecounter, CTLFLAG_RD, 194 i8254_timecounter, sizeof(i8254_timecounter), "S,timecounter", ""); 195 --- 970 unchanged lines hidden --- | 190 ~0u, /* counter_mask */ 191 0, /* frequency */ 192 "i8254" /* name */ 193}; 194 195SYSCTL_OPAQUE(_debug, OID_AUTO, i8254_timecounter, CTLFLAG_RD, 196 i8254_timecounter, sizeof(i8254_timecounter), "S,timecounter", ""); 197 --- 970 unchanged lines hidden --- |