int hpibsend(int unit, int slave, int sec, void *buf, int cnt) { if (hpib_softc[unit].sc_type == HPIBC) return (fhpibsend(unit, slave, sec, (char *)buf, cnt)); else return (nhpibsend(unit, slave, sec, (char *)buf, cnt)); }
int hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt) { if (hpib_softc[unit].sc_type == HPIBC) return (fhpibsend(unit, slave, sec, buf, cnt)); return nhpibsend(unit, slave, sec, buf, cnt); }
void hpibgo(int unit, int slave, int sec, void *addr, int count, int flag) { if (hpib_softc[unit].sc_type == HPIBC) { if (flag == F_READ) fhpibrecv(unit, slave, sec, (char *)addr, count); else fhpibsend(unit, slave, sec, (char *)addr, count); } else { if (flag == F_READ) nhpibrecv(unit, slave, sec, (char *)addr, count); else nhpibsend(unit, slave, sec, (char *)addr, count); } }
void hpibgo(int unit, int slave, int sec, uint8_t *addr, int count, int flag) { if (hpib_softc[unit].sc_type == HPIBC) if (flag == F_READ) fhpibrecv(unit, slave, sec, addr, count); else fhpibsend(unit, slave, sec, addr, count); else if (flag == F_READ) nhpibrecv(unit, slave, sec, addr, count); else nhpibsend(unit, slave, sec, addr, count); }