Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加对龙芯的loongarch64架构的支持 #123

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions FlashCap.Core/Internal/NativeMethods_V4L2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ static NativeMethods_V4L2()
case "mipsel":
Interop = new NativeMethods_V4L2_Interop_mips();
break;
case "loongarch64":
Interop = new NativeMethods_V4L2_Interop_loongarch64();
break;
default:
throw new InvalidOperationException(
$"FlashCap: Architecture '{buf.machine}' is not supported.");
Expand Down
19 changes: 3 additions & 16 deletions FlashCap.Core/Internal/V4L2/NativeMethods_V4L2_Interop.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is auto generated code by FlashCap.V4L2Generator [0.14.6]. Do not edit.
// Linux version 5.13.0-39-generic (buildd@lcy02-amd64-080) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022
// Fri, 15 Apr 2022 03:57:16 GMT
// This is auto generated code by FlashCap.V4L2Generator [1.8.0]. Do not edit.
// Linux version 4.19.0-19-loongson-3 (abuild@10.40.52.160) (gcc version 8.3.0 (Loongnix 8.3.0-6.lnd.vec.36)) #1 SMP 4.19.190.8.14 Thu Aug 24 08:54:20 UTC 2023
// Thu, 14 Dec 2023 01:30:19 GMT

using System;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -56,7 +56,6 @@ public enum v4l2_buf_type
SDR_CAPTURE = 11,
SDR_OUTPUT = 12,
META_CAPTURE = 13,
META_OUTPUT = 14,
PRIVATE = 128,
}

Expand Down Expand Up @@ -224,12 +223,6 @@ uint reserved2
set;
}

int request_fd
{
get;
set;
}

uint reserved
{
get;
Expand Down Expand Up @@ -897,12 +890,6 @@ uint memory
set;
}

uint capabilities
{
get;
set;
}

uint[] reserved
{
get;
Expand Down
Loading