printk(KERN_ERR DRV_NAME "(%s): invalid PCI BAR %u (sz 0x%lx, val 0x%lx)\n", pci_name(pdev), i, pci_resource_start(pdev, i), pci_resource_len(pdev, i)); 
dev_printk(KERN_ERR, &pdev->dev, "invalid PCI BAR %u (sz 0x%lx, val 0x%lx)\n", i, pci_resource_start(pdev, i), pci_resource_len(pdev, i)); 
static int svia_init_one (struct pci_dev *pdev, const struct pci_device_id *ent){	static int printed_version;	unsigned int i;	int rc;	struct ata_probe_ent *probe_ent;	int board_id = (int) ent->driver_data;	const int *bar_sizes;	int pci_dev_busy = 0;	u8 tmp8;	if (!printed_version++)		printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n");	rc = pci_enable_device(pdev);	if (rc)		return rc;	rc = pci_request_regions(pdev, DRV_NAME);	if (rc) {		pci_dev_busy = 1;		goto err_out;	}	if (board_id == vt6420) {		pci_read_config_byte(pdev, SATA_PATA_SHARING, &tmp8);		if (tmp8 & SATA_2DEV) {			printk(KERN_ERR DRV_NAME "(%s): SATA master/slave not supported (0x%x)\n",		       	pci_name(pdev), (int) tmp8);			rc = -EIO;			goto err_out_regions;		}		bar_sizes = &svia_bar_sizes[0];	} else {		bar_sizes = &vt6421_bar_sizes[0];	}	for (i = 0; i < ARRAY_SIZE(svia_bar_sizes); i++)		if ((pci_resource_start(pdev, i) == 0) ||		    (pci_resource_len(pdev, i) < bar_sizes[i])) {			printk(KERN_ERR DRV_NAME "(%s): invalid PCI BAR %u (sz 0x%lx, val 0x%lx)\n",			       pci_name(pdev), i,			       pci_resource_start(pdev, i),			       pci_resource_len(pdev, i));			rc = -ENODEV;			goto err_out_regions;		}	rc = pci_set_dma_mask(pdev, ATA_DMA_MASK);	if (rc)		goto err_out_regions;	rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK);	if (rc)		goto err_out_regions;	if (board_id == vt6420)		probe_ent = vt6420_init_probe_ent(pdev);	else		probe_ent = vt6421_init_probe_ent(pdev);	if (!probe_ent) {		printk(KERN_ERR DRV_NAME "(%s): out of memory\n",		       pci_name(pdev));		rc = -ENOMEM;		goto err_out_regions;	}	svia_configure(pdev);	pci_set_master(pdev);	/* FIXME: check ata_device_add return value */	ata_device_add(probe_ent);	kfree(probe_ent);	return 0;err_out_regions:	pci_release_regions(pdev);err_out:	if (!pci_dev_busy)		pci_disable_device(pdev);	return rc;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a9524a76f70f3343e4be27f95a7e92a8ba5f9009/sata_via.c/buggy/drivers/scsi/sata_via.c