Re: pci_read_config_byte in 2.1.85

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Wed, 4 Feb 1998 14:54:50 +0100


Hi,

> The vast majority of drivers are broken, in that case. In the net
> directory, only de4x5 and Happy Meal seem to use the pci_dev method,
> and in de4x5 this only happens for Ultra - all other archs use a
> direct config read.
>
> BTW, it would make life easier if the pci code provided a function to
> return (a pointer to) the pci_dev struct for a device given its bus
> and dev/fn numbers, rather than each driver having to include code to
> search the list.

I think of replacing pcibios_find_* functions by pci_find_* working
with pci_dev structures and make all drivers use the new functions
and fetch both the base addresses and irq's from pci_dev.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"All computers run at the same speed... with the power off."