Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/std Correct some typos. Add 2 more macro's to extrac...
details: https://anonhg.NetBSD.org/src/rev/2f624192c0c8
branches: trunk
changeset: 508607:2f624192c0c8
user: jmc <jmc%NetBSD.org@localhost>
date: Sun Apr 15 00:21:38 2001 +0000
description:
Correct some typos. Add 2 more macro's to extract data from directory entries. Add $
diffstat:
sys/dev/std/ieee1212reg.h | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diffs (47 lines):
diff -r c132886e4139 -r 2f624192c0c8 sys/dev/std/ieee1212reg.h
--- a/sys/dev/std/ieee1212reg.h Sat Apr 14 22:53:34 2001 +0000
+++ b/sys/dev/std/ieee1212reg.h Sun Apr 15 00:21:38 2001 +0000
@@ -1,3 +1,5 @@
+/* $NetBSD: ieee1212reg.h,v 1.2 2001/04/15 00:21:38 jmc Exp $ */
+
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -113,7 +115,7 @@
*/
#define P1212_ROMFMT_GET_CRCLEN(quadlet) (((quadlet) >> 16) & 0xff)
-/* size_t P1212_ROMGET_GET_INFOLEN(uint32_t quadlet);
+/* size_t P1212_ROMGET_GET_CRC(uint32_t quadlet);
*/
#define P1212_ROMFMT_GET_CRC(quadlet) ((uint16_t)(quadlet))
@@ -125,18 +127,22 @@
*/
#define P1212_DIRENT_GET_KEYVALUE(quadlet) (((quadlet) >> 24) & 0x3f)
-/* unsigned int P1212_DIRECT_GET_OFFSET(uint32_t quadlet);
+/* unsigned int P1212_DIRENT_GET_OFFSET(uint32_t quadlet);
*/
#define P1212_DIRENT_GET_OFFSET(quadlet) ((quadlet) & 0xffffff)
-/* unsigned int P1212_DIRECT_GET_OFFSET(uint32_t quadlet);
- */
-#define P1212_DIRENT_GET_OFFSET(quadlet) ((quadlet) & 0xffffff)
-
-/* unsigned int P1212_DIRECT_GET_VALUE(uint32_t quadlet);
+/* unsigned int P1212_DIRENT_GET_VALUE(uint32_t quadlet);
*/
#define P1212_DIRENT_GET_VALUE(quadlet) ((quadlet) & 0xffffff)
+/* u_int16_t P1212_DIRENT_GET_LEN(quadlet);
+ */
+#define P1212_DIRENT_GET_LEN(quadlet) (((quadlet) >> 16) & 0xffff)
+
+/* u_int16_t P1212_DIRENT_GET_CRC(quadlet);
+ */
+#define P1212_DIRENT_GET_CRC(quadlet) ((uint16_t)(quadlet))
+
/* Key Types are stored in bits 31-30 of a directory entry.
*/
Home |
Main Index |
Thread Index |
Old Index