mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 15:10:53 +00:00
c2d0d784c7
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
62 lines
1.2 KiB
C
62 lines
1.2 KiB
C
#ifndef _MSPORTS_
|
|
#define _MSPORTS_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
DECLARE_HANDLE(HCOMDB);
|
|
typedef HCOMDB *PHCOMDB;
|
|
#define HCOMDB_INVALID_HANDLE_VALUE ((HCOMDB)INVALID_HANDLE_VALUE)
|
|
|
|
/* Limits for ComDBResizeDatabase NewSize */
|
|
#define COMDB_MIN_PORTS_ARBITRATED 256
|
|
#define COMDB_MAX_PORTS_ARBITRATED 4096
|
|
|
|
/* ReportType flags for ComDBGetCurrentPortUsage */
|
|
#define CDB_REPORT_BITS 0x0
|
|
#define CDB_REPORT_BYTES 0x1
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBClaimNextFreePort(IN HCOMDB hComDB,
|
|
OUT LPDWORD ComNumber);
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBClaimPort(IN HCOMDB hComDB,
|
|
IN DWORD ComNumber,
|
|
IN BOOL ForceClaim,
|
|
OUT PBOOL Forced);
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBClose(IN HCOMDB hComDB);
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBGetCurrentPortUsage(IN HCOMDB hComDB,
|
|
OUT PBYTE Buffer,
|
|
IN DWORD BufferSize,
|
|
IN DWORD ReportType,
|
|
OUT LPDWORD MaxPortsReported);
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBOpen(OUT HCOMDB *phComDB);
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBReleasePort(IN HCOMDB hComDB,
|
|
IN DWORD ComNumber);
|
|
|
|
LONG
|
|
WINAPI
|
|
ComDBResizeDatabase(IN HCOMDB hComDB,
|
|
IN DWORD NewSize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _MSPORTS_ */
|