patch-1.3.78 linux/include/linux/kd.h

Next file: linux/include/linux/kerneld.h
Previous file: linux/include/linux/if_tr.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.77/linux/include/linux/kd.h linux/include/linux/kd.h
@@ -10,8 +10,8 @@
 #define GIO_FONTX	0x4B6B	/* get font using struct consolefontdesc */
 #define PIO_FONTX	0x4B6C	/* set font using struct consolefontdesc */
 struct consolefontdesc {
-	u_short charcount;	/* characters in font (256 or 512) */
-	u_short charheight;	/* scan lines per character (1-32) */
+	unsigned short charcount;	/* characters in font (256 or 512) */
+	unsigned short charheight;	/* scan lines per character (1-32) */
 	char *chardata;		/* font data in expanded form */
 };
 
@@ -58,19 +58,19 @@
 
 #define GIO_UNIMAP	0x4B66	/* get unicode-to-font mapping from kernel */
 struct unipair {
-	u_short unicode;
-	u_short fontpos;
+	unsigned short unicode;
+	unsigned short fontpos;
 };
 struct unimapdesc {
-	u_short entry_ct;
+	unsigned short entry_ct;
 	struct unipair *entries;
 };
 #define PIO_UNIMAP	0x4B67	/* put unicode-to-font mapping in kernel */
 #define PIO_UNIMAPCLR	0x4B68	/* clear table, possibly advise hash algorithm */
 struct unimapinit {
-	u_short advised_hashsize;  /* 0 if no opinion */
-	u_short advised_hashstep;  /* 0 if no opinion */
-	u_short advised_hashlevel; /* 0 if no opinion */
+	unsigned short advised_hashsize;  /* 0 if no opinion */
+	unsigned short advised_hashstep;  /* 0 if no opinion */
+	unsigned short advised_hashlevel; /* 0 if no opinion */
 };
 
 #define UNI_DIRECT_BASE 0xF000	/* start of Direct Font Region */
@@ -95,9 +95,9 @@
 #define KDSKBLED	0x4B65	/* set led flags (not lights) */
 
 struct kbentry {
-	u_char kb_table;
-	u_char kb_index;
-	u_short kb_value;
+	unsigned char kb_table;
+	unsigned char kb_index;
+	unsigned short kb_value;
 };
 #define		K_NORMTAB	0x00
 #define		K_SHIFTTAB	0x01
@@ -108,14 +108,14 @@
 #define KDSKBENT	0x4B47	/* sets one entry in translation table */
 
 struct kbsentry {
-	u_char kb_func;
-	u_char kb_string[512];
+	unsigned char kb_func;
+	unsigned char kb_string[512];
 };
 #define KDGKBSENT	0x4B48	/* gets one function key string entry */
 #define KDSKBSENT	0x4B49	/* sets one function key string entry */
 
 struct kbdiacr {
-        u_char diacr, base, result;
+        unsigned char diacr, base, result;
 };
 struct kbdiacrs {
         unsigned int kb_cnt;    /* number of entries in following array */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this