You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
448 B
18 lines
448 B
echo "#include <libdrm/drm.h>"
|
|
echo "#include <libdrm/i915_drm.h>"
|
|
echo
|
|
|
|
FILES=$(rg 'DRM_IO(.?)(.?)\(0' /usr/include/libdrm/drm.h | awk '{print $2}')
|
|
for F in $FILES; do
|
|
echo "const __u64 _$F = $F;"
|
|
echo "#undef $F"
|
|
echo "const __u64 $F = _$F;"
|
|
done
|
|
|
|
FILES=$(rg 'DRM_IO(.?)(.?)(.?)\(' /usr/include/libdrm/i915_drm.h | awk '{print $2}')
|
|
for F in $FILES; do
|
|
echo "const __u64 _$F = $F;"
|
|
echo "#undef $F"
|
|
echo "const __u64 $F = _$F;"
|
|
done
|