Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4bf3b0bc3e98f77de88b336fd8d673649601b557
Commit:     4bf3b0bc3e98f77de88b336fd8d673649601b557
Parent:     238b706da1c6ebacc55986ac8668f3ede4621f2c
Author:     H. Peter Anvin <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 25 11:06:02 2007 -0700
Committer:  H. Peter Anvin <[EMAIL PROTECTED]>
CommitDate: Wed Jul 25 12:02:21 2007 -0700

    [x86 setup] Make struct apm_bios_info cross-architecture
    
    struct apm_bios_info uses "unsigned short" and "unsigned long"
    to mean u16 and u32 respectively.  Correct.
    
    Signed-off-by: H. Peter Anvin <[EMAIL PROTECTED]>
---
 include/linux/apm_bios.h |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/include/linux/apm_bios.h b/include/linux/apm_bios.h
index 290aef3..5f921c8 100644
--- a/include/linux/apm_bios.h
+++ b/include/linux/apm_bios.h
@@ -21,20 +21,22 @@ typedef unsigned short      apm_eventinfo_t;
 
 #ifdef __KERNEL__
 
+#include <linux/types.h>
+
 #define APM_CS         (GDT_ENTRY_APMBIOS_BASE * 8)
 #define APM_CS_16      (APM_CS + 8)
 #define APM_DS         (APM_CS_16 + 8)
 
 struct apm_bios_info {
-       unsigned short  version;
-       unsigned short  cseg;
-       unsigned long   offset;
-       unsigned short  cseg_16;
-       unsigned short  dseg;
-       unsigned short  flags;
-       unsigned short  cseg_len;
-       unsigned short  cseg_16_len;
-       unsigned short  dseg_len;
+       u16     version;
+       u16     cseg;
+       u32     offset;
+       u16     cseg_16;
+       u16     dseg;
+       u16     flags;
+       u16     cseg_len;
+       u16     cseg_16_len;
+       u16     dseg_len;
 };
 
 /* Results of APM Installation Check */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to