1. 01 4月, 2009 6 次提交
  2. 27 3月, 2009 6 次提交
  3. 25 3月, 2009 1 次提交
  4. 07 1月, 2009 3 次提交
  5. 22 10月, 2008 1 次提交
  6. 14 10月, 2008 4 次提交
  7. 24 7月, 2008 4 次提交
    • B
      ide: add ide_host_add() helper · 6f904d01
      Bartlomiej Zolnierkiewicz 提交于
      Add ide_host_add() helper which does ide_host_alloc()+ide_host_register(),
      then convert ide_setup_pci_device[s](), ide_legacy_device_add() and some
      host drivers to use it.
      
      While at it:
      
      * Fix ide_setup_pci_device[s](), ide_arm.c, gayle.c, ide-4drives.c,
        macide.c, q40ide.c, cmd640.c and cs5520.c to return correct error value.
      
      * -ENOENT -> -ENOMEM in rapide.c, ide-h8300.c, ide-generic.c, au1xxx-ide.c
        and pmac.c
      
      * -ENODEV -> -ENOMEM in palm_bk3710.c, ide_platform.c and delkin_cb.c
      
      * -1 -> -ENOMEM in ide-pnp.c
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      6f904d01
    • B
      ide: add struct ide_host (take 3) · 48c3c107
      Bartlomiej Zolnierkiewicz 提交于
      * Add struct ide_host which keeps pointers to host's ports.
      
      * Add ide_host_alloc[_all]() and ide_host_remove() helpers.
      
      * Pass 'struct ide_host *host' instead of 'u8 *idx' to
        ide_device_add[_all]() and rename it to ide_host_register[_all]().
      
      * Convert host drivers and core code to use struct ide_host.
      
      * Remove no longer needed ide_find_port().
      
      * Make ide_find_port_slot() static.
      
      * Unexport ide_unregister().
      
      v2:
      * Add missing 'struct ide_host *host' to macide.c.
      
      v3:
      * Fix build problem in pmac.c (s/ide_alloc_host/ide_host_alloc/)
        (Noticed by Stephen Rothwell).
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      48c3c107
    • B
      ide: add struct ide_tp_ops (take 2) · 374e042c
      Bartlomiej Zolnierkiewicz 提交于
      * Add struct ide_tp_ops for transport methods.
      
      * Add 'const struct ide_tp_ops *tp_ops' to struct ide_port_info
        and ide_hwif_t.
      
      * Set the default hwif->tp_ops in ide_init_port_data().
      
      * Set host driver specific hwif->tp_ops in ide_init_port().
      
      * Export ide_exec_command(), ide_read_status(), ide_read_altstatus(),
        ide_read_sff_dma_status(), ide_set_irq(), ide_tf_{load,read}()
        and ata_{in,out}put_data().
      
      * Convert host drivers and core code to use struct ide_tp_ops.
      
      * Remove no longer needed default_hwif_transport().
      
      * Cleanup ide_hwif_t from methods that are now in struct ide_tp_ops.
      
      While at it:
      
      * Use struct ide_port_info in falconide.c and q40ide.c.
      
      * Rename ata_{in,out}put_data() to ide_{in,out}put_data().
      
      v2:
      
      * Fix missing convertion in ns87415.c.
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      374e042c
    • B
      ide: pass hw_regs_t-s to ide_device_add[_all]() (take 3) · c97c6aca
      Bartlomiej Zolnierkiewicz 提交于
      * Add 'hw_regs_t **hws' argument to ide_device_add[_all]() and convert
        host drivers + ide_legacy_init_one() + ide_setup_pci_device[s]() to use
        it instead of calling ide_init_port_hw() directly.
      
        [ However if host has > 1 port we must still set hwif->chipset to hint
          consecutive ide_find_port() call that the previous slot is occupied. ]
      
      * Unexport ide_init_port_hw().
      
      v2:
      * Use defines instead of hard-coded values in buddha.c, gayle.c and q40ide.c.
        (Suggested by Geert Uytterhoeven)
      
      * Better patch description.
      
      v3:
      * Fix build problem in ide-cs.c. (Noticed by Stephen Rothwell)
      
      There should be no functional changes caused by this patch.
      
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      c97c6aca
  8. 17 7月, 2008 2 次提交
  9. 29 4月, 2008 4 次提交
    • B
      ide: remove ->INS{W,L} and ->OUTS{W,L} methods · 16bb69c1
      Bartlomiej Zolnierkiewicz 提交于
      * Use ins{w,l}()/outs{w,l}() and __ide_mm_ins{w,l}()/__ide_mm_outs{w,l}()
        directly in ata_{in,out}put_data() (by using IDE_HFLAG_MMIO host flag to
        decide which I/O ops are required).
      
      * Remove no longer needed ->INS{W,L} and ->OUTS{W,L} methods (ide-h8300,
        au1xxx-ide and scc_pata implement their own ->{in,out}put_data methods).
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      16bb69c1
    • B
      au1xxx-ide: add ->{in,out}put_data methods (take 2) · 70f91e0d
      Bartlomiej Zolnierkiewicz 提交于
      v2:
      
      * Update ->{in,out}_data methods to take 'struct request *rq' argument.
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      70f91e0d
    • B
      ide: fix au1xxx-ide breakage · 284aa76b
      Bartlomiej Zolnierkiewicz 提交于
      On Monday 28 April 2008, Sergei Shtylyov wrote:
      > Hello, I wrote:
      > 
      > > Fix these warnings emitted when compiling drivers/ide/mips/au1xxx-ide.c:
      > 
      > > include/asm/mach-au1x00/au1xxx_ide.h:137: warning: 'auide_tune_drive' declared 
      > > `static' but never defined
      > > include/asm/mach-au1x00/au1xxx_ide.h:138: warning: 'auide_tune_chipset' declared
      > >  `static' but never defined
      > 
      > > by wiping out the whole "function prototyping" section from the header file
      > > <asm-mips/mach-au1x00/au1xxx_ide.h> as it mostly declared functions that are
      > > already dead in the IDE driver; move the only useful prototype into the driver.
      > > 
      > > Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      > 
      > > ---
      > > I'm not sure thru which tree this should go -- probably thru Linux/MIPS one...
      > 
      > > Bart, au1xxx-ide-fix-mwdma-support.patch will probably need to be updated to
      > > remove that added prototype since it won't be needed anymore...
      > 
      >     Which you haven't done either in that patch or in 
      > au1xxx-ide-use-init_dma-method.patch. So, face the consequences:
      > 
      > drivers/ide/mips/au1xxx-ide.c:456: error: conflicting types for 'auide_ddma_init'
      > drivers/ide/mips/au1xxx-ide.c:51: error: previous declaration of
      > 'auide_ddma_init' was here
      > drivers/ide/mips/au1xxx-ide.c:456: error: conflicting types for 'auide_ddma_init'
      > drivers/ide/mips/au1xxx-ide.c:51: error: previous declaration of
      > 'auide_ddma_init' was here
      > drivers/ide/mips/au1xxx-ide.c:51: warning: 'auide_ddma_init' used but never
      > defined
      
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      284aa76b
    • S
      [MIPS] Pb1200/DBAu1200: move platform code to its proper place · fcbd3b4b
      Sergei Shtylyov 提交于
      Since both the IDE interface and SMC 91C111 Ethernet chip are on-board
      devices, not SOC devices, move the platform device registration form the
      common to the board specific code.
      
      While at it, remove semicolon (which didn't break compilation only by
      chance) from the AU1XXX_ATA_DDMA_REQ macro and do some renaming:
      
      - change 'au1200_ide0_' variable name prefix to the mere 'ide_';
      
      - change 'smc91x_' variable name prefix to 'smc91c111_' since that's the
        name of the chip used on the boards;
      
      - drop 'AU1XXX_' prefix from the names of macros describing IDE and Ethernet
        on-board devices;
      
      - change 'SMC91111_' to 'SMC91C111_', change 'IRQ' to 'INT' in the names of
        the macros describing the Ethernet chip for consistency with the IDE
        macros;
      
      - change 'ATA_' to 'IDE_' and 'OFFSET' to 'SHIFT' (since this value is
        indeed a shift count) in the names of the macros describing the IDE
        interface.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      fcbd3b4b
  10. 27 4月, 2008 9 次提交