1 // SPDX-License-Identifier: GPL-2.0-or-later
7 /* ---------------------------------------------------------------------- */
9 int bochs_mm_init(struct bochs_device
*bochs
)
11 struct drm_vram_mm
*vmm
;
13 vmm
= drm_vram_helper_alloc_mm(bochs
->dev
, bochs
->fb_base
,
15 return PTR_ERR_OR_ZERO(vmm
);
18 void bochs_mm_fini(struct bochs_device
*bochs
)
20 if (!bochs
->dev
->vram_mm
)
23 drm_vram_helper_release_mm(bochs
->dev
);