Date: Thu, 14 Aug 1997 20:22:47 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: Stefan Esser <se@freebsd.org> Cc: Kenneth Merry <ken@plutotech.com>, multimedia@freebsd.org, freebsd-current@freebsd.org Subject: Re: YES!, bktr now works 8) Message-ID: <199708150322.UAA00376@rah.star-gate.com> In-Reply-To: Your message of "Thu, 14 Aug 1997 10:10:56 %2B0200." <19970814101056.02120@mi.uni-koeln.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <hasty@rah.star-gate.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708150322.UAA00376>