outp.c (ea6143a86c67110a2c62deaf70d0b7b92e4f865f) outp.c (9793083f1dd9da8dda0ef68e90934dd7d112203b)
1/*
2 * Copyright 2021 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 52 unchanged lines hidden (view full) ---

61
62 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_DP, &args);
63 NVIF_ERRON(ret, &outp->object,
64 "[ACQUIRE proto:DP hda:%d] or:%d link:%d", args.dp.hda, args.or, args.link);
65 return ret;
66}
67
68int
1/*
2 * Copyright 2021 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 52 unchanged lines hidden (view full) ---

61
62 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_DP, &args);
63 NVIF_ERRON(ret, &outp->object,
64 "[ACQUIRE proto:DP hda:%d] or:%d link:%d", args.dp.hda, args.or, args.link);
65 return ret;
66}
67
68int
69nvif_outp_acquire_lvds(struct nvif_outp *outp)
69nvif_outp_acquire_lvds(struct nvif_outp *outp, bool dual, bool bpc8)
70{
71 struct nvif_outp_acquire_v0 args;
72 int ret;
73
70{
71 struct nvif_outp_acquire_v0 args;
72 int ret;
73
74 args.lvds.dual = dual;
75 args.lvds.bpc8 = bpc8;
76
74 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_LVDS, &args);
77 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_LVDS, &args);
75 NVIF_ERRON(ret, &outp->object, "[ACQUIRE proto:LVDS] or:%d link:%d", args.or, args.link);
78 NVIF_ERRON(ret, &outp->object,
79 "[ACQUIRE proto:LVDS dual:%d 8bpc:%d] or:%d link:%d",
80 args.lvds.dual, args.lvds.bpc8, args.or, args.link);
76 return ret;
77}
78
79int
80nvif_outp_acquire_tmds(struct nvif_outp *outp, bool hda)
81{
82 struct nvif_outp_acquire_v0 args;
83 int ret;

--- 58 unchanged lines hidden ---
81 return ret;
82}
83
84int
85nvif_outp_acquire_tmds(struct nvif_outp *outp, bool hda)
86{
87 struct nvif_outp_acquire_v0 args;
88 int ret;

--- 58 unchanged lines hidden ---