summaryrefslogtreecommitdiffstats
path: root/doc/opal-api/opal-pci-get-set-pbcq-tunnel-bar-164-165.rst
blob: 95ee32431ab34f9f216d480767198b8afb1ba9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
OPAL_PCI_GET_PBCQ_TUNNEL_BAR
============================
::

   #define OPAL_PCI_GET_PBCQ_TUNNEL_BAR 164

   int64_t opal_pci_get_pbcq_tunnel_bar(uint64_t phb_id, uint64_t *addr)

The host calls this function to read the address out of the PBCQ Tunnel
Bar register.

Parameters
----------
::

   uint64_t phb_id
   uint64_t *addr

``phb_id``
  The value from the PHB node ibm,opal-phbid property for the device.

``addr``
  A pointer to where the address stored in the PBCQ Tunnel Bar register
  will be copied.

Return Values
-------------

``OPAL_SUCCESS``
  Operation was successful

``OPAL_PARAMETER``
  Invalid PHB or addr parameter

``OPAL_UNSUPPORTED``
  Not supported by hardware

OPAL_PCI_SET_PBCQ_TUNNEL_BAR
============================
::

   #define OPAL_PCI_SET_PBCQ_TUNNEL_BAR 165

   int64_t opal_pci_set_pbcq_tunnel_bar(uint64_t phb_id, uint64_t addr)

The host calls this function to set the PBCQ Tunnel Bar register.

Parameters
----------
::

   uint64_t phb_id
   uint64_t addr

``phb_id``
  The value from the PHB node ibm,opal-phbid property for the device.

``addr``
  The value of the address chosen for the PBCQ Tunnel Bar register.
  If the address is 0, then the PBCQ Tunnel Bar register will be reset.
  It the address is non-zero, then the PBCQ Tunnel Bar register will be
  set with ::

   Bit[0:42]      Bit[8:50] of the address

Return Values
-------------

``OPAL_SUCCESS``
  Operation was successful

``OPAL_PARAMETER``
  Invalid PHB or addr parameter

``OPAL_UNSUPPORTED``
  Not supported by hardware
OpenPOWER on IntegriCloud