Exemplo n.º 1
0
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));
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
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);
	}
}
Exemplo n.º 4
0
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);
}