Unified driving method and unified driver apparatus
AssigneeSTMicroelectronics R&D (Shanghai) Co. Ltd.
InventorsChristophe Quarre, Maoping Weng, Zhe Wu
Life of this patent
Estimating the term…
Abstract
The present invention provides a technical solution for a unified driver used in a handheld device. An embodiment of the technical solution may comprise a unified driving method used in a handheld device, which method may comprise: determining driver types of currently installed hardware; setting a current dispatch table on the basis of the driver type and a unified dispatch table suitable for multiple hardware and driving corresponding hardware or software by calling the current dispatch table.
Claims21
A unified device driving method executed in a handheld electronic device, comprising:
- determining a driver type, the driver type representative of a currently available hardware module on the handheld device;
- loading, in response to determining said driver type, a plurality of current dispatch table address pointers into a unified dispatch table, the unified dispatch table providing sufficient storage for at least two pointers for each of a plurality of different hardware configurations;
- making the current dispatch table address pointers from the unified dispatch table available to a central processing unit;
- and
- driving the currently available hardware module with a plurality of functions, each of the plurality of functions associated with one of the plurality of current dispatch table address pointers loaded in the current dispatch table.
A mobile device, comprising:
- a hardware module, the hardware module controllable with software;
- a memory having an area for instructions and an area for data structures;
- and
- a central processing unit (CPU) operable to execute instructions stored in the memory area for instructions, the instructions forming a unified driver configured to control the hardware module when the CPU executes the instructions, the control including:
- initializing a unified dispatch table configured in the memory area for data structures, the unified dispatch table representing a plurality of columns of function identifiers and a plurality of columns of address pointers;
- loading the unified dispatch table with at least one set of function identifiers in the memory area for data structures associated with the columns of function identifiers;
- and
- loading the unified dispatch table with at least one set of address pointers in the memory area for data structures associated with the columns of address pointers, wherein each address in the set of address pointers represents an address of at least one function executable to control the hardware module.
A computer-readable medium whose contents configure a mobile device to provide unified driver functionality by performing a method, the method comprising:
- initializing a unified dispatch table, the unified dispatch table representing a plurality of columns of function identifiers and a plurality of columns of address pointers;
- loading the unified dispatch table with at least one set of function identifiers associated with the columns of function identifiers;
- and
- loading the unified dispatch table with at least one set of address pointers associated with the columns of address pointers, wherein each address in the set of address pointers represents an address of at least one function executable to control the hardware module.
Dependencies are inferred from the claim text.