summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/include/power/battery.h
blob: dc8d153c19cbffc10ecfde0ba52bbb1bbfe1306c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 *  Copyright (C) 2012 Samsung Electronics
 *  Lukasz Majewski <l.majewski@samsung.com>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef __POWER_BATTERY_H_
#define __POWER_BATTERY_H_

struct battery {
	unsigned int version;
	unsigned int state_of_chrg;
	unsigned int time_to_empty;
	unsigned int capacity;
	unsigned int voltage_uV;

	unsigned int state;
};

int power_bat_init(unsigned char bus);
#endif /* __POWER_BATTERY_H_ */
ht: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
classes:
- system.linux.system.single
- cluster.baremetal-mcp-ocata-ovs-dpdk-ha.openstack
# - cluster.baremetal-mcp-ocata-ovs-dpdk-ha.stacklight
# - cluster.baremetal-mcp-ocata-ovs-dpdk-ha.stacklight.client
parameters:
  _param:
    apt_mk_version: nightly
    mcp_repo_version: 1.1
    cluster_name: baremetal-mcp-ocata-ovs-dpdk-ha
    cluster_domain: ${_param:cluster_name}.local
#    stacklight_environment: ${_param:cluster_domain}
    reclass_data_revision: master
    cluster_public_host: ${_param:openstack_proxy_address}
    infra_config_hostname: cfg01
    infra_maas_database_password: opnfv_secret

    # infra service addresses
    infra_config_address: 10.167.4.100
    infra_config_deploy_address: 192.168.10.100
    infra_maas_node01_address: 10.167.4.3
    infra_maas_node01_deploy_address: 192.168.11.3
    infra_maas_node01_external_address: 10.16.0.3
    infra_compute_node01_address: 10.167.4.141
    infra_compute_node02_address: 10.167.4.142
    infra_compute_node03_address: 10.167.4.143

    infra_kvm_address: 10.167.4.140
    infra_kvm_node01_address: 10.167.4.141
    infra_kvm_node02_address: 10.167.4.142
    infra_kvm_node03_address: 10.167.4.143

    infra_maas_node01_hostname: mas01
    infra_kvm_node01_hostname: kvm01
    infra_kvm_node02_hostname: kvm02
    infra_kvm_node03_hostname: kvm03

    ntp_strata_host1: 1.pool.ntp.org
    ntp_strata_host2: 0.pool.ntp.org

    # Interface definitions
    reclass:
      storage:
        node:
          name: default
    linux_dhcp_interface:
      enabled: true
      type: eth
      proto: dhcp
    linux_single_interface:
      enabled: true
      type: eth
      proto: static
      address: ${_param:single_address}
      netmask: 255.255.255.0

    salt_control_xenial_image: http://apt.mirantis.com/images/ubuntu-16-04-x64-latest.qcow2
    salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
  linux:
    system:
      user:
        ubuntu:
          enabled: true
          sudo: true
          home: /home/ubuntu
    network:
      host:
        cfg01:
          address: ${_param:infra_config_address}
          names:
          - cfg01
          - cfg01.${_param:cluster_domain}
        cfg:
          address: ${_param:infra_config_address}
          names:
          - ${_param:infra_config_hostname}
          - ${_param:infra_config_hostname}.${_param:cluster_domain}
        mas01:
          address: ${_param:infra_maas_node01_address}
          names:
          - ${_param:infra_maas_node01_hostname}
          - ${_param:infra_maas_node01_hostname}.${_param:cluster_domain}
        kvm01:
          address: ${_param:infra_kvm_node01_address}
          names:
          - ${_param:infra_kvm_node01_hostname}
          - ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
        kvm02:
          address: ${_param:infra_kvm_node02_address}
          names:
          - ${_param:infra_kvm_node02_hostname}
          - ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
        kvm03:
          address: ${_param:infra_kvm_node03_address}
          names:
          - ${_param:infra_kvm_node03_hostname}
          - ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}