/* Retrieve the value of one of the IDT77105's counters.  */
static u16 get_counter(struct atm_dev *dev, int counter)
/* Retrieve the value of one of the IDT77105's counters.  */
static u16 get_counter(struct atm_dev *dev, int counter)
{
        u16 val;
        PUT(counter, CTRSEL);
        val = GET(CTRLO);
        val |= GET(CTRHI)<<8;
        return val;
}