*BSD News Article 15423


Return to BSD News archive

Xref: sserve comp.periphs:3593 comp.unix.bsd:11942 comp.unix.pc-clone.32bit:2570 comp.os.386bsd.development:642
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!noc.near.net!uunet!not-for-mail
From: avg@rodan.UU.NET (Vadim Antonov)
Newsgroups: comp.periphs,comp.unix.bsd,comp.unix.pc-clone.32bit,comp.os.386bsd.development
Subject: Re: RFD on RTC (Real Time Clock) MC146818
Date: 30 Apr 1993 15:43:28 -0400
Organization: can take care of itself.
Lines: 43
Message-ID: <1rrvh0INN759@rodan.UU.NET>
References: <jmonroyC6A8t3.572@netcom.com>
NNTP-Posting-Host: rodan.uu.net
Keywords: RTC Real time clock

In article <jmonroyC6A8t3.572@netcom.com> jmonroy@netcom.com (Jesus Monroy Jr) writes:
>                I need a precision 1Khz alarm clock for the QIC-40/80.
>        A "dead loop" will not work with current hardware limitations.
>        A hardware clock is needed.

Phew.

362: cd i386/isa
363: grep imeout fd.c
#define FDT_MOTORON     3       /* Motor turn-on timeout (0.5 sec) */
#define FDT_IO          10      /* I/O timeout (2 seconds) */
#define QIC_IOTIMEOUT   50      /* I/O timeout (10 seconds) */
        char    timo;           /* Timeout */
#define FDS_TIMO        6       /* Operation has been timeouted */
#define FDS_TIMOERR     7       /* Controller finished reset after timeout */
#define FDS_TTIMO       26      /* Tape i/o timeout error */
        char    ackretry;       /* Number of tape ACK timeouts */
                 * Timeout after the last operation...
                 * I/O timeout -- practically it means that there is no
                        /* Timeout */
 * Process next bit timeouts
         * If there is no ACK bit, timeout
                                timeout(fdnextbit, fd, 2);
         * Timeout for the next bit expired?
         * Timeout?
                timeout(fdtparg, fd, 2);
                timeout(fdnextbit, fd, 2);      /* at least 5ms */
        int ntp;        /* number of pending timeouts */
                timeout(fdpoll, 0, hz/5);
364:

Any questions?

> (Crowd: Yeah!)

Nah!

--vadim

DISCLAIMER: I do not speak for or express opinions of my present,
	past and future employers and/or the government of Tanzania.
	The text above is an exercise in the 1st Ammendment and 
	protected by US Copyright Law.  I speak for myself ONLY.