[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian Boot Floppies CVS: boot-floppies pfaffben



CVSROOT:	/cvs/debian-boot
Module name:	boot-floppies
Changes by:	pfaffben	99/04/04 21:46:31

Modified files:
	utilities/bogl : boml.c 

Log message:
Restructure to allow for multiple mice on a single computer.  This means
that a struct mouse * parameter was added in lots of places.  Added lots
of comments also.
(N_SERIAL, N_MSBUS, N_PS2) New macros.
(N_DETECT) New macro.
(static vars detect_callback, detect_count) New.
(enum T_NONE) Removed.
(mice[]) Renamed mouse_info[].
(static vars fd, type) Removed.
(struct mouse) New.
(static var mice) New.
(static vars pbuf, ppos) Removed.
(struct event) New.
(macros q_next, q_prev) New.
(macro QUEUE_SIZE) New.
(static vars queue, qh, qt) New.
(boml_init) New parameter to allow for detection progress monitoring.
Calls the callback (through inc()) at the appropriate times.
(inc) New function.
(boml_refresh) Handle multiple mice.
(boml_fd) Removed.
(boml_fds) New function.
(boml_event) New function.
(event) New function.
(state) Call event() at appropriate times.
(add_mouse) New function.
(detect_ps2) Call add_mouse() if mouse detected.
(detect_msbus) Call add_mouse() if mouse detected.
(detect_serial) Call add_mouse() if mouse detected.  Also, try four
serial ports not just two.  Call inc() when appropriate.
(guess_mouse_type) Change return value semantics.
(probe_com) Returns success.  Calls add_mouse() if mouse detected.


Reply to: