/* Return value: CAPI result code (CAPI_NOERROR if at least one ISDN controller is ready for use, CAPI_REGNOTINSTALLED otherwise)  */
u16 capi20_isinstalled(void)
/* Return value: CAPI result code (CAPI_NOERROR if at least one ISDN controller is ready for use, CAPI_REGNOTINSTALLED otherwise)  */
u16 capi20_isinstalled(void)
{
	int i;
	for (i = 0; i < CAPI_MAXCONTR; i++) {
		if (capi_cards[i] && capi_cards[i]->cardstate == CARD_RUNNING)
			return CAPI_NOERROR;
	}
	return CAPI_REGNOTINSTALLED;
}