mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
[SPARC64]: Add HV_PCI_TSBID() macro.
For constructing hypervisor PCI TSB IDs. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7eae642f75
commit
dedacf6232
1 changed files with 6 additions and 0 deletions
|
@ -1300,6 +1300,9 @@ struct hv_trap_trace_entry {
|
||||||
* a tsbnum and a tsbindex. Bits 63:32 contain the
|
* a tsbnum and a tsbindex. Bits 63:32 contain the
|
||||||
* tsbnum and bits 31:00 contain the tsbindex.
|
* 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
|
* io_attributes IO attributes for IOMMU mappings. One of more
|
||||||
* of the attritbute bits are stores in a 64-bit
|
* of the attritbute bits are stores in a 64-bit
|
||||||
* value. The values are defined below.
|
* value. The values are defined below.
|
||||||
|
@ -1354,6 +1357,9 @@ struct hv_trap_trace_entry {
|
||||||
(((d) & 0x1f) << 11) | \
|
(((d) & 0x1f) << 11) | \
|
||||||
(((f) & 0x07) << 8))
|
(((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_DEVICE 0x01
|
||||||
#define HV_PCI_SYNC_FOR_CPU 0x02
|
#define HV_PCI_SYNC_FOR_CPU 0x02
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue