mask = (PIIX_PORT_PRESENT << i) | (PIIX_PORT_ENABLED << i); 
mask = (PIIX_PORT_ENABLED << i); 
static int piix_sata_probe (struct ata_port *ap){	struct pci_dev *pdev = to_pci_dev(ap->host_set->dev);	int combined = (ap->flags & ATA_FLAG_SLAVE_POSS);	int orig_mask, mask, i;	u8 pcs;	mask = (PIIX_PORT_PRESENT << ap->hard_port_no) |	       (PIIX_PORT_ENABLED << ap->hard_port_no);	pci_read_config_byte(pdev, ICH5_PCS, &pcs);	orig_mask = (int) pcs & 0xff;	/* TODO: this is vaguely wrong for ICH6 combined mode,	 * where only two of the four SATA ports are mapped	 * onto a single ATA channel.  It is also vaguely inaccurate	 * for ICH5, which has only two ports.  However, this is ok,	 * as further device presence detection code will handle	 * any false positives produced here.	 */	for (i = 0; i < 4; i++) {		mask = (PIIX_PORT_PRESENT << i) | (PIIX_PORT_ENABLED << i);		if ((orig_mask & mask) == mask)			if (combined || (i == ap->hard_port_no))				return 1;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/6a690df5c8b37d4a1c41df40770d42d44fac0e97/ata_piix.c/clean/drivers/scsi/ata_piix.c