/* Add a new handler to the CPL dispatch table. A NULL handler may be supplied to unregister an existing handler.  */
void t3_register_cpl_handler(unsigned int opcode, cpl_handler_func h)
/* Add a new handler to the CPL dispatch table. A NULL handler may be supplied to unregister an existing handler.  */
void t3_register_cpl_handler(unsigned int opcode, cpl_handler_func h)
{
	if (opcode < NUM_CPL_CMDS)
		cpl_handlers[opcode] = h ? h : do_bad_cpl;
	else
		printk(KERN_ERR "T3C: handler registration for "
		       "opcode %x failed\n", opcode);
}