diff --git a/repos/dde_linux/src/driver/usb_hid/dep.list b/repos/dde_linux/src/driver/usb_hid/dep.list index fd7d62aae7..49332937da 100644 --- a/repos/dde_linux/src/driver/usb_hid/dep.list +++ b/repos/dde_linux/src/driver/usb_hid/dep.list @@ -610,7 +610,6 @@ include/linux/instrumentation.h include/linux/instrumented.h include/linux/interrupt.h include/linux/io.h -include/linux/ioasid.h include/linux/iocontext.h include/linux/iopoll.h include/linux/ioport.h @@ -1034,7 +1033,6 @@ include/net/netns/unix.h include/net/netns/xdp.h include/net/netns/xfrm.h include/net/netprio_cgroup.h -include/net/page_pool.h include/net/request_sock.h include/net/rtnetlink.h include/net/scm.h @@ -1243,3 +1241,4 @@ lib/kstrtox.h mm/internal.h mm/slab.h mm/swap.h +include/linux/hid_bpf.h diff --git a/repos/dde_linux/src/driver/usb_hid/dummies.c b/repos/dde_linux/src/driver/usb_hid/dummies.c index d594322f3a..ee750ef656 100644 --- a/repos/dde_linux/src/driver/usb_hid/dummies.c +++ b/repos/dde_linux/src/driver/usb_hid/dummies.c @@ -17,6 +17,18 @@ DEFINE_STATIC_KEY_FALSE(force_irqthreads_key); +/* driver/usb/core/usb.h */ +const struct class usbmisc_class = { + .name = "usbmisc", +}; + + +/* mm/debug.c */ +const struct trace_print_flags pagetype_names[] = { + {0, NULL} +}; + + #ifdef __arm__ #include @@ -241,6 +253,48 @@ void skb_init() } +/* kernel/sched/cpudeadline.h */ +struct cpudl; +int cpudl_init(struct cpudl *cp) +{ + lx_emul_trace_and_stop(__func__); + return -1; +} + + +void cpudl_cleanup(struct cpudl *cp) +{ + lx_emul_trace_and_stop(__func__); +} + + + +/* kernel/sched/sched.h */ +bool sched_smp_initialized = true; + +struct dl_bw; +void init_dl_bw(struct dl_bw *dl_b) +{ + lx_emul_trace_and_stop(__func__); +} + + +struct irq_work; +extern void rto_push_irq_work_func(struct irq_work *work); +void rto_push_irq_work_func(struct irq_work *work) +{ + lx_emul_trace_and_stop(__func__); +} + + +/* include/linux/sched/topology.h */ +int arch_asym_cpu_priority(int cpu) +{ + lx_emul_trace_and_stop(__func__); + return 0; +} + + extern void software_node_notify(struct device * dev); void software_node_notify(struct device * dev) { @@ -363,3 +417,20 @@ bool usb_of_has_combined_node(struct usb_device * udev) return true; } #endif + + +#ifdef CONFIG_SWIOTLB +#include + +void swiotlb_dev_init(struct device * dev) +{ + lx_emul_trace(__func__); +} + + +bool is_swiotlb_allocated(void) +{ + lx_emul_trace(__func__); + return false; +} +#endif diff --git a/repos/dde_linux/src/driver/usb_hid/lx_emul.c b/repos/dde_linux/src/driver/usb_hid/lx_emul.c index 0ab5a182de..1b38c34d72 100644 --- a/repos/dde_linux/src/driver/usb_hid/lx_emul.c +++ b/repos/dde_linux/src/driver/usb_hid/lx_emul.c @@ -26,4 +26,11 @@ pteval_t __default_kernel_pte_mask __read_mostly = ~0; struct usb_driver usbfs_driver = { .name = "usbfs" }; + +#include + +DEFINE_PER_CPU(unsigned long, cpu_scale); + const struct attribute_group *usb_device_groups[] = { }; + +void lx_emul_usb_client_device_unregister_callback(struct usb_device *udev) { } diff --git a/repos/dde_linux/src/driver/usb_hid/spec/arm_v6/generated_dummies.c b/repos/dde_linux/src/driver/usb_hid/spec/arm_v6/generated_dummies.c index e3b70ca99f..2549af24fb 100644 --- a/repos/dde_linux/src/driver/usb_hid/spec/arm_v6/generated_dummies.c +++ b/repos/dde_linux/src/driver/usb_hid/spec/arm_v6/generated_dummies.c @@ -1,7 +1,7 @@ /* * \brief Dummy definitions of Linux Kernel functions * \author Automatically generated file - do no edit - * \date 2024-07-17 + * \date 2024-07-30 */ #include @@ -113,6 +113,22 @@ void async_synchronize_full(void) } +#include + +unsigned int cpumask_any_and_distribute(const struct cpumask * src1p,const struct cpumask * src2p) +{ + lx_emul_trace_and_stop(__func__); +} + + +#include + +bool cpus_share_cache(int this_cpu,int that_cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + #include noinstr void ct_irq_enter(void) @@ -121,14 +137,6 @@ noinstr void ct_irq_enter(void) } -#include - -void ct_irq_enter_irqson(void) -{ - lx_emul_trace_and_stop(__func__); -} - - #include noinstr void ct_irq_exit(void) @@ -137,14 +145,6 @@ noinstr void ct_irq_exit(void) } -#include - -void ct_irq_exit_irqson(void) -{ - lx_emul_trace_and_stop(__func__); -} - - #include int devm_led_classdev_register_ext(struct device * parent,struct led_classdev * led_cdev,struct led_init_data * init_data) @@ -214,6 +214,14 @@ asmlinkage __visible void dump_stack(void) } +#include + +asmlinkage __visible void dump_stack_lvl(const char * log_lvl) +{ + lx_emul_trace_and_stop(__func__); +} + + #include void finish_rcuwait(struct rcuwait * w) @@ -421,6 +429,11 @@ void led_trigger_event(struct led_trigger * trig,enum led_brightness brightness) } +#include + +unsigned long loops_per_jiffy; + + #include unsigned long lpj_fine; @@ -436,7 +449,7 @@ bool of_device_is_available(const struct device_node * device) #include -void of_device_uevent(struct device * dev,struct kobj_uevent_env * env) +void of_device_uevent(const struct device * dev,struct kobj_uevent_env * env) { lx_emul_trace_and_stop(__func__); } @@ -503,6 +516,39 @@ int power_supply_powers(struct power_supply * psy,struct device * dev) } +extern void raw_spin_rq_lock_nested(struct rq * rq,int subclass); +void raw_spin_rq_lock_nested(struct rq * rq,int subclass) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void raw_spin_rq_unlock(struct rq * rq); +void raw_spin_rq_unlock(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_offline(struct rq * rq); +void set_rq_offline(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_online(struct rq * rq); +void set_rq_online(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +#include + +unsigned int setup_max_cpus; + + #include struct scatterlist * sg_next(struct scatterlist * sg) @@ -556,6 +602,13 @@ struct timerqueue_node * timerqueue_iterate_next(struct timerqueue_node * node) } +extern void update_group_capacity(struct sched_domain * sd,int cpu); +void update_group_capacity(struct sched_domain * sd,int cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + extern void usb_devio_cleanup(void); void usb_devio_cleanup(void) { @@ -624,6 +677,13 @@ const char * usb_speed_string(enum usb_device_speed speed) } +extern int usb_update_wireless_status_attr(struct usb_interface * intf); +int usb_update_wireless_status_attr(struct usb_interface * intf) +{ + lx_emul_trace_and_stop(__func__); +} + + #include const u8 uuid_index[16] = {}; diff --git a/repos/dde_linux/src/driver/usb_hid/spec/arm_v7/generated_dummies.c b/repos/dde_linux/src/driver/usb_hid/spec/arm_v7/generated_dummies.c index da05c1c8c4..1f36cf2e71 100644 --- a/repos/dde_linux/src/driver/usb_hid/spec/arm_v7/generated_dummies.c +++ b/repos/dde_linux/src/driver/usb_hid/spec/arm_v7/generated_dummies.c @@ -1,7 +1,7 @@ /* * \brief Dummy definitions of Linux Kernel functions * \author Automatically generated file - do no edit - * \date 2024-07-17 + * \date 2024-07-30 */ #include @@ -23,6 +23,11 @@ const char * __clk_get_name(const struct clk * clk) } +#include + +struct cpumask __cpu_active_mask; + + #include struct irq_domain * __irq_domain_add(struct fwnode_handle * fwnode,unsigned int size,irq_hw_number_t hwirq_max,int direct_max,const struct irq_domain_ops * ops,void * host_data) @@ -172,6 +177,14 @@ asmlinkage __visible void dump_stack(void) } +#include + +asmlinkage __visible void dump_stack_lvl(const char * log_lvl) +{ + lx_emul_trace_and_stop(__func__); +} + + #include void finish_rcuwait(struct rcuwait * w) @@ -323,6 +336,11 @@ void led_trigger_event(struct led_trigger * trig,enum led_brightness brightness) } +#include + +unsigned long loops_per_jiffy; + + #include unsigned long lpj_fine; @@ -338,7 +356,7 @@ bool of_device_is_available(const struct device_node * device) #include -void of_device_uevent(struct device * dev,struct kobj_uevent_env * env) +void of_device_uevent(const struct device * dev,struct kobj_uevent_env * env) { lx_emul_trace_and_stop(__func__); } @@ -505,6 +523,13 @@ const char * usb_speed_string(enum usb_device_speed speed) } +extern int usb_update_wireless_status_attr(struct usb_interface * intf); +int usb_update_wireless_status_attr(struct usb_interface * intf) +{ + lx_emul_trace_and_stop(__func__); +} + + #include const u8 uuid_index[16] = {}; diff --git a/repos/dde_linux/src/driver/usb_hid/spec/arm_v8/generated_dummies.c b/repos/dde_linux/src/driver/usb_hid/spec/arm_v8/generated_dummies.c index b025cfbada..eaab0650b0 100644 --- a/repos/dde_linux/src/driver/usb_hid/spec/arm_v8/generated_dummies.c +++ b/repos/dde_linux/src/driver/usb_hid/spec/arm_v8/generated_dummies.c @@ -1,7 +1,7 @@ /* * \brief Dummy definitions of Linux Kernel functions * \author Automatically generated file - do no edit - * \date 2024-07-16 + * \date 2024-07-30 */ #include @@ -113,17 +113,17 @@ void async_synchronize_full(void) } -#include +#include -void ct_irq_enter_irqson(void) +unsigned int cpumask_any_and_distribute(const struct cpumask * src1p,const struct cpumask * src2p) { lx_emul_trace_and_stop(__func__); } -#include +#include -void ct_irq_exit_irqson(void) +bool cpus_share_cache(int this_cpu,int that_cpu) { lx_emul_trace_and_stop(__func__); } @@ -174,6 +174,14 @@ asmlinkage __visible void dump_stack(void) } +#include + +asmlinkage __visible void dump_stack_lvl(const char * log_lvl) +{ + lx_emul_trace_and_stop(__func__); +} + + #include void finish_rcuwait(struct rcuwait * w) @@ -293,11 +301,6 @@ long __sched io_schedule_timeout(long timeout) } -#include - -struct io_tlb_mem io_tlb_default_mem; - - #include int irq_can_set_affinity(unsigned int irq) @@ -386,6 +389,11 @@ void led_trigger_event(struct led_trigger * trig,enum led_brightness brightness) } +#include + +unsigned long loops_per_jiffy; + + #include unsigned long lpj_fine; @@ -401,7 +409,7 @@ bool of_device_is_available(const struct device_node * device) #include -void of_device_uevent(struct device * dev,struct kobj_uevent_env * env) +void of_device_uevent(const struct device * dev,struct kobj_uevent_env * env) { lx_emul_trace_and_stop(__func__); } @@ -468,6 +476,34 @@ int power_supply_powers(struct power_supply * psy,struct device * dev) } +extern void raw_spin_rq_lock_nested(struct rq * rq,int subclass); +void raw_spin_rq_lock_nested(struct rq * rq,int subclass) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void raw_spin_rq_unlock(struct rq * rq); +void raw_spin_rq_unlock(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_offline(struct rq * rq); +void set_rq_offline(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_online(struct rq * rq); +void set_rq_online(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + #include struct scatterlist * sg_next(struct scatterlist * sg) @@ -521,6 +557,13 @@ struct timerqueue_node * timerqueue_iterate_next(struct timerqueue_node * node) } +extern void update_group_capacity(struct sched_domain * sd,int cpu); +void update_group_capacity(struct sched_domain * sd,int cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + extern void usb_devio_cleanup(void); void usb_devio_cleanup(void) { @@ -589,6 +632,13 @@ const char * usb_speed_string(enum usb_device_speed speed) } +extern int usb_update_wireless_status_attr(struct usb_interface * intf); +int usb_update_wireless_status_attr(struct usb_interface * intf) +{ + lx_emul_trace_and_stop(__func__); +} + + #include const u8 uuid_index[16] = {}; diff --git a/repos/dde_linux/src/driver/usb_hid/spec/x86_32/generated_dummies.c b/repos/dde_linux/src/driver/usb_hid/spec/x86_32/generated_dummies.c index 159939b8fb..799c9f7143 100644 --- a/repos/dde_linux/src/driver/usb_hid/spec/x86_32/generated_dummies.c +++ b/repos/dde_linux/src/driver/usb_hid/spec/x86_32/generated_dummies.c @@ -1,7 +1,7 @@ /* * \brief Dummy definitions of Linux Kernel functions * \author Automatically generated file - do no edit - * \date 2024-07-16 + * \date 2024-07-30 */ #include @@ -107,6 +107,22 @@ const struct cpumask * cpu_clustergroup_mask(int cpu) } +#include + +unsigned int cpumask_any_and_distribute(const struct cpumask * src1p,const struct cpumask * src2p) +{ + lx_emul_trace_and_stop(__func__); +} + + +#include + +bool cpus_share_cache(int this_cpu,int that_cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + #include int devm_led_classdev_register_ext(struct device * parent,struct led_classdev * led_cdev,struct led_init_data * init_data) @@ -171,6 +187,14 @@ asmlinkage __visible void dump_stack(void) } +#include + +asmlinkage __visible void dump_stack_lvl(const char * log_lvl) +{ + lx_emul_trace_and_stop(__func__); +} + + #include void finish_rcuwait(struct rcuwait * w) @@ -335,6 +359,11 @@ void led_trigger_event(struct led_trigger * trig,enum led_brightness brightness) } +#include + +unsigned long loops_per_jiffy; + + #include void panic(const char * fmt,...) @@ -375,6 +404,39 @@ int power_supply_powers(struct power_supply * psy,struct device * dev) } +extern void raw_spin_rq_lock_nested(struct rq * rq,int subclass); +void raw_spin_rq_lock_nested(struct rq * rq,int subclass) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void raw_spin_rq_unlock(struct rq * rq); +void raw_spin_rq_unlock(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_offline(struct rq * rq); +void set_rq_offline(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_online(struct rq * rq); +void set_rq_online(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +#include + +unsigned int setup_max_cpus; + + #include struct scatterlist * sg_next(struct scatterlist * sg) @@ -428,6 +490,13 @@ struct timerqueue_node * timerqueue_iterate_next(struct timerqueue_node * node) } +extern void update_group_capacity(struct sched_domain * sd,int cpu); +void update_group_capacity(struct sched_domain * sd,int cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + extern void usb_devio_cleanup(void); void usb_devio_cleanup(void) { @@ -480,6 +549,13 @@ const char * usb_speed_string(enum usb_device_speed speed) } +extern int usb_update_wireless_status_attr(struct usb_interface * intf); +int usb_update_wireless_status_attr(struct usb_interface * intf) +{ + lx_emul_trace_and_stop(__func__); +} + + #include const u8 uuid_index[16] = {}; diff --git a/repos/dde_linux/src/driver/usb_hid/spec/x86_64/generated_dummies.c b/repos/dde_linux/src/driver/usb_hid/spec/x86_64/generated_dummies.c index 4f066b24d3..9a5473ee0b 100644 --- a/repos/dde_linux/src/driver/usb_hid/spec/x86_64/generated_dummies.c +++ b/repos/dde_linux/src/driver/usb_hid/spec/x86_64/generated_dummies.c @@ -1,7 +1,7 @@ /* * \brief Dummy definitions of Linux Kernel functions * \author Automatically generated file - do no edit - * \date 2024-07-16 + * \date 2024-07-30 */ #include @@ -107,6 +107,22 @@ const struct cpumask * cpu_clustergroup_mask(int cpu) } +#include + +unsigned int cpumask_any_and_distribute(const struct cpumask * src1p,const struct cpumask * src2p) +{ + lx_emul_trace_and_stop(__func__); +} + + +#include + +bool cpus_share_cache(int this_cpu,int that_cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + #include int devm_led_classdev_register_ext(struct device * parent,struct led_classdev * led_cdev,struct led_init_data * init_data) @@ -139,6 +155,14 @@ asmlinkage __visible void dump_stack(void) } +#include + +asmlinkage __visible void dump_stack_lvl(const char * log_lvl) +{ + lx_emul_trace_and_stop(__func__); +} + + #include void finish_rcuwait(struct rcuwait * w) @@ -250,11 +274,6 @@ long __sched io_schedule_timeout(long timeout) } -#include - -struct io_tlb_mem io_tlb_default_mem; - - #include int irq_can_set_affinity(unsigned int irq) @@ -303,9 +322,14 @@ void led_trigger_event(struct led_trigger * trig,enum led_brightness brightness) } +#include + +unsigned long loops_per_jiffy; + + #include -void panic(const char *fmt, ...) +void panic(const char * fmt,...) { lx_emul_trace_and_stop(__func__); } @@ -343,6 +367,39 @@ int power_supply_powers(struct power_supply * psy,struct device * dev) } +extern void raw_spin_rq_lock_nested(struct rq * rq,int subclass); +void raw_spin_rq_lock_nested(struct rq * rq,int subclass) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void raw_spin_rq_unlock(struct rq * rq); +void raw_spin_rq_unlock(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_offline(struct rq * rq); +void set_rq_offline(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +extern void set_rq_online(struct rq * rq); +void set_rq_online(struct rq * rq) +{ + lx_emul_trace_and_stop(__func__); +} + + +#include + +unsigned int setup_max_cpus; + + #include struct scatterlist * sg_next(struct scatterlist * sg) @@ -396,6 +453,13 @@ struct timerqueue_node * timerqueue_iterate_next(struct timerqueue_node * node) } +extern void update_group_capacity(struct sched_domain * sd,int cpu); +void update_group_capacity(struct sched_domain * sd,int cpu) +{ + lx_emul_trace_and_stop(__func__); +} + + extern void usb_devio_cleanup(void); void usb_devio_cleanup(void) { @@ -448,6 +512,13 @@ const char * usb_speed_string(enum usb_device_speed speed) } +extern int usb_update_wireless_status_attr(struct usb_interface * intf); +int usb_update_wireless_status_attr(struct usb_interface * intf) +{ + lx_emul_trace_and_stop(__func__); +} + + #include const u8 uuid_index[16] = {};