Date: Fri, 7 Apr 2006 21:45:31 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94778 for review Message-ID: <200604072145.k37LjVHU016452@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94778 Change 94778 by jmg@jmg_arlene on 2006/04/07 21:45:24 add necessary typedefs along with the dma_sync call.. Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/include/hypervisor_api.h#12 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/include/hypervisor_api.h#12 (text+ko) ==== @@ -48,6 +48,19 @@ uint32_t dw; uint64_t qw; } pci_cfg_data_t; +typedef uint64_t tsbid_t; +typedef uint32_t pages_t; +typedef enum io_attributes { + PCI_MAP_ATTR_READ = (uint32_t)0x01, + PCI_MAP_ATTR_WRITE = (uint32_t)0x02 +} io_attributes_t; +typedef enum io_sync_direction { + IO_SYNC_DEVICE = (uint32_t)0x01, + IO_SYNC_CPU = (uint32_t)0x02 +} io_sync_direction_t; +typedef uint64_t io_page_list_t; +typedef uint64_t r_addr_t; +typedef uint64_t io_addr_t; extern uint64_t hv_mmu_map_perm_addr(void *, int, uint64_t, int); extern uint64_t hv_mmu_unmap_perm_addr(void *, int, int); @@ -122,6 +135,9 @@ extern uint64_t hvio_iommu_getbypass(devhandle_t dev_hdl, r_addr_t ra, io_attributes_t io_attributes, io_addr_t *io_addr_p); +extern uint64_t hvio_dma_sync(devhandle_t dev_hdl, r_addr_t ra, + size_t num_bytes, int io_sync_direction, + size_t *bytes_synched); extern void hv_magic_trap_on(void); extern void hv_magic_trap_off(void);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604072145.k37LjVHU016452>