|
From: Gordon M. <gm...@us...> - 2001-03-07 20:08:12
|
The following file was modified in linux/include/linux/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
rfcomm.h 1.34 1.35=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
--Made big-endian changes to rfcomm.c.
The diff of the modified file(s):
--- rfcomm.h 2001/03/02 10:55:03 1.34
+++ rfcomm.h 2001/03/07 20:09:24 1.35
@@ -54,6 +54,8 @@
#include "btcommon.h"
#endif
=20
+#include <asm/byteorder.h>
+
/****************** CONSTANT AND MACRO SECTION ***************************=
***/
=20
/*=20
@@ -97,6 +99,8 @@
=20
/* These two are placed here temporary during the UnPlugFest */
=20
+#ifdef __LITTLE_ENDIAN_BITFIELD
+
typedef struct parameter_mask{
u8 bit_rate:1;
u8 data_bits:1;
@@ -133,6 +137,54 @@
u8 xoff_u8;
parameter_mask pm;
} __attribute__ ((packed)) rpn_values;
+
+#elif defined(__BIG_ENDIAN_BITFIELD)
+
+typedef struct parameter_mask{=20
+ u8 res1:1;
+ u8 xoff_u8:1;
+ u8 xon_u8:1;
+ u8 parity_type:1;
+ u8 parity:1;
+ u8 stop_bit:1;
+ u8 data_bits:1;
+ u8 bit_rate:1;
+
+ u8 res2:2;
+ u8 rtc_output:1;
+ u8 rtc_input:1;
+ u8 rtr_output:1;
+ u8 rtr_input:1;
+ u8 xon_output:1;
+ u8 xon_input:1;
+
+} __attribute__ ((packed)) parameter_mask;
+
+typedef struct rpn_values{=20
+ u8 bit_rate;
+
+ u8 res1:2;
+ u8 parity_type:2;
+ u8 parity:1;
+ u8 stop_bit:1;
+ u8 data_bits:2;
+
+ u8 res2:2;
+ u8 rtc_output:1;
+ u8 rtc_input:1;
+ u8 rtr_output:1;
+ u8 rtr_input:1;
+ u8 xon_output:1;
+ u8 xon_input:1;
+
+ u8 xon_u8;
+ u8 xoff_u8;
+ parameter_mask pm;
+} __attribute__ ((packed)) rpn_values;
+
+#else /* __XXX_BITFIELD */
+#error Processor endianness unknown!
+#endif
=20
/****************** EXPORTED FUNCTION DECLARATION SECTION ****************=
***/
=20
|