| 2792 | } |
| 2793 | |
| 2794 | bool rochard_init(struct autoconfig_info *aci) |
| 2795 | { |
| 2796 | ide_add_reset(); |
| 2797 | if (!aci->doinit) { |
| 2798 | load_rom_rc(aci->rc, ROMTYPE_ROCHARD, 8192, !aci->rc->autoboot_disabled ? 8192 : 0, aci->autoconfig_raw, sizeof aci->autoconfig_raw, 0); |
| 2799 | return true; |
| 2800 | } |
| 2801 | struct ide_board *ide = getide(aci); |
| 2802 | |
| 2803 | ide->configured = 0; |
| 2804 | ide->bank = &ide_bank_generic; |
| 2805 | ide->rom_size = 32768; |
| 2806 | ide->mask = 65536 - 1; |
| 2807 | ide->subtype = aci->rc->subtype; |
| 2808 | |
| 2809 | ide->rom = xcalloc(uae_u8, ide->rom_size); |
| 2810 | memset(ide->rom, 0xff, ide->rom_size); |
| 2811 | ide->rom_mask = ide->rom_size - 1; |
| 2812 | load_rom_rc(aci->rc, ROMTYPE_ROCHARD, 8192, !aci->rc->autoboot_disabled ? 8192 : 0, ide->rom, 16384, 0); |
| 2813 | memcpy(ide->acmemory, ide->rom, sizeof ide->acmemory); |
| 2814 | aci->addrbank = ide->bank; |
| 2815 | return true; |
| 2816 | } |
| 2817 | |
| 2818 | static void rochard_add_ide_unit(int ch, struct uaedev_config_info *ci, struct romconfig *rc) |
| 2819 | { |
nothing calls this directly
no test coverage detected