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.
14 lines
371 B
14 lines
371 B
3 weeks ago
|
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
|