head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.18; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxinput.h File Reference

Go to the source code of this file.

Data Structures

struct  _DMXInputInfo

Defines

#define DMX_MAX_SIGIO_FDS   4

Typedefs

typedef _DMXLocalInputInfoDMXLocalInputInfoPtr

Enumerations

enum  DMXUpdateType {
  DMX_UPDATE_REALIZE, DMX_UPDATE_UNREALIZE, DMX_UPDATE_RESTACK, DMX_UPDATE_COPY,
  DMX_UPDATE_RESIZE, DMX_UPDATE_REPARENT
}
enum  dmxSigioState { DMX_NOSIGIO = 0, DMX_USESIGIO, DMX_ACTIVESIGIO }

Functions

void dmxInputInit (DMXInputInfo *dmxInput)
void dmxInputReInit (DMXInputInfo *dmxInput)
void dmxInputLateReInit (DMXInputInfo *dmxInput)
void dmxInputFree (DMXInputInfo *dmxInput)
void dmxInputLogDevices (void)
void dmxUpdateWindowInfo (DMXUpdateType type, WindowPtr pWindow)
void dmxeqEnqueue (xEvent *e)
void dmxeqSwitchScreen (ScreenPtr pScreen, Bool fromDIX)
void dmxGetGlobalPosition (int *x, int *y)

Variables

int dmxNumInputs
DMXInputInfodmxInputs


Detailed Description

This file provides access to:

The goal is that no files in hw/dmx should include header files from hw/dmx/input -- the interface defined here should be the only interface exported to the hw/dmx layer.

See also:
input/dmxinputinit.c.

Define Documentation

#define DMX_MAX_SIGIO_FDS   4
 

Maximum number of file descriptors for SIGIO handling


Typedef Documentation

typedef struct _DMXLocalInputInfo* DMXLocalInputInfoPtr
 

An opaque structure that is only exposed in the dmx/input layer.


Enumeration Type Documentation

enum dmxSigioState
 

State of the SIGIO engine

Enumeration values:
DMX_NOSIGIO  Device does not use SIGIO at all.
DMX_USESIGIO  Device can use SIGIO, but is not (e.g., because the VT is switch away).
DMX_ACTIVESIGIO  Device is currently using SIGIO.

enum DMXUpdateType
 

Reason why window layout was updated.

Enumeration values:
DMX_UPDATE_REALIZE  Window realized
DMX_UPDATE_UNREALIZE  Window unrealized
DMX_UPDATE_RESTACK  Stacking order changed
DMX_UPDATE_COPY  Window copied
DMX_UPDATE_RESIZE  Window resized
DMX_UPDATE_REPARENT  Window reparented


Function Documentation

void dmxeqEnqueue xEvent *  e  ) 
 

This function adds an event to the end of the queue. If the event is an XInput event, then the next event (the valuator event) is also stored in the queue. If the new event has a time before the time of the last event currently on the queue, then the time is updated for the new event.

Must be reentrant with ProcessInputEvents. Assumption: dmxeqEnqueue will never be interrupted. If this is called from both signal handlers and regular code, make sure the signal is suspended when called from regular code.

void dmxeqSwitchScreen ScreenPtr  pScreen,
Bool  fromDIX
 

Make pScreen the new screen for enqueueing events. If fromDIX is TRUE, also make pScreen the new screen for dequeuing events.

void dmxGetGlobalPosition int *  x,
int *  y
 

Return DMX's notion of the pointer position in the global coordinate space.

void dmxInputFree DMXInputInfo dmxInput  ) 
 

Free all of the memory associated with dmxInput

void dmxInputInit DMXInputInfo dmxInput  ) 
 

Initialize all of the devices described in dmxInput.

void dmxInputLateReInit DMXInputInfo dmxInput  ) 
 

Re-initialize all the devices described in dmxInput. Called from #dmxReconfig after the cursor is redisplayed.

void dmxInputLogDevices void   ) 
 

Log information about all of the known devices using dmxLog().

void dmxInputReInit DMXInputInfo dmxInput  ) 
 

Re-initialize all the devices described in dmxInput. Called from #dmxReconfig before the cursor is redisplayed.

void dmxUpdateWindowInfo DMXUpdateType  type,
WindowPtr  pWindow
 

This routine is called from #dmxwindow.c whenever the layout of windows on the display might have changed. This information is used by input drivers (currently only the console driver) that provide information about window layout to the user.


Variable Documentation

DMXInputInfo* dmxInputs
 

List of inputs

int dmxNumInputs
 

Number of dmxInputs


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 25 a33 53

dmxinput.h File Reference

Go to the source code of this file.

Data Structures

struct  _DMXInputInfo

Defines

#define DMX_MAX_SIGIO_FDS   4

Typedefs

typedef void(* ProcessInputEventsProc )(struct _DMXInputInfo *)
typedef void(* UpdateWindowInfoProc )(struct _DMXInputInfo *, DMXUpdateType, WindowPtr)
typedef struct _DMXLocalInputInfoDMXLocalInputInfoPtr

Enumerations

