Module Name: xsrc Committed By: macallan Date: Fri Dec 24 05:30:07 UTC 2021
Modified Files: xsrc/external/mit/xf86-video-suncg14/dist/src: cg14.h Log Message: add some comments To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 \ xsrc/external/mit/xf86-video-suncg14/dist/src/cg14.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/xf86-video-suncg14/dist/src/cg14.h diff -u xsrc/external/mit/xf86-video-suncg14/dist/src/cg14.h:1.16 xsrc/external/mit/xf86-video-suncg14/dist/src/cg14.h:1.17 --- xsrc/external/mit/xf86-video-suncg14/dist/src/cg14.h:1.16 Fri Dec 24 05:22:54 2021 +++ xsrc/external/mit/xf86-video-suncg14/dist/src/cg14.h Fri Dec 24 05:30:07 2021 @@ -135,9 +135,21 @@ write_sx_io(Cg14Ptr p, int reg, uint32_t p->queuecount++; } +/* convenience macros to hide the complexity involved with talking to SX */ + +/* + * issue ALU instruction: + * sxi(OPCODE, srcA, srcB, dest, count) + */ #define sxi(inst, a, b, d, cnt) write_sx_reg(p, SX_INSTRUCTIONS, inst((a), (b), (d), (cnt))) + +/* + * issue memory referencing instruction: + * sxm(OPCODE, address, start register, count) + */ #define sxm(inst, addr, reg, count) write_sx_io(p, (addr) & ~7, inst((reg), (count), (addr) & 7)) +/* hw setup stuff */ Bool CG14SetupCursor(ScreenPtr); Bool CG14InitAccel(ScreenPtr);