--- /tmp/pcilynx.c Wed Jan 23 05:54:38 2002 +++ ./pcilynx.c Wed Jan 23 06:49:50 2002 @@ -55,9 +55,15 @@ #define PRINTD(level, card, fmt, args...) do {} while (0) #endif +#define MAX_NUM_OF_CARDS 10 /* + * How do you think, + * can anyone has such amount of cards + * in one computer? + */ static struct hpsb_host_driver *lynx_driver; -static unsigned int card_id; +static unsigned int card_id, num_of_cards; +struct ti_lynx cards[MAX_NUM_OF_CARDS]; /* * PCL handling functions. @@ -1509,6 +1515,11 @@ hpsb_add_host(host); lynx->state = is_host; + + if (num_of_cards < MAX_NUM_OF_CARDS) + cards[num_of_cards++] = host->hostdata; + else + FAIL("Too many cards[ %d ]... Impossible...\n", num_of_cards); return 0; #undef FAIL