1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-23 04:12:02 +00:00

use printf instead of printk for secondary

This commit is contained in:
Timothy Slater 2018-06-07 13:05:41 -05:00
parent ca907077af
commit 7df8ca7c4b

View file

@ -3622,30 +3622,77 @@ bool sdmmc_card_present(struct mmc *mmc)
* @mmc mmc The controller with which to dump registers. * @mmc mmc The controller with which to dump registers.
*/ */
void sdmmc_dump_regs(struct mmc *mmc) { void sdmmc_dump_regs(struct mmc *mmc) {
printk("block_size: 0x%04X\n",mmc->regs->block_size); printf("dma_address: 0x%08lX\n",mmc->regs->dma_address);
printk("block_count: 0x%04X\n",mmc->regs->block_count); printf("block_size: 0x%04X\n",mmc->regs->block_size);
printk("transfer_mode: 0x%04X\n",mmc->regs->transfer_mode); printf("block_count: 0x%04X\n",mmc->regs->block_count);
printk("command: 0x%04X\n",mmc->regs->command); printf("argument: 0x%08lX\n",mmc->regs->argument);
printk("host_control: 0x%02X\n",mmc->regs->host_control); printf("transfer_mode: 0x%04X\n",mmc->regs->transfer_mode);
printk("power_control: 0x%02X\n",mmc->regs->power_control); printf("command: 0x%04X\n",mmc->regs->command);
printk("block_gap_control: 0x%02X\n",mmc->regs->block_gap_control); printf("response[0]: 0x%08lX\n",mmc->regs->response[0]);
printk("wake_up_control: 0x%02X\n",mmc->regs->wake_up_control); printf("response[1]: 0x%08lX\n",mmc->regs->response[1]);
printk("clock_control: 0x%04X\n",mmc->regs->clock_control); printf("response[2]: 0x%08lX\n",mmc->regs->response[2]);
printk("timeout_control: 0x%02X\n",mmc->regs->timeout_control); printf("response[3]: 0x%08lX\n",mmc->regs->response[3]);
printk("software_reset: 0x%02X\n",mmc->regs->software_reset); printf("buffer: 0x%08lX\n",mmc->regs->buffer);
printk("acmd12_err: 0x%04X\n",mmc->regs->acmd12_err); printf("present_state: 0x%08lX\n",mmc->regs->present_state);
printk("host_control2: 0x%04X\n",mmc->regs->host_control2); printf("host_control: 0x%02X\n",mmc->regs->host_control);
printk("set_acmd12_error: 0x%04X\n",mmc->regs->set_acmd12_error); printf("power_control: 0x%02X\n",mmc->regs->power_control);
printk("set_int_error: 0x%04X\n",mmc->regs->set_int_error); printf("block_gap_control: 0x%02X\n",mmc->regs->block_gap_control);
printk("adma_error: 0x%04X\n",mmc->regs->adma_error); printf("wake_up_control: 0x%02X\n",mmc->regs->wake_up_control);
printk("preset_for_init: 0x%04X\n",mmc->regs->preset_for_init); printf("clock_control: 0x%04X\n",mmc->regs->clock_control);
printk("preset_for_default: 0x%04X\n",mmc->regs->preset_for_default); printf("timeout_control: 0x%02X\n",mmc->regs->timeout_control);
printk("preset_for_high: 0x%04X\n",mmc->regs->preset_for_high); printf("software_reset: 0x%02X\n",mmc->regs->software_reset);
printk("preset_for_sdr12: 0x%04X\n",mmc->regs->preset_for_sdr12); printf("int_status: 0x%08lX\n",mmc->regs->int_status);
printk("preset_for_sdr25: 0x%04X\n",mmc->regs->preset_for_sdr25); printf("int_enable: 0x%08lX\n",mmc->regs->int_enable);
printk("preset_for_sdr50: 0x%04X\n",mmc->regs->preset_for_sdr50); printf("signal_enable: 0x%08lX\n",mmc->regs->signal_enable);
printk("preset_for_sdr104: 0x%04X\n",mmc->regs->preset_for_sdr104); printf("acmd12_err: 0x%04X\n",mmc->regs->acmd12_err);
printk("preset_for_ddr50: 0x%04X\n",mmc->regs->preset_for_ddr50); printf("host_control2: 0x%04X\n",mmc->regs->host_control2);
printk("slot_int_status: 0x%04X\n",mmc->regs->slot_int_status); printf("capabilities: 0x%08lX\n",mmc->regs->capabilities);
printk("host_version: 0x%04X\n",mmc->regs->host_version); printf("capabilities_1: 0x%08lX\n",mmc->regs->capabilities_1);
printf("max_current: 0x%08lX\n",mmc->regs->max_current);
printf("set_acmd12_error: 0x%04X\n",mmc->regs->set_acmd12_error);
printf("set_int_error: 0x%04X\n",mmc->regs->set_int_error);
printf("adma_error: 0x%04X\n",mmc->regs->adma_error);
printf("adma_address: 0x%08lX\n",mmc->regs->adma_address);
printf("upper_adma_address: 0x%08lX\n",mmc->regs->upper_adma_address);
printf("preset_for_init: 0x%04X\n",mmc->regs->preset_for_init);
printf("preset_for_default: 0x%04X\n",mmc->regs->preset_for_default);
printf("preset_for_high: 0x%04X\n",mmc->regs->preset_for_high);
printf("preset_for_sdr12: 0x%04X\n",mmc->regs->preset_for_sdr12);
printf("preset_for_sdr25: 0x%04X\n",mmc->regs->preset_for_sdr25);
printf("preset_for_sdr50: 0x%04X\n",mmc->regs->preset_for_sdr50);
printf("preset_for_sdr104: 0x%04X\n",mmc->regs->preset_for_sdr104);
printf("preset_for_ddr50: 0x%04X\n",mmc->regs->preset_for_ddr50);
printf("slot_int_status: 0x%04X\n",mmc->regs->slot_int_status);
printf("host_version: 0x%04X\n",mmc->regs->host_version);
printf("vendor_clock_cntrl: 0x%08lX\n",mmc->regs->vendor_clock_cntrl);
printf("vendor_sys_sw_cntrl: 0x%08lX\n",mmc->regs->vendor_sys_sw_cntrl);
printf("vendor_err_intr_status: 0x%08lX\n",mmc->regs->vendor_err_intr_status);
printf("vendor_cap_overrides: 0x%08lX\n",mmc->regs->vendor_cap_overrides);
printf("vendor_boot_cntrl: 0x%08lX\n",mmc->regs->vendor_boot_cntrl);
printf("vendor_boot_ack_timeout: 0x%08lX\n",mmc->regs->vendor_boot_ack_timeout);
printf("vendor_boot_dat_timeout: 0x%08lX\n",mmc->regs->vendor_boot_dat_timeout);
printf("vendor_debounce_count: 0x%08lX\n",mmc->regs->vendor_debounce_count);
printf("vendor_misc_cntrl: 0x%08lX\n",mmc->regs->vendor_misc_cntrl);
printf("max_current_override: 0x%08lX\n",mmc->regs->max_current_override);
printf("max_current_override_hi: 0x%08lX\n",mmc->regs->max_current_override_hi);
printf("vendor_io_trim_cntrl: 0x%08lX\n",mmc->regs->vendor_io_trim_cntrl);
printf("vendor_dllcal_cfg: 0x%08lX\n",mmc->regs->vendor_dllcal_cfg);
printf("vendor_dll_ctrl0: 0x%08lX\n",mmc->regs->vendor_dll_ctrl0);
printf("vendor_dll_ctrl1: 0x%08lX\n",mmc->regs->vendor_dll_ctrl1);
printf("vendor_dllcal_cfg_sta: 0x%08lX\n",mmc->regs->vendor_dllcal_cfg_sta);
printf("vendor_tuning_cntrl0: 0x%08lX\n",mmc->regs->vendor_tuning_cntrl0);
printf("vendor_tuning_cntrl1: 0x%08lX\n",mmc->regs->vendor_tuning_cntrl1);
printf("vendor_tuning_status0: 0x%08lX\n",mmc->regs->vendor_tuning_status0);
printf("vendor_tuning_status1: 0x%08lX\n",mmc->regs->vendor_tuning_status1);
printf("vendor_clk_gate_hysteresis_count: 0x%08lX\n",mmc->regs->vendor_clk_gate_hysteresis_count);
printf("vendor_preset_val0: 0x%08lX\n",mmc->regs->vendor_preset_val0);
printf("vendor_preset_val1: 0x%08lX\n",mmc->regs->vendor_preset_val1);
printf("vendor_preset_val2: 0x%08lX\n",mmc->regs->vendor_preset_val2);
printf("sdmemcomppadctrl: 0x%08lX\n",mmc->regs->sdmemcomppadctrl);
printf("auto_cal_config: 0x%08lX\n",mmc->regs->auto_cal_config);
printf("auto_cal_interval: 0x%08lX\n",mmc->regs->auto_cal_interval);
printf("auto_cal_status: 0x%08lX\n",mmc->regs->auto_cal_status);
printf("io_spare: 0x%08lX\n",mmc->regs->io_spare);
printf("sdmmca_mccif_fifoctrl: 0x%08lX\n",mmc->regs->sdmmca_mccif_fifoctrl);
printf("timeout_wcoal_sdmmca: 0x%08lX\n",mmc->regs->timeout_wcoal_sdmmca);
} }