@@ -274,10 +274,7 @@ extern void _memcpy_toio(volatile void __iomem *dest, const void *src,
274
274
#include <asm/eeh.h>
275
275
#endif
276
276
277
- /* Shortcut to the MMIO argument pointer */
278
- #define PCI_IO_ADDR volatile void __iomem *
279
-
280
- #define _IO_PORT (port ) ((PCI_IO_ADDR)(_IO_BASE + (port)))
277
+ #define _IO_PORT (port ) ((volatile void __iomem *)(_IO_BASE + (port)))
281
278
282
279
/*
283
280
* Non ordered and non-swapping "raw" accessors
@@ -570,133 +567,133 @@ __do_out_asm(_rec_outl, "stwbrx")
570
567
_memcpy_fromio(dst, src, n)
571
568
#endif /* !CONFIG_EEH */
572
569
573
- static inline u8 readb (const PCI_IO_ADDR addr )
570
+ static inline u8 readb (const volatile void __iomem * addr )
574
571
{
575
572
return __do_readb (addr );
576
573
}
577
574
#define readb readb
578
575
579
- static inline u16 readw (const PCI_IO_ADDR addr )
576
+ static inline u16 readw (const volatile void __iomem * addr )
580
577
{
581
578
return __do_readw (addr );
582
579
}
583
580
#define readw readw
584
581
585
- static inline u32 readl (const PCI_IO_ADDR addr )
582
+ static inline u32 readl (const volatile void __iomem * addr )
586
583
{
587
584
return __do_readl (addr );
588
585
}
589
586
#define readl readl
590
587
591
- static inline u16 readw_be (const PCI_IO_ADDR addr )
588
+ static inline u16 readw_be (const volatile void __iomem * addr )
592
589
{
593
590
return __do_readw_be (addr );
594
591
}
595
592
596
- static inline u32 readl_be (const PCI_IO_ADDR addr )
593
+ static inline u32 readl_be (const volatile void __iomem * addr )
597
594
{
598
595
return __do_readl_be (addr );
599
596
}
600
597
601
- static inline void writeb (u8 val , PCI_IO_ADDR addr )
598
+ static inline void writeb (u8 val , volatile void __iomem * addr )
602
599
{
603
600
out_8 (addr , val );
604
601
}
605
602
#define writeb writeb
606
603
607
- static inline void writew (u16 val , PCI_IO_ADDR addr )
604
+ static inline void writew (u16 val , volatile void __iomem * addr )
608
605
{
609
606
out_le16 (addr , val );
610
607
}
611
608
#define writew writew
612
609
613
- static inline void writel (u32 val , PCI_IO_ADDR addr )
610
+ static inline void writel (u32 val , volatile void __iomem * addr )
614
611
{
615
612
out_le32 (addr , val );
616
613
}
617
614
#define writel writel
618
615
619
- static inline void writew_be (u16 val , PCI_IO_ADDR addr )
616
+ static inline void writew_be (u16 val , volatile void __iomem * addr )
620
617
{
621
618
out_be16 (addr , val );
622
619
}
623
620
624
- static inline void writel_be (u32 val , PCI_IO_ADDR addr )
621
+ static inline void writel_be (u32 val , volatile void __iomem * addr )
625
622
{
626
623
out_be32 (addr , val );
627
624
}
628
625
629
- static inline void readsb (const PCI_IO_ADDR a , void * b , unsigned long c )
626
+ static inline void readsb (const volatile void __iomem * a , void * b , unsigned long c )
630
627
{
631
628
__do_readsb (a , b , c );
632
629
}
633
630
#define readsb readsb
634
631
635
- static inline void readsw (const PCI_IO_ADDR a , void * b , unsigned long c )
632
+ static inline void readsw (const volatile void __iomem * a , void * b , unsigned long c )
636
633
{
637
634
__do_readsw (a , b , c );
638
635
}
639
636
#define readsw readsw
640
637
641
- static inline void readsl (const PCI_IO_ADDR a , void * b , unsigned long c )
638
+ static inline void readsl (const volatile void __iomem * a , void * b , unsigned long c )
642
639
{
643
640
__do_readsl (a , b , c );
644
641
}
645
642
#define readsl readsl
646
643
647
- static inline void writesb (PCI_IO_ADDR a , const void * b , unsigned long c )
644
+ static inline void writesb (volatile void __iomem * a , const void * b , unsigned long c )
648
645
{
649
646
__do_writesb (a , b , c );
650
647
}
651
648
#define writesb writesb
652
649
653
- static inline void writesw (PCI_IO_ADDR a , const void * b , unsigned long c )
650
+ static inline void writesw (volatile void __iomem * a , const void * b , unsigned long c )
654
651
{
655
652
__do_writesw (a , b , c );
656
653
}
657
654
#define writesw writesw
658
655
659
- static inline void writesl (PCI_IO_ADDR a , const void * b , unsigned long c )
656
+ static inline void writesl (volatile void __iomem * a , const void * b , unsigned long c )
660
657
{
661
658
__do_writesl (a , b , c );
662
659
}
663
660
#define writesl writesl
664
661
665
- static inline void memset_io (PCI_IO_ADDR a , int c , unsigned long n )
662
+ static inline void memset_io (volatile void __iomem * a , int c , unsigned long n )
666
663
{
667
664
_memset_io (a , c , n );
668
665
}
669
666
#define memset_io memset_io
670
667
671
- static inline void memcpy_fromio (void * d , const PCI_IO_ADDR s , unsigned long n )
668
+ static inline void memcpy_fromio (void * d , const volatile void __iomem * s , unsigned long n )
672
669
{
673
670
__do_memcpy_fromio (d , s , n );
674
671
}
675
672
#define memcpy_fromio memcpy_fromio
676
673
677
- static inline void memcpy_toio (PCI_IO_ADDR d , const void * s , unsigned long n )
674
+ static inline void memcpy_toio (volatile void __iomem * d , const void * s , unsigned long n )
678
675
{
679
676
_memcpy_toio (d , s , n );
680
677
}
681
678
#define memcpy_toio memcpy_toio
682
679
683
680
#ifdef __powerpc64__
684
- static inline u64 readq (const PCI_IO_ADDR addr )
681
+ static inline u64 readq (const volatile void __iomem * addr )
685
682
{
686
683
return __do_readq (addr );
687
684
}
688
685
689
- static inline u64 readq_be (const PCI_IO_ADDR addr )
686
+ static inline u64 readq_be (const volatile void __iomem * addr )
690
687
{
691
688
return __do_readq_be (addr );
692
689
}
693
690
694
- static inline void writeq (u64 val , PCI_IO_ADDR addr )
691
+ static inline void writeq (u64 val , volatile void __iomem * addr )
695
692
{
696
693
out_le64 (addr , val );
697
694
}
698
695
699
- static inline void writeq_be (u64 val , PCI_IO_ADDR addr )
696
+ static inline void writeq_be (u64 val , volatile void __iomem * addr )
700
697
{
701
698
out_be64 (addr , val );
702
699
}
0 commit comments