summaryrefslogtreecommitdiff
path: root/include/asm-sparc64/hypervisor.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-09 22:26:34 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 01:12:13 -0800
commitdedacf623283cb24933ec9f7d5bf539f19173cd4 (patch)
treee628dffa192236c89e3d646eb62c49ef1c98aab4 /include/asm-sparc64/hypervisor.h
parent7eae642f75e0f7fbce7c37b2dfe0641ff1e9ebfd (diff)
[SPARC64]: Add HV_PCI_TSBID() macro.
For constructing hypervisor PCI TSB IDs. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/hypervisor.h')
-rw-r--r--include/asm-sparc64/hypervisor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-sparc64/hypervisor.h b/include/asm-sparc64/hypervisor.h
index b4e0d52acd5c..5d795ee5192d 100644
--- a/include/asm-sparc64/hypervisor.h
+++ b/include/asm-sparc64/hypervisor.h
@@ -1300,6 +1300,9 @@ struct hv_trap_trace_entry {
* a tsbnum and a tsbindex. Bits 63:32 contain the
* tsbnum and bits 31:00 contain the tsbindex.
*
+ * Use the HV_PCI_TSBID() macro to construct such
+ * values.
+ *
* io_attributes IO attributes for IOMMU mappings. One of more
* of the attritbute bits are stores in a 64-bit
* value. The values are defined below.
@@ -1354,6 +1357,9 @@ struct hv_trap_trace_entry {
(((d) & 0x1f) << 11) | \
(((f) & 0x07) << 8))
+#define HV_PCI_TSBID(__tsb_num, __tsb_index) \
+ ((((u64)(__tsb_num)) << 32UL) | ((u64)(__tsb_index)))
+
#define HV_PCI_SYNC_FOR_DEVICE 0x01
#define HV_PCI_SYNC_FOR_CPU 0x02