Re: removing inb()/outb() from devices

2001-05-25 Thread j mckitrick
On Thu, May 24, 2001 at 08:06:58PM -0600, Warner Losh wrote: | In message [EMAIL PROTECTED] j mckitrick writes: | : I'd like to finalize the newbus work by changing inb()/outb() calls to | : bus_space_write calls. Is there a device where this has been partially done | : already? I'd like to see

Re: removing inb()/outb() from devices

2001-05-25 Thread j mckitrick
One more question: In the probe routines, the values of the hardware ports are changing from one chipset to the next. Throughout the ppc driver, the regular macros are used to access the parallel port control registers, but in the probe routine it reverts to inb/outb, probably because it makes

Re: removing inb()/outb() from devices

2001-05-25 Thread Warner Losh
In message [EMAIL PROTECTED] j mckitrick writes: : In the probe routines, the values of the hardware ports are changing from : one chipset to the next. Throughout the ppc driver, the regular macros are : used to access the parallel port control registers, but in the probe routine : it reverts to

Re: removing inb()/outb() from devices

2001-05-25 Thread j mckitrick
| Yes, but it does make sense to do that. Some busses you cannot access | the resources until they have been activated. pcmcia comes to mind :-). ah, but of course. :-) Well, then, let me know if my plan is acceptable: I will newbussify all macros, and any inb/outb calls i find that are not

Re: removing inb()/outb() from devices

2001-05-25 Thread Warner Losh
In message [EMAIL PROTECTED] j mckitrick writes: : I will newbussify all macros, and any inb/outb calls i find that are not : inside a probe function. : : How is that? Ummm, including inb/outb that are in the probe would be better. This would allow us to write a pcmcia attachment to the ppc

Re: removing inb()/outb() from devices

2001-05-24 Thread Warner Losh
In message [EMAIL PROTECTED] j mckitrick writes: : I'd like to finalize the newbus work by changing inb()/outb() calls to : bus_space_write calls. Is there a device where this has been partially done : already? I'd like to see the old and new styles, then i would fix the : vpo/imm zip driver

removing inb()/outb() from devices

2001-05-23 Thread j mckitrick
I'd like to finalize the newbus work by changing inb()/outb() calls to bus_space_write calls. Is there a device where this has been partially done already? I'd like to see the old and new styles, then i would fix the vpo/imm zip driver first, since i know that code well. After that, i could

Re: removing inb()/outb() from devices

2001-05-23 Thread Alexander Langer
Thus spake j mckitrick ([EMAIL PROTECTED]): I'd like to finalize the newbus work by changing inb()/outb() calls to bus_space_write calls. Is there a device where this has been partially done already? I'd like to see the old and new styles, then i would fix the It has been done to

Re: removing inb()/outb() from devices

2001-05-23 Thread j mckitrick
On Wed, May 23, 2001 at 07:04:15PM +0200, Alexander Langer wrote: | Thus spake j mckitrick ([EMAIL PROTECTED]): | | I'd like to finalize the newbus work by changing inb()/outb() calls to | bus_space_write calls. Is there a device where this has been partially done | already? I'd like to see