patch-2.1.85 linux/include/linux/timer.h

Next file: linux/init/main.c
Previous file: linux/include/linux/sysv_fs_sb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.84/linux/include/linux/timer.h linux/include/linux/timer.h
@@ -2,58 +2,26 @@
 #define _LINUX_TIMER_H
 
 /*
- * DON'T CHANGE THESE!! Most of them are hardcoded into some assembly language
- * as well as being defined here.
- */
-
-/*
- * The timers are:
- *
- * BLANK_TIMER		console screen-saver timer
- *
- * BEEP_TIMER		console beep timer
- *
- * RS_TIMER		timer for the RS-232 ports
- *
- * SWAP_TIMER		timer for the background pageout daemon
- * 
- * HD_TIMER		harddisk timer
- *
- * HD_TIMER2		(atdisk2 patches)
- *
- * FLOPPY_TIMER		floppy disk timer (not used right now)
- * 
- * NET_TIMER		tcp/ip timeout timer
- *
- * COPRO_TIMER		387 timeout for buggy hardware..
- *
- * QIC02_TAPE_TIMER	timer for QIC-02 tape driver (it's not hardcoded)
- *
- * MCD_TIMER		Mitsumi CD-ROM Timer
- *
- * GSCD_TIMER		Goldstar CD-ROM Timer
+ * Old-style timers. Please don't use for any new code.
  *
+ * Numbering of these timers should be consecutive to minimize
+ * processing delays. [MJ]
  */
 
-#define BLANK_TIMER	0
-#define BEEP_TIMER	1
-#define RS_TIMER	2
-#define SWAP_TIMER	3
-
-#define HD_TIMER	16
-#define FLOPPY_TIMER	17
-#define NET_TIMER	19
-#define SOUND_TIMER	20
-#define COPRO_TIMER	21
-
-#define QIC02_TAPE_TIMER	22	/* hhb */
-#define MCD_TIMER	23
-
-#define HD_TIMER2	24
-#define GSCD_TIMER	25
-#define COMTROL_TIMER	26
+#define BLANK_TIMER	0	/* Console screen-saver */
+#define BEEP_TIMER	1	/* Console beep */
+#define RS_TIMER	2	/* RS-232 ports */
+#define SWAP_TIMER	3	/* Background pageout */
+#define BACKGR_TIMER    4	/* io_request background I/O */
+#define HD_TIMER	5	/* Old IDE driver */
+#define FLOPPY_TIMER	6	/* Floppy */
+#define QIC02_TAPE_TIMER 7	/* QIC 02 tape */
+#define MCD_TIMER	8	/* Mitsumi CDROM */
+#define GSCD_TIMER	9	/* Goldstar CDROM */
+#define COMTROL_TIMER	10	/* Comtrol serial */
+#define DIGI_TIMER	11	/* Digi serial */
 
-#define DIGI_TIMER	29
+#define COPRO_TIMER	31	/* 387 timeout for buggy hardware (boot only) */
 
 struct timer_struct {
 	unsigned long expires;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov