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

Go to the source code of this file.

Data Structures

struct  hvsi_header
 
struct  hvsi_data
 
struct  hvsi_control
 
struct  hvsi_query
 
struct  hvsi_query_response
 
struct  hvsi_priv
 

Macros

#define VS_DATA_PACKET_HEADER   0xff
 
#define VS_CONTROL_PACKET_HEADER   0xfe
 
#define VS_QUERY_PACKET_HEADER   0xfd
 
#define VS_QUERY_RESPONSE_PACKET_HEADER   0xfc
 
#define VSV_SET_MODEM_CTL   1 /* to service processor only */
 
#define VSV_MODEM_CTL_UPDATE   2 /* from service processor only */
 
#define VSV_CLOSE_PROTOCOL   3
 
#define VSV_SEND_VERSION_NUMBER   1
 
#define VSV_SEND_MODEM_CTL_STATUS   2
 
#define HVSI_TSDTR   0x01
 
#define HVSI_TSCD   0x20
 
#define HVSI_MAX_OUTGOING_DATA   12
 
#define HVSI_VERSION   1
 
#define HVSI_INBUF_SIZE   255
 

Functions

struct hvsi_header __attribute__ ((packed))
 
void hvsilib_init (struct hvsi_priv *pv, int(*get_chars)(uint32_t termno, char *buf, int count), int(*put_chars)(uint32_t termno, const char *buf, int count), int termno, int is_console)
 
int hvsilib_open (struct hvsi_priv *pv, struct hvc_struct *hp)
 
void hvsilib_close (struct hvsi_priv *pv, struct hvc_struct *hp)
 
int hvsilib_read_mctrl (struct hvsi_priv *pv)
 
int hvsilib_write_mctrl (struct hvsi_priv *pv, int dtr)
 
void hvsilib_establish (struct hvsi_priv *pv)
 
int hvsilib_get_chars (struct hvsi_priv *pv, char *buf, int count)
 
int hvsilib_put_chars (struct hvsi_priv *pv, const char *buf, int count)
 

Variables

uint8_t type
 
uint8_t len
 
uint16_t seqno
 
struct hvsi_header hdr
 
uint8_t data [HVSI_MAX_OUTGOING_DATA]
 
uint16_t verb
 
uint32_t word
 
uint32_t mask
 
uint16_t query_seqno
 
union {
   uint8_t   version
 
   uint32_t   mctrl_word
 
u
 
struct hvsi_priv __attribute__
 

Macro Definition Documentation

#define HVSI_INBUF_SIZE   255

Definition at line 60 of file hvsi.h.

#define HVSI_MAX_OUTGOING_DATA   12

Definition at line 22 of file hvsi.h.

#define HVSI_TSCD   0x20

Definition at line 20 of file hvsi.h.

#define HVSI_TSDTR   0x01

Definition at line 19 of file hvsi.h.

#define HVSI_VERSION   1

Definition at line 23 of file hvsi.h.

#define VS_CONTROL_PACKET_HEADER   0xfe

Definition at line 5 of file hvsi.h.

#define VS_DATA_PACKET_HEADER   0xff

Definition at line 4 of file hvsi.h.

#define VS_QUERY_PACKET_HEADER   0xfd

Definition at line 6 of file hvsi.h.

#define VS_QUERY_RESPONSE_PACKET_HEADER   0xfc

Definition at line 7 of file hvsi.h.

#define VSV_CLOSE_PROTOCOL   3

Definition at line 12 of file hvsi.h.

#define VSV_MODEM_CTL_UPDATE   2 /* from service processor only */

Definition at line 11 of file hvsi.h.

#define VSV_SEND_MODEM_CTL_STATUS   2

Definition at line 16 of file hvsi.h.

#define VSV_SEND_VERSION_NUMBER   1

Definition at line 15 of file hvsi.h.

#define VSV_SET_MODEM_CTL   1 /* to service processor only */

Definition at line 10 of file hvsi.h.

Function Documentation

struct hvsi_header __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

void hvsilib_close ( struct hvsi_priv pv,
struct hvc_struct hp 
)

Definition at line 387 of file hvsi_lib.c.

void hvsilib_establish ( struct hvsi_priv pv)

Definition at line 313 of file hvsi_lib.c.

int hvsilib_get_chars ( struct hvsi_priv pv,
char buf,
int  count 
)

Definition at line 181 of file hvsi_lib.c.

void hvsilib_init ( struct hvsi_priv pv,
int(*)(uint32_t termno, char *buf, int count get_chars,
int(*)(uint32_t termno, const char *buf, int count put_chars,
int  termno,
int  is_console 
)

Definition at line 415 of file hvsi_lib.c.

int hvsilib_open ( struct hvsi_priv pv,
struct hvc_struct hp 
)

Definition at line 375 of file hvsi_lib.c.

int hvsilib_put_chars ( struct hvsi_priv pv,
const char buf,
int  count 
)

Definition at line 231 of file hvsi_lib.c.

int hvsilib_read_mctrl ( struct hvsi_priv pv)

Definition at line 257 of file hvsi_lib.c.

int hvsilib_write_mctrl ( struct hvsi_priv pv,
int  dtr 
)

Definition at line 288 of file hvsi_lib.c.

Variable Documentation

Definition at line 36 of file hvsi.h.

Definition at line 35 of file hvsi.h.

__le32 len

Definition at line 31 of file hvsi.h.

uint32_t mask

Definition at line 47 of file hvsi.h.

uint32_t mctrl_word

Definition at line 63 of file hvsi.h.

uint16_t query_seqno

Definition at line 60 of file hvsi.h.

__u16 seqno

Definition at line 32 of file hvsi.h.

Definition at line 30 of file hvsi.h.

union { ... } u
uint16_t verb

Definition at line 44 of file hvsi.h.

uint8_t version

Definition at line 62 of file hvsi.h.

Definition at line 46 of file hvsi.h.