kcapi.c (32032df6c2f6c9c6b2ada2ce42322231824f70c2) kcapi.c (9a58a80a701bdb2d220cdab4914218df5b48d781)
1/* $Id: kcapi.c,v 1.1.2.8 2004/03/26 19:57:20 armin Exp $
2 *
3 * Kernel CAPI 2.0 Module
4 *
5 * Copyright 1999 by Carsten Paeth <calle@calle.de>
6 * Copyright 2002 by Kai Germaschewski <kai@germaschewski.name>
7 *
8 * This software may be used and distributed according to the terms

--- 476 unchanged lines hidden (view full) ---

485 card->nsentctlpkt = 0;
486 card->nsentdatapkt = 0;
487 card->cnr = i + 1;
488 card->cardstate = CARD_DETECTED;
489 card->blocked = 0;
490 card->traceflag = showcapimsgs;
491
492 sprintf(card->procfn, "capi/controllers/%d", card->cnr);
1/* $Id: kcapi.c,v 1.1.2.8 2004/03/26 19:57:20 armin Exp $
2 *
3 * Kernel CAPI 2.0 Module
4 *
5 * Copyright 1999 by Carsten Paeth <calle@calle.de>
6 * Copyright 2002 by Kai Germaschewski <kai@germaschewski.name>
7 *
8 * This software may be used and distributed according to the terms

--- 476 unchanged lines hidden (view full) ---

485 card->nsentctlpkt = 0;
486 card->nsentdatapkt = 0;
487 card->cnr = i + 1;
488 card->cardstate = CARD_DETECTED;
489 card->blocked = 0;
490 card->traceflag = showcapimsgs;
491
492 sprintf(card->procfn, "capi/controllers/%d", card->cnr);
493 card->procent = create_proc_entry(card->procfn, 0, NULL);
494 if (card->procent) {
495 card->procent->read_proc =
496 (int (*)(char *,char **,off_t,int,int *,void *))
497 card->ctr_read_proc;
498 card->procent->data = card;
499 }
493 card->procent = proc_create_data(card->procfn, 0, NULL, card->proc_fops, card);
500
501 ncards++;
502 printk(KERN_NOTICE "kcapi: Controller [%03d]: %s attached\n",
503 card->cnr, card->name);
504 return 0;
505}
506
507EXPORT_SYMBOL(attach_capi_ctr);

--- 698 unchanged lines hidden ---
494
495 ncards++;
496 printk(KERN_NOTICE "kcapi: Controller [%03d]: %s attached\n",
497 card->cnr, card->name);
498 return 0;
499}
500
501EXPORT_SYMBOL(attach_capi_ctr);

--- 698 unchanged lines hidden ---