| .. | .. |
|---|
| 1 | | -/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ |
|---|
| 1 | +/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * Definitions for virtio-pmem devices. |
|---|
| 4 | 4 | * |
|---|
| .. | .. |
|---|
| 15 | 15 | #include <linux/virtio_config.h> |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | struct virtio_pmem_config { |
|---|
| 18 | | - __u64 start; |
|---|
| 19 | | - __u64 size; |
|---|
| 18 | + __le64 start; |
|---|
| 19 | + __le64 size; |
|---|
| 20 | 20 | }; |
|---|
| 21 | 21 | |
|---|
| 22 | 22 | #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0 |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | struct virtio_pmem_resp { |
|---|
| 25 | 25 | /* Host return status corresponding to flush request */ |
|---|
| 26 | | - __u32 ret; |
|---|
| 26 | + __le32 ret; |
|---|
| 27 | 27 | }; |
|---|
| 28 | 28 | |
|---|
| 29 | 29 | struct virtio_pmem_req { |
|---|
| 30 | 30 | /* command type */ |
|---|
| 31 | | - __u32 type; |
|---|
| 31 | + __le32 type; |
|---|
| 32 | 32 | }; |
|---|
| 33 | 33 | |
|---|
| 34 | 34 | #endif |
|---|