mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-27 02:42:28 -04:00
!88 fix the compatibility problem of IoService on 64-bit kernel and 32-bit user mode
Merge pull request !88 from yuanbo/master
This commit is contained in:
@@ -20,8 +20,8 @@ extern "C" {
|
||||
#define DEV_MGR_NODE "dev_mgr"
|
||||
#define MAX_MODE_SIZE 0777
|
||||
#define DEV_NODE_PATH_MODE 0755
|
||||
#define HDF_WRITE_READ _IOWR('b', 1, struct HdfSBuf*)
|
||||
#define HDF_READ_DEV_EVENT _IOR('b', 2, struct HdfSBuf*)
|
||||
#define HDF_WRITE_READ _IO('b', 1)
|
||||
#define HDF_READ_DEV_EVENT _IO('b', 2)
|
||||
#define HDF_LISTEN_EVENT_START _IO('b', 3)
|
||||
#define HDF_LISTEN_EVENT_STOP _IO('b', 4)
|
||||
#define HDF_LISTEN_EVENT_WAKEUP _IO('b', 5)
|
||||
@@ -34,13 +34,13 @@ typedef enum {
|
||||
} DevMgrCmd;
|
||||
|
||||
struct HdfWriteReadBuf {
|
||||
int cmdCode;
|
||||
size_t writeSize; // bytes to write
|
||||
size_t writeConsumed; // bytes consumed by driver (for ERESTARTSYS)
|
||||
uintptr_t writeBuffer;
|
||||
size_t readSize; // bytes to read
|
||||
size_t readConsumed; // bytes consumed by driver (for ERESTARTSYS)
|
||||
uintptr_t readBuffer;
|
||||
uint32_t writeSize; // bytes to write
|
||||
uint32_t writeConsumed; // bytes consumed by driver (for ERESTARTSYS)
|
||||
uint64_t writeBuffer;
|
||||
uint32_t readSize; // bytes to read
|
||||
uint32_t readConsumed; // bytes consumed by driver (for ERESTARTSYS)
|
||||
uint64_t readBuffer;
|
||||
int32_t cmdCode;
|
||||
};
|
||||
|
||||
struct HdfIoService *HdfIoServicePublish(const char *serviceName, uint32_t mode);
|
||||
|
||||
Reference in New Issue
Block a user