c=SCpnt->device->channel; 
c = scmd_channel(SCpnt); 
static int atp870u_abort(struct scsi_cmnd * SCpnt){	unsigned char  j, k, c;	struct scsi_cmnd *workrequ;	unsigned int tmport;	struct atp_unit *dev;		struct Scsi_Host *host;	host = SCpnt->device->host;	dev = (struct atp_unit *)&host->hostdata;	c=SCpnt->device->channel;	printk(" atp870u: abort Channel = %x \n", c);	printk("working=%x last_cmd=%x ", dev->working[c], dev->last_cmd[c]);	printk(" quhdu=%x quendu=%x ", dev->quhd[c], dev->quend[c]);	tmport = dev->ioport[c];	for (j = 0; j < 0x18; j++) {		printk(" r%2x=%2x", j, inb(tmport++));	}	tmport += 0x04;	printk(" r1c=%2x", inb(tmport));	tmport += 0x03;	printk(" r1f=%2x in_snd=%2x ", inb(tmport), dev->in_snd[c]);	tmport= dev->pciport[c];	printk(" d00=%2x", inb(tmport));	tmport += 0x02;	printk(" d02=%2x", inb(tmport));	for(j=0;j<16;j++) {	   if (dev->id[c][j].curr_req != NULL) {		workrequ = dev->id[c][j].curr_req;		printk("\n que cdb= ");		for (k=0; k < workrequ->cmd_len; k++) {		    printk(" %2x ",workrequ->cmnd[k]);		}		printk(" last_lenu= %x ",(unsigned int)dev->id[c][j].last_len);	   }	}	return SUCCESS;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/422c0d61d591cbfb70f029e13505fb437e169d68/atp870u.c/buggy/drivers/scsi/atp870u.c