Skip to content

Commit

Permalink
lfb: ioctl() opcodes for bpp and pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 29, 2024
1 parent 55b86d4 commit f7d0413
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devices/lfb/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ int main() {
case LFB_GET_HEIGHT:
ioctlcmd->parameter = fb.h;
break;
case LFB_GET_BPP:
ioctlcmd->parameter = fb.bpp;
break;
case LFB_GET_PITCH:
ioctlcmd->parameter = fb.pitch;
break;
default:
ioctlcmd->header.header.status = -ENOTTY;
}
Expand Down

0 comments on commit f7d0413

Please sign in to comment.