<div class="gmail_quote">2009/10/22 ÕÅZhang <span dir="ltr"><<a href="mailto:zlqhope@hotmail.com">zlqhope@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Recently I use two boards of digium, but I dont know how to recgonize which card is the first and second? I set the two cards ident wheel as 0 and 1, but in the zttool shows the first card is the ident wheel =1? Why!? <br>
I read the dirve of the cards, and found in the t4 struct <br>
struct t4 {<br> /* This structure exists one per card */<br> struct pci_dev *dev; /* Pointer to PCI device */<br> unsigned int intcount;<br><font color="#e36c09"><b><i><u> int num</u></i></b></font>; <font color="#ff0000"><b>/* Which card we are */</b><br>
</font>int t1e1; /* T1/E1 select pins */<br> int globalconfig; /* Whether global setup has been done */<br> int syncsrc; /* active sync source */<br> struct t4_span *tspans[4]; /* Individual spans */<br> int numspans; /* Number of spans on the card */<br>
int blinktimer;<br>#ifdef FANCY_ALARM<br> int alarmpos;<br>#endif<br> int irq; /* IRQ used by device */<br> <b><i><u><font color="#e36c09">int order</font></u></i></b>; <b><font color="#ff0000"> /* Order */</font></b><br>
....<br>
}<br>
What is the difference between num and order?<br>
<br>Can anybody tell me? Thanks very much!!<br><br></div></blockquote><div><br>Firstly, the usage of the ident wheel is an asterisk-users question. There was no need to go digging around in the code for the answer to how the ident wheel works, but for your edification, "num" is the value assigned that shows the order in which the cards were recognized and "order" is the value of the ident wheel. The card with the lowest ident wheel value will always show up first in dahdi_tool or zttool and the card with the lowest ident value will always contain the first span for that driver.<br>
</div></div>