aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_sx4.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-08-30 05:18:18 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-08-30 05:18:18 -0400
commitea6ba10bbb88e106f9e2db7dc253993bb3bbbe3b (patch)
treeaa83ab9aa74e85b7a5c76f40764514a6ac266226 /drivers/scsi/sata_sx4.c
parente005f01de32f22be8af255f2761018e9766000d2 (diff)
[libata] __iomem annotations for various drivers
Diffstat (limited to 'drivers/scsi/sata_sx4.c')
-rw-r--r--drivers/scsi/sata_sx4.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c
index c72fcc46f0fa..38b3dd2d7504 100644
--- a/drivers/scsi/sata_sx4.c
+++ b/drivers/scsi/sata_sx4.c
@@ -451,9 +451,9 @@ static void pdc20621_dma_prep(struct ata_queued_cmd *qc)
451 struct scatterlist *sg = qc->sg; 451 struct scatterlist *sg = qc->sg;
452 struct ata_port *ap = qc->ap; 452 struct ata_port *ap = qc->ap;
453 struct pdc_port_priv *pp = ap->private_data; 453 struct pdc_port_priv *pp = ap->private_data;
454 void *mmio = ap->host_set->mmio_base; 454 void __iomem *mmio = ap->host_set->mmio_base;
455 struct pdc_host_priv *hpriv = ap->host_set->private_data; 455 struct pdc_host_priv *hpriv = ap->host_set->private_data;
456 void *dimm_mmio = hpriv->dimm_mmio; 456 void __iomem *dimm_mmio = hpriv->dimm_mmio;
457 unsigned int portno = ap->port_no; 457 unsigned int portno = ap->port_no;
458 unsigned int i, last, idx, total_len = 0, sgt_len; 458 unsigned int i, last, idx, total_len = 0, sgt_len;
459 u32 *buf = (u32 *) &pp->dimm_buf[PDC_DIMM_HEADER_SZ]; 459 u32 *buf = (u32 *) &pp->dimm_buf[PDC_DIMM_HEADER_SZ];
@@ -513,9 +513,9 @@ static void pdc20621_nodata_prep(struct ata_queued_cmd *qc)
513{ 513{
514 struct ata_port *ap = qc->ap; 514 struct ata_port *ap = qc->ap;
515 struct pdc_port_priv *pp = ap->private_data; 515 struct pdc_port_priv *pp = ap->private_data;
516 void *mmio = ap->host_set->mmio_base; 516 void __iomem *mmio = ap->host_set->mmio_base;
517 struct pdc_host_priv *hpriv = ap->host_set->private_data; 517 struct pdc_host_priv *hpriv = ap->host_set->private_data;
518 void *dimm_mmio = hpriv->dimm_mmio; 518 void __iomem *dimm_mmio = hpriv->dimm_mmio;
519 unsigned int portno = ap->port_no; 519 unsigned int portno = ap->port_no;
520 unsigned int i; 520 unsigned int i;
521 521
@@ -565,7 +565,7 @@ static void __pdc20621_push_hdma(struct ata_queued_cmd *qc,
565{ 565{
566 struct ata_port *ap = qc->ap; 566 struct ata_port *ap = qc->ap;
567 struct ata_host_set *host_set = ap->host_set; 567 struct ata_host_set *host_set = ap->host_set;
568 void *mmio = host_set->mmio_base; 568 void __iomem *mmio = host_set->mmio_base;
569 569
570 /* hard-code chip #0 */ 570 /* hard-code chip #0 */
571 mmio += PDC_CHIP0_OFS; 571 mmio += PDC_CHIP0_OFS;
@@ -639,7 +639,7 @@ static void pdc20621_packet_start(struct ata_queued_cmd *qc)
639 struct ata_port *ap = qc->ap; 639 struct ata_port *ap = qc->ap;
640 struct ata_host_set *host_set = ap->host_set; 640 struct ata_host_set *host_set = ap->host_set;
641 unsigned int port_no = ap->port_no; 641 unsigned int port_no = ap->port_no;
642 void *mmio = host_set->mmio_base; 642 void __iomem *mmio = host_set->mmio_base;
643 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); 643 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
644 u8 seq = (u8) (port_no + 1); 644 u8 seq = (u8) (port_no + 1);
645 unsigned int port_ofs; 645 unsigned int port_ofs;
@@ -699,7 +699,7 @@ static int pdc20621_qc_issue_prot(struct ata_queued_cmd *qc)
699static inline unsigned int pdc20621_host_intr( struct ata_port *ap, 699static inline unsigned int pdc20621_host_intr( struct ata_port *ap,
700 struct ata_queued_cmd *qc, 700 struct ata_queued_cmd *qc,
701 unsigned int doing_hdma, 701 unsigned int doing_hdma,
702 void *mmio) 702 void __iomem *mmio)
703{ 703{
704 unsigned int port_no = ap->port_no; 704 unsigned int port_no = ap->port_no;
705 unsigned int port_ofs = 705 unsigned int port_ofs =
@@ -778,7 +778,7 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap,
778static void pdc20621_irq_clear(struct ata_port *ap) 778static void pdc20621_irq_clear(struct ata_port *ap)
779{ 779{
780 struct ata_host_set *host_set = ap->host_set; 780 struct ata_host_set *host_set = ap->host_set;
781 void *mmio = host_set->mmio_base; 781 void __iomem *mmio = host_set->mmio_base;
782 782
783 mmio += PDC_CHIP0_OFS; 783 mmio += PDC_CHIP0_OFS;
784 784
@@ -792,7 +792,7 @@ static irqreturn_t pdc20621_interrupt (int irq, void *dev_instance, struct pt_re
792 u32 mask = 0; 792 u32 mask = 0;
793 unsigned int i, tmp, port_no; 793 unsigned int i, tmp, port_no;
794 unsigned int handled = 0; 794 unsigned int handled = 0;
795 void *mmio_base; 795 void __iomem *mmio_base;
796 796
797 VPRINTK("ENTER\n"); 797 VPRINTK("ENTER\n");
798 798
@@ -940,9 +940,9 @@ static void pdc20621_get_from_dimm(struct ata_probe_ent *pe, void *psource,
940 u16 idx; 940 u16 idx;
941 u8 page_mask; 941 u8 page_mask;
942 long dist; 942 long dist;
943 void *mmio = pe->mmio_base; 943 void __iomem *mmio = pe->mmio_base;
944 struct pdc_host_priv *hpriv = pe->private_data; 944 struct pdc_host_priv *hpriv = pe->private_data;
945 void *dimm_mmio = hpriv->dimm_mmio; 945 void __iomem *dimm_mmio = hpriv->dimm_mmio;
946 946
947 /* hard-code chip #0 */ 947 /* hard-code chip #0 */
948 mmio += PDC_CHIP0_OFS; 948 mmio += PDC_CHIP0_OFS;
@@ -996,9 +996,9 @@ static void pdc20621_put_to_dimm(struct ata_probe_ent *pe, void *psource,
996 u16 idx; 996 u16 idx;
997 u8 page_mask; 997 u8 page_mask;
998 long dist; 998 long dist;
999 void *mmio = pe->mmio_base; 999 void __iomem *mmio = pe->mmio_base;
1000 struct pdc_host_priv *hpriv = pe->private_data; 1000 struct pdc_host_priv *hpriv = pe->private_data;
1001 void *dimm_mmio = hpriv->dimm_mmio; 1001 void __iomem *dimm_mmio = hpriv->dimm_mmio;
1002 1002
1003 /* hard-code chip #0 */ 1003 /* hard-code chip #0 */
1004 mmio += PDC_CHIP0_OFS; 1004 mmio += PDC_CHIP0_OFS;
@@ -1044,7 +1044,7 @@ static void pdc20621_put_to_dimm(struct ata_probe_ent *pe, void *psource,
1044static unsigned int pdc20621_i2c_read(struct ata_probe_ent *pe, u32 device, 1044static unsigned int pdc20621_i2c_read(struct ata_probe_ent *pe, u32 device,
1045 u32 subaddr, u32 *pdata) 1045 u32 subaddr, u32 *pdata)
1046{ 1046{
1047 void *mmio = pe->mmio_base; 1047 void __iomem *mmio = pe->mmio_base;
1048 u32 i2creg = 0; 1048 u32 i2creg = 0;
1049 u32 status; 1049 u32 status;
1050 u32 count =0; 1050 u32 count =0;
@@ -1103,7 +1103,7 @@ static int pdc20621_prog_dimm0(struct ata_probe_ent *pe)
1103 u32 data = 0; 1103 u32 data = 0;
1104 int size, i; 1104 int size, i;
1105 u8 bdimmsize; 1105 u8 bdimmsize;
1106 void *mmio = pe->mmio_base; 1106 void __iomem *mmio = pe->mmio_base;
1107 static const struct { 1107 static const struct {
1108 unsigned int reg; 1108 unsigned int reg;
1109 unsigned int ofs; 1109 unsigned int ofs;
@@ -1166,7 +1166,7 @@ static unsigned int pdc20621_prog_dimm_global(struct ata_probe_ent *pe)
1166{ 1166{
1167 u32 data, spd0; 1167 u32 data, spd0;
1168 int error, i; 1168 int error, i;
1169 void *mmio = pe->mmio_base; 1169 void __iomem *mmio = pe->mmio_base;
1170 1170
1171 /* hard-code chip #0 */ 1171 /* hard-code chip #0 */
1172 mmio += PDC_CHIP0_OFS; 1172 mmio += PDC_CHIP0_OFS;
@@ -1220,7 +1220,7 @@ static unsigned int pdc20621_dimm_init(struct ata_probe_ent *pe)
1220 u32 ticks=0; 1220 u32 ticks=0;
1221 u32 clock=0; 1221 u32 clock=0;
1222 u32 fparam=0; 1222 u32 fparam=0;
1223 void *mmio = pe->mmio_base; 1223 void __iomem *mmio = pe->mmio_base;
1224 1224
1225 /* hard-code chip #0 */ 1225 /* hard-code chip #0 */
1226 mmio += PDC_CHIP0_OFS; 1226 mmio += PDC_CHIP0_OFS;
@@ -1344,7 +1344,7 @@ static unsigned int pdc20621_dimm_init(struct ata_probe_ent *pe)
1344static void pdc_20621_init(struct ata_probe_ent *pe) 1344static void pdc_20621_init(struct ata_probe_ent *pe)
1345{ 1345{
1346 u32 tmp; 1346 u32 tmp;
1347 void *mmio = pe->mmio_base; 1347 void __iomem *mmio = pe->mmio_base;
1348 1348
1349 /* hard-code chip #0 */ 1349 /* hard-code chip #0 */
1350 mmio += PDC_CHIP0_OFS; 1350 mmio += PDC_CHIP0_OFS;
@@ -1377,7 +1377,8 @@ static int pdc_sata_init_one (struct pci_dev *pdev, const struct pci_device_id *
1377 static int printed_version; 1377 static int printed_version;
1378 struct ata_probe_ent *probe_ent = NULL; 1378 struct ata_probe_ent *probe_ent = NULL;
1379 unsigned long base; 1379 unsigned long base;
1380 void *mmio_base, *dimm_mmio = NULL; 1380 void __iomem *mmio_base;
1381 void __iomem *dimm_mmio = NULL;
1381 struct pdc_host_priv *hpriv = NULL; 1382 struct pdc_host_priv *hpriv = NULL;
1382 unsigned int board_idx = (unsigned int) ent->driver_data; 1383 unsigned int board_idx = (unsigned int) ent->driver_data;
1383 int pci_dev_busy = 0; 1384 int pci_dev_busy = 0;