if ((ahc->flags & AHC_SCB_BTT) != 0) { u_int saved_scbptr;
static struct scsi_device ahc_dev = { NULL,  NULL,  NULL,  NULL,  };  static __inline void ahc_swap_hscb(struct hardware_scb *hscb) { hscb->SG_pointer = htole32(hscb->SG_pointer); hscb->data = htole32(hscb->data); hscb->datalen = htole32(hscb->datalen);  }  static __inline void ahc_swap_sg(struct ahc_dma_seg *sg) { sg->addr = htole32(sg->addr); sg->len = htole32(sg->len); }  STATIC void ahcminphys(bp) struct buf *bp; {  if (bp->b_bcount > ((AHC_NSEG - 1) * PAGE_SIZE)) { bp->b_bcount = ((AHC_NSEG - 1) * PAGE_SIZE); } minphys(bp); }   static __inline u_int32_t ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index) { return (ahc->scb_data->hscb_busaddr + (sizeof(struct hardware_scb) * index)); }  #define AHC_BUSRESET_DELAY	25	  static __inline int sequencer_paused(ahc) struct ahc_softc *ahc; { return ((ahc_inb(ahc, HCNTRL) & PAUSE) != 0); }  static __inline void pause_sequencer(ahc) struct ahc_softc *ahc; { ahc_outb(ahc, HCNTRL, ahc->pause);   while (sequencer_paused(ahc) == 0) ; }  static __inline void unpause_sequencer(ahc) struct ahc_softc *ahc; { if ((ahc_inb(ahc, INTSTAT) & (SCSIINT | SEQINT | BRKADRINT)) == 0) ahc_outb(ahc, HCNTRL, ahc->unpause); }   STATIC void restart_sequencer(ahc) struct ahc_softc *ahc; { u_int i;  pause_sequencer(ahc);   ahc_outb(ahc, FREE_SCBH, SCB_LIST_NULL); for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
ahc_busy_tcl(struct ahc_softc *ahc, u_int tcl, u_int scbid){	u_int target_offset;	if ((ahc->flags & AHC_SCB_BTT) != 0) {		u_int saved_scbptr;				saved_scbptr = ahc_inb(ahc, SCBPTR);		ahc_outb(ahc, SCBPTR, TCL_LUN(tcl));		ahc_outb(ahc, SCB_64_BTT + TCL_TARGET_OFFSET(tcl), scbid);		ahc_outb(ahc, SCBPTR, saved_scbptr);	} else {		target_offset = TCL_TARGET_OFFSET(tcl);		ahc_outb(ahc, BUSY_TARGETS + target_offset, scbid);	}}