blob: 392d9b1867451a6b76e4090267856cd8391ed6b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- jmcce-1.4RC2/src/jmcce.c 2002-05-17 19:09:14.000000000 +0100
+++ jmcce-1.4RC2/src/jmcce.c 2005-05-17 11:56:53.529200009 +0100
@@ -33,6 +33,24 @@
#include <linux/major.h>
#include <linux/keyboard.h>
+#ifndef MINORBITS
+#define MINORBITS 20
+#endif
+
+#ifndef MINORMASK
+#define MINORMASK ((1U << MINORBITS) - 1)
+#endif
+
+#ifndef MAJOR
+#define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
+#endif
+
+#ifndef MINOR
+#define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
+#endif
+
+
+
#include "jmcce.h"
#include "draw.h"
#include "hbffont.h"
|