Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
hvsi.c File Reference
#include <linux/console.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/major.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/sysrq.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <asm/hvcall.h>
#include <asm/hvconsole.h>
#include <asm/prom.h>
#include <asm/uaccess.h>
#include <asm/vio.h>
#include <asm/param.h>
#include <asm/hvsi.h>

Go to the source code of this file.

Data Structures

struct  hvsi_struct
 

Macros

#define HVSI_MAJOR   229
 
#define HVSI_MINOR   128
 
#define MAX_NR_HVSI_CONSOLES   4
 
#define HVSI_TIMEOUT   (5*HZ)
 
#define HVSI_VERSION   1
 
#define HVSI_MAX_PACKET   256
 
#define HVSI_MAX_READ   16
 
#define HVSI_MAX_OUTGOING_DATA   12
 
#define N_OUTBUF   12
 
#define __ALIGNED__   __attribute__((__aligned__(sizeof(long))))
 
#define HVSI_CONSOLE   0x1
 
#define dbg_dump_packet(packet)   do { } while (0)
 
#define dbg_dump_hex(data, len)   do { } while (0)
 
#define TTY_THRESHOLD_THROTTLE   128
 

Enumerations

enum  HVSI_PROTOCOL_STATE {
  HVSI_CLOSED, HVSI_WAIT_FOR_VER_RESPONSE, HVSI_WAIT_FOR_VER_QUERY, HVSI_OPEN,
  HVSI_WAIT_FOR_MCTRL_RESPONSE, HVSI_FSP_DIED
}
 

Functions

 device_initcall (hvsi_init)
 
 console_initcall (hvsi_console_init)
 

Macro Definition Documentation

#define __ALIGNED__   __attribute__((__aligned__(sizeof(long))))

Definition at line 69 of file hvsi.c.

#define dbg_dump_hex (   data,
  len 
)    do { } while (0)

Definition at line 198 of file hvsi.c.

#define dbg_dump_packet (   packet)    do { } while (0)

Definition at line 197 of file hvsi.c.

#define HVSI_CONSOLE   0x1

Definition at line 110 of file hvsi.c.

#define HVSI_MAJOR   229

Definition at line 54 of file hvsi.c.

#define HVSI_MAX_OUTGOING_DATA   12

Definition at line 62 of file hvsi.c.

#define HVSI_MAX_PACKET   256

Definition at line 60 of file hvsi.c.

#define HVSI_MAX_READ   16

Definition at line 61 of file hvsi.c.

#define HVSI_MINOR   128

Definition at line 55 of file hvsi.c.

#define HVSI_TIMEOUT   (5*HZ)

Definition at line 58 of file hvsi.c.

#define HVSI_VERSION   1

Definition at line 59 of file hvsi.c.

#define MAX_NR_HVSI_CONSOLES   4

Definition at line 56 of file hvsi.c.

#define N_OUTBUF   12

Definition at line 63 of file hvsi.c.

#define TTY_THRESHOLD_THROTTLE   128

Definition at line 361 of file hvsi.c.

Enumeration Type Documentation

Enumerator:
HVSI_CLOSED 
HVSI_WAIT_FOR_VER_RESPONSE 
HVSI_WAIT_FOR_VER_QUERY 
HVSI_OPEN 
HVSI_WAIT_FOR_MCTRL_RESPONSE 
HVSI_FSP_DIED 

Definition at line 102 of file hvsi.c.

Function Documentation

console_initcall ( hvsi_console_init  )
device_initcall ( hvsi_init  )