From owner-freebsd-hackers Thu Jan 21 08:00:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA19564 for freebsd-hackers-outgoing; Thu, 21 Jan 1999 08:00:18 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA19556 for ; Thu, 21 Jan 1999 08:00:15 -0800 (PST) (envelope-from crossd@cs.rpi.edu) Received: from cs.rpi.edu (crossd@o2.cs.rpi.edu [128.113.96.156]) by cs.rpi.edu (8.9.1/8.9.1) with ESMTP id LAA28568 for ; Thu, 21 Jan 1999 11:00:05 -0500 (EST) Message-Id: <199901211600.LAA28568@cs.rpi.edu> To: hackers@FreeBSD.ORG Subject: device driver writing Date: Thu, 21 Jan 1999 11:00:03 -0500 From: "David E. Cross" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am attempting to write a very simple device driver for the serial port (8250 only) as a KLD (this is for demonstration purposes to a class). I admit I have never written a UNIX device drvier before, but KLD makes it look so easy :). The problem that I am having is that I do not know how to hook in to the interupts. I have looked at sio.c and noticde the 'struct isa_device', that contains the information I want to set (I think), but I do not see where or how this information is registered with the kernel. Any pointers/sample code would be appreciated, thanks :) -- David Cross To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message