Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include Fix RCS ID.
details: https://anonhg.NetBSD.org/src/rev/278a7137524c
branches: trunk
changeset: 483640:278a7137524c
user: jdc <jdc%NetBSD.org@localhost>
date: Tue Mar 14 21:23:45 2000 +0000
description:
Fix RCS ID.
Add port power management.
diffstat:
sys/arch/sparc/include/tctrl.h | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 1aee2129e8ea -r 278a7137524c sys/arch/sparc/include/tctrl.h
--- a/sys/arch/sparc/include/tctrl.h Tue Mar 14 21:20:51 2000 +0000
+++ b/sys/arch/sparc/include/tctrl.h Tue Mar 14 21:23:45 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD*/
+/* $NetBSD: tctrl.h,v 1.2 2000/03/14 21:23:45 jdc Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -49,6 +49,19 @@
};
typedef struct tctrl_req tctrl_req_t;
-#define TCTRL_CMD_REQ _IOWR('C', 0, struct tctrl_req)
+struct tctrl_pwr {
+ int rw;
+ int state;
+};
+typedef struct tctrl_pwr tctrl_pwr_t;
+
+/* Port power state */
+#define PORT_PWR_ON 0x00 /* Always on */
+#define PORT_PWR_STANDBY 0x01 /* On when open */
+#define PORT_PWR_OFF 0x02 /* Always off */
+
+#define TCTRL_CMD_REQ _IOWR('C', 0, struct tctrl_req)
+#define TCTRL_SERIAL_PWR _IOWR('C', 1, struct tctrl_pwr)
+#define TCTRL_MODEM_PWR _IOWR('C', 2, struct tctrl_pwr)
#endif /* _MACHINE_TCTRL_H */
Home |
Main Index |
Thread Index |
Old Index