Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176946161
D25416.1793639127.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D25416.1793639127.diff
View Options
Index: sys/dev/virtio/pci/virtio_pci.c
===================================================================
--- sys/dev/virtio/pci/virtio_pci.c
+++ sys/dev/virtio/pci/virtio_pci.c
@@ -191,10 +191,17 @@
* and from BE to LE when writing.
* If we are in a LE machine, there will be no swaps.
*/
+#if defined(__mips__)
+#define vtpci_read_header_2(sc, o) vtpci_read_config_2(sc, o)
+#define vtpci_read_header_4(sc, o) vtpci_read_config_4(sc, o)
+#define vtpci_write_header_2(sc, o, v) vtpci_write_config_2(sc, o, v)
+#define vtpci_write_header_4(sc, o, v) vtpci_write_config_4(sc, o, v)
+#else
#define vtpci_read_header_2(sc, o) le16toh(vtpci_read_config_2(sc, o))
#define vtpci_read_header_4(sc, o) le32toh(vtpci_read_config_4(sc, o))
#define vtpci_write_header_2(sc, o, v) vtpci_write_config_2(sc, o, (htole16(v)))
#define vtpci_write_header_4(sc, o, v) vtpci_write_config_4(sc, o, (htole32(v)))
+#endif
/* Tunables. */
static int vtpci_disable_msix = 0;
@@ -297,7 +304,7 @@
* other parts of this file via functions
* 'vtpci_[read|write]_header_[2|4]'
*/
-#if _BYTE_ORDER == _BIG_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN && !defined(__mips__)
rman_set_bustag(sc->vtpci_res, &bs_be_tag);
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 2, 5:05 PM (13 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41337270
Default Alt Text
D25416.1793639127.diff (1 KB)
Attached To
Mode
D25416: Make access to VirtIO configuration to mips architecture.
Attached
Detach File
Event Timeline