Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
whiteheat.h File Reference

Go to the source code of this file.

Data Structures

struct  whiteheat_simple
 
struct  whiteheat_port_settings
 
struct  whiteheat_set_rdb
 
struct  whiteheat_dump
 
struct  whiteheat_purge
 
struct  whiteheat_echo
 
struct  whiteheat_test
 
struct  whiteheat_status_info
 
struct  whiteheat_dr_info
 
struct  whiteheat_hw_info
 
struct  whiteheat_hw_info::whiteheat_hw_eeprom_info
 
struct  whiteheat_event_info
 
struct  whiteheat_test_info
 

Macros

#define WHITEHEAT_OPEN   1 /* open the port */
 
#define WHITEHEAT_CLOSE   2 /* close the port */
 
#define WHITEHEAT_SETUP_PORT   3 /* change port settings */
 
#define WHITEHEAT_SET_RTS   4 /* turn RTS on or off */
 
#define WHITEHEAT_SET_DTR   5 /* turn DTR on or off */
 
#define WHITEHEAT_SET_BREAK   6 /* turn BREAK on or off */
 
#define WHITEHEAT_DUMP   7 /* dump memory */
 
#define WHITEHEAT_STATUS   8 /* get status */
 
#define WHITEHEAT_PURGE   9 /* clear the UART fifos */
 
#define WHITEHEAT_GET_DTR_RTS
 
#define WHITEHEAT_GET_HW_INFO
 
#define WHITEHEAT_REPORT_TX_DONE   12 /* get the next TX done */
 
#define WHITEHEAT_EVENT   13 /* unsolicited status events */
 
#define WHITEHEAT_ECHO
 
#define WHITEHEAT_DO_TEST   15 /* perform specified test */
 
#define WHITEHEAT_CMD_COMPLETE   16 /* reply for some commands */
 
#define WHITEHEAT_CMD_FAILURE   17 /* reply for failed commands */
 
#define WHITEHEAT_PAR_NONE   'n' /* no parity */
 
#define WHITEHEAT_PAR_EVEN   'e' /* even parity */
 
#define WHITEHEAT_PAR_ODD   'o' /* odd parity */
 
#define WHITEHEAT_PAR_SPACE   '0' /* space (force 0) parity */
 
#define WHITEHEAT_PAR_MARK   '1' /* mark (force 1) parity */
 
#define WHITEHEAT_SFLOW_NONE   'n' /* no software flow control */
 
#define WHITEHEAT_SFLOW_RX
 
#define WHITEHEAT_SFLOW_TX
 
#define WHITEHEAT_SFLOW_RXTX   'b' /* both SFLOW_RX and SFLOW_TX */
 
#define WHITEHEAT_HFLOW_NONE   0x00 /* no hardware flow control */
 
#define WHITEHEAT_HFLOW_RTS_TOGGLE
 
#define WHITEHEAT_HFLOW_DTR
 
#define WHITEHEAT_HFLOW_CTS
 
#define WHITEHEAT_HFLOW_DSR
 
#define WHITEHEAT_HFLOW_RTS
 
#define WHITEHEAT_RTS_OFF   0x00
 
#define WHITEHEAT_RTS_ON   0x01
 
#define WHITEHEAT_DTR_OFF   0x00
 
#define WHITEHEAT_DTR_ON   0x01
 
#define WHITEHEAT_BREAK_OFF   0x00
 
#define WHITEHEAT_BREAK_ON   0x01
 
#define WHITEHEAT_DUMP_MEM_DATA   'd' /* data */
 
#define WHITEHEAT_DUMP_MEM_IDATA   'i' /* idata */
 
#define WHITEHEAT_DUMP_MEM_BDATA   'b' /* bdata */
 
#define WHITEHEAT_DUMP_MEM_XDATA   'x' /* xdata */
 
#define WHITEHEAT_PURGE_RX   0x01 /* purge rx fifos */
 
#define WHITEHEAT_PURGE_TX   0x02 /* purge tx fifos */
 
#define WHITEHEAT_TEST_UART_RW   0x01 /* read/write uart registers */
 
#define WHITEHEAT_TEST_UART_INTR   0x02 /* uart interrupt */
 
