summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev/owserialvar.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-04-19 18:33:54 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-04-19 18:33:54 +0000
commit20e2f4466606d1095baf3b5cbfeefefd06ee6b47 (patch)
treefe4660a895a88e5c9242bcc4028b03ea0ae91171 /sys/arch/sgi/dev/owserialvar.h
parent0c4a2dbb18b1d5de0843e0e04ed970771aa6632b (diff)
Parse and display the part number and the serial number, instead of falsely
printing the part number as the serial number.
Diffstat (limited to 'sys/arch/sgi/dev/owserialvar.h')
-rw-r--r--sys/arch/sgi/dev/owserialvar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sgi/dev/owserialvar.h b/sys/arch/sgi/dev/owserialvar.h
index acdfde41fe6..41002b5c808 100644
--- a/sys/arch/sgi/dev/owserialvar.h
+++ b/sys/arch/sgi/dev/owserialvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: owserialvar.h,v 1.1 2008/04/07 22:55:57 miod Exp $ */
+/* $OpenBSD: owserialvar.h,v 1.2 2009/04/19 18:33:53 miod Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
@@ -22,8 +22,9 @@
* SGI seems to use DS2505 (or compatibles) to store serial numbers.
*/
-#define OWSERIAL_NAME_LEN 12
-#define OWSERIAL_SERIAL_LEN 14
+#define OWSERIAL_NAME_LEN 14
+#define OWSERIAL_PRODUCT_LEN 12
+#define OWSERIAL_SERIAL_LEN 20
struct owserial_softc {
struct device sc_dev;
@@ -35,5 +36,6 @@ struct owserial_softc {
uint8_t sc_redir[256]; /* redirection table */
char sc_name[1 + OWSERIAL_NAME_LEN];
+ char sc_product[1 + OWSERIAL_PRODUCT_LEN];
char sc_serial[1 + OWSERIAL_SERIAL_LEN];
};