blob: db4ad5b792484c704a52644f0b242e55066aaa55 [file] [log] [blame]
Stéphane Marchesin25a26062014-09-12 16:18:59 -07001/*
2 * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
Gurchetan Singh46faf6b2016-08-05 14:40:07 -07007#include "drv_priv.h"
Stéphane Marchesin25a26062014-09-12 16:18:59 -07008#include "helpers.h"
9
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070010const struct backend backend_cirrus =
Stéphane Marchesin25a26062014-09-12 16:18:59 -070011{
12 .name = "cirrus",
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070013 .bo_create = drv_dumb_bo_create,
14 .bo_destroy = drv_dumb_bo_destroy,
Gurchetan Singhef920532016-08-12 16:38:25 -070015 .bo_map = drv_dumb_bo_map,
Stéphane Marchesin25a26062014-09-12 16:18:59 -070016 .format_list = {
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070017 {DRV_FORMAT_RGB888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_RENDERING},
18 {DRV_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_RENDERING},
19 {DRV_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_LINEAR},
20 {DRV_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_RENDERING},
21 {DRV_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_LINEAR},
Stéphane Marchesin25a26062014-09-12 16:18:59 -070022 }
23};