#define WHITEHEAT_TEST_SETUP_CONT
 
#define WHITEHEAT_TEST_PORT_CONT   0x04 /* port connect */
 
#define WHITEHEAT_TEST_PORT_DISCONT   0x05 /* port disconnect */
 
#define WHITEHEAT_TEST_UART_CLK_START   0x06 /* uart clock test start */
 
#define WHITEHEAT_TEST_UART_CLK_STOP   0x07 /* uart clock test stop */
 
#define WHITEHEAT_TEST_MODEM_FT
 
#define WHITEHEAT_TEST_ERASE_EEPROM   0x09 /* erase eeprom */
 
#define WHITEHEAT_TEST_READ_EEPROM   0x0a /* read eeprom */
 
#define WHITEHEAT_TEST_PROGRAM_EEPROM   0x0b /* program eeprom */
 
#define WHITEHEAT_EVENT_MODEM   0x01 /* modem field is valid */
 
#define WHITEHEAT_EVENT_ERROR   0x02 /* error field is valid */
 
#define WHITEHEAT_EVENT_FLOW   0x04 /* flow field is valid */
 
#define WHITEHEAT_EVENT_CONNECT   0x08 /* connect field is valid */
 
#define WHITEHEAT_FLOW_NONE   0x00 /* no flow control active */
 
#define WHITEHEAT_FLOW_HARD_OUT
 
#define WHITEHEAT_FLOW_HARD_IN
 
#define WHITEHEAT_FLOW_SOFT_OUT
 
#define WHITEHEAT_FLOW_SOFT_IN
 
#define WHITEHEAT_FLOW_TX_DONE   0x80 /* TX has completed */
 
#define WHITEHEAT_TEST_FAIL   0x00 /* test failed */
 
#define WHITEHEAT_TEST_UNKNOWN   0x01 /* unknown test requested */
 
#define WHITEHEAT_TEST_PASS   0xff /* test passed */
 

Functions

struct whiteheat_port_settings __attribute__ ((packed))
 

Variables

__u8 port
 
__u32 baud
 
__u8 bits
 
__u8 stop
 
__u8 parity
 
__u8 sflow
 
__u8 xoff
 
__u8 xon
 
__u8 hflow
 
__u8 lloop
 
struct whiteheat_set_rdb __attribute__
 

Macro Definition Documentation

#define WHITEHEAT_BREAK_OFF   0x00

Definition at line 106 of file whiteheat.h.

#define WHITEHEAT_BREAK_ON   0x01

Definition at line 107 of file whiteheat.h.

#define WHITEHEAT_CLOSE   2 /* close the port */

Definition at line 26 of file whiteheat.h.

#define WHITEHEAT_CMD_COMPLETE   16 /* reply for some commands */

Definition at line 40 of file whiteheat.h.

#define WHITEHEAT_CMD_FAILURE   17 /* reply for failed commands */

Definition at line 41 of file whiteheat.h.

#define WHITEHEAT_DO_TEST   15 /* perform specified test */

Definition at line 39 of file whiteheat.h.

#define WHITEHEAT_DTR_OFF   0x00

Definition at line 104 of file whiteheat.h.

#define WHITEHEAT_DTR_ON   0x01

Definition at line 105 of file whiteheat.h.

#define WHITEHEAT_DUMP   7 /* dump memory */

Definition at line 31 of file whiteheat.h.

#define WHITEHEAT_DUMP_MEM_BDATA   'b' /* bdata */

Definition at line 120 of file whiteheat.h.

#define WHITEHEAT_DUMP_MEM_DATA   'd' /* data */

Definition at line 118 of file whiteheat.h.

#define WHITEHEAT_DUMP_MEM_IDATA   'i' /* idata */

Definition at line 119 of file whiteheat.h.

#define WHITEHEAT_DUMP_MEM_XDATA   'x' /* xdata */

Definition at line 121 of file whiteheat.h.

#define WHITEHEAT_ECHO
Value:
14 /* send data to the indicated
IN endpoint */

Definition at line 38 of file whiteheat.h.

#define WHITEHEAT_EVENT   13 /* unsolicited status events */

Definition at line 37 of file whiteheat.h.

