/* riscos/driver/hid/input/usb/sys/hid/common.h
 *
 * (c) 2002 Simtec Electronics
 *
 * Ben Dooks
 *
 * HID Input Driver - common data definitions
 *
 * $Id: common.h,v 1.14 2003/08/08 11:17:17 ben Exp $
 *
 * This Library file is part of the Simtec Electronics USB stack development
 *   suite.
 * Specific licence is granted to use this file by third parties for the
 *   development of USB device drivers.
 *
*/

#ifndef __RISCOS_HID_INPUT_COMMON_H
#define __RISCOS_HID_INPUT_COMMON_H "$Id: common.h,v 1.14 2003/08/08 11:17:17 ben Exp $"

extern unsigned long my_pw;

extern int finalising;

extern usb_wait_t waits_loop;
extern usb_wait_t waits_callback;

extern int riscos_ver;

extern int init_common(void);

extern int hid_attach_message_handler(void);
extern int hid_remove_message_handler(void);

extern void hid_service_devs(void);
extern void hid_service_onedev(struct hid_dev *dev);

/* common.c */

extern void hid_callback_entry(void);
extern void hid_wait_done(int a, int b, int c, int d);

extern int (*hid_input_msg_entry)(struct usbmsg *, void *);
extern int (*hid_wait_done_entry)(int a, int b, int c, int d);

/* service.c */
extern void hid_service(int, _kernel_swi_regs *, void *);

/* msg.c */
extern int hid_input_msg(struct usbmsg *msg, void *arg);


#endif /* __RISCOS_HID_INPUT_COMMON_H */

