@@ -505,13 +505,6 @@ __do_out_asm(_rec_outl, "stwbrx")
505
505
* possible to hook directly at the toplevel PIO operation if they have to
506
506
* be handled differently
507
507
*/
508
- #define __do_writeb (val , addr ) out_8(addr, val)
509
- #define __do_writew (val , addr ) out_le16(addr, val)
510
- #define __do_writel (val , addr ) out_le32(addr, val)
511
- #define __do_writeq (val , addr ) out_le64(addr, val)
512
- #define __do_writew_be (val , addr ) out_be16(addr, val)
513
- #define __do_writel_be (val , addr ) out_be32(addr, val)
514
- #define __do_writeq_be (val , addr ) out_be64(addr, val)
515
508
516
509
#ifdef CONFIG_EEH
517
510
#define __do_readb (addr ) eeh_readb(addr)
@@ -567,11 +560,6 @@ __do_out_asm(_rec_outl, "stwbrx")
567
560
#define __do_outsw (p , b , n ) writesw((PCI_IO_ADDR)(_IO_BASE+(p)),(b),(n))
568
561
#define __do_outsl (p , b , n ) writesl((PCI_IO_ADDR)(_IO_BASE+(p)),(b),(n))
569
562
570
- #define __do_memset_io (addr , c , n ) \
571
- _memset_io(addr, c, n)
572
- #define __do_memcpy_toio (dst , src , n ) \
573
- _memcpy_toio(dst, src, n)
574
-
575
563
#ifdef CONFIG_EEH
576
564
#define __do_memcpy_fromio (dst , src , n ) \
577
565
eeh_memcpy_fromio(dst, src, n)
@@ -610,30 +598,30 @@ static inline u32 readl_be(const PCI_IO_ADDR addr)
610
598
611
599
static inline void writeb (u8 val , PCI_IO_ADDR addr )
612
600
{
613
- __do_writeb ( val , addr );
601
+ out_8 ( addr , val );
614
602
}
615
603
#define writeb writeb
616
604
617
605
static inline void writew (u16 val , PCI_IO_ADDR addr )
618
606
{
619
- __do_writew ( val , addr );
607
+ out_le16 ( addr , val );
620
608
}
621
609
#define writew writew
622
610
623
611
static inline void writel (u32 val , PCI_IO_ADDR addr )
624
612
{
625
- __do_writel ( val , addr );
613
+ out_le32 ( addr , val );
626
614
}
627
615
#define writel writel
628
616
629
617
static inline void writew_be (u16 val , PCI_IO_ADDR addr )
630
618
{
631
- __do_writew_be ( val , addr );
619
+ out_be16 ( addr , val );
632
620
}
633
621
634
622
static inline void writel_be (u32 val , PCI_IO_ADDR addr )
635
623
{
636
- __do_writel_be ( val , addr );
624
+ out_be32 ( addr , val );
637
625
}
638
626
639
627
static inline void readsb (const PCI_IO_ADDR a , void * b , unsigned long c )
@@ -674,7 +662,7 @@ static inline void writesl(PCI_IO_ADDR a, const void *b, unsigned long c)
674
662
675
663
static inline void memset_io (PCI_IO_ADDR a , int c , unsigned long n )
676
664
{
677
- __do_memset_io (a , c , n );
665
+ _memset_io (a , c , n );
678
666
}
679
667
#define memset_io memset_io
680
668
@@ -686,7 +674,7 @@ static inline void memcpy_fromio(void *d, const PCI_IO_ADDR s, unsigned long n)
686
674
687
675
static inline void memcpy_toio (PCI_IO_ADDR d , const void * s , unsigned long n )
688
676
{
689
- __do_memcpy_toio (d , s , n );
677
+ _memcpy_toio (d , s , n );
690
678
}
691
679
#define memcpy_toio memcpy_toio
692
680
@@ -703,12 +691,12 @@ static inline u64 readq_be(const PCI_IO_ADDR addr)
703
691
704
692
static inline void writeq (u64 val , PCI_IO_ADDR addr )
705
693
{
706
- __do_writeq ( val , addr );
694
+ out_le64 ( addr , val );
707
695
}
708
696
709
697
static inline void writeq_be (u64 val , PCI_IO_ADDR addr )
710
698
{
711
- __do_writeq_be ( val , addr );
699
+ out_be64 ( addr , val );
712
700
}
713
701
#endif /* __powerpc64__ */
714
702
0 commit comments