summaryrefslogtreecommitdiff
path: root/arch/mips/mach-octeon/include/mach/cvmx-packet.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-04-24 19:39:14 -0400
committerTom Rini <trini@konsulko.com>2021-04-24 19:39:14 -0400
commit4dda435131251a94b29afd52f010cf1ec5a7ceb2 (patch)
tree16bda495e53e1e5d6afc58077f2ec8e6ca670d1c /arch/mips/mach-octeon/include/mach/cvmx-packet.h
parente1333435afbf0c6290b1d16bb446b57807f75502 (diff)
parentb1d9554e058e5e8510a9d22183ae8321290ee87b (diff)
Merge tag 'mips-pull-2021-04-24' of https://source.denx.de/u-boot/custodians/u-boot-mips
- MIPS: octeon: fix minor bugs of initial merge - MIPS: octeon: add support for QLM and PCI-E controller - MIPS: octeon: add support for AHCI and SATA - MIPS: octeon: add E1000 ethernet support - MIPS: octeon: add Octeon III NIC23 board - ata/scsi: add support for Big Endian platforms
Diffstat (limited to 'arch/mips/mach-octeon/include/mach/cvmx-packet.h')
-rw-r--r--arch/mips/mach-octeon/include/mach/cvmx-packet.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/mips/mach-octeon/include/mach/cvmx-packet.h b/arch/mips/mach-octeon/include/mach/cvmx-packet.h
new file mode 100644
index 00000000000..f3cfe9c64f4
--- /dev/null
+++ b/arch/mips/mach-octeon/include/mach/cvmx-packet.h
@@ -0,0 +1,40 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2020 Marvell International Ltd.
+ *
+ * Packet buffer defines.
+ */
+
+#ifndef __CVMX_PACKET_H__
+#define __CVMX_PACKET_H__
+
+union cvmx_buf_ptr_pki {
+ u64 u64;
+ struct {
+ u64 size : 16;
+ u64 packet_outside_wqe : 1;
+ u64 rsvd0 : 5;
+ u64 addr : 42;
+ };
+};
+
+typedef union cvmx_buf_ptr_pki cvmx_buf_ptr_pki_t;
+
+/**
+ * This structure defines a buffer pointer on Octeon
+ */
+union cvmx_buf_ptr {
+ void *ptr;
+ u64 u64;
+ struct {
+ u64 i : 1;
+ u64 back : 4;
+ u64 pool : 3;
+ u64 size : 16;
+ u64 addr : 40;
+ } s;
+};
+
+typedef union cvmx_buf_ptr cvmx_buf_ptr_t;
+
+#endif /* __CVMX_PACKET_H__ */