Hardware Information: Generic IOCTL numbers


These values are used with the CMD_CARD_IOCTL command.
Please see the include file gen_ioctls.h for numeric values of IOCTLS and data field bit assignments.

IOCTL nameFunctionData field length/purpose
GINIT Initialize a channel.None
GLOOPON Turn transmit message loopback ON.None
GLOOPOFF Turn transmit message loopback OFF.None.
GGETHWTYPE Get channel type/subtype2 data bytes returned: channel type and channel subtype
GGETREG Read a channel hardware register2 data bytes: register offset and register data
GSETREG Write a channel hardware register2 data bytes: register offset and register data
GGETRXCOUNT Get channel RX counter value4 data bytes: counter value (4-byte long value)
GSETRXCOUNT Set channel RX counter value4 data bytes: counter value (4-byte long value)
GGETTXCOUNT Get channel TX counter value4 data bytes: counter value (4-byte long value)
GSETTXCOUNT Set channel TX counter value4 data bytes: counter value (4-byte long value)
GGETRXDROP Get channel RX dropped counter value4 data bytes: counter value (4-byte long value)
GSETRXDROP Set channel RX dropped counter value4 data bytes: counter value (4-byte long value)
GGETTXDROP Get channel TX dropped counter value4 data bytes: counter value (4-byte long value)
GSETTXDROP Set channel TX dropped counter value4 data bytes: counter value (4-byte long value)
GGETTXBAD Get channel TX bad counter value4 data bytes: counter value (4-byte long value)
GGETRXBAD Get channel RX bad counter value4 data bytes: counter value (4-byte long value)
GGETCOUNTS Get all channel counters60 data bytes:
OffsetLengthValue
08 bytesTimestamp
84 bytesRX Count: messages on bus
124 bytesRX Count: messages dropped
164 bytesRX Count: bad messages
204 bytesRX Count: net errors
244 bytesRX Count: total net bits
284 bytesTX Count: messages on bus
324 bytesTX Count: messages dropped
364 bytesTX Count: bad messages
404 bytesTX Count: net errors
444 bytesTX Count: total net bits
484 bytesCritical TX Count: messages on bus
524 bytesCritical TX Count: messages dropped
564 bytesCritical TX Count: bad messages
GGETBLMON Get bus load monitor mode1 data byte: current mode
GSETBLMON Set bus load monitor mode1 data byte: new mode (effective after next init).
GGETBITRATE Get the channel's current bit rate4 data bytes: bit rate (4-byte long value).
GGETRAM Read channel hardware RAM 2 data bytes: RAM address, current RAM value
GSETRAM Write channel hardware RAM2 data bytes: RAM address, new RAM value
GSINGLEMSGRDON Set single-message read mode from the driver.
Only a single message will be transferred with each read operation.
none
GSINGLEMSGRDOFFSet multi-message read mode from the driver.
Multiple messages may be read in a single read operation.
none
GSETPERIOD Set bus load monitor period8 bytes
GSKIPCHAN When reading messages from card, skip this channelnone
GPROCESSCHAN When reading messages from card, process this channelnone