Messages in this thread | | | Date | Sat, 9 Mar 2002 22:23:17 +0100 | From | Pavel Machek <> | Subject | Re: [PATCH] Submitting PROMISE IDE Controllers Driver Patch |
| |
Hi!
> We make some changes for support our product. The ATA-100/133 > Controllers. > Hope you can reference following describe and patch code. If there has > anything > wrong, please feel free to tell us. Thank you.
Seems like mailer damaged it badly... Or you have very poor indenting style ;-). Pavel
> @@ -371,10 +376,22 @@ > OUT_BYTE(drive->ctl,IDE_CONTROL_REG); > OUT_BYTE(0x00, IDE_FEATURE_REG); > OUT_BYTE(rq->nr_sectors,IDE_NSECTOR_REG); > + if ((drive->id->command_set_2 & 0x0400) && > HWIF(drive)->pci_devid.vid==PCI_VENDOR_ID_PROMISE) { > + /* 48 bits data previous */ > + OUT_BYTE(rq->nr_sectors>>8, IDE_NSECTOR_REG); > + OUT_BYTE(block>>24, IDE_SECTOR_REG); > + OUT_BYTE(0x00, IDE_LCYL_REG); //block only 32 bits > + OUT_BYTE(0x00, IDE_HCYL_REG); > + /* 48 bits data current */ > + OUT_BYTE(rq->nr_sectors, IDE_NSECTOR_REG); > + OUT_BYTE(block, IDE_SECTOR_REG); > + OUT_BYTE(block>>8, IDE_LCYL_REG); > + OUT_BYTE(block>>16, IDE_HCYL_REG); > + OUT_BYTE(drive->select.all,IDE_SELECT_REG); > #ifdef CONFIG_BLK_DEV_PDC4030 > - if (drive->select.b.lba || IS_PDC4030_DRIVE) { > -#else /* !CONFIG_BLK_DEV_PDC4030 */ > - if (drive->select.b.lba) { > + } else if (drive->select.b.lba || IS_PDC4030_DRIVE) { > +#else /* !CONFIG_BLK_DEV_PDC4030 */ > + } else if (drive->select.b.lba) { > #endif /* CONFIG_BLK_DEV_PDC4030 */ > #ifdef DEBUG > printk("%s: %sing: LBAsect=%ld, sectors=%ld, buffer=0x%08lx\n", > @@ -413,7 +430,10 @@
-- (about SSSCA) "I don't say this lightly. However, I really think that the U.S. no longer is classifiable as a democracy, but rather as a plutocracy." --hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |