diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-26 16:44:19 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-26 16:44:19 -0400 |
| commit | a52b0d25a722e84da999005b75f972aa4824253c (patch) | |
| tree | 4a3a48305f744e6bde2e3fd663a4473dd712049c /drivers/ide/pci/cs5535.c | |
| parent | 539a5fe22620a1665cce504167953a71a43232ad (diff) | |
| parent | f37afdaca711838b50ecd89b9c15fc745270d77c (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (46 commits)
ide: constify struct ide_dma_ops
ide: add struct ide_dma_ops (take 3)
ide: add IDE_HFLAG_SERIALIZE_DMA host flag
sl82c105: check bridge revision in sl82c105_init_one()
au1xxx-ide: use ->init_dma method
palm_bk3710: use ->init_dma method
sgiioc4: use ->init_dma method
icside: use ->init_dma method
ide-pmac: use ->init_dma method
ide: do complete DMA setup in ->init_dma method (take 2)
au1xxx-ide: fix MWDMA support
ide: cleanup ide_setup_dma()
ide: factor out setting PCI bus-mastering from ide_hwif_setup_dma()
ide: export ide_allocate_dma_engine()
ide: move ide_setup_dma() call out from ->init_dma method
alim15x3: skip DMA initialization completely on revs < 0x20
pdc202xx_old: remove init_dma_pdc202xx()
ide: don't display "BIOS" settings in ide_setup_dma()
ide: remove ->cds field from ide_hwif_t (take 2)
ide: remove ide_dma_iobase()
...
Diffstat (limited to 'drivers/ide/pci/cs5535.c')
| -rw-r--r-- | drivers/ide/pci/cs5535.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/drivers/ide/pci/cs5535.c b/drivers/ide/pci/cs5535.c index c9685f239c65..99fe91a191b8 100644 --- a/drivers/ide/pci/cs5535.c +++ b/drivers/ide/pci/cs5535.c | |||
| @@ -166,25 +166,15 @@ static u8 __devinit cs5535_cable_detect(ide_hwif_t *hwif) | |||
| 166 | return (bit & 1) ? ATA_CBL_PATA80 : ATA_CBL_PATA40; | 166 | return (bit & 1) ? ATA_CBL_PATA80 : ATA_CBL_PATA40; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | /**** | 169 | static const struct ide_port_ops cs5535_port_ops = { |
| 170 | * init_hwif_cs5535 - Initialize one ide cannel | 170 | .set_pio_mode = cs5535_set_pio_mode, |
| 171 | * @hwif: Channel descriptor | 171 | .set_dma_mode = cs5535_set_dma_mode, |
| 172 | * | 172 | .cable_detect = cs5535_cable_detect, |
| 173 | * This gets invoked by the IDE driver once for each channel. It | 173 | }; |
| 174 | * performs channel-specific pre-initialization before drive probing. | ||
| 175 | * | ||
| 176 | */ | ||
| 177 | static void __devinit init_hwif_cs5535(ide_hwif_t *hwif) | ||
| 178 | { | ||
| 179 | hwif->set_pio_mode = &cs5535_set_pio_mode; | ||
| 180 | hwif->set_dma_mode = &cs5535_set_dma_mode; | ||
| 181 | |||
| 182 | hwif->cable_detect = cs5535_cable_detect; | ||
| 183 | } | ||
| 184 | 174 | ||
| 185 | static const struct ide_port_info cs5535_chipset __devinitdata = { | 175 | static const struct ide_port_info cs5535_chipset __devinitdata = { |
| 186 | .name = "CS5535", | 176 | .name = "CS5535", |
| 187 | .init_hwif = init_hwif_cs5535, | 177 | .port_ops = &cs5535_port_ops, |
| 188 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_POST_SET_MODE | | 178 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_POST_SET_MODE | |
| 189 | IDE_HFLAG_ABUSE_SET_DMA_MODE, | 179 | IDE_HFLAG_ABUSE_SET_DMA_MODE, |
| 190 | .pio_mask = ATA_PIO4, | 180 | .pio_mask = ATA_PIO4, |
