Refine giga_ioctl DLL boundary

Keep giga_ioctl as an independently maintained driver ABI DLL while simplifying its implementation around shared DeviceIoControl helpers and named request layouts.

Preserve the existing C exports, IOCTL values, GetLastError behavior, and GVFG capture ownership. Add concise maintainer guidance and document that capture state remains outside this module.

Validation: MSVC Release giga_ioctl target built successfully; dumpbin confirmed all 10 exports; git diff --check passed.
This commit is contained in:
Mark.lin
2026-08-25 09:40:00 +08:00
parent ca19b4f276
commit b5b045a41a
6 changed files with 163 additions and 61 deletions
+3 -1
View File
@@ -13,6 +13,7 @@
extern "C" {
#endif
/* Driver event values. Keep these synchronized with the driver ABI. */
enum giga_ioctl_event_type
{
GIGA_IOCTL_EVENT_VIDEO_DMA = 0,
@@ -24,7 +25,8 @@ enum giga_ioctl_event_type
GIGA_IOCTL_API BOOL giga_ioctl_read_register(HANDLE device, uint32_t offset, uint32_t *value);
GIGA_IOCTL_API BOOL giga_ioctl_write_register(HANDLE device, uint32_t offset, uint32_t value);
GIGA_IOCTL_API BOOL giga_ioctl_register_event(HANDLE device, uint32_t channel, uint32_t type, HANDLE event_handle);
GIGA_IOCTL_API BOOL giga_ioctl_register_event(HANDLE device, uint32_t channel,
uint32_t type, HANDLE event_handle);
GIGA_IOCTL_API BOOL giga_ioctl_unregister_event(HANDLE device, uint32_t channel, uint32_t type);
GIGA_IOCTL_API BOOL giga_ioctl_get_frame(HANDLE device, uint32_t channel, uint32_t frame_index,
void *buffer, uint32_t buffer_size, uint32_t *bytes_returned);