home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!Germany.EU.net!horga!agsc!veeble.han.sub.org!gkminix!gero
- From: gero@gkminix.han.de (Gero Kuhlmann)
- Subject: Re: Accessing IRQ/IO instructions under Linux.
- References: <1993Jan3.210918.25893@ifi.uio.no>
- Organization: gkminix, Hannover, Germany
- Date: Thu, 7 Jan 93 20:33:54 GMT
- X-Newsreader: TIN [version 1.1 PL6]
- Message-ID: <1993Jan7.203354.22647@gkminix.han.de>
- Lines: 22
-
- Rune Fr|ysa (runefr@ifi.uio.no) wrote:
- > Since Linux is (fortunately) running under protected mode, I have
- > some difficulties determining how to use my MPU-401 MIDI interface.
- > Under DOS, i would redirect IRQ 3 (or 9, or .. have forgot the
- > number) to an interrupt routine of my own.
- > Well, I can get my program work without this IRQ help, but I also
- > need access to port 330h and 331h. In DOS, a simple IO instuction
- > would be sufficient, but in Linux, I guess that I have to tell the
- > kernel to do this.
-
- There is a device called /dev/port. After opening the device you have to
- position the file pointer at the byte offset corresponding to your port
- address. Then you can read or write successive bytes. I never tried it
- by myself. If you should have any problems with this have a look at
- /usr/src/linux/kernel/chr_drv/mem.c
-
- gero.
-
- --
- Gero Kuhlmann Zerberus: G.KUHLMANN@A-LINK-H.ZER
- Donarweg 4 SubNet: gero@gkminix.sub.org
- D-3000 Hannover 51 IN: gero@gkminix.han.de
-