Thread (23 messages) flat view 23 messages, 4 authors, 2007-02-08

Re: Audigy SE / ca0106 driver for PowerPC?

From: Kumar Gala <hidden>
Date: 2007-01-31 15:35:27

On Jan 31, 2007, at 9:20 AM, Russell McGuire wrote:
After comparing the driver methods to a couple of other PCI drivers  
that do
work on PowerPC <like the nvidia and ati stuff>, it looks like the  
methods
for accessing the PCI IO space are very depreciated in this driver..
Not sure I follow that comment, in*/out* have been the mechanisms to  
access PCI IO space for as long as I've know.
Would it be safe to assume that if I were to modify the existing

chip->port = pci_resource_start(pcidev,0);
chip->res_port = request_region(chip->port, size);

outl(chip->port+MyReg, data);

To something like:

chip->port = pci_resource_start(pcidev,0);
snd_length = pci_resource_len(pcidev, 0);
snd_port = ioremap(chip->port, length);

outl(port+MyReg, data);

I am not sure if I want to leave the outl in there, perhaps a  
different
function, or just a direct assignment?
You shouldn't have to do the ioremap, the PCI platform code should  
have already handled all of this.

What PPC platform are you on?

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help