/* Return the RDC1010 cable type. Unlike the IT821x we know how to do this and can do host side cable detect  */
static int it821x_rdc_cable(struct ata_port *ap)
/* Return the RDC1010 cable type. Unlike the IT821x we know how to do this and can do host side cable detect  */
static int it821x_rdc_cable(struct ata_port *ap)
{
	u16 r40;
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	pci_read_config_word(pdev, 0x40, &r40);
	if (r40 & (1 << (2 + ap->port_no)))
		return ATA_CBL_PATA40;
	return ATA_CBL_PATA80;
}