From owner-freebsd-hardware Wed Dec 9 14:48:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA07742 for freebsd-hardware-outgoing; Wed, 9 Dec 1998 14:48:43 -0800 (PST) (envelope-from owner-freebsd-hardware@FreeBSD.ORG) Received: from postoffice.prismnet.com (postoffice.prismnet.com [205.166.246.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA07733 for ; Wed, 9 Dec 1998 14:48:38 -0800 (PST) (envelope-from Chris_Ficklin@serengeti.com) Received: from mclaren ([209.198.148.163]) by postoffice.prismnet.com (8.8.8/8.8.5) with SMTP id QAA03285 for ; Wed, 9 Dec 1998 16:48:27 -0600 (CST) Message-Id: <3.0.32.19981209164910.00a3c9e0@prismnet.com> X-Sender: seren@prismnet.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Wed, 09 Dec 1998 16:49:11 -0600 To: freebsd-hardware@FreeBSD.ORG From: Chris Ficklin Subject: accessing PCI memory under 2.2.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm having difficulty accessing the memory on a PCI adapter I'm writing a driver for. I map the memory with pci_map_mem and am using the pointer returned to me in the va parameter. When I try to to write the memory, what I read back is not the same. I'm using copyin/copyout to write/read the memory from buffers passed from user space. Also, if I try to access the memory on the board directly (ie with a printf) the machine locks up. Does anyone have any ideas what may be wrong. Thanks, Chris Ficklin Serengeti Systems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message