Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 1997 10:10:56 +0200
From:      Stefan Esser <se@FreeBSD.ORG>
To:        Amancio Hasty <hasty@rah.star-gate.com>
Cc:        Kenneth Merry <ken@plutotech.com>, multimedia@FreeBSD.ORG, freebsd-current@FreeBSD.ORG
Subject:   Re: YES!, bktr now works 8)
Message-ID:  <19970814101056.02120@mi.uni-koeln.de>
In-Reply-To: <199708140532.WAA00445@rah.star-gate.com>; from Amancio Hasty on Wed, Aug 13, 1997 at 10:32:04PM -0700
References:  <199708140525.XAA08949@pluto.plutotech.com> <199708140532.WAA00445@rah.star-gate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?19970814101056.02120>