1.806驱动添加获取唤醒源功能,驱动编译进内核

2.lcd驱动增加背光渐亮功能,解耦驱动
This commit is contained in:
2025-04-28 17:58:56 +08:00
parent 17f1d2754e
commit 0833611b03
7 changed files with 169 additions and 52 deletions

View File

@@ -18,6 +18,10 @@
#define __XR_CMD_PROTO_H__
/*XR_WIFI_HOST_HAND_WAY */
#define HAS_MAGIC (0x55aa55aa)
#define HAS_SET_WAKEUP_SRC (0x0264)
#define HAS_GET_WAKEUP_SRC (0x0259)
struct cmd_para_hand_way {
u8 id;
};
@@ -70,5 +74,22 @@ struct cmd_payload {
u8 param[0];
};
#pragma pack(1)
typedef struct{
u32 magic; /* HAS_PACKET_MAGIC */
u16 event;
u32 payload_size; /* total size of payload */
u8 wakeupsrc; /* the addr of payload */
}kpacket_box; //for transport reason
struct cmd_has_payload {
u16 unkown1;
u16 unkown2;
u32 len;
kpacket_box has_app_proto;
};
#pragma pack()
#define CMD_HEAD_SIZE (sizeof(struct cmd_payload))
#endif