enum  DMXUpdateType {
  DMX_UPDATE_REALIZE, DMX_UPDATE_UNREALIZE, DMX_UPDATE_RESTACK, DMX_UPDATE_COPY,
  DMX_UPDATE_RESIZE, DMX_UPDATE_REPARENT
d35 4 a38 3
enum  dmxSigioState { DMX_NOSIGIO = 0, DMX_USESIGIO, DMX_ACTIVESIGIO a39 106
enum  DMXBlockType { DMX_NO_BLOCK = 0, DMX_BLOCK = 1 }

Functions

void dmxInputInit (DMXInputInfo *dmxInput)
void dmxInputReInit (DMXInputInfo *dmxInput)
void dmxInputLateReInit (DMXInputInfo *dmxInput)
void dmxInputFree (DMXInputInfo *dmxInput)
void dmxInputLogDevices (void)
void dmxUpdateWindowInfo (DMXUpdateType type, WindowPtr pWindow)
void dmxeqSwitchScreen (DeviceIntPtr pDev, ScreenPtr pScreen, Bool fromDIX)
void dmxGetGlobalPosition (int *x, int *y)
DMXScreenInfodmxFindFirstScreen (int x, int y)
void dmxCoreMotion (DevicePtr pDev, int x, int y, int delta, DMXBlockType block)
DMXInputInfodmxConfigAddInput (const char *name, int core)

Variables

int dmxNumInputs
DMXInputInfodmxInputs

Detailed Description

This file provides access to:

The goal is that no files in hw/dmx should include header files from hw/dmx/input -- the interface defined here should be the only interface exported to the hw/dmx layer.

See also:
input/dmxinputinit.c.

Define Documentation

#define DMX_MAX_SIGIO_FDS   4

Maximum number of file descriptors for SIGIO handling

Referenced by dmxSigioRegister().


Typedef Documentation

An opaque structure that is only exposed in the dmx/input layer.

typedef void(* ProcessInputEventsProc)(struct _DMXInputInfo *)
typedef void(* UpdateWindowInfoProc)(struct _DMXInputInfo *, DMXUpdateType, WindowPtr)

Enumeration Type Documentation

Enumerator:
DMX_NO_BLOCK 
DMX_BLOCK 
d41 8 a48 26

State of the SIGIO engine

Enumerator:
DMX_NOSIGIO 

Device does not use SIGIO at all.

DMX_USESIGIO 

Device can use SIGIO, but is not (e.g., because the VT is switch away).

DMX_ACTIVESIGIO 

Device is currently using SIGIO.

d50 1 a50 35

Reason why window layout was updated.

Enumerator:
DMX_UPDATE_REALIZE 

Window realized

DMX_UPDATE_UNREALIZE 

Window unrealized

DMX_UPDATE_RESTACK 

Stacking order changed

DMX_UPDATE_COPY 

Window copied

DMX_UPDATE_RESIZE 

Window resized

DMX_UPDATE_REPARENT 

Window reparented

d52 1 a52 27

Function Documentation

DMXInputInfo* dmxConfigAddInput ( const char *  name,
int  core 
)
d78 22 a99 5 d101 22 a122 5 d124 31 a154 5 d156 45 a200 3 d202 1 d204 20 a223 9
void dmxeqSwitchScreen ( DeviceIntPtr  pDev,
ScreenPtr  pScreen,
Bool  fromDIX 
)
d225 4 a228 4 a230 1 d232 3 a234 2 d238 2 a239 2 d241 1 d243 19 a261 13
DMXScreenInfo* dmxFindFirstScreen ( int  x, int  y )
d263 4 a266 4 a268 1 d270 3 a272 2 d276 2 a277 2 d279 1 d281 26 a306 21

Return DMX's notion of the pointer position in the global coordinate space.

References dmxGlobalX, and dmxGlobalY.

Referenced by dmxBackendLateReInit(), dmxCheckCursor(), dmxConsoleUpdateFineCursor(), dmxHideCursor(), and dmxSetCursor().

void dmxGetGlobalPosition ( int *  x, int *  y )
d308 1 d310 26 a335 21
void dmxInputFree ( DMXInputInfo dmxInput  ) 
d337 1 d339 26 a364 21
void dmxInputInit ( DMXInputInfo dmxInput  ) 
d366 1 d368 26 a393 21

Re-initialize all the devices described in dmxInput. Called from dmxAdjustCursorBoundaries after the cursor is redisplayed.

References _DMXInputInfo::devs, _DMXLocalInputInfo::latereinit, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::pDevice.

Referenced by dmxAdjustCursorBoundaries().

void dmxInputLateReInit ( DMXInputInfo dmxInput  ) 
d395 1 d397 26 a422 21
void dmxInputLogDevices ( void   ) 
d424 1 d426 19 a444 14

Re-initialize all the devices described in dmxInput. Called from dmxAdjustCursorBoundaries before the cursor is redisplayed.

References _DMXInputInfo::devs, _DMXInputInfo::numDevs, _DMXLocalInputInfo::pDevice, and _DMXLocalInputInfo::reinit.

Referenced by dmxAdjustCursorBoundaries().

void dmxInputReInit ( DMXInputInfo dmxInput  ) 
d446 4 a449 4 a451 1 d453 3 a455 2 d459 2 a460 2 d462 1 d464 20 a483 15

This routine is called from dmxwindow.c whenever the layout of windows on the display might have changed. This information is used by input drivers (currently only the console driver) that provide information about window layout to the user.

References _DMXInputInfo::detached, dmxInputs, dmxNumInputs, and _DMXInputInfo::updateWindowInfo.

Referenced by dmxCopyWindow(), dmxRealizeWindow(), dmxReparentWindow(), dmxResizeWindow(), dmxRestackWindow(), and dmxUnrealizeWindow().


Variable Documentation

void dmxUpdateWindowInfo ( DMXUpdateType  type, WindowPtr  pWindow )
d485 1 a485 2 d487 19 a505 12
DMXInputInfo* dmxInputs
d507 1 a507 2 d509 14 a522 9 @ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2 d45 1 a45 1 d48 3 a50 3 d53 2 a54 2 d85 2 a86 2 d88 2 a89 2

Detailed Description

This file provides access to:

d96 1 a96 1

Define Documentation

d102 1 a102 1 d247 2 a248 2 d253 2 a254 2 d259 1 a259 1 d278 2 a279 2 d284 2 a285 2 d290 2 a291 2 d296 2 a297 2 d302 2 a303 2 d308 1 a308 1 d327 2 a328 2 d333 2 a334 2 d339 2 a340 2 d345 1 a345 1 d360 2 a361 2 d366 2 a367 2 d372 1 a372 1 d391 2 a392 2 d397 2 a398 2 d403 1 a403 1 d423 3 a425 2 d446 3 a448 2 d456 1 a456 1

References _DMXInputInfo::console, _DMXInputInfo::core, _DMXInputInfo::detached, _DMXInputInfo::devs, DMX_LOCAL_KEYBOARD, DMX_LOCAL_MOUSE, dmxAddDevice(), dmxArgC(), dmxArgFree(), dmxArgParse(), dmxArgV(), dmxBlockHandler(), dmxFatal, dmxInputCopyLocal(), dmxInputScanForExtensions(), dmxLog(), dmxLogInput(), dmxNumScreens, dmxPopulateLocal(), dmxProcessInputEvents(), dmxPropertySameDisplay(), dmxScreens, dmxUpdateWindowInformation(), dmxWakeupHandler(), dmxWarning, _DMXInputInfo::geometry, _DMXInputInfo::inputIdx, _DMXLocalInputInfo::isCore, _DMXInputInfo::keycodes, _DMXInputInfo::name, _DMXInputInfo::numDevs, _DMXLocalInputInfo::pDevice, _DMXInputInfo::processInputEvents, _DMXInputInfo::scrnIdx, _DMXInputInfo::symbols, _DMXLocalInputInfo::type, _DMXInputInfo::updateWindowInfo, and _DMXInputInfo::windows.

d469 3 a471 2 d492 3 a494 2 d515 3 a517 2 d538 2 a539 2 d544 2 a545 2 d550 1 a550 1 a596 4
int dmxNumInputs
struct  _DMXInputInfo
#define DMX_MAX_SIGIO_FDS   4
typedef void(* ProcessInputEventsProc )(struct _DMXInputInfo *)
typedef void(* UpdateWindowInfoProc )(struct _DMXInputInfo *, DMXUpdateType, WindowPtr)
typedef struct _DMXLocalInputInfoDMXLocalInputInfoPtr
enum  DMXUpdateType {
  DMX_UPDATE_REALIZE, d59 1 a59 1   DMX_UPDATE_RESIZE, d63 1 a63 1
enum  dmxSigioState { DMX_NOSIGIO = 0, d67 1 a67 1
enum  DMXBlockType { DMX_NO_BLOCK = 0, d72 11 a82 11
void dmxInputInit (DMXInputInfo *dmxInput)
void dmxInputReInit (DMXInputInfo *dmxInput)
void dmxInputLateReInit (DMXInputInfo *dmxInput)
void dmxInputFree (DMXInputInfo *dmxInput)
void dmxInputLogDevices (void)
void dmxUpdateWindowInfo (DMXUpdateType type, WindowPtr pWindow)
void dmxeqSwitchScreen (DeviceIntPtr pDev, ScreenPtr pScreen, Bool fromDIX)
void dmxGetGlobalPosition (int *x, int *y)
DMXScreenInfodmxFindFirstScreen (int x, int y)
void dmxCoreMotion (DevicePtr pDev, int x, int y, int delta, DMXBlockType block)
DMXInputInfodmxConfigAddInput (const char *name, int core)
int dmxNumInputs
DMXInputInfodmxInputs
#define DMX_MAX_SIGIO_FDS   4const char *  name, int  core DevicePtr  pDev, int  x, int  y, int  delta, DMXBlockType  block DeviceIntPtr  pDev, ScreenPtr  pScreen, Bool  fromDIX int  x, int  y int *  x, int *  y DMXInputInfo dmxInput)DMXInputInfo dmxInput)DMXInputInfo dmxInput)void  )DMXInputInfo dmxInput)DMXUpdateType  type, WindowPtr  pWindow