linux/drivers/misc/ibmasm/remote.h

/* SPDX-License-Identifier: GPL-2.0-or-later */

/*
 * IBM ASM Service Processor Device Driver
 *
 * Copyright (C) IBM Corporation, 2004
 *
 * Author: Max Asböck <[email protected]>
 *
 * Originally written by Pete Reynolds
 */

#ifndef _IBMASM_REMOTE_H_
#define _IBMASM_REMOTE_H_

#include <asm/io.h>

/* pci offsets */
#define CONDOR_MOUSE_DATA
#define CONDOR_MOUSE_ISR_CONTROL
#define CONDOR_MOUSE_ISR_STATUS
#define CONDOR_MOUSE_Q_READER
#define CONDOR_MOUSE_Q_WRITER
#define CONDOR_MOUSE_Q_BEGIN
#define CONDOR_MOUSE_MAX_X
#define CONDOR_MOUSE_MAX_Y

#define CONDOR_INPUT_DESKTOP_INFO
#define CONDOR_INPUT_DISPLAY_RESX
#define CONDOR_INPUT_DISPLAY_RESY
#define CONDOR_INPUT_DISPLAY_BITS
#define CONDOR_OUTPUT_VNC_STATUS

#define CONDOR_MOUSE_INTR_STATUS_MASK

#define INPUT_TYPE_MOUSE
#define INPUT_TYPE_KEYBOARD


/* mouse button states received from SP */
#define REMOTE_DOUBLE_CLICK
#define REMOTE_BUTTON_LEFT
#define REMOTE_BUTTON_MIDDLE
#define REMOTE_BUTTON_RIGHT

/* size of keysym/keycode translation matrices */
#define XLATE_SIZE

struct mouse_input {};


struct keyboard_input {};



struct remote_input {};

#define mouse_addr(sp)
#define display_width(sp)
#define display_height(sp)
#define display_depth(sp)
#define desktop_info(sp)
#define vnc_status(sp)
#define isr_control(sp)

#define mouse_interrupt_pending(sp)
#define clear_mouse_interrupt(sp)
#define enable_mouse_interrupts(sp)
#define disable_mouse_interrupts(sp)

/* remote input queue operations */
#define REMOTE_QUEUE_SIZE

#define get_queue_writer(sp)
#define get_queue_reader(sp)
#define set_queue_reader(sp, reader)

#define queue_begin

#define get_queue_entry(sp, read_index)

static inline int advance_queue_reader(struct service_processor *sp, unsigned long reader)
{}

#define NO_KEYCODE
#define KEY_SYM_BK_SPC
#define KEY_SYM_TAB
#define KEY_SYM_ENTER
#define KEY_SYM_SCR_LOCK
#define KEY_SYM_ESCAPE
#define KEY_SYM_HOME
#define KEY_SYM_LARROW
#define KEY_SYM_UARROW
#define KEY_SYM_RARROW
#define KEY_SYM_DARROW
#define KEY_SYM_PAGEUP
#define KEY_SYM_PAGEDOWN
#define KEY_SYM_END
#define KEY_SYM_INSERT
#define KEY_SYM_NUM_LOCK
#define KEY_SYM_KPSTAR
#define KEY_SYM_KPPLUS
#define KEY_SYM_KPMINUS
#define KEY_SYM_KPDOT
#define KEY_SYM_KPSLASH
#define KEY_SYM_KPRIGHT
#define KEY_SYM_KPUP
#define KEY_SYM_KPLEFT
#define KEY_SYM_KPDOWN
#define KEY_SYM_KP0
#define KEY_SYM_KP1
#define KEY_SYM_KP2
#define KEY_SYM_KP3
#define KEY_SYM_KP4
#define KEY_SYM_KP5
#define KEY_SYM_KP6
#define KEY_SYM_KP7
#define KEY_SYM_KP8
#define KEY_SYM_KP9
#define KEY_SYM_F1
#define KEY_SYM_F2
#define KEY_SYM_F3
#define KEY_SYM_F4
#define KEY_SYM_F5
#define KEY_SYM_F6
#define KEY_SYM_F7
#define KEY_SYM_F8
#define KEY_SYM_F9
#define KEY_SYM_F10
#define KEY_SYM_F11
#define KEY_SYM_F12
#define KEY_SYM_SHIFT
#define KEY_SYM_CTRL
#define KEY_SYM_ALT
#define KEY_SYM_CAP_LOCK
#define KEY_SYM_DELETE
#define KEY_SYM_TILDE
#define KEY_SYM_BKTIC
#define KEY_SYM_ONE
#define KEY_SYM_BANG
#define KEY_SYM_TWO
#define KEY_SYM_AT
#define KEY_SYM_THREE
#define KEY_SYM_POUND
#define KEY_SYM_FOUR
#define KEY_SYM_DOLLAR
#define KEY_SYM_FIVE
#define KEY_SYM_PERCENT
#define KEY_SYM_SIX
#define KEY_SYM_CARAT
#define KEY_SYM_SEVEN
#define KEY_SYM_AMPER
#define KEY_SYM_EIGHT
#define KEY_SYM_STAR
#define KEY_SYM_NINE
#define KEY_SYM_LPAREN
#define KEY_SYM_ZERO
#define KEY_SYM_RPAREN
#define KEY_SYM_MINUS
#define KEY_SYM_USCORE
#define KEY_SYM_EQUAL
#define KEY_SYM_PLUS
#define KEY_SYM_LBRKT
#define KEY_SYM_LCURLY
#define KEY_SYM_RBRKT
#define KEY_SYM_RCURLY
#define KEY_SYM_SLASH
#define KEY_SYM_PIPE
#define KEY_SYM_TIC
#define KEY_SYM_QUOTE
#define KEY_SYM_SEMIC
#define KEY_SYM_COLON
#define KEY_SYM_COMMA
#define KEY_SYM_LT
#define KEY_SYM_PERIOD
#define KEY_SYM_GT
#define KEY_SYM_BSLASH
#define KEY_SYM_QMARK
#define KEY_SYM_A
#define KEY_SYM_B
#define KEY_SYM_C
#define KEY_SYM_D
#define KEY_SYM_E
#define KEY_SYM_F
#define KEY_SYM_G
#define KEY_SYM_H
#define KEY_SYM_I
#define KEY_SYM_J
#define KEY_SYM_K
#define KEY_SYM_L
#define KEY_SYM_M
#define KEY_SYM_N
#define KEY_SYM_O
#define KEY_SYM_P
#define KEY_SYM_Q
#define KEY_SYM_R
#define KEY_SYM_S
#define KEY_SYM_T
#define KEY_SYM_U
#define KEY_SYM_V
#define KEY_SYM_W
#define KEY_SYM_X
#define KEY_SYM_Y
#define KEY_SYM_Z
#define KEY_SYM_a
#define KEY_SYM_b
#define KEY_SYM_c
#define KEY_SYM_d
#define KEY_SYM_e
#define KEY_SYM_f
#define KEY_SYM_g
#define KEY_SYM_h
#define KEY_SYM_i
#define KEY_SYM_j
#define KEY_SYM_k
#define KEY_SYM_l
#define KEY_SYM_m
#define KEY_SYM_n
#define KEY_SYM_o
#define KEY_SYM_p
#define KEY_SYM_q
#define KEY_SYM_r
#define KEY_SYM_s
#define KEY_SYM_t
#define KEY_SYM_u
#define KEY_SYM_v
#define KEY_SYM_w
#define KEY_SYM_x
#define KEY_SYM_y
#define KEY_SYM_z
#define KEY_SYM_SPACE
#endif /* _IBMASM_REMOTE_H_ */