Will be used to more cleanly implement existing method interfaces that take some confusing (IEDTkey, inherited from VBIOS, which RM no longer uses on Ampere) match values to determine which display path to operate on. Methods will be protected from racing with supervisor, and from being called where they shouldn't be (ie. without an OR assigned). v2: - use ?: (lyude) v3: - fix return code if noacquire() method fails Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
16 lines
342 B
C
16 lines
342 B
C
#ifndef __NVIF_DISP_H__
|
|
#define __NVIF_DISP_H__
|
|
#include <nvif/object.h>
|
|
struct nvif_device;
|
|
|
|
struct nvif_disp {
|
|
struct nvif_object object;
|
|
unsigned long conn_mask;
|
|
unsigned long outp_mask;
|
|
};
|
|
|
|
int nvif_disp_ctor(struct nvif_device *, const char *name, s32 oclass,
|
|
struct nvif_disp *);
|
|
void nvif_disp_dtor(struct nvif_disp *);
|
|
#endif
|