From owner-freebsd-hackers Fri Oct 23 07:05:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01213 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 07:05:51 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wrath.cs.utah.edu (wrath.cs.utah.edu [155.99.198.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01208 for ; Fri, 23 Oct 1998 07:05:49 -0700 (PDT) (envelope-from vanmaren@fast.cs.utah.edu) Received: from fast.cs.utah.edu (fast.cs.utah.edu [155.99.212.1]) by wrath.cs.utah.edu (8.8.8/8.8.8) with SMTP id IAA14692; Fri, 23 Oct 1998 08:05:16 -0600 (MDT) Received: by fast.cs.utah.edu (8.6.10/utah-2.15-leaf) id IAA16725; Fri, 23 Oct 1998 08:05:14 -0600 Date: Fri, 23 Oct 1998 08:05:14 -0600 From: vanmaren@fast.cs.utah.edu (Kevin Van Maren) Message-Id: <199810231405.IAA16725@fast.cs.utah.edu> To: Etienne.Debruin@KryptoKom.DE, freebsd-hackers@FreeBSD.ORG Subject: Re: Q: bus mastering Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > hi, i paged through the mail list archives but could not find a specific > technical discussion about bus mastering. i would like to implement bus > mastering for a pci device driver. need more info... > > eT This is highly device-dependant. Each bus-master-capable PCI device has its own DMA controller, and they are all programmed in a device-specific manner. It is not at all like ISA, where there is a centralized DMA controller that is used for DMA transfers. As a good start, you can grep for "vtophys" in src/sys/pci/*.c, but a better bet would be to get the programming info for the specific device you are interested in. (Many of the ethernet devices, especially, support scatter-gather DMA). Good luck. Kevin Van Maren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message