@@ -687,7 +687,6 @@ int pdc_spaceid_bits(unsigned long *space_bits)
687
687
return retval ;
688
688
}
689
689
690
- #ifndef CONFIG_PA20
691
690
/**
692
691
* pdc_btlb_info - Return block TLB information.
693
692
* @btlb: The return buffer.
@@ -699,6 +698,9 @@ int pdc_btlb_info(struct pdc_btlb_info *btlb)
699
698
int retval ;
700
699
unsigned long flags ;
701
700
701
+ if (IS_ENABLED (CONFIG_PA20 ))
702
+ return PDC_BAD_PROC ;
703
+
702
704
spin_lock_irqsave (& pdc_lock , flags );
703
705
retval = mem_pdc_call (PDC_BLOCK_TLB , PDC_BTLB_INFO , __pa (pdc_result ), 0 );
704
706
memcpy (btlb , pdc_result , sizeof (* btlb ));
@@ -716,6 +718,9 @@ int pdc_btlb_insert(unsigned long long vpage, unsigned long physpage, unsigned l
716
718
int retval ;
717
719
unsigned long flags ;
718
720
721
+ if (IS_ENABLED (CONFIG_PA20 ))
722
+ return PDC_BAD_PROC ;
723
+
719
724
spin_lock_irqsave (& pdc_lock , flags );
720
725
retval = mem_pdc_call (PDC_BLOCK_TLB , PDC_BTLB_INSERT , (unsigned long ) (vpage >> 32 ),
721
726
(unsigned long ) vpage , physpage , len , entry_info , slot );
@@ -728,6 +733,9 @@ int pdc_btlb_purge_all(void)
728
733
int retval ;
729
734
unsigned long flags ;
730
735
736
+ if (IS_ENABLED (CONFIG_PA20 ))
737
+ return PDC_BAD_PROC ;
738
+
731
739
spin_lock_irqsave (& pdc_lock , flags );
732
740
retval = mem_pdc_call (PDC_BLOCK_TLB , PDC_BTLB_PURGE_ALL );
733
741
spin_unlock_irqrestore (& pdc_lock , flags );
@@ -752,6 +760,9 @@ int pdc_mem_map_hpa(struct pdc_memory_map *address,
752
760
int retval ;
753
761
unsigned long flags ;
754
762
763
+ if (IS_ENABLED (CONFIG_PA20 ))
764
+ return PDC_BAD_PROC ;
765
+
755
766
spin_lock_irqsave (& pdc_lock , flags );
756
767
memcpy (pdc_result2 , mod_path , sizeof (* mod_path ));
757
768
retval = mem_pdc_call (PDC_MEM_MAP , PDC_MEM_MAP_HPA , __pa (pdc_result ),
@@ -761,7 +772,6 @@ int pdc_mem_map_hpa(struct pdc_memory_map *address,
761
772
762
773
return retval ;
763
774
}
764
- #endif /* !CONFIG_PA20 */
765
775
766
776
/**
767
777
* pdc_lan_station_id - Get the LAN address.
0 commit comments