diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-06-27 05:11:17 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-06-27 05:11:17 +0000 |
commit | 12b2c7edefc21b6f3ca9cb30edb2d72ebefd24d4 (patch) | |
tree | f20e57482d1cf68f6da66fbd6c086fdd8026c08d /sys | |
parent | a31767952a3cbabd8c17981ada72980f7b076a31 (diff) |
alternative instruction format handling
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/lofnreg.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/lofnreg.h b/sys/dev/pci/lofnreg.h index 253adc23fa6..bd65bdaf3ca 100644 --- a/sys/dev/pci/lofnreg.h +++ b/sys/dev/pci/lofnreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: lofnreg.h,v 1.9 2001/06/26 21:50:25 jason Exp $ */ +/* $OpenBSD: lofnreg.h,v 1.10 2001/06/27 05:11:16 jason Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -126,6 +126,7 @@ #define OP_RB_SHIFT 11 #define OP_RM_SHIFT 6 #define OP_R_MASK 0x1f +#define OP_LEN_MASK 0xffff #define LOFN_INSTR(done,op,rd,ra,rb,rm) \ ((done) | (op) | \ @@ -133,3 +134,9 @@ (((ra) & OP_R_MASK) << OP_RA_SHIFT) | \ (((rb) & OP_R_MASK) << OP_RB_SHIFT) | \ (((rm) & OP_R_MASK) << OP_RM_SHIFT)) + +#define LOFN_INSTR2(done,op,rd,ra,len) \ + ((done) | (op) | \ + (((rd) & OP_R_MASK) << OP_RD_SHIFT) | \ + (((ra) & OP_R_MASK) << OP_RA_SHIFT) | \ + ((len) & OP_LEN_MASK)) |