Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev add PRAM access commands



details:   https://anonhg.NetBSD.org/src/rev/6303820b6dbc
branches:  trunk
changeset: 801653:6303820b6dbc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Aug 13 09:41:50 2014 +0000

description:
add PRAM access commands

diffstat:

 sys/arch/macppc/dev/cudavar.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 941a5d8cd42b -r 6303820b6dbc sys/arch/macppc/dev/cudavar.h
--- a/sys/arch/macppc/dev/cudavar.h     Wed Aug 13 06:26:32 2014 +0000
+++ b/sys/arch/macppc/dev/cudavar.h     Wed Aug 13 09:41:50 2014 +0000
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cudavar.h,v 1.2 2008/04/29 06:53:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cudavar.h,v 1.3 2014/08/13 09:41:50 macallan Exp $");
 
 #ifndef CUDAVAR_H
 #define CUDAVAR_H
@@ -43,10 +43,12 @@
 /* Cuda commands */
 #define CMD_AUTOPOLL   1
 #define CMD_READ_RTC   3
+#define CMD_READ_PRAM  7       /* addr is 16bit, upper byte first */
 #define CMD_WRITE_RTC  9
 #define CMD_POWEROFF   10
+#define CMD_WRITE_PRAM 12
 #define CMD_RESET      17
-#define CMD_IIC        34
+#define CMD_IIC                34
 
 struct cuda_attach_args {
        void *cookie;



Home | Main Index | Thread Index | Old Index