patch-2.1.128 linux/drivers/scsi/aic7xxx/sequencer.h
Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/scsi/Makefile
Back to the patch index
Back to the overall index
- Lines: 67
- Date:
Sun Nov 8 13:20:14 1998
- Orig file:
v2.1.127/linux/drivers/scsi/aic7xxx/sequencer.h
- Orig date:
Fri Oct 23 22:01:21 1998
diff -u --recursive --new-file v2.1.127/linux/drivers/scsi/aic7xxx/sequencer.h linux/drivers/scsi/aic7xxx/sequencer.h
@@ -36,8 +36,10 @@
* $Id: sequencer.h,v 1.3 1997/09/27 19:37:31 gibbs Exp $
*/
+#ifdef __LITTLE_ENDIAN_BITFIELD
struct ins_format1 {
- unsigned int immediate : 8,
+ unsigned int
+ immediate : 8,
source : 9,
destination : 9,
ret : 1,
@@ -46,7 +48,8 @@
};
struct ins_format2 {
- unsigned int shift_control : 8,
+ unsigned int
+ shift_control : 8,
source : 9,
destination : 9,
ret : 1,
@@ -55,12 +58,43 @@
};
struct ins_format3 {
- unsigned int immediate : 8,
+ unsigned int
+ immediate : 8,
source : 9,
address : 10,
opcode : 4,
parity : 1;
};
+#elif defined(__BIG_ENDIAN_BITFIELD)
+struct ins_format1 {
+ unsigned int
+ parity : 1,
+ opcode : 4,
+ ret : 1,
+ destination : 9,
+ source : 9,
+ immediate : 8;
+};
+
+struct ins_format2 {
+ unsigned int
+ parity : 1,
+ opcode : 4,
+ ret : 1,
+ destination : 9,
+ source : 9,
+ shift_control : 8;
+};
+
+struct ins_format3 {
+ unsigned int
+ parity : 1,
+ opcode : 4,
+ address : 10,
+ source : 9,
+ immediate : 8;
+};
+#endif
union ins_formats {
struct ins_format1 format1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov