Solaris 2 Device Driver
164
Transputer Motherboard User Manual
TMB M 711
11.9 Solaris 2 Device Driver
For Solaris 2, the device driver object file
/kernel/drv/tmb
is
supplied along with its configuration file
/kernel/drv/tmb.conf
.
The device driver implements a B014 compatible software interface
to a TMB14. The following interface is implemented:
open()
Opens the connection to a TMB14 interface
link. The filename used should be of the
form
/dev/tmb/
n
where
n
is the interface
link number.
close()
Closes the connection to the link.
read()
Reads from the link. This function returns
when the data transfer has completed or
when a time-out, error or signal has
occurred.
write()
Writes to the link. This function may return
before the data transfer has completed or
when a time-out, error or signal has
occurred.
ioctl()
Perform various interface functions
described below.
A number of functions can be performed by calling
ioctl()
with the
request argument set to
SETFLAGS
and the third argument set to a
pointer to an
IMS_IO
structure with the
op
member set to the
following values:
RESET
Resets the link.
ANALYSE
Resets the link with analyse asserted.
SETTIMEOUT
Sets the link time-out to the value in the
val
member measured in tenths of a
second.
The
IMS_IO
structure and related constants are defined in the
include file
ims_bcmd.h
.
For example, the following code fragment opens and resets the
TMB14:
#include <ims_bcmd.h>
...
union IMS_IO io;
int fd;
Summary of Contents for Transputer
Page 1: ...Transputer Motherboard User Manual Ref TMB M 711...
Page 8: ...vi Transputer Motherboard User Manual TMB M 711...
Page 24: ...Summary 16 Transputer Motherboard User Manual TMB M 711...
Page 64: ...The Edge Connector 56 Transputer Motherboard User Manual TMB M 711...
Page 80: ...Examples 72 Transputer Motherboard User Manual TMB M 711...
Page 122: ...Programming 114 Transputer Motherboard User Manual TMB M 711...
Page 160: ...Examples 152 Transputer Motherboard User Manual TMB M 711...
Page 192: ...Reference Manual Pages 184 Transputer Motherboard User Manual TMB M 711...
Page 196: ...PC Host Interface 188 Transputer Motherboard User Manual TMB M 711...