void tok_open_adapter(unsigned long dev_addr) 
static void tok_open_adapter(unsigned long dev_addr) 
void tok_open_adapter(unsigned long dev_addr){	struct net_device *dev = (struct net_device *) dev_addr;	struct tok_info *ti;	int i;	ti = (struct tok_info *) dev->priv;	SET_PAGE(ti->init_srb_page); 	writeb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);	for (i = 0; i < sizeof(struct dir_open_adapter); i++)		writeb(0, ti->init_srb + i);	writeb(DIR_OPEN_ADAPTER, ti->init_srb + COMMAND_OFST);	writew(htons(OPEN_PASS_BCON_MAC), ti->init_srb + OPEN_OPTIONS_OFST);	if (ti->ring_speed == 16) {		writew(htons(ti->dhb_size16mb), ti->init_srb + DHB_LENGTH_OFST);		writew(htons(ti->rbuf_cnt16), ti->init_srb + NUM_RCV_BUF_OFST);		writew(htons(ti->rbuf_len16), ti->init_srb + RCV_BUF_LEN_OFST);	} else {		writew(htons(ti->dhb_size4mb), ti->init_srb + DHB_LENGTH_OFST);		writew(htons(ti->rbuf_cnt4), ti->init_srb + NUM_RCV_BUF_OFST);		writew(htons(ti->rbuf_len4), ti->init_srb + RCV_BUF_LEN_OFST);	}	writeb(NUM_DHB,		/* always 2 */ ti->init_srb + NUM_DHB_OFST);	writeb(DLC_MAX_SAP, ti->init_srb + DLC_MAX_SAP_OFST);	writeb(DLC_MAX_STA, ti->init_srb + DLC_MAX_STA_OFST);	ti->srb = ti->init_srb;	/* We use this one in the interrupt handler */	ti->srb_page = ti->init_srb_page;	DPRINTK("Opening adapter: Xmit bfrs: %d X %d, Rcv bfrs: %d X %d\n",		readb(ti->init_srb + NUM_DHB_OFST),		ntohs(readw(ti->init_srb + DHB_LENGTH_OFST)),		ntohs(readw(ti->init_srb + NUM_RCV_BUF_OFST)),		ntohs(readw(ti->init_srb + RCV_BUF_LEN_OFST)));	writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);	writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/de70b4c87b8f1d484cf533536c0c6ce2e05101cf/ibmtr.c/buggy/drivers/net/tokenring/ibmtr.c