Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1402 → Rev 1403

/drivers/video/drm/radeon/pci.c
1,4 → 1,5
 
#include <linux/kernel.h>
#include <pci.h>
#include <errno-base.h>
#include <syscall.h>
5,7 → 6,7
 
static LIST_HEAD(devices);
 
static dev_t* pci_scan_device(u32_t bus, int devfn);
static pci_dev_t* pci_scan_device(u32_t bus, int devfn);
 
 
/* PCI control bits. Shares IORESOURCE_BITS with above PCI ROM. */
309,9 → 310,9
return 0;
};
 
static dev_t* pci_scan_device(u32_t bus, int devfn)
static pci_dev_t* pci_scan_device(u32_t bus, int devfn)
{
dev_t *dev;
pci_dev_t *dev;
 
u32_t id;
u8_t hdr;
344,7 → 345,7
 
hdr = PciRead8(bus, devfn, PCI_HEADER_TYPE);
 
dev = (dev_t*)kzalloc(sizeof(dev_t), 0);
dev = (pci_dev_t*)kzalloc(sizeof(dev_t), 0);
 
INIT_LIST_HEAD(&dev->link);
 
370,7 → 371,7
 
for (func = 0; func < 8; func++, devfn++)
{
dev_t *dev;
pci_dev_t *dev;
 
dev = pci_scan_device(bus, devfn);
if( dev )
416,7 → 417,7
 
int enum_pci_devices()
{
dev_t *dev;
pci_dev_t *dev;
u32_t last_bus;
u32_t bus = 0 , devfn = 0;
 
744,14 → 745,14
 
 
 
struct pci_device_id* find_pci_device(dev_t* pdev, struct pci_device_id *idlist)
struct pci_device_id* find_pci_device(pci_dev_t* pdev, struct pci_device_id *idlist)
{
dev_t *dev;
pci_dev_t *dev;
struct pci_device_id *ent;
 
for(dev = (dev_t*)devices.next;
for(dev = (pci_dev_t*)devices.next;
&dev->link != &devices;
dev = (dev_t*)dev->link.next)
dev = (pci_dev_t*)dev->link.next)
{
if( dev->pci_dev.vendor != idlist->vendor )
continue;