예제 #1
0
/**
 * @brief User entry point in driver/simulator unistall routine.
 *
 * @param proceed -- if standard code execution should be proceed
 * @param sptr    -- statics table pointer
 *
 * It's up to user to set kernel-level errno (by means of @e pseterr call).
 * @e proceed parameter denotes if further standard actions should be proceed
 * after function returns. @b FALSE - means that user-desired operation done
 * all that user wants and there is no further necessaty to perfom any standard
 * operations that follow function call. @b TRUE - means that code that follows
 * function call will be executed.
 *
 * @return return value is the same as in entry point function.\n
 *         OK     - if succeed.\n
 *         SYSERR - in case of failure.
 */
int CvorbUserUnInst(int *proceed, CVORBStatics_t *sptr)
{
	//CVORBUserStatics_t *usp = sptr->usrst; /* user statistics table */


	/* Uncomment the following code to unregister ISR */
#if 0
	kkprintf("Cvorb: Interrupt routine managment"
		 " cleanup ( vector number [%d] ) - ", sptr->info->iVector);
#ifdef __Lynx__
#ifdef __powerpc__
	/* in this case we are using CES BSP */
	vme_intclr(sptr->info->iVector, 0);
#else
	iointclr(sptr->info->iVector);
#endif
#else  /* __linux__ */
	vme_free_irq(sptr->info->iVector);
#endif	/* __Lynx__ */

	kkprintf("OK\n");
#endif

	sysfree((char*)sptr->usrst->md, sizeof(_m));
	if (proceed)
		*proceed = TRUE; /* continue standard code execution */

	return OK; /* succeed */
}
/**
 * @brief User entry point in driver/simulator unistall routine.
 *
 * @param proceed -- if standard code execution should be proceed
 * @param sptr    -- statics table pointer
 *
 * It's up to user to set kernel-level errno (by means of @e pseterr call).
 * @e proceed parameter denotes if further standard actions should be proceed
 * after function returns. @b FALSE - means that user-desired operation done
 * all that user wants and there is no further necessaty to perfom any standard
 * operations that follow function call. @b TRUE - means that code that follows
 * function call will be executed.
 *
 * @return return value is the same as in entry point function.\n
 *         OK     - if succeed.\n
 *         SYSERR - in case of failure.
 */
int GfaschannelUserUnInst(int *proceed, GFASCHANNELStatics_t *sptr)
{
	GFASCHANNELUserStatics_t *usp; /* user statistics table */

	usp = sptr->usrst;

	/* Uncomment the following code to unregister ISR */
#if 0
	kkprintf("Gfaschannel: Interrupt routine managment"
		 " cleanup ( vector number [%d] ) - ", sptr->info->iVector);
#ifdef __Lynx__
#ifdef __powerpc__
	/* in this case we are using CES BSP */
	vme_intclr(sptr->info->iVector, 0);
#else
	iointclr(sptr->info->iVector);
#endif
#else  /* __linux__ */
	vme_free_irq(sptr->info->iVector);
#endif	/* __Lynx__ */

	kkprintf("OK\n");
#endif


	if (proceed)
		*proceed = TRUE; /* continue standard code execution */

	return OK; /* succeed */
}
예제 #3
0
/*-----------------------------------------------------------------------------
 * FUNCTION:    CtcUserUnInst.
 * DESCRIPTION: User entry point in driver/simulator unistall routine.
 *		It's up to user to set kernel-level errno (by means of
 *		'pseterr' call). 'proceed' parameter denotes if further
 *		standard actions should be proceed after function returns.
 *		FALSE - means that user-desired operation done all that user
 *		wants and there is no further necessaty to perfom any standard
 *		operations that follow function call. TRUE - means that code
 *		that follows function call will be executed.
 * RETURNS:	return value is the same as in entry point function.
 *		OK     - if succeed.
 *		SYSERR - in case of failure.
 *-----------------------------------------------------------------------------
 */
int
CtcUserUnInst(
	      int *proceed, /* if standard code execution should be proceed */
	      CTCStatics_t *sptr) /*  */
{
  CTCUserStatics_t *usp; /* user statistics table */

  usp = sptr->usrst;

#if 0
  /*
    -=-=-=-=-=-=-=-=-=-=-=-=-
    | insert your code here |
    -=-=-=-=-=-=-=-=-=-=-=-=-
    Uncomment the following code to unregister ISR:
  */
  kkprintf("Ctc: Interrupt routine managment cleanup ( vector number [%d] ) - ", sptr->info->iVector);
#ifdef __powerpc__
  /* in this case we are using CES BSP */
  vme_intclr(sptr->info->iVector, 0);
#else
  iointclr(sptr->info->iVector);
#endif
   kkprintf("OK\n");
#endif


  if (proceed)
    *proceed = TRUE; /* continue standard code execution */

  return(OK); /* succeed */
}