Skip to contentSkip to conversation

power: add power chip emulation

RFC PATCH New liguang 1 participant 1 message Mar 18, 2013 Kbuild

lore
Share & tools
lore

liguang

author
#0 lore raw

RFC PATCH 5/14 power: add power chip emulation

this power chip manage on/off/wakeup/suspend power state transition, when state changed, it will trigger all callbacks embedded in all device object. This just like power action in real world.

---
 Makefile.objs |    1 +
 power.c       |  133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 power.h       |   41 +++++++++++++++++
 3 files changed, 175 insertions(+), 0 deletions(-)
 create mode 100644 power.c
 create mode 100644 power.h
Makefile.objs +1 -0
index a68cdac..a895e7d 100644
@@ -73,6 +73,7 @@ common-obj-y += bt-host.o bt-vhci.o
 
 common-obj-y += dma-helpers.o
 common-obj-y += vl.o
+common-obj-y += power.o
 
 common-obj-$(CONFIG_SLIRP) += slirp/
 
power.c new file +133 -0

133 lines not on this page · raw message

power.h new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.7.2.5