diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-30 05:18:18 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-30 05:18:18 -0400 |
commit | ea6ba10bbb88e106f9e2db7dc253993bb3bbbe3b (patch) | |
tree | aa83ab9aa74e85b7a5c76f40764514a6ac266226 /drivers/scsi/ahci.c | |
parent | e005f01de32f22be8af255f2761018e9766000d2 (diff) |
[libata] __iomem annotations for various drivers
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r-- | drivers/scsi/ahci.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 46e5f186d55a..4cfb257a0f67 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -294,9 +294,9 @@ static inline unsigned long ahci_port_base_ul (unsigned long base, unsigned int | |||
294 | return base + 0x100 + (port * 0x80); | 294 | return base + 0x100 + (port * 0x80); |
295 | } | 295 | } |
296 | 296 | ||
297 | static inline void *ahci_port_base (void *base, unsigned int port) | 297 | static inline void __iomem *ahci_port_base (void __iomem *base, unsigned int port) |
298 | { | 298 | { |
299 | return (void *) ahci_port_base_ul((unsigned long)base, port); | 299 | return (void __iomem *) ahci_port_base_ul((unsigned long)base, port); |
300 | } | 300 | } |
301 | 301 | ||
302 | static int ahci_port_start(struct ata_port *ap) | 302 | static int ahci_port_start(struct ata_port *ap) |
@@ -304,8 +304,9 @@ static int ahci_port_start(struct ata_port *ap) | |||
304 | struct device *dev = ap->host_set->dev; | 304 | struct device *dev = ap->host_set->dev; |
305 | struct ahci_host_priv *hpriv = ap->host_set->private_data; | 305 | struct ahci_host_priv *hpriv = ap->host_set->private_data; |
306 | struct ahci_port_priv *pp; | 306 | struct ahci_port_priv *pp; |
307 | void *mem, *mmio = ap->host_set->mmio_base; | 307 | void __iomem *mmio = ap->host_set->mmio_base; |
308 | void *port_mmio = ahci_port_base(mmio, ap->port_no); | 308 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); |
309 | void *mem; | ||
309 | dma_addr_t mem_dma; | 310 | dma_addr_t mem_dma; |
310 | 311 | ||
311 | pp = kmalloc(sizeof(*pp), GFP_KERNEL); | 312 | pp = kmalloc(sizeof(*pp), GFP_KERNEL); |
@@ -373,8 +374,8 @@ static void ahci_port_stop(struct ata_port *ap) | |||
373 | { | 374 | { |
374 | struct device *dev = ap->host_set->dev; | 375 | struct device *dev = ap->host_set->dev; |
375 | struct ahci_port_priv *pp = ap->private_data; | 376 | struct ahci_port_priv *pp = ap->private_data; |
376 | void *mmio = ap->host_set->mmio_base; | 377 | void __iomem *mmio = ap->host_set->mmio_base; |
377 | void *port_mmio = ahci_port_base(mmio, ap->port_no); | 378 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); |
378 | u32 tmp; | 379 | u32 tmp; |
379 | 380 | ||
380 | tmp = readl(port_mmio + PORT_CMD); | 381 | tmp = readl(port_mmio + PORT_CMD); |
@@ -536,8 +537,8 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc) | |||
536 | 537 | ||
537 | static void ahci_intr_error(struct ata_port *ap, u32 irq_stat) | 538 | static void ahci_intr_error(struct ata_port *ap, u32 irq_stat) |
538 | { | 539 | { |
539 | void *mmio = ap->host_set->mmio_base; | 540 | void __iomem *mmio = ap->host_set->mmio_base; |
540 | void *port_mmio = ahci_port_base(mmio, ap->port_no); | 541 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); |
541 | u32 tmp; | 542 | u32 tmp; |
542 | int work; | 543 | int work; |
543 | 544 | ||
@@ -585,8 +586,8 @@ static void ahci_intr_error(struct ata_port *ap, u32 irq_stat) | |||
585 | static void ahci_eng_timeout(struct ata_port *ap) | 586 | static void ahci_eng_timeout(struct ata_port *ap) |
586 | { | 587 | { |
587 | struct ata_host_set *host_set = ap->host_set; | 588 | struct ata_host_set *host_set = ap->host_set; |
588 | void *mmio = host_set->mmio_base; | 589 | void __iomem *mmio = host_set->mmio_base; |
589 | void *port_mmio = ahci_port_base(mmio, ap->port_no); | 590 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); |
590 | struct ata_queued_cmd *qc; | 591 | struct ata_queued_cmd *qc; |
591 | unsigned long flags; | 592 | unsigned long flags; |
592 | 593 | ||
@@ -616,8 +617,8 @@ static void ahci_eng_timeout(struct ata_port *ap) | |||
616 | 617 | ||
617 | static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc) | 618 | static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc) |
618 | { | 619 | { |
619 | void *mmio = ap->host_set->mmio_base; | 620 | void __iomem *mmio = ap->host_set->mmio_base; |
620 | void *port_mmio = ahci_port_base(mmio, ap->port_no); | 621 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); |
621 | u32 status, serr, ci; | 622 | u32 status, serr, ci; |
622 | 623 | ||
623 | serr = readl(port_mmio + PORT_SCR_ERR); | 624 | serr = readl(port_mmio + PORT_SCR_ERR); |
@@ -653,7 +654,7 @@ static irqreturn_t ahci_interrupt (int irq, void *dev_instance, struct pt_regs * | |||
653 | struct ata_host_set *host_set = dev_instance; | 654 | struct ata_host_set *host_set = dev_instance; |
654 | struct ahci_host_priv *hpriv; | 655 | struct ahci_host_priv *hpriv; |
655 | unsigned int i, handled = 0; | 656 | unsigned int i, handled = 0; |
656 | void *mmio; | 657 | void __iomem *mmio; |
657 | u32 irq_stat, irq_ack = 0; | 658 | u32 irq_stat, irq_ack = 0; |
658 | 659 | ||
659 | VPRINTK("ENTER\n"); | 660 | VPRINTK("ENTER\n"); |
@@ -699,7 +700,7 @@ static irqreturn_t ahci_interrupt (int irq, void *dev_instance, struct pt_regs * | |||
699 | static int ahci_qc_issue(struct ata_queued_cmd *qc) | 700 | static int ahci_qc_issue(struct ata_queued_cmd *qc) |
700 | { | 701 | { |
701 | struct ata_port *ap = qc->ap; | 702 | struct ata_port *ap = qc->ap; |
702 | void *port_mmio = (void *) ap->ioaddr.cmd_addr; | 703 | void __iomem *port_mmio = (void __iomem *) ap->ioaddr.cmd_addr; |
703 | 704 | ||
704 | writel(1, port_mmio + PORT_CMD_ISSUE); | 705 | writel(1, port_mmio + PORT_CMD_ISSUE); |
705 | readl(port_mmio + PORT_CMD_ISSUE); /* flush */ | 706 | readl(port_mmio + PORT_CMD_ISSUE); /* flush */ |
@@ -884,7 +885,7 @@ static void ahci_print_info(struct ata_probe_ent *probe_ent) | |||
884 | { | 885 | { |
885 | struct ahci_host_priv *hpriv = probe_ent->private_data; | 886 | struct ahci_host_priv *hpriv = probe_ent->private_data; |
886 | struct pci_dev *pdev = to_pci_dev(probe_ent->dev); | 887 | struct pci_dev *pdev = to_pci_dev(probe_ent->dev); |
887 | void *mmio = probe_ent->mmio_base; | 888 | void __iomem *mmio = probe_ent->mmio_base; |
888 | u32 vers, cap, impl, speed; | 889 | u32 vers, cap, impl, speed; |
889 | const char *speed_s; | 890 | const char *speed_s; |
890 | u16 cc; | 891 | u16 cc; |
@@ -957,7 +958,7 @@ static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
957 | struct ata_probe_ent *probe_ent = NULL; | 958 | struct ata_probe_ent *probe_ent = NULL; |
958 | struct ahci_host_priv *hpriv; | 959 | struct ahci_host_priv *hpriv; |
959 | unsigned long base; | 960 | unsigned long base; |
960 | void *mmio_base; | 961 | void __iomem *mmio_base; |
961 | unsigned int board_idx = (unsigned int) ent->driver_data; | 962 | unsigned int board_idx = (unsigned int) ent->driver_data; |
962 | int have_msi, pci_dev_busy = 0; | 963 | int have_msi, pci_dev_busy = 0; |
963 | int rc; | 964 | int rc; |