#define WHITEHEAT_EVENT_CONNECT   0x08 /* connect field is valid */

Definition at line 200 of file whiteheat.h.

#define WHITEHEAT_EVENT_ERROR   0x02 /* error field is valid */

Definition at line 198 of file whiteheat.h.

#define WHITEHEAT_EVENT_FLOW   0x04 /* flow field is valid */

Definition at line 199 of file whiteheat.h.

#define WHITEHEAT_EVENT_MODEM   0x01 /* modem field is valid */

Definition at line 197 of file whiteheat.h.

#define WHITEHEAT_FLOW_HARD_IN
Value:
0x02 /* remote TX is stopped
by RTS */

Definition at line 204 of file whiteheat.h.

#define WHITEHEAT_FLOW_HARD_OUT
Value:
0x01 /* TX is stopped by CTS
(waiting for CTS to go on) */

Definition at line 203 of file whiteheat.h.

#define WHITEHEAT_FLOW_NONE   0x00 /* no flow control active */

Definition at line 202 of file whiteheat.h.

#define WHITEHEAT_FLOW_SOFT_IN
Value:
0x08 /* remote TX is stopped by XOFF
transmitted */

Definition at line 206 of file whiteheat.h.

#define WHITEHEAT_FLOW_SOFT_OUT
Value:
0x04 /* TX is stopped by XOFF
received (waiting for XON) */

Definition at line 205 of file whiteheat.h.

#define WHITEHEAT_FLOW_TX_DONE   0x80 /* TX has completed */

Definition at line 207 of file whiteheat.h.

#define WHITEHEAT_GET_DTR_RTS
Value:
10 /* get the state of DTR and RTS
for a port */

Definition at line 34 of file whiteheat.h.

#define WHITEHEAT_GET_HW_INFO
Value:
11 /* get EEPROM info and
hardware ID */

Definition at line 35 of file whiteheat.h.

#define WHITEHEAT_HFLOW_CTS
Value:
0x08 /* when received CTS off/on
will stop/start TX */

Definition at line 78 of file whiteheat.h.

#define WHITEHEAT_HFLOW_DSR
Value:
0x10 /* when received DSR off/on
will stop/start TX */

Definition at line 79 of file whiteheat.h.

#define WHITEHEAT_HFLOW_DTR
Value:
0x02 /* DTR is off/on when RX
fills/empties */

Definition at line 77 of file whiteheat.h.

#define WHITEHEAT_HFLOW_NONE   0x00 /* no hardware flow control */

Definition at line 75 of file whiteheat.h.

#define WHITEHEAT_HFLOW_RTS
Value:
0x80 /* RTS is off/on when RX
fills/empties */

Definition at line 80 of file whiteheat.h.

#define WHITEHEAT_HFLOW_RTS_TOGGLE
Value:
0x01 /* RTS is on during transmit,
off otherwise */

Definition at line 76 of file whiteheat.h.

#define WHITEHEAT_OPEN   1 /* open the port */

Definition at line 25 of file whiteheat.h.

#define WHITEHEAT_PAR_EVEN   'e' /* even parity */

Definition at line 65 of file whiteheat.h.

#define WHITEHEAT_PAR_MARK   '1' /* mark (force 1) parity */

Definition at line 68 of file whiteheat.h.

#define WHITEHEAT_PAR_NONE   'n' /* no parity */

Definition at line 64 of file whiteheat.h.

#define WHITEHEAT_PAR_ODD   'o' /* odd parity */

Definition at line 66 of file whiteheat.h.

#define WHITEHEAT_PAR_SPACE   '0' /* space (force 0) parity */

Definition at line 67 of file whiteheat.h.

#define WHITEHEAT_PURGE   9 /* clear the UART fifos */

Definition at line 33 of file whiteheat.h.

#define WHITEHEAT_PURGE_RX   0x01 /* purge rx fifos */

Definition at line 148 of file whiteheat.h.

#define WHITEHEAT_PURGE_TX   0x02 /* purge tx fifos */

Definition at line 149 of file whiteheat.h.

#define WHITEHEAT_REPORT_TX_DONE   12 /* get the next TX done */

Definition at line 36 of file whiteheat.h.

