Thread (120 messages) 120 messages, 7 authors, 2016-06-07

Re: [RFC PATCH 3/5] virtio: Add a new layer to abstract pci access method

From: Tetsuya Mukawa <hidden>
Date: 2016-01-22 07:35:51

On 2016/01/22 16:26, Xie, Huawei wrote:
On 1/21/2016 7:08 PM, Tetsuya Mukawa wrote:
quoted
+static void
+phys_legacy_write16(struct virtio_hw *hw, uint16_t *addr, uint16_t val)
+{
+	return outb_p((unsigned short)val,
+			(unsigned short)(hw->io_base + (uint64_t)addr));
outb_p -> outw_p
quoted
+}
+
+static void
+phys_legacy_write32(struct virtio_hw *hw, uint32_t *addr, uint32_t val)
+{
+	return outb_p((unsigned int)val,
+			(unsigned short)(hw->io_base + (uint64_t)addr));
outb_p -> outl_p
Oops, thanks!

Tetsuya
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help