From owner-freebsd-multimedia Thu Aug 14 20:23:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA03184 for multimedia-outgoing; Thu, 14 Aug 1997 20:23:04 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA03157; Thu, 14 Aug 1997 20:22:53 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.7/8.8.5) with ESMTP id UAA00376; Thu, 14 Aug 1997 20:22:47 -0700 (PDT) Message-Id: <199708150322.UAA00376@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: Stefan Esser cc: Kenneth Merry , multimedia@freebsd.org, freebsd-current@freebsd.org Subject: Re: YES!, bktr now works 8) In-reply-to: Your message of "Thu, 14 Aug 1997 10:10:56 +0200." <19970814101056.02120@mi.uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 14 Aug 1997 20:22:47 -0700 From: Amancio Hasty Sender: owner-freebsd-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I trust your judgment on the proposed API: enables = pci_enable(PCI_MEM|PCI_PORT|PCI_DMA); enables = pci_disable(PCI_MEM|PCI_PORT|PCI_DMA); Don't worry I understand the issues involved and I don't mind making the calls to enable/disable the bt848 board. Care to patch the pci interface so I can then check in my latest bt848 driver? Also, have you documented your PCI interface? Got to go something cool is on my FreeBSD TV 8) Cheers, Amancio >From The Desk Of Stefan Esser : > On Aug 13, Amancio Hasty wrote: > > > > fun = pci_conf_read(tag, PCI_COMMAND_STATUS_REG); > > > > pci_conf_write(tag, PCI_COMMAND_STATUS_REG, fun | 4); > > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ add this ^^^^^^^^^^^^^^^^^^^ > > Well, I'm not sure about the name, but a function that > enables or disables bits in the PCI command register > might be a good idea. > > How about: > > enables = pci_enable(PCI_MEM|PCI_PORT|PCI_DMA); > enables = pci_disable(PCI_MEM|PCI_PORT|PCI_DMA); > > where the result is in fact the low order three bits > from the command register after trying to set them > according to the parameter ? > > Regards, STefan