Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/rpi Add VCPROPTAG_[GS]ET_CLOCK{R, ST}ATE
details: https://anonhg.NetBSD.org/src/rev/54436ace3c3b
branches: trunk
changeset: 782362:54436ace3c3b
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Oct 30 20:11:37 2012 +0000
description:
Add VCPROPTAG_[GS]ET_CLOCK{R,ST}ATE
diffstat:
sys/arch/evbarm/rpi/vcprop.h | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diffs (59 lines):
diff -r fc77278ceeda -r 54436ace3c3b sys/arch/evbarm/rpi/vcprop.h
--- a/sys/arch/evbarm/rpi/vcprop.h Tue Oct 30 20:02:15 2012 +0000
+++ b/sys/arch/evbarm/rpi/vcprop.h Tue Oct 30 20:11:37 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vcprop.h,v 1.1 2012/10/14 16:16:52 skrll Exp $ */
+/* $NetBSD: vcprop.h,v 1.2 2012/10/30 20:11:37 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -47,6 +47,11 @@
#define VCPROPTAG_GET_ARMMEMORY 0x00010005
#define VCPROPTAG_GET_VCMEMORY 0x00010006
#define VCPROPTAG_GET_CLOCKS 0x00010007
+
+#define VCPROPTAG_GET_CLOCKSTATE 0x00030001
+#define VCPROPTAG_SET_CLOCKSTATE 0x00038001
+#define VCPROPTAG_GET_CLOCKRATE 0x00030002
+#define VCPROPTAG_SET_CLOCKRATE 0x00038002
#define VCPROPTAG_GET_CMDLINE 0x00050001
#define VCPROPTAG_GET_DMACHAN 0x00060001
@@ -95,6 +100,18 @@
uint64_t sn;
};
+
+#define VCPROP_CLK_EMMC 1
+#define VCPROP_CLK_UART 2
+#define VCPROP_CLK_ARM 3
+#define VCPROP_CLK_CORE 4
+#define VCPROP_CLK_V3D 5
+#define VCPROP_CLK_H264 6
+#define VCPROP_CLK_ISP 7
+#define VCPROP_CLK_SDRAM 8
+#define VCPROP_CLK_PIXEL 9
+#define VCPROP_CLK_PWM 10
+
struct vcprop_clock {
uint32_t pclk;
uint32_t cclk;
@@ -117,6 +134,18 @@
uint32_t mask;
};
+struct vcprop_tag_clockstate {
+ struct vcprop_tag tag;
+ uint32_t id;
+ uint32_t state;
+};
+
+struct vcprop_tag_clockrate {
+ struct vcprop_tag tag;
+ uint32_t id;
+ uint32_t rate;
+};
+
struct vcprop_buffer_hdr {
uint32_t vpb_len;
uint32_t vpb_rcode;
Home |
Main Index |
Thread Index |
Old Index