#define WHITEHEAT_RTS_OFF   0x00

Definition at line 102 of file whiteheat.h.

#define WHITEHEAT_RTS_ON   0x01

Definition at line 103 of file whiteheat.h.

#define WHITEHEAT_SET_BREAK   6 /* turn BREAK on or off */

Definition at line 30 of file whiteheat.h.

#define WHITEHEAT_SET_DTR   5 /* turn DTR on or off */

Definition at line 29 of file whiteheat.h.

#define WHITEHEAT_SET_RTS   4 /* turn RTS on or off */

Definition at line 28 of file whiteheat.h.

#define WHITEHEAT_SETUP_PORT   3 /* change port settings */

Definition at line 27 of file whiteheat.h.

#define WHITEHEAT_SFLOW_NONE   'n' /* no software flow control */

Definition at line 70 of file whiteheat.h.

#define WHITEHEAT_SFLOW_RX
Value:
'r' /* XOFF/ON is sent when RX
fills/empties */

Definition at line 71 of file whiteheat.h.

#define WHITEHEAT_SFLOW_RXTX   'b' /* both SFLOW_RX and SFLOW_TX */

Definition at line 73 of file whiteheat.h.

#define WHITEHEAT_SFLOW_TX
Value:
't' /* when received XOFF/ON will
stop/start TX */

Definition at line 72 of file whiteheat.h.

#define WHITEHEAT_STATUS   8 /* get status */

Definition at line 32 of file whiteheat.h.

#define WHITEHEAT_TEST_ERASE_EEPROM   0x09 /* erase eeprom */

Definition at line 178 of file whiteheat.h.

#define WHITEHEAT_TEST_FAIL   0x00 /* test failed */

Definition at line 273 of file whiteheat.h.

#define WHITEHEAT_TEST_MODEM_FT
Value:
0x08 /* modem signals, requires a
loopback cable/connector */

Definition at line 177 of file whiteheat.h.

#define WHITEHEAT_TEST_PASS   0xff /* test passed */

Definition at line 275 of file whiteheat.h.

#define WHITEHEAT_TEST_PORT_CONT   0x04 /* port connect */

Definition at line 173 of file whiteheat.h.

#define WHITEHEAT_TEST_PORT_DISCONT   0x05 /* port disconnect */

Definition at line 174 of file whiteheat.h.

#define WHITEHEAT_TEST_PROGRAM_EEPROM   0x0b /* program eeprom */

Definition at line 180 of file whiteheat.h.

#define WHITEHEAT_TEST_READ_EEPROM   0x0a /* read eeprom */

Definition at line 179 of file whiteheat.h.

#define WHITEHEAT_TEST_SETUP_CONT
Value:
0x03 /* setup for
PORT_CONT/PORT_DISCONT */

Definition at line 172 of file whiteheat.h.

#define WHITEHEAT_TEST_UART_CLK_START   0x06 /* uart clock test start */

Definition at line 175 of file whiteheat.h.

#define WHITEHEAT_TEST_UART_CLK_STOP   0x07 /* uart clock test stop */

Definition at line 176 of file whiteheat.h.

#define WHITEHEAT_TEST_UART_INTR   0x02 /* uart interrupt */

Definition at line 171 of file whiteheat.h.

#define WHITEHEAT_TEST_UART_RW   0x01 /* read/write uart registers */

Definition at line 170 of file whiteheat.h.

#define WHITEHEAT_TEST_UNKNOWN   0x01 /* unknown test requested */

Definition at line 274 of file whiteheat.h.

Function Documentation

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__u32 baud

Definition at line 96 of file whiteheat.h.

__u8 bits

Definition at line 98 of file whiteheat.h.

__u8 hflow

Definition at line 104 of file whiteheat.h.

__u8 lloop

Definition at line 105 of file whiteheat.h.

__u8 parity

Definition at line 100 of file whiteheat.h.

Definition at line 95 of file whiteheat.h.

__u8 sflow

Definition at line 101 of file whiteheat.h.

__u8 stop

Definition at line 99 of file whiteheat.h.

__u8 xoff

Definition at line 102 of file whiteheat.h.

__u8 xon

Definition at line 103 of file whiteheat.h.