Skip to content

Commit

Permalink
lfb: implemented mmap() handler for framebuffers
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 30, 2024
1 parent 0b1d5e1 commit b820bdf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions devices/lfb/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ int main() {
}

luxSendKernel(ioctlcmd);
} else if(cmd->header.header.command == COMMAND_MMAP) {
MmapCommand *mmapcmd = (MmapCommand *) cmd;
mmapcmd->header.header.response = 1;
mmapcmd->header.header.length = sizeof(MmapCommand);
mmapcmd->header.header.status = 0;
mmapcmd->responseType = 1;
mmapcmd->mmio = fb.bufferPhysical;

luxSendKernel(mmapcmd);
} else {
luxLogf(KPRINT_LEVEL_WARNING, "unimplemented command 0x%X, dropping message...\n", cmd->header.header.command);
}
Expand Down

0 comments on commit b820bdf

Please sign in to comment.