diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-01 01:06:36 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 17:39:38 -0500 |
commit | 0d5ff566779f894ca9937231a181eb31e4adff0e (patch) | |
tree | d1c7495c932581c1d41aa7f0fdb303348da49106 /drivers/ata/pata_ixp4xx_cf.c | |
parent | 1a68ff13c8a9b517de3fd4187dc525412a6eba1b (diff) |
libata: convert to iomap
Convert libata core layer and LLDs to use iomap.
* managed iomap is used. Pointer to pcim_iomap_table() is cached at
host->iomap and used through out LLDs. This basically replaces
host->mmio_base.
* if possible, pcim_iomap_regions() is used
Most iomap operation conversions are taken from Jeff Garzik
<jgarzik@pobox.com>'s iomap branch.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_ixp4xx_cf.c')
-rw-r--r-- | drivers/ata/pata_ixp4xx_cf.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index 230067d281e3..d9ee1837b7ff 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c | |||
@@ -140,9 +140,9 @@ static struct ata_port_operations ixp4xx_port_ops = { | |||
140 | static void ixp4xx_setup_port(struct ata_ioports *ioaddr, | 140 | static void ixp4xx_setup_port(struct ata_ioports *ioaddr, |
141 | struct ixp4xx_pata_data *data) | 141 | struct ixp4xx_pata_data *data) |
142 | { | 142 | { |
143 | ioaddr->cmd_addr = (unsigned long) data->cs0; | 143 | ioaddr->cmd_addr = data->cs0; |
144 | ioaddr->altstatus_addr = (unsigned long) data->cs1 + 0x06; | 144 | ioaddr->altstatus_addr = data->cs1 + 0x06; |
145 | ioaddr->ctl_addr = (unsigned long) data->cs1 + 0x06; | 145 | ioaddr->ctl_addr = data->cs1 + 0x06; |
146 | 146 | ||
147 | ata_std_ports(ioaddr); | 147 | ata_std_ports(ioaddr); |
148 | 148 | ||
@@ -152,19 +152,19 @@ static void ixp4xx_setup_port(struct ata_ioports *ioaddr, | |||
152 | * ixp4xx in little endian mode. | 152 | * ixp4xx in little endian mode. |
153 | */ | 153 | */ |
154 | 154 | ||
155 | ioaddr->data_addr ^= 0x02; | 155 | *(unsigned long *)&ioaddr->data_addr ^= 0x02; |
156 | ioaddr->cmd_addr ^= 0x03; | 156 | *(unsigned long *)&ioaddr->cmd_addr ^= 0x03; |
157 | ioaddr->altstatus_addr ^= 0x03; | 157 | *(unsigned long *)&ioaddr->altstatus_addr ^= 0x03; |
158 | ioaddr->ctl_addr ^= 0x03; | 158 | *(unsigned long *)&ioaddr->ctl_addr ^= 0x03; |
159 | ioaddr->error_addr ^= 0x03; | 159 | *(unsigned long *)&ioaddr->error_addr ^= 0x03; |
160 | ioaddr->feature_addr ^= 0x03; | 160 | *(unsigned long *)&ioaddr->feature_addr ^= 0x03; |
161 | ioaddr->nsect_addr ^= 0x03; | 161 | *(unsigned long *)&ioaddr->nsect_addr ^= 0x03; |
162 | ioaddr->lbal_addr ^= 0x03; | 162 | *(unsigned long *)&ioaddr->lbal_addr ^= 0x03; |
163 | ioaddr->lbam_addr ^= 0x03; | 163 | *(unsigned long *)&ioaddr->lbam_addr ^= 0x03; |
164 | ioaddr->lbah_addr ^= 0x03; | 164 | *(unsigned long *)&ioaddr->lbah_addr ^= 0x03; |
165 | ioaddr->device_addr ^= 0x03; | 165 | *(unsigned long *)&ioaddr->device_addr ^= 0x03; |
166 | ioaddr->status_addr ^= 0x03; | 166 | *(unsigned long *)&ioaddr->status_addr ^= 0x03; |
167 | ioaddr->command_addr ^= 0x03; | 167 | *(unsigned long *)&ioaddr->command_addr ^= 0x03; |
168 | #endif | 168 | #endif |
169 | } | 169 | } |
170 | 170 | ||