@@ -489,7 +489,7 @@ static int pci_program_bar(uint8_t bus, uint8_t dev, uint8_t fun,
489489 /* check max length */
490490 ret = pci_enum_next_aligned32 (* base , & bar_value , align , limit );
491491 if (ret != 0 ) {
492- wolfBoot_printf ("Not memory space for mapping the PCI device... skipping\r\n" );
492+ PCI_DEBUG_PRINTF ("Not memory space for mapping the PCI device... skipping\r\n" );
493493 goto restore_bar ;
494494 }
495495
@@ -776,16 +776,16 @@ int pci_pre_enum(void)
776776 uint32_t reg ;
777777
778778 reg = pci_config_read32 (0 , 0 , 0 , CAPID0_A_0_0_0_PCI );
779- wolfBoot_printf ("cap a %d\r\n" , reg );
780- wolfBoot_printf ("ddt disabled %d\r\n" , reg & DTT_DEVICE_DISABLE );
779+ PCI_DEBUG_PRINTF ("cap a %d\r\n" , reg );
780+ PCI_DEBUG_PRINTF ("ddt disabled %d\r\n" , reg & DTT_DEVICE_DISABLE );
781781 reg &= ~(DTT_DEVICE_DISABLE );
782782 pci_config_write32 (0 , 0 , 0 , CAPID0_A_0_0_0_PCI , reg );
783783 reg = pci_config_read32 (0 , 0 , 0 , DEVICE_ENABLE );
784- wolfBoot_printf ("device enable: %d\r\n" , reg );
784+ PCI_DEBUG_PRINTF ("device enable: %d\r\n" , reg );
785785 reg |= (1 << 7 );
786786 pci_config_write32 (0 , 0 , 0 , DEVICE_ENABLE , reg );
787787 reg = pci_config_read32 (0 , 0 , 0 , DEVICE_ENABLE );
788- wolfBoot_printf ("device enable: %d\r\n" , reg );
788+ PCI_DEBUG_PRINTF ("device enable: %d\r\n" , reg );
789789
790790 return 0 ;
791791}
@@ -812,11 +812,11 @@ void pci_dump(uint8_t bus, uint8_t dev, uint8_t fun)
812812 for (i = 0 ; i < 256 ; i ++ ) {
813813 if (i % 0x10 == 0x0 ) {
814814 if (i < 0x10 ) {
815- wolfBoot_printf ("0" );
815+ PCI_DEBUG_PRINTF ("0" );
816816 }
817- wolfBoot_printf ("%x: " , (int )i );
817+ PCI_DEBUG_PRINTF ("%x: " , (int )i );
818818 }
819- wolfBoot_printf ("%s%x%s" , (ptr [i ] < 0x10 ? "0" :"" ), (int )ptr [i ],
819+ PCI_DEBUG_PRINTF ("%s%x%s" , (ptr [i ] < 0x10 ? "0" :"" ), (int )ptr [i ],
820820 (i % 0x10 == 0xf ? "\r\n" :" " ));
821821 }
822822}
@@ -851,12 +851,12 @@ static void pci_dump_bus(uint8_t bus)
851851 }
852852
853853 if (bus < 0x10 )
854- wolfBoot_printf ("0" );
855- wolfBoot_printf ("%x:" , bus );
854+ PCI_DEBUG_PRINTF ("0" );
855+ PCI_DEBUG_PRINTF ("%x:" , bus );
856856 if (dev < 0x10 )
857- wolfBoot_printf ("0" );
858- wolfBoot_printf ("%x." , dev );
859- wolfBoot_printf ("%d \r\n" , fun );
857+ PCI_DEBUG_PRINTF ("0" );
858+ PCI_DEBUG_PRINTF ("%x." , dev );
859+ PCI_DEBUG_PRINTF ("%d \r\n" , fun );
860860 pci_dump (bus , dev , fun );
861861 header_type = pci_config_read16 (bus , dev , fun ,
862862 PCI_HEADER_TYPE_OFFSET );
@@ -901,7 +901,7 @@ int pci_enum_do(void)
901901
902902 ret = pci_pre_enum ();
903903 if (ret != 0 ) {
904- wolfBoot_printf ("pci_pre_enum error: %d\r\n" , ret );
904+ PCI_DEBUG_PRINTF ("pci_pre_enum error: %d\r\n" , ret );
905905 return ret ;
906906 }
907907
0 commit comments