#ifndef __NV50_KMS_ATOM_H__ #define __NV50_KMS_ATOM_H__ #define nv50_atom(p) … #include <drm/drm_atomic.h> #include "crc.h" struct nouveau_encoder; struct nv50_atom { … }; #define nv50_head_atom(p) … struct nv50_head_atom { … }; static inline struct nv50_head_atom * nv50_head_atom_get(struct drm_atomic_state *state, struct drm_crtc *crtc) { … } static inline struct drm_encoder * nv50_head_atom_get_encoder(struct nv50_head_atom *atom) { … } #define nv50_wndw_atom(p) … struct nv50_wndw_atom { … }; #endif