Date: Sun, 2 Apr 2006 06:21:01 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94448 for review Message-ID: <200604020621.k326L1wf013741@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94448 Change 94448 by kmacy@kmacy_storage:sun4v_work on 2006/04/02 06:20:04 update hvio_config_* functions Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/include/hypervisor_api.h#8 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/include/hypervisor_api.h#8 (text+ko) ==== @@ -40,7 +40,21 @@ typedef uint64_t devhandle_t; +typedef uint32_t pci_config_offset_t; + +typedef enum pci_config_size { + PCI_CFG_SIZE_BYTE = 0, + PCI_CFG_SIZE_WORD, + PCI_CFG_SIZE_DWORD +} pci_config_size_t; +typedef union pci_cfg_data { + uint8_t b; + uint16_t w; + uint32_t dw; + uint64_t qw; +} pci_cfg_data_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); extern uint64_t hv_set_ctx0(uint64_t, uint64_t); @@ -95,9 +109,10 @@ extern uint64_t hvio_peek(devhandle_t dev_hdl, uint64_t r_addr, uint64_t size, uint64_t *err_flag, uint64_t *data); extern uint64_t hvio_config_get(devhandle_t dev_hdl, uint64_t pci_device, - uint64_t r_addr, uint64_t size, uint32_t *data); + uint64_t r_addr, pci_config_size_t size, pci_cfg_data_t *data); extern uint64_t hvio_config_put(devhandle_t dev_hdl, uint64_t pci_device, - uint64_t r_addr, uint64_t size, uint32_t data, uint32_t err_flags); + pci_config_offset_t off, pci_config_size_t size, + pci_cfg_data_t data, uint32_t *err_flags); 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?200604020621.k326L1wf013741>