diff options
author | Yusuf Khan <yusisamerican@gmail.com> | 2024-01-21 15:55:06 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-11 19:56:18 +0000 |
commit | 30c27a60bf9831e765382824c8ea315505c75bad (patch) | |
tree | 4e4013c73e60b78a5e4ee9cac58d43618d21b66a /src | |
parent | fd20c34e7ac7be738a07bbef08b5d4b7e13bd4b7 (diff) |
g80/display: Annotate functions
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
Diffstat (limited to 'src')
-rw-r--r-- | src/g80_display.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/g80_display.c b/src/g80_display.c index b69c937..a79c1e1 100644 --- a/src/g80_display.c +++ b/src/g80_display.c @@ -294,7 +294,9 @@ G80DispPreInit(ScrnInfoPtr pScrn) { G80Ptr pNv = G80PTR(pScrn); + /* nouveau guys dont know what this does */ pNv->reg[0x00610184/4] = pNv->reg[0x00614004/4]; + /* CRTC capabilities */ pNv->reg[0x00610190/4] = pNv->reg[0x00616100/4]; pNv->reg[0x006101a0/4] = pNv->reg[0x00616900/4]; pNv->reg[0x00610194/4] = pNv->reg[0x00616104/4]; @@ -303,13 +305,17 @@ G80DispPreInit(ScrnInfoPtr pScrn) pNv->reg[0x006101a8/4] = pNv->reg[0x00616908/4]; pNv->reg[0x0061019C/4] = pNv->reg[0x0061610C/4]; pNv->reg[0x006101ac/4] = pNv->reg[0x0061690c/4]; + /* DAC capabilities */ pNv->reg[0x006101D0/4] = pNv->reg[0x0061A000/4]; pNv->reg[0x006101D4/4] = pNv->reg[0x0061A800/4]; pNv->reg[0x006101D8/4] = pNv->reg[0x0061B000/4]; + /* SOR capabilities */ pNv->reg[0x006101E0/4] = pNv->reg[0x0061C000/4]; pNv->reg[0x006101E4/4] = pNv->reg[0x0061C800/4]; pNv->reg[0x006101E8/4] = pNv->reg[0x0061D000/4]; pNv->reg[0x006101EC/4] = pNv->reg[0x0061D800/4]; + + /* Setting the rest of the capabilities */ pNv->reg[0x0061A004/4] = 0x80550000; pNv->reg[0x0061A010/4] = 0x00000001; pNv->reg[0x0061A804/4] = 0x80550000; |