Loading DCInfo.c +10 −1 Original line number Diff line number Diff line Loading @@ -76,10 +76,19 @@ void awesome_data_print(unsigned char *data, unsigned int size) for(j=0;j<BPL;j++) printf("%c" , isprint(data[i+j])?data[i+j]:' '); printf("|\n"); } printf("\n"); } int main (void) { /* Uncomment to have everything piped to the screen. */ //dbgio_dev_select("fb"); /* Turn this on in order to have a bit more info to provide */ vmu_set_buttons_enabled(1); /* Stuff from my old 'HOLLY' program */ printf("SB_SBREV : 0x%.2x\n", in8(SB_SBREV)); /* Loading DCInfo.h +2 −0 Original line number Diff line number Diff line Loading @@ -21,3 +21,5 @@ void __wdt_timeout_callback(void*); wdt_enable_timer(0,(WAIT),15,__wdt_timeout_callback,0); \ while((COND) && __wdt_timeout_running) /* From BIOSTest.c, prints some info and returns the BIOS crc32 */ unsigned int BIOS_Test (void); No newline at end of file MapleTest.c +0 −2 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ void print_devinfo(maple_devinfo_t *info) printf("Standby current consumption: %.4x\n", info->standby_power); printf("Maximum current consumption: %.4x\n", info->max_power); printf("\n"); fflush(stdout); } /* Loading Loading @@ -119,7 +118,6 @@ void print_device_allinfo(maple_device_t *dev, int extra) awesome_data_print(recv_buff + (4+112), size); printf("End of Extra data\n\n"); fflush(stdout); } /* Loading gdinfo.c +3 −3 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ unsigned int gd_spi_pio(spi_p* cmd,unsigned short* out,unsigned int* out_size) /* Check if data was prepared and is ready */ if((in8(GD_ALTSTAT_Read)&ST_DRQ)==0) { printf("gd_spi_pio: controller has no data ready"); printf("gd_spi_pio: controller has no data ready\n"); return gd_error(); } Loading Loading @@ -192,13 +192,13 @@ void gdinfo_print(void) printf("gd_ATA_EXEC_DEV_DIAG returned: 0x%.2x\n", gd_ATA_EXEC_DEV_DIAG()); /* Issue the ATA Command 'Identify Packet Device' */ printf("Running gd_ATA_IDENTIFY_PACKET_DEV: "); printf("Running gd_ATA_IDENTIFY_PACKET_DEV: \n\t"); gd_ATA_IDENTIFY_PACKET_DEV((unsigned short*)GD_INFO, &size); printf("Got %d bytes of data back\n", size); awesome_data_print(GD_INFO, size); /* Issue the SIP Command 'REQ MODE' */ printf("Running gd_REQ_MODE: "); printf("Running gd_REQ_MODE: \n\t"); gd_REQ_MODE((unsigned short*)REQMODE, &size); printf("Got %d bytes of data back\n", size); awesome_data_print(REQMODE, size); Loading makefile +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ rm-elf: -rm -f $(TARGET) $(TARGET): $(OBJS) kos-cc -o $(TARGET) $(OBJS) kos-cc -fanalyzer -Wall -Wextra -o $(TARGET) $(OBJS) run: $(TARGET) $(KOS_LOADER) $(TARGET) Loading BIOSTest.c +2 −2 File changed.Contains only whitespace changes. Show changes Loading
DCInfo.c +10 −1 Original line number Diff line number Diff line Loading @@ -76,10 +76,19 @@ void awesome_data_print(unsigned char *data, unsigned int size) for(j=0;j<BPL;j++) printf("%c" , isprint(data[i+j])?data[i+j]:' '); printf("|\n"); } printf("\n"); } int main (void) { /* Uncomment to have everything piped to the screen. */ //dbgio_dev_select("fb"); /* Turn this on in order to have a bit more info to provide */ vmu_set_buttons_enabled(1); /* Stuff from my old 'HOLLY' program */ printf("SB_SBREV : 0x%.2x\n", in8(SB_SBREV)); /* Loading
DCInfo.h +2 −0 Original line number Diff line number Diff line Loading @@ -21,3 +21,5 @@ void __wdt_timeout_callback(void*); wdt_enable_timer(0,(WAIT),15,__wdt_timeout_callback,0); \ while((COND) && __wdt_timeout_running) /* From BIOSTest.c, prints some info and returns the BIOS crc32 */ unsigned int BIOS_Test (void); No newline at end of file
MapleTest.c +0 −2 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ void print_devinfo(maple_devinfo_t *info) printf("Standby current consumption: %.4x\n", info->standby_power); printf("Maximum current consumption: %.4x\n", info->max_power); printf("\n"); fflush(stdout); } /* Loading Loading @@ -119,7 +118,6 @@ void print_device_allinfo(maple_device_t *dev, int extra) awesome_data_print(recv_buff + (4+112), size); printf("End of Extra data\n\n"); fflush(stdout); } /* Loading
gdinfo.c +3 −3 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ unsigned int gd_spi_pio(spi_p* cmd,unsigned short* out,unsigned int* out_size) /* Check if data was prepared and is ready */ if((in8(GD_ALTSTAT_Read)&ST_DRQ)==0) { printf("gd_spi_pio: controller has no data ready"); printf("gd_spi_pio: controller has no data ready\n"); return gd_error(); } Loading Loading @@ -192,13 +192,13 @@ void gdinfo_print(void) printf("gd_ATA_EXEC_DEV_DIAG returned: 0x%.2x\n", gd_ATA_EXEC_DEV_DIAG()); /* Issue the ATA Command 'Identify Packet Device' */ printf("Running gd_ATA_IDENTIFY_PACKET_DEV: "); printf("Running gd_ATA_IDENTIFY_PACKET_DEV: \n\t"); gd_ATA_IDENTIFY_PACKET_DEV((unsigned short*)GD_INFO, &size); printf("Got %d bytes of data back\n", size); awesome_data_print(GD_INFO, size); /* Issue the SIP Command 'REQ MODE' */ printf("Running gd_REQ_MODE: "); printf("Running gd_REQ_MODE: \n\t"); gd_REQ_MODE((unsigned short*)REQMODE, &size); printf("Got %d bytes of data back\n", size); awesome_data_print(REQMODE, size); Loading
makefile +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ rm-elf: -rm -f $(TARGET) $(TARGET): $(OBJS) kos-cc -o $(TARGET) $(OBJS) kos-cc -fanalyzer -Wall -Wextra -o $(TARGET) $(OBJS) run: $(TARGET) $(KOS_LOADER) $(TARGET) Loading