From owner-freebsd-hackers Thu Oct 23 00:36:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA06513 for hackers-outgoing; Thu, 23 Oct 1997 00:36:56 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA06508 for ; Thu, 23 Oct 1997 00:36:53 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id JAA04952 for ; Thu, 23 Oct 1997 09:36:20 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id JAA13974 for freebsd-hackers@freefall.cdrom.com; Thu, 23 Oct 1997 09:46:58 +0200 (MEST) Date: Thu, 23 Oct 1997 09:46:58 +0200 (MEST) From: Christoph Kukulies Message-Id: <199710230746.JAA13974@gil.physik.rwth-aachen.de> To: freebsd-hackers@freefall.FreeBSD.org Subject: need help in ISA memory mapping Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I have an industrial controller card (ISA) which has an ISA memory window (0xc8000-0xcffff e.g.). A user program should be able to directly read/write into these memory locations via a pointer (byte or word). Is there a way tp 'map' this into a user address space? Is it possible at all? I can use the isa_dev structure in the kernel driver (I have written a minimum driver that probes the card) but this only works in kernel mode. I thoughht of opening /dev/mem but that appears to be handled like a file and operationg via a pointer seems weird. Even weirder when I thing of mmapping that file. Any ideas? -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de