windows-nt/Source/XPSP1/NT/drivers/input/sermouse/i386/sermcfg.h

77 lines
1.8 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1989, 1990, 1991, 1992, 1993 Microsoft Corporation
Module Name:
sermcfg.h
Abstract:
These are the machine-dependent configuration constants that are used in
the i8250 serial mouse port driver.
Revision History:
--*/
#ifndef _SERMCFG_
#define _SERMCFG_
//
// Define the interrupt-related configuration constants.
//
#ifdef i386
#define SERIAL_MOUSE_INTERFACE_TYPE Isa
#define SERIAL_MOUSE_INTERRUPT_MODE Latched
#define SERIAL_MOUSE_INTERRUPT_SHARE FALSE
#else
#define SERIAL_MOUSE_INTERFACE_TYPE Isa
#define SERIAL_MOUSE_INTERRUPT_MODE LevelSensitive
#define SERIAL_MOUSE_INTERRUPT_SHARE TRUE
#endif
#define SERIAL_MOUSE_BUS_NUMBER 0
#ifdef i386
#define SERIAL_MOUSE_FLOATING_SAVE FALSE
#else
#define SERIAL_MOUSE_FLOATING_SAVE TRUE
#endif
#define MOUSE_COM1_VECTOR 4
#define MOUSE_COM1_IRQL MOUSE_COM1_VECTOR
#define SERIAL_MOUSE_COM1_PHYSICAL_BASE 0x3F8
#define MOUSE_COM2_VECTOR 3
#define MOUSE_COM2_IRQL MOUSE_COM2_VECTOR
#define SERIAL_MOUSE_COM2_PHYSICAL_BASE 0x2F8
#define MOUSE_VECTOR MOUSE_COM1_VECTOR
#define MOUSE_IRQL MOUSE_COM1_IRQL
#define SERIAL_MOUSE_PHYSICAL_BASE SERIAL_MOUSE_COM1_PHYSICAL_BASE
#define SERIAL_MOUSE_REGISTER_LENGTH 8
#define SERIAL_MOUSE_REGISTER_SHARE FALSE
#define SERIAL_MOUSE_PORT_TYPE CM_RESOURCE_PORT_IO
//
// Define the default clock rate to be 1.8432 MHz.
//
#define MOUSE_BAUD_CLOCK 1843200UL
//
// Define the default number of entries in the input data queue.
//
#define DATA_QUEUE_SIZE 100
//
// The default overrideHardware flag (disabled)
//
#define DEFAULT_OVERRIDE_HARDWARE -1
#endif // _SERMCFG_