Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

99 lines
1.7 KiB

/*++
Copyright (c) 1993 Microsoft Corporation
Copyright (c) 1993 Logitech Inc.
Module Name:
cseries.h
Abstract:
Support for the Logitech CSeries type mice.
Environment:
Kernel mode only.
Notes:
Revision History:
--*/
#ifndef CSERIES_H
#define CSERIES_H
//
// Includes.
//
#include "mouser.h"
#define CSER_PROTOCOL_MM 0
#define CSER_PROTOCOL_MAX 1
//
// Not implemented in this release.
//
//#define CSER_PROTOCOL_3B 1
//#define CSER_PROTOCOL_5B 2
//#define CSER_PROTOCOL_M 3
//#define CSER_PROTOCOL_RBPO 4
//#define CSER_PROTOCOL_ABPO 5
//#define CSER_PROTOCOL_MAX 6
//
// Time needed for a CSeries mouse to power up.
//
#define CSER_POWER_UP (500 * MS_TO_100_NS)
//
// The minimum inactive time needed for the mouse to power down correctly.
//
#define CSER_POWER_DOWN (500 * MS_TO_100_NS)
//
// Function prototypes.
//
NTSTATUS
CSerPowerUp(
PDEVICE_EXTENSION DeviceExtension
);
VOID
CSerSetReportRate(
PDEVICE_EXTENSION DeviceExtension,
UCHAR ReportRate
);
VOID
CSerSetBaudRate(
PDEVICE_EXTENSION DeviceExtension,
ULONG BaudRate
// ULONG BaudClock
);
PPROTOCOL_HANDLER
CSerSetProtocol(
PDEVICE_EXTENSION DeviceExtension,
UCHAR NewProtocol
);
BOOLEAN
CSerDetect(
PDEVICE_EXTENSION DeviceExtension,
PULONG HardwareButtons
);
BOOLEAN
CSerHandlerMM(
IN PDEVICE_EXTENSION DeviceExtension,
IN PMOUSE_INPUT_DATA CurrentInput,
IN PHANDLER_DATA HandlerData,
IN UCHAR Value,
IN UCHAR LineState
);
#endif // CSERIES_H