Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!sdd.hp.com!mips!ultra!marc From: marc@mercutio.ultra.com (Marc Kwiatkowski {Host Software-AIX}) Newsgroups: comp.unix.aix Subject: Re: Hard delays in device drivers Message-ID: <1991May16.030649.1167@ultra.com> Date: 16 May 91 03:06:49 GMT References: <5393@atexnet.Atex.Kodak.COM> Sender: marc@ultra.com (Marc Kwiatkowski {Host Software-AIX}) Organization: Ultra Network Technologies Lines: 48 In-Reply-To: kjl@epps.kodak.com's message of 15 May 91 13:28:26 GMT In article <5393@atexnet.Atex.Kodak.COM> kjl@epps.kodak.com (Ken Lebowitz) writes: > O.K. - I'm doing my first device driver for the RS/6000. I'm trying > to find out how to insert a time delay for a few microseconds into my > device initialization routine. On SunOS (*shudder*) there's a > "DELAY()" macro which does this. Does anybody out there know how to > accomplish the same thing for AIX? From TFM void delay (ticks) int ticks; Parameter ticks specifies the number of timer ticks that must occur before process is reactivated. Many timer ticks can occur per second. blah blah blah. I don't mean to be snide, but if you can't find this documentation, heaven help you when you get to physio, dma, shared-memory, devsw, kernel locks, etc. I'd acquaint myself with InfoExplorer. Read the following titles, "Calls and Subroutines Reference: Kernel Extensions", "Kernel Extensions and Device Support Programming Concepts". The inaugural issue of AIXpert also has a good article on device drivers by Sam Drake. Also, "The IBM RISC System/6000 POWERstation and POWERserver Hardware Technical Reference - General Information Manual" - sorry no order number - is essential for IOCC architecture, POS/VPD configuration, etc. Finally, there are a number of samples, of limited usefulness, in /usr/lpp/bos/samples. Hope this helps. -- ------------------------------------------------------------------ Marc P. Kwiatkowski Ultra Network Technologies Internet: marc@ultra.com 101 Daggett Drive uucp: ...!ames!ultra!marc San Jose, CA 95134 USA telephone: 408 922 0100 x249 Ignore the following signature. -- ------------------------------------------------------------------ Marc P. Kwiatkowski Ultra Network Technologies Internet: marc@ultra.com 101 Daggett Drive uucp: ...!ames!ultra!marc San Jose, CA 95134 USA