--- - branch: MAIN date: Fri Jul 25 06:54:33 UTC 2008 files: - new: '1.9' old: '1.8' path: src/sys/external/bsd/drm/dist/bsd-core/drmP.h pathrev: src/sys/external/bsd/drm/dist/bsd-core/drmP.h@1.9 type: modified - new: '1.4' old: '1.3' path: src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c pathrev: src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c@1.4 type: modified id: 20080725T065433Z.c42887abdca2adb8e42036ff64fc885fa557a8ae log: | - for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map). - Eliminate the bus_space_read/write-based DRM_READ/WRITE macros. The memory we're reading/writing from is not always allocated with bus_space, and so this will not do. Instead, since all of our bus_space maps are linear, volatile pointer dereferences will do just fine. - Unify members of struct drm_dma_handle amongst freebsd and netbsd: the 'addr' member was superfluous; also, set dmah->tag from dev->pa.pa_dmat and use that. - we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately following bus_dmamap_create(), so there's no need to avoid deferring allocation to load time. - Add check for nsegs != 1 in drm_pci_alloc(). - We don't need the DRM_PCI_DMAADDR macro right now--it was only used once. module: src subject: 'CVS commit: src/sys/external/bsd/drm/dist/bsd-core' unixtime: '1216968873' user: bjs