Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ieee1394 Provide a macro for turning a speed number ...



details:   https://anonhg.NetBSD.org/src/rev/7e4597d1b8e0
branches:  trunk
changeset: 540284:7e4597d1b8e0
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Dec 09 07:24:57 2002 +0000

description:
Provide a macro for turning a speed number into a max rec value

diffstat:

 sys/dev/ieee1394/ieee1394reg.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f5a81859fb4f -r 7e4597d1b8e0 sys/dev/ieee1394/ieee1394reg.h
--- a/sys/dev/ieee1394/ieee1394reg.h    Mon Dec 09 07:23:43 2002 +0000
+++ b/sys/dev/ieee1394/ieee1394reg.h    Mon Dec 09 07:24:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee1394reg.h,v 1.14 2002/12/04 00:28:43 haya Exp $    */
+/*     $NetBSD: ieee1394reg.h,v 1.15 2002/12/09 07:24:57 jmc Exp $     */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -228,6 +228,7 @@
 #define IEEE1394_MAX_REC(i)     ((0x1 << (i + 1)))
 #define IEEE1394_BUSINFO_LEN   3
 
+#define IEEE1394_MAX_ASYNCH_FOR_SPEED(i) (IEEE1394_MAX_REC(8+i))
 #define IEEE1394_GET_MAX_REC(i) ((i & 0x0000f000) >> 12)
 #define IEEE1394_GET_LINK_SPD(i) (i & 0x00000007)
 



Home | Main Index | Thread Index | Old Index