FILE
conn.h
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h
1/* SPDX-License-Identifier: MIT */ 2#ifndef __NVKM_DISP_CONN_H__ 3#define __NVKM_DISP_CONN_H__ 4#include "priv.h" 5 6#include <subdev/bios.h> 7#include <subdev/bios/conn.h> 8 9struct nvkm_conn { 10 struct nvkm_disp *disp; 11 int index; 12 struct nvbios_connE info; 13 14 struct list_head head; 15 16 struct nvkm_object object; 17}; 18 19int nvkm_conn_new(struct nvkm_disp *, int index, struct nvbios_connE *, 20 struct nvkm_conn **); 21void nvkm_conn_del(struct nvkm_conn **); 22 23#define CONN_MSG(c,l,f,a...) do { \ 24 struct nvkm_conn *_conn = (c); \ 25 nvkm_##l(&_conn->disp->engine.subdev, "conn %02x:%02x%02x: "f"\n", \ 26 _conn->index, _conn->info.location, _conn->info.type, ##a); \ 27} while(0) 28#define CONN_ERR(c,f,a...) CONN_MSG((c), error, f, ##a) 29#define CONN_DBG(c,f,a...) CONN_MSG((c), debug, f, ##a) 30#define CONN_TRACE(c,f,a...) CONN_MSG((c), trace, f, ##a) 31#endif
~/
Read-only file preview.