1. 25 7月, 2008 3 次提交
    • B
      ide: prefix messages from IDE PCI host drivers by driver name · ced3ec8a
      Bartlomiej Zolnierkiewicz 提交于
      Prefix messages from IDE PCI host drivers by driver name instead of marketed
      chipset name (it is still possible to exactly identify the particular chipset
      basing on driver messages).
      
      As a bonus this provides nice code savings for some drivers:
      
         text    data     bss     dec     hex filename
         3826     112       8    3946     f6a drivers/ide/pci/amd74xx.o.before
         2786     112       8    2906     b5a drivers/ide/pci/amd74xx.o.after
          764     108       0     872     368 drivers/ide/pci/cs5520.o.before
          680     108       0     788     314 drivers/ide/pci/cs5520.o.after
         1680     112       4    1796     704 drivers/ide/pci/generic.o.before
         1155     112       4    1271     4f7 drivers/ide/pci/generic.o.after
         7128     792       0    7920    1ef0 drivers/ide/pci/hpt366.o.before
         6984     792       0    7776    1e60 drivers/ide/pci/hpt366.o.after
         2800     148       0    2948     b84 drivers/ide/pci/pdc202xx_new.o.before
         2523     148       0    2671     a6f drivers/ide/pci/pdc202xx_new.o.after
         2831     148       0    2979     ba3 drivers/ide/pci/pdc202xx_old.o.before
         2683     148       0    2831     b0f drivers/ide/pci/pdc202xx_old.o.after
         3776     112       4    3892     f34 drivers/ide/pci/piix.o.before
         2804     112       4    2920     b68 drivers/ide/pci/piix.o.after
         4693     116       0    4809    12c9 drivers/ide/pci/siimage.o.before
         4600     116       0    4716    126c drivers/ide/pci/siimage.o.after
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      ced3ec8a
    • B
    • B
      ide: add ->dev and ->host_priv fields to struct ide_host · 6cdf6eb3
      Bartlomiej Zolnierkiewicz 提交于
      * Add 'struct device *dev[2]' and 'void *host_priv' fields
        to struct ide_host.
      
      * Set ->dev[] in ide_host_alloc_all()/ide_setup_pci_device[s]().
      
      * Pass 'void *priv' argument to ide_setup_pci_device[s]()
        and use it to set ->host_priv.
      
      * Set PCI dev's ->driver_data to point to the struct ide_host
        instance if PCI host driver wants to use ->host_priv.
      
      * Rename ide_setup_pci_device[s]() to ide_pci_init_{one,two}().
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      6cdf6eb3
  2. 24 7月, 2008 2 次提交
  3. 17 7月, 2008 1 次提交
  4. 16 7月, 2008 1 次提交
  5. 15 5月, 2008 4 次提交
  6. 30 4月, 2008 1 次提交
    • A
      alim15x3: disable init_hwif_ali15x3 for PowerPC · 6d1cee44
      Anton Vorontsov 提交于
      We don't need init_hwif_ali15x3() on the PowerPC systems either.
      
      Before:
      
      ALI15X3: IDE controller (0x10b9:0x5229 rev 0xc8) at  PCI slot 0001:03:1f.0
      ALI15X3: 100% native mode on irq 19
          ide0: BM-DMA at 0x1120-0x1127
          ide1: BM-DMA at 0x1128-0x112f
      hda: SONY DVD RW AW-Q170A, ATAPI CD/DVD-ROM drive
      hda: UDMA/66 mode selected
      ide0: Disabled unable to get IRQ 14.
      ide0: failed to initialize IDE interface
      ide1: Disabled unable to get IRQ 15.
      ide1: failed to initialize IDE interface
      
      After:
      
      ALI15X3: IDE controller (0x10b9:0x5229 rev 0xc8) at  PCI slot 0001:03:1f.0
      ALI15X3: 100% native mode on irq 19
          ide0: BM-DMA at 0x1120-0x1127
          ide1: BM-DMA at 0x1128-0x112f
      hda: SONY DVD RW AW-Q170A, ATAPI CD/DVD-ROM drive
      hda: UDMA/66 mode selected
      ide0 at 0x1100-0x1107,0x110a on irq 19
      ide1 at 0x1110-0x1117,0x111a on irq 19
      hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
      
      ide0 works well, though I can't test ide1, it isn't traced out on
      the board.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      6d1cee44
  7. 27 4月, 2008 8 次提交
  8. 26 4月, 2008 1 次提交
  9. 03 2月, 2008 2 次提交
  10. 02 2月, 2008 4 次提交
  11. 26 1月, 2008 1 次提交
    • B
      ide: add IDE_HFLAG_ABUSE_SET_DMA_MODE host flag · 4db90a14
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_ABUSE_SET_DMA_MODE host flag and use it to decide
        what to do with transfer modes < XFER_PIO_0 in ide_set_xfer_rate().
      
      * Set IDE_HFLAG_ABUSE_SET_DMA_MODE in host drivers that need it
        (aec62xx, amd74xx, cs5520, cs5535, hpt34x, hpt366, pdc202xx_old,
        serverworks, tc86c001 and via82cxxx) and cleanup ->set_dma_mode
        methods in host drivers that don't (IDE core code guarantees that
        ->set_dma_mode will be called only for modes which are present
        in SWDMA/MWDMA/UDMA masks).
      
      While at it:
      
      * Add IDE_HFLAGS_HPT34X/HPT3XX/PDC202XX/SVWKS define in
        hpt34x/hpt366/pdc202xx_old/serverworks host driver.
      
      There should be no functionality changes caused by this patch.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4db90a14
  12. 28 11月, 2007 1 次提交
  13. 20 10月, 2007 4 次提交
  14. 19 10月, 2007 7 次提交