From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7956768612bcc11b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-06-30 04:10:20 PST Newsgroups: comp.sys.dec Path: gmd.de!dearn!frmop11.cnusc.fr!taloa.unice.fr!univ-lyon1.fr!ghost.dsi.unimi.it! batcomputer!munnari.oz.au!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!e2big.mko.dec.com!athena.uto.dec.com!beyer From: beyer@athena.uto.dec.com (Peter Beyer) Subject: Re: TORBOchannel bus clock Message-ID: <1993Jun30.105331.8154@e2big.mko.dec.com> Sender: beyer@beyer.uto.dec.com (Peter Beyer) Reply-To: beyer@athena.uto.dec.com Organization: Digital Equipment/MCS X-Newsreader: mxrn 6.18-4 References: <1993Jun30.104809@zelux7.zel.kfa-juelich.de> Date: Wed, 30 Jun 1993 10:53:31 GMT In article <1993Jun30.104809@zelux7.zel.kfa-juelich.de>, holzer@zelux7.zel.kfa-juelich.de (Juergen Holzer) writes: |> |>Hi, |>To use a hardware driver on different TURBOchannel systems it requires an |>adaption to the bus clock(25MHz or 12.5MHz). Is there any possibility to get |>information from the systems themselves about the used bus clock to automate |>this adaption within the driver without any user action? |> |>Thanks in advance! |> I've written a few drivers for TURBOchannel in the past, but never needed to know the difference in bus clock speed. So why do you want to know? There is no information in the system which tells "This is a 12.5 MHz TURBOchannel". The only way you can do this, is by using the cpu type and knowing in your driver that this cpu has a 12.5 Meg TURBOchannel. On ULTRIX you could do a check in global variable "cpu". See /sys/machine/common/cpuconf.h. VMS has macros to find the cpu type... /Peter -- Peter Beyer Windows, Graphics & Multimedia Digital Equipment b.v. beyer@utrtsc.enet.dec.com beyer@athena.uto.dec.com