MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeFixInfo

Function writeFixInfo

source/kernel/devs/devfb.cpp:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void 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
97struct fb_bitfield {
98 U32 offset; // beginning of bitfield

Callers 1

ioctlMethod · 0.85

Calls 3

memcpyMethod · 0.80
writedMethod · 0.45
writewMethod · 0.45

Tested by

no test coverage detected