/* Identify the cable type for the ARTOP interface in question  */
static int artop6260_cable_detect(struct ata_port *ap)
/* Identify the cable type for the ARTOP interface in question  */
static int artop6260_cable_detect(struct ata_port *ap)
{
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	u8 tmp;
	pci_read_config_byte(pdev, 0x49, &tmp);
	if (tmp & (1 << ap->port_no))
		return ATA_CBL_PATA40;
	return ATA_CBL_PATA80;
}