From owner-freebsd-hackers Sun Dec 14 00:25:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA20824 for hackers-outgoing; Sun, 14 Dec 1997 00:25:53 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA20816 for ; Sun, 14 Dec 1997 00:25:46 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id AAA10506; Sun, 14 Dec 1997 00:25:37 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199712140825.AAA10506@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: gibbs@narnia.plutotech.com (Justin T. Gibbs) cc: hackers@FreeBSD.org Subject: Re: Bus/Processor specific I/O methods - was Re: Beginning SPARC port In-reply-to: Your message of "Sun, 14 Dec 1997 01:17:39 MST." <199712140817.BAA07657@narnia.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 14 Dec 1997 00:25:37 -0800 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Cool, a sane posting regarding this issue and right on target! I will review it however is going to take a little time over here because I have a queue of freebsd related small projects. Hopefully, your posting should be sufficient to anchor the discussion and further developments. Best Regards, Amancio > NetBSD has already dealt with this issue. It's called "bus.h". All > of the new CAM SCSI drivers use a FreeBSD version of this file to > perform device I/O. It also covers DMA and in fact the ISA bounce > buffers that are used in CAM use "bus DMA" instead of the older > bounce buffer scheme used in current. We shouldn't re-invent the > wheel unless there are sound reasons to do so. Please review these > files from a recent CAM snapshot to see if this is an acceptable > solution to the problem: > > sys/i386/include/bus.h > sys/i386/i386/busdma_machdep.c > > And to see how the APIs are used: > sys/dev/aic7xxx/aic7xxx.h > sys/dev/aic7xxx/aic7xxx.c > sys/pci/ahc_pci.c > > These files are available in diff format in the archive: > > ftp://ftp.FreeBSD.org/pub/FreeBSD/cam/cam-971209.diffs.gz > > -- > Justin T. Gibbs > =========================================== > FreeBSD - Turning PCs into workstations > ===========================================