/* Enable engine clock and turn on the pipe.  */
void CAP_SetPipeEnable(BOOL bEngEnable, E_CAP_PIPE ePipeEnable)
/* Enable engine clock and turn on the pipe.  */
void CAP_SetPipeEnable(BOOL bEngEnable, E_CAP_PIPE ePipeEnable)
{
    outp32(REG_CAP_CTL, (inp32(REG_CAP_CTL) & ~(CAPEN | PKTEN | PLNEN))
           | (((bEngEnable ? CAPEN : 0x0))
              | ((ePipeEnable & 0x03) << 5)));
}