Date: Sun, 14 Dec 1997 00:25:37 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> 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 Message-ID: <199712140825.AAA10506@rah.star-gate.com> In-Reply-To: Your message of "Sun, 14 Dec 1997 01:17:39 MST." <199712140817.BAA07657@narnia.plutotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > ===========================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712140825.AAA10506>