From owner-freebsd-hackers Tue Nov 19 10:28:03 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA22358 for hackers-outgoing; Tue, 19 Nov 1996 10:28:03 -0800 (PST) Received: from sophia.inria.fr (sophia.inria.fr [138.96.32.20]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA22343 for ; Tue, 19 Nov 1996 10:27:57 -0800 (PST) Received: from chouette.inria.fr by sophia.inria.fr (8.7.6/8.6.12) with ESMTP id TAA27539 for ; Tue, 19 Nov 1996 19:27:50 +0100 (MET) Received: by chouette.inria.fr (8.7.6/8.6.12) id TAA18620; Tue, 19 Nov 1996 19:27:49 +0100 (MET) Date: Tue, 19 Nov 1996 19:27:49 +0100 (MET) Message-Id: <199611191827.TAA18620@chouette.inria.fr> From: Emmanuel Duros To: freebsd-hackers@freebsd.org Subject: Creating a device driv., Pb with outb, outw... Reply-to: Emmanuel.Duros@sophia.inria.fr Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I am going to write a device driver for a communication card which is a receive-only interface for satellite links. First, I would like to write a peace of code outside the kernel (in user context) that would intialize the adapter with a sequence of outb functions to the correct interface address. With a very simple program such as: #include void main(void){ outb( 0x300, 1 ); } I always get a BUS ERROR. I also tried on the parallel port (0x378) without success. Any comments on this, why does this happen ? I am using FreeBSD 2.2-961006-SNAP and I noticed there is no man on these functions or on any low level functions, is this normal ? Could you also reply to my personal Email ? Thanks... Emmanuel