From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,ad5a2829d4e01cd2 X-Google-Attributes: gidf5392,public X-Google-Thread: 111c93,ad5a2829d4e01cd2 X-Google-Attributes: gid111c93,public X-Google-Thread: fee84,ad5a2829d4e01cd2 X-Google-Attributes: gidfee84,public From: lsr@snerd.ddns.org Subject: Re: ISA BUS, memory, and mmap Date: 1998/05/21 Message-ID: <6k1bls$404$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 355217269 References: <6jv71p$53e$1@nnrp1.dejanews.com> <873ee4u1zf.fsf@bj2-64.rh.uchicago.edu> X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; Linux 2.0.30 i486) Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu May 21 13:54:04 1998 GMT Newsgroups: comp.unix.osf.osf1,comp.os.linux.development.system,comp.os.linux.alpha In article <873ee4u1zf.fsf@bj2-64.rh.uchicago.edu>, Peter A Fein wrote: > > lsr@snerd.ddns.org writes: > > > Greetings, > > > > I am writing a C program to access a card installed in a ISA slot in a DEC > > Alpha 500au workstation. The card is designed to be accessible via the memory > > bus and installs at memory address 0xFC0000 which is configurable via > > jumpers. The question is: Is this really the address that it will appear at, > > or is there some non obvious translation that needs to occur? Any info would > > be greatly appreciated. Thanks. > > First, which OS are you using, as this is probably going to make a > difference in how you access this memory. I don't know anything about > OSF, but in linux, user programs can't access real memory locations > b/c of virtual memory. You'd need to write a kernel-level driver > which provided a user interface to the hardware. I have heard some > talk of adding user-level direct adressing, but I don't believe it's > going to be implemented any time soon. > > -- > Peter Fein 773-834-6206 > 1005 E. 60th St. Chicago, IL 60637 > p-fein@uchicago.edu http://pfein.home.ml.org/ > I guess I should have been a little more specific in my request. I understand virtual memory vs physical memory etc. My question should have been: If I have an ISA card that is setup via jumpers for memory mapped IO beggining at address 0xFC0000, can I use that address as the offset in the mmap function call, or is there some translation that I must do. I'm interested in both Linux and DEC OSF. Thanks. -lsr lsr@iquest.net -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading