/* @ec: The error class of the error (enum mvtwsi_error_class). @lc: The last value of the control register. @ls: The last value of the status register. @es: The expected value of the status register.  */
uint mvtwsi_error(uint ec, uint lc, uint ls, uint es)
/* @ec: The error class of the error (enum mvtwsi_error_class). @lc: The last value of the control register. @ls: The last value of the status register. @es: The expected value of the status register.  */
uint mvtwsi_error(uint ec, uint lc, uint ls, uint es)
{
	return ((ec << 24) & 0xFF000000)
	       | ((lc << 16) & 0x00FF0000)
	       | ((ls << 8) & 0x0000FF00)
	       | (es & 0xFF);
}