| 78 | } |
| 79 | |
| 80 | void writeFixInfo(KThread* thread, U32 address, struct fb_fix_screeninfo* info) { |
| 81 | thread->memory->memcpy(address, info->id, sizeof(info->id)); address+=16; |
| 82 | thread->memory->writed(address, info->smem_start); address+=4; |
| 83 | thread->memory->writed(address, info->smem_len); address+=4; |
| 84 | thread->memory->writed(address, info->type); address+=4; |
| 85 | thread->memory->writed(address, info->type_aux); address+=4; |
| 86 | thread->memory->writed(address, info->visual); address+=4; |
| 87 | thread->memory->writew(address, info->xpanstep); address+=2; |
| 88 | thread->memory->writew(address, info->ypanstep); address+=2; |
| 89 | thread->memory->writew(address, info->ywrapstep); address+=2; |
| 90 | thread->memory->writed(address, info->line_length); address+=4; |
| 91 | thread->memory->writed(address, info->mmio_start); address+=4; |
| 92 | thread->memory->writed(address, info->mmio_len); address+=4; |
| 93 | thread->memory->writed(address, info->accel); address+=4; |
| 94 | thread->memory->writew(address, info->capabilities); |
| 95 | } |
| 96 | |
| 97 | struct fb_bitfield { |
| 98 | U32 offset; // beginning of bitfield |