CN102981597B - The control method of configurable peripheral device and portable terminal device - Google Patents

The control method of configurable peripheral device and portable terminal device Download PDF

Info

Publication number
CN102981597B
CN102981597B CN201110260709.1A CN201110260709A CN102981597B CN 102981597 B CN102981597 B CN 102981597B CN 201110260709 A CN201110260709 A CN 201110260709A CN 102981597 B CN102981597 B CN 102981597B
Authority
CN
China
Prior art keywords
peripheral device
subsystem
configurable peripheral
configuration information
subsystems
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110260709.1A
Other languages
Chinese (zh)
Other versions
CN102981597A (en
Inventor
柯海滨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110260709.1A priority Critical patent/CN102981597B/en
Publication of CN102981597A publication Critical patent/CN102981597A/en
Application granted granted Critical
Publication of CN102981597B publication Critical patent/CN102981597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of control method and portable terminal device of configurable peripheral device, portable terminal device comprises at least two subsystems and at least one configurable peripheral device, the first subsystem at least two subsystems is when the control of the described configurable peripheral device of first acquisition, initialization configurable peripheral device, the first configuration information according to distributing uses configurable peripheral device, and the method comprises: back up described first configuration information; When the control of described configurable peripheral device is switched to described first subsystem by the second subsystem, according to the configuration of the first configuration information recovery configurable peripheral device, use configurable peripheral device to make the first subsystem.The embodiment of the present application only needs to carry out initialization when subsystem obtains control for the first time, the follow-up configuration information backed up when being used in initialization is configured configurable peripheral device, thus shorten the delay of control of system, decrease taking system resource.

Description

The control method of configurable peripheral device and portable terminal device
Technical field
The application relates to communication technical field, particularly the control method of configurable peripheral device and portable terminal device.
Background technology
The portable terminal device of hybrid system configuration, is only have on the PC basis of a system existing, embeds the PC of other at least one system.Can work be merged between different system, display one's respective advantages.The portable terminal device of existing common hybrid system configuration is integrated with a main system (such as usually, X86 system, adopt windows operating system) and one from system (such as, ARM system, adopt android operating system), main system and can shared device be shared between system, such as, display screen, keyboard, mouse, wireless module etc.
Inventor finds in the research process of prior art, in existing commingled system terminal, usually configurable peripheral device is shared, such as video card etc., when shared video card, the mode switched is adopted to share in main system with between system, this sharing mode is similar to the mode of hot plug, when being switched to certain system at every turn, this system must carry out initialization to video card, and is video card dynamic distribution of system resources, this video card could use by this system, namely, when video card is used by certain system at every turn, assigned resource is all different.It can thus be appreciated that existing video card is in handoff procedure each time, and because needs re-start initialization, therefore system delay is comparatively large, and takies more system resource.
Summary of the invention
The object of the embodiment of the present application is control method and the portable terminal device of configurable peripheral device, to solve in prior art portable terminal device dual system when adopting switching mode to carry out shared to video card, after each switching, all need initialization operation, cause the problem postponing to increase.
For solving the problems of the technologies described above, the embodiment of the present application provides following technical scheme:
A kind of control method of configurable peripheral device, be applied to and comprise in the portable terminal device of at least two subsystems, at least one configurable peripheral device is set in described portable terminal device, at least one configurable peripheral device described for described in the shared device of at least two subsystems; Wherein, the first subsystem in described at least two subsystems is when the control of the described configurable peripheral device of first acquisition, configurable peripheral device described in initialization, and generate the first configuration information by described first subsystem, and use described configurable peripheral device according to described first configuration information; Described method comprises:
Back up described first configuration information;
When the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to described first configuration information recovery, uses described configurable peripheral device to make described first subsystem.
Described first configuration information of described backup comprises:
When described first subsystem generates the first configuration information, back up described first configuration information; Or,
When the control of described configurable peripheral device is switched to other subsystem by described first subsystem, back up described first configuration information.
Also comprise:
Except any one subsystem of described first subsystem in described at least two subsystems, after configurable peripheral device described in initialization, the configuration of configurable peripheral device according to the configuration information recovery of each self-generating.
Also comprise before the configuration of described configurable peripheral device according to described first configuration information recovery:
The use request of the configurable peripheral device of at least two subsystem transmissions described in reception;
The first subsystem at least two subsystems according to the rules of arbitration arbitration pre-set uses described configurable peripheral device;
Control described configurable peripheral device to be communicated with described first subsystem.
Described rules of arbitration comprise:
According to described at least two subsystems send the sequencing using request, determining to send at first the subsystem using request is the first subsystem; Or,
For described at least two sub-Operation system setting priority, determining to send the subsystem using request medium priority the highest is the first subsystem; Or,
Described at least two subsystems use described configurable peripheral device in turn.
Described initialization configurable peripheral device comprises:
For described configurable peripheral device distributes the resource comprising address space, and described resource is written in the configuration space of described configurable peripheral device;
For configurable peripheral device provides service routine;
The address space distributed for described configurable peripheral device is set to the address space monopolized.
Described first configuration information of described backup is specially: preserve the resource comprising described address space;
The configuration of described configurable peripheral device according to described first configuration information recovery is specially: the resource comprising described address space of preserving be written in the configuration space of described configurable peripheral device.
A kind of portable terminal device, comprising: at least two subsystems, at least one configurable peripheral device, at least one configurable peripheral device described for described in the shared device of at least two subsystems; Described at least two subsystems comprise the first subsystem and the second subsystem, wherein,
Described first subsystem comprises:
Initialization unit, for when described first subsystem obtains the control of described configurable peripheral device for the first time, configurable peripheral device described in initialization, and generate the first configuration information, and use described configurable peripheral device according to described first configuration information;
Backup units, for backing up described first configuration information;
Recovery unit, for when the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to the first configuration information recovery in described backup units, uses described configurable peripheral device to make described first subsystem.
Described backup units, specifically for when generation the first configuration information, backs up described first configuration information, or when the control of described configurable peripheral device is switched to other subsystem by described first subsystem, backs up described first configuration information.
Described portable terminal device also comprises:
Receiving element, for the use request of the configurable peripheral device that at least two subsystems described in receiving send;
Arbitration unit, uses described configurable peripheral device for the first subsystem at least two subsystems according to the rules of arbitration arbitration pre-set;
Control module, is communicated with described first subsystem for controlling described configurable peripheral device.
Described receiving element, arbitration unit and control module are arranged separately independent of described at least two subsystems; Or, in any one subsystem at least two subsystems described in described receiving element, arbitration unit and control module are arranged on.
Described initialization unit comprises:
Allocation units, for distributing for described configurable peripheral device the resource comprising address space;
Writing unit, for being written in the configuration space of described configurable peripheral device by described resource;
Providing unit, for the service routine provided for configurable peripheral device;
Setting unit, for the address space being set to monopolize by the address space distributed for described configurable peripheral device.
Described backup units, specifically for preserving the resource comprising described address space;
Described recovery unit, specifically for being written to the resource comprising described address space of preserving in the configuration space of described configurable peripheral device.
Described first subsystem is integrated in the first equipment as main frame, and described second subsystem is integrated in the second equipment as display screen, and described first equipment is connected by physical interface with described second equipment, forms described portable terminal device; Or,
Described first subsystem is integrated in and comprises in the 3rd equipment of main frame and display screen, and described second subsystem is integrated in board, and described board, by inserting in slot default on described 3rd equipment, forms described portable terminal device.
The technical scheme provided from above the embodiment of the present application, the first subsystem in the embodiment of the present application portable terminal device at least two subsystems is when the control of the described configurable peripheral device of first acquisition, configurable peripheral device described in initialization, and generate the first configuration information by described first subsystem, and configure described configurable peripheral device according to described first configuration information, back up described first configuration information, when the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to described first configuration information recovery, described configurable peripheral device is used to make described first subsystem.When application the embodiment of the present application switches the control of configurable peripheral device between multiple subsystems of portable terminal device, subsystem without the need to obtaining control all carries out initialization to configurable peripheral device each time, but only need to carry out initialization when first acquisition control, the follow-up configuration information backed up when being used in initialization is configured configurable peripheral device, thus shorten the delay of control of system, decrease taking system resource.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, for those of ordinary skills, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment process flow diagram of the control method of the application's configurable peripheral device;
Fig. 2 is the second embodiment process flow diagram of the control method of the application's configurable peripheral device;
Fig. 3 is the dual system portable terminal device configuration diagram of application the application control method;
Fig. 4 is the embodiment block diagram of the application's portable terminal device.
Embodiment
In multiple embodiments of following the application, each provide control method and the portable terminal device of configurable peripheral device.
Technical scheme in the embodiment of the present application is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present application, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present application is described in further detail.
Portable in the embodiment of the present application comprises at least two subsystems, and at least one configurable peripheral device is set in portable terminal device, this at least one configurable peripheral device is the shared device of at least two subsystems, this configurable peripheral device is preferred, for video card, also can be network interface card, or PCI equipment etc., these peripherals are the configurable peripherals of software.The following examples for convenience, suppose that these at least two subsystems comprise first subsystem, except any one subsystem of described first subsystem can be described as the second subsystem.
See Fig. 1, the first embodiment process flow diagram for the control method of the application's configurable peripheral device:
Step 101: the first subsystem first obtain the control of configurable peripheral device time, initialization configurable peripheral device, and generate the first configuration information.
First subsystem is when initialization configurable peripheral device, the resource comprising address space can be distributed for configurable peripheral device, this resource can also comprise interrupt resources etc., and above-mentioned resource is written in the configuration space of configurable peripheral device, usually be formed of registers in this configuration space, for depositing various resource, then for configurable peripheral device provides service routine, finally the address space distributed for configurable peripheral device is set to the address space monopolized.
Step 102: the first subsystem uses this configurable peripheral device according to the first configuration information.
Step 103: when the control of configurable peripheral device is switched to the first subsystem by the second subsystem, the configuration of configurable peripheral device according to the first configuration information recovery of backup.
Wherein, for the backup of the first configuration information, the first subsystem can be worked as when generating the first configuration information, back up this first configuration information; Or, when the control of configurable peripheral device is switched to other subsystem by the first subsystem, back up this first configuration information.
When backup the first configuration information, can preserve the first subsystem is the resource comprising address space that configurable peripheral device is distributed; Accordingly, when recovering the configuration of configurable peripheral device, the resource comprising address space of preserving is written in the configuration space of configurable peripheral device.
Step 104: the first subsystem uses this configurable peripheral device.
Suppose that configurable peripheral device is video card, then the first subsystem is when using video card, display service routine can be called, by the display data writing of video card in the address space distributed, then to decode this address space, decoded data put in video memory, and the data in video memory are converted to display, the display screen outputting to portable terminal device shows.
It should be noted that, above-described embodiment is described for the first subsystem, in fact at least one subsystem in portable terminal device at least two subsystems all has the function same with the first subsystem, namely any one subsystem of described first subsystem is removed at least two subsystems, in the first control obtaining configurable peripheral device, and after initialization configurable peripheral device, can according to the configuration of the configuration information recovery configurable peripheral device of each self-generating, and without the need to all carrying out initialization to configurable peripheral device when obtaining the control of configurable peripheral device each time, the delay of control of system can be shortened thus, reduce taking system resource.
See Fig. 2, for the second embodiment process flow diagram of the control method of the application's configurable peripheral device, suppose in this embodiment that configurable peripheral device is crossed in the initialization of the first subsystem, and from the second subsystem initialization configurable peripheral device, the switching of configurable peripheral device control is described, and first process of subsystem recovery configuring, wherein suppose that the function i ntegration of control arbitration modules is in the first subsystem:
Step 201: the second subsystem first obtain the control of configurable peripheral device time, initialization configurable peripheral device, and generate the second configuration information.
Second subsystem is when initialization configurable peripheral device, the resource comprising address space can be distributed for configurable peripheral device, this resource can also comprise interrupt resources etc., and above-mentioned resource is written in the configuration space of configurable peripheral device, usually be formed of registers in this configuration space, for depositing various resource, then for configurable peripheral device provides service routine, finally the address space distributed for configurable peripheral device is set to the address space monopolized.
Step 202: the second subsystem backs up the second configuration information.
The execution sequence of this step, when can work as the second subsystem initialization and generate the second configuration information, backs up this second configuration information; Or, when the control of configurable peripheral device is switched to other subsystem by the second subsystem, back up this second configuration information.
Step 203: the second subsystem uses this configurable peripheral device according to the second configuration information.
Suppose that configurable peripheral device is video card, then the second subsystem is when using video card, display service routine can be called, by the display data writing of video card in the address space distributed, then to decode this address space, decoded data put in video memory, and the data in video memory are converted to display, the display screen outputting to portable terminal device shows.
Step 204: the arbitration modules arranged in the first subsystem receives the use request of the configurable peripheral device that at least two subsystems send.
It should be noted that, in the embodiment of the present application, arbitration modules can be arranged in the first subsystem, also can arrange separately independent of at least two subsystems, not limit this embodiment of the present application.Wherein, when the multiple subsystems in portable terminal device send to arbitration modules the use request using configurable peripheral device simultaneously, arbitrated by the control of arbitration modules to configurable peripheral device.
In addition, in the embodiment of the present application, configuration information, when backup configuration information, by configuration information backup in respective subsystem, also can backup in this arbitration modules by subsystems.
Step 205: use configurable peripheral device according to the first subsystem in rules of arbitration arbitration at least two subsystems pre-set.
Wherein, the present embodiment can adopt any one rules of arbitration following: according at least two subsystems, institute sends the sequencing using request, determines to send the subsystem use configurable peripheral device using request at first; Or, be at least two sub-Operation system setting priority, determine to send the subsystem use configurable peripheral device using request medium priority the highest; Or, at least two subsystems use configurable peripheral device in turn, such as, sequence is lined up to using the subsystem of configurable peripheral device, subsystem after control switching each time enters tail, then when receiving use request, according to sending the position of subsystem in lining up using request, the subsystem coming queue foremost uses this configurable peripheral device.
Step 206: control configurable peripheral device and be communicated with the first subsystem.
Can equipment handover module in portable terminal device, when having arbitrated certain subsystem controls configurable peripheral device, then can be transmitted control signal to this handover module by arbitration modules, being switched to make this handover module the state be communicated with this subsystem.
Step 207: the first subsystem is according to the configuration of the first configuration information recovery configurable peripheral device backed up.
First subsystem is when backup the first configuration information, and can preserve the first subsystem is the resource comprising address space that configurable peripheral device is distributed; Accordingly, when recovering the configuration of configurable peripheral device, the resource comprising address space of preserving is written in the configuration space of configurable peripheral device.
Step 208: the first subsystem uses configurable peripheral device.
Suppose that configurable peripheral device is video card, then the first subsystem is when using video card, display service routine can be called, by the display data writing of video card in the address space distributed, then to decode this address space, decoded data put in video memory, and the data in video memory are converted to display, the display screen outputting to portable terminal device shows.
When application the embodiment of the present application switches the control of configurable peripheral device between multiple subsystems of portable terminal device, subsystem without the need to obtaining control all carries out initialization to configurable peripheral device each time, but only need to carry out initialization when first acquisition control, the follow-up configuration information backed up when being used in initialization is configured configurable peripheral device, thus shorten the delay of control of system, decrease taking system resource.
See Fig. 3, the configuration diagram of a kind of portable terminal device of application the application configurable peripheral device control method embodiment, wherein suppose that configurable peripheral device is video card:
Portable terminal device shown in Fig. 3 comprises first subsystem and second subsystem, also comprises arbitrator module, switch, shared video card module and a display apparatus module simultaneously.
Wherein, the first subsystem can be integrated in the first equipment as main frame, and the second subsystem can be integrated in the second equipment as display screen, and the first equipment can be connected by physical interface with the second equipment, forms described portable terminal device.In a concrete application example, this first equipment is not preferably containing the main process equipment of display screen, also can be described as BASE equipment, first subsystem has preferably installed the subsystem of X86 operating system, second equipment preferably touches display device, also can be described as PAD equipment, and the second subsystem has preferably installed the subsystem of ARM operating system, first equipment forms dual system portable terminal device together with the second equipment connection, and the first equipment and the second equipment can be separated and use or combinationally use.
Or the first subsystem can be integrated in and comprise in the 3rd equipment of main frame and display screen, and this second subsystem is integrated in board, board, by slot default on insertion the 3rd equipment, forms portable terminal device.In a concrete application example, 3rd equipment is preferred, for comprising main frame (containing the first processing unit, such as X 86 processor) and the equipment of display screen, the operating system of installing in the 3rd equipment is preferably X86 operating system, 3rd equipment is consistent with usual seen notebook computer or all-in-one profile, and in board, be integrated with SOS, preferred second subsystem is the subsystem having installed ARM operating system, the slot of this board by the 3rd equipment is arranged, insert in this slot, the portable terminal device of dual system is combined into the 3rd equipment.
Dual system portable terminal device shown in Fig. 3 the process of carrying out video card control with describe consistent in previous embodiment, do not repeat them here.
Corresponding with the embodiment of the control method of the application's configurable peripheral device, present invention also provides the embodiment of the portable terminal device of the control method of this configurable peripheral device of application.
See Fig. 4, the first embodiment block diagram for the application's portable terminal device:
This portable terminal device comprises: at least two subsystems, these at least two subsystems comprise the first subsystem 410 and the second subsystem 420, and at least one configurable peripheral device 430, this at least one configurable peripheral device 430 is the shared device of described at least two subsystems.Wherein, in order to example is convenient, in Fig. 4, illustrate only above-mentioned two subsystems and a configurable peripheral device.
Wherein, the first subsystem 410 comprises:
Initialization unit 411, for when described first subsystem obtains the control of described configurable peripheral device for the first time, configurable peripheral device described in initialization, and generate the first configuration information, and use described configurable peripheral device according to described first configuration information;
Backup units 412, for backing up described first configuration information;
Recovery unit 413, for when the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to the first configuration information recovery in described backup units, uses described configurable peripheral device to make described first subsystem.
Further, described backup units 412, specifically for when generation the first configuration information, backs up described first configuration information, or when the control of described configurable peripheral device is switched to other subsystem by described first subsystem, back up described first configuration information.
Further, this portable terminal device can also comprise (not shown in Fig. 4):
Receiving element, for the use request of the configurable peripheral device that at least two subsystems described in receiving send;
Arbitration unit, uses described configurable peripheral device for the first subsystem at least two subsystems according to the rules of arbitration arbitration pre-set;
Control module, is communicated with described first subsystem for controlling described configurable peripheral device.
In one embodiment, above-mentioned receiving element, arbitration unit and control module can be arranged separately independent of described at least two subsystems; In another embodiment, above-mentioned receiving element, arbitration unit and control module be arranged on described in any one subsystem at least two subsystems.
Concrete, initialization unit 411 can comprise (not shown in Fig. 4):
Allocation units, for distributing for described configurable peripheral device the resource comprising address space;
Writing unit, for being written in the configuration space of described configurable peripheral device by described resource;
Providing unit, for the service routine provided for configurable peripheral device;
Setting unit, for the address space being set to monopolize by the address space distributed for described configurable peripheral device.
Accordingly, described backup units 412, specifically for preserving the resource comprising described address space;
Described recovery unit 413, specifically for being written to the resource comprising described address space of preserving in the configuration space of described configurable peripheral device.
For the framework of this portable terminal device, wherein said first subsystem is integrated in the first equipment as main frame, described second subsystem is integrated in the second equipment as display screen, and described first equipment is connected by physical interface with described second equipment, forms described portable terminal device; Or described first subsystem is integrated in and comprises in the 3rd equipment of main frame and display screen, and described second subsystem is integrated in board, described board, by inserting in slot default on described 3rd equipment, forms described portable terminal device.
As seen through the above description of the embodiments, the first subsystem in the embodiment of the present application portable terminal device at least two subsystems is when the control of the described configurable peripheral device of first acquisition, configurable peripheral device described in initialization, and generate the first configuration information by described first subsystem, and configure described configurable peripheral device according to described first configuration information, back up described first configuration information, when the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to described first configuration information recovery, described configurable peripheral device is used to make described first subsystem.When application the embodiment of the present application switches the control of configurable peripheral device between multiple subsystems of portable terminal device, subsystem without the need to obtaining control all carries out initialization to configurable peripheral device each time, but only need to carry out initialization when first acquisition control, the follow-up configuration information backed up when being used in initialization is configured configurable peripheral device, thus shorten the delay of control of system, decrease taking system resource.
Those skilled in the art can be well understood to the mode that technology in the embodiment of the present application can add required general hardware platform by software and realize.Based on such understanding, technical scheme in the embodiment of the present application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Above-described the application's embodiment, does not form the restriction to the application's protection domain.The amendment done within any spirit in the application and principle, equivalently to replace and improvement etc., within the protection domain that all should be included in the application.

Claims (14)

1. the control method of a configurable peripheral device, it is characterized in that, be applied to and comprise in the portable terminal device of at least two subsystems, described at least two subsystems are software systems, at least one configurable peripheral device is set in described portable terminal device, at least one configurable peripheral device described for described in the shared device of at least two subsystems; Wherein, the first subsystem in described at least two subsystems is when the control of the described configurable peripheral device of first acquisition, configurable peripheral device described in initialization, and generate the first configuration information by described first subsystem, and use described configurable peripheral device according to described first configuration information; Described method comprises:
Back up described first configuration information;
When the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to described first configuration information recovery, uses described configurable peripheral device to make described first subsystem.
2. method according to claim 1, is characterized in that, described first configuration information of described backup comprises:
When described first subsystem generates the first configuration information, back up described first configuration information; Or,
When the control of described configurable peripheral device is switched to other subsystem by described first subsystem, back up described first configuration information.
3. method according to claim 1, is characterized in that, also comprises:
Except any one subsystem of described first subsystem in described at least two subsystems, after configurable peripheral device described in initialization, the configuration of configurable peripheral device according to the configuration information recovery of each self-generating.
4. method according to claim 1, is characterized in that, also comprises before the configuration of described configurable peripheral device according to described first configuration information recovery:
The use request of the configurable peripheral device of at least two subsystem transmissions described in reception;
The first subsystem at least two subsystems according to the rules of arbitration arbitration pre-set uses described configurable peripheral device;
Control described configurable peripheral device to be communicated with described first subsystem.
5. method according to claim 4, is characterized in that, described rules of arbitration comprise:
According to described at least two subsystems send the sequencing using request, determining to send at first the subsystem using request is the first subsystem; Or,
For described at least two sub-Operation system setting priority, determining to send the subsystem using request medium priority the highest is the first subsystem; Or,
Described at least two subsystems use described configurable peripheral device in turn.
6. method according to claim 1, is characterized in that, described initialization configurable peripheral device comprises:
For described configurable peripheral device distributes the resource comprising address space, and described resource is written in the configuration space of described configurable peripheral device;
For configurable peripheral device provides service routine;
The address space distributed for described configurable peripheral device is set to the address space monopolized.
7. method according to claim 6, is characterized in that, described first configuration information of described backup is specially: preserve the resource comprising described address space;
The configuration of described configurable peripheral device according to described first configuration information recovery is specially: the resource comprising described address space of preserving be written in the configuration space of described configurable peripheral device.
8. a portable terminal device, is characterized in that, comprising: at least two subsystems, and described at least two subsystems are software systems, at least one configurable peripheral device, at least one configurable peripheral device described for described in the shared device of at least two subsystems; Described at least two subsystems comprise the first subsystem and the second subsystem, wherein,
Described first subsystem comprises:
Initialization unit, for when described first subsystem obtains the control of described configurable peripheral device for the first time, configurable peripheral device described in initialization, and generate the first configuration information, and use described configurable peripheral device according to described first configuration information;
Backup units, for backing up described first configuration information;
Recovery unit, for when the control of described configurable peripheral device is switched to described first subsystem by the second subsystem in described at least two subsystems, the configuration of configurable peripheral device according to the first configuration information recovery in described backup units, uses described configurable peripheral device to make described first subsystem.
9. portable terminal device according to claim 8, it is characterized in that, described backup units, specifically for when generation the first configuration information, back up described first configuration information, or when the control of described configurable peripheral device is switched to other subsystem by described first subsystem, back up described first configuration information.
10. portable terminal device according to claim 8, is characterized in that, described portable terminal device also comprises:
Receiving element, for the use request of the configurable peripheral device that at least two subsystems described in receiving send;
Arbitration unit, uses described configurable peripheral device for the first subsystem at least two subsystems according to the rules of arbitration arbitration pre-set;
Control module, is communicated with described first subsystem for controlling described configurable peripheral device.
11. portable terminal devices according to claim 10, is characterized in that, described receiving element, arbitration unit and control module are arranged separately independent of described at least two subsystems; Or, in any one subsystem at least two subsystems described in described receiving element, arbitration unit and control module are arranged on.
12. portable terminal devices according to claim 8, is characterized in that, described initialization unit comprises:
Allocation units, for distributing for described configurable peripheral device the resource comprising address space;
Writing unit, for being written in the configuration space of described configurable peripheral device by described resource;
Providing unit, for the service routine provided for configurable peripheral device;
Setting unit, for the address space being set to monopolize by the address space distributed for described configurable peripheral device.
13. portable terminal devices according to claim 12, is characterized in that,
Described backup units, specifically for preserving the resource comprising described address space;
Described recovery unit, specifically for being written to the resource comprising described address space of preserving in the configuration space of described configurable peripheral device.
14. portable terminal devices according to claim 8, is characterized in that,
Described first subsystem is integrated in the first equipment as main frame, and described second subsystem is integrated in the second equipment as display screen, and described first equipment is connected by physical interface with described second equipment, forms described portable terminal device; Or,
Described first subsystem is integrated in and comprises in the 3rd equipment of main frame and display screen, and described second subsystem is integrated in board, and described board, by inserting in slot default on described 3rd equipment, forms described portable terminal device.
CN201110260709.1A 2011-09-05 2011-09-05 The control method of configurable peripheral device and portable terminal device Active CN102981597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110260709.1A CN102981597B (en) 2011-09-05 2011-09-05 The control method of configurable peripheral device and portable terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110260709.1A CN102981597B (en) 2011-09-05 2011-09-05 The control method of configurable peripheral device and portable terminal device

Publications (2)

Publication Number Publication Date
CN102981597A CN102981597A (en) 2013-03-20
CN102981597B true CN102981597B (en) 2016-03-30

Family

ID=47855728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110260709.1A Active CN102981597B (en) 2011-09-05 2011-09-05 The control method of configurable peripheral device and portable terminal device

Country Status (1)

Country Link
CN (1) CN102981597B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462010B (en) * 2013-09-13 2018-08-31 联想(北京)有限公司 A kind of electronic equipment and condition control method
CN103648001A (en) * 2013-11-29 2014-03-19 乐视致新电子科技(天津)有限公司 Switching method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797351A (en) * 2004-12-24 2006-07-05 联想(北京)有限公司 Method for switching multiple operation systems of computer
CN101187880A (en) * 2006-11-15 2008-05-28 联想(北京)有限公司 Dummy machine system and its video card usage method
CN101546279A (en) * 2009-05-14 2009-09-30 华为技术有限公司 Device, system and method for exception processing of embedded device
CN102033850A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Portable terminal and control method thereof, portable device and control method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100356349C (en) * 2001-04-27 2007-12-19 邵通 Device and method for changing state of computing equipment
CN1609825A (en) * 2003-10-23 2005-04-27 南京易思克网络安全技术有限责任公司 Apparatus and method for realizing computing equipment status safety transition
CN101963929B (en) * 2004-12-31 2016-07-06 钟巨航 The method preserving/resume work scene
CN100464302C (en) * 2006-04-20 2009-02-25 联想(北京)有限公司 Dummy machine system and its video card access method
CN101241445B (en) * 2007-02-08 2011-07-27 联想(北京)有限公司 Virtual machine system and its method for accessing display card
CN101996090B (en) * 2009-08-28 2013-09-04 联想(北京)有限公司 Method for reconfiguring equipment under virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797351A (en) * 2004-12-24 2006-07-05 联想(北京)有限公司 Method for switching multiple operation systems of computer
CN101187880A (en) * 2006-11-15 2008-05-28 联想(北京)有限公司 Dummy machine system and its video card usage method
CN101546279A (en) * 2009-05-14 2009-09-30 华为技术有限公司 Device, system and method for exception processing of embedded device
CN102033850A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Portable terminal and control method thereof, portable device and control method thereof

Also Published As

Publication number Publication date
CN102981597A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
US10387362B2 (en) Secondary data channel communication system
TWI556174B (en) System and method for assigning virtual functions and management host thereof
US9940283B2 (en) Application sharing in multi host computing systems
CN102388357B (en) Method and system for accessing memory device
US10317973B2 (en) Peripheral device expansion card system
US20140280960A1 (en) Methods and apparatus for dynamically allocating devices between multiple controllers
EP2423826A2 (en) Computer system, i/o device control method, and i/o drawer
US20120144146A1 (en) Memory management using both full hardware compression and hardware-assisted software compression
EP3301574B1 (en) Method for managing graphic cards in a computing system
CN110971855A (en) DVR system and method based on USB Type-C interface
CN115298656A (en) System and method for scheduling sharable PCIE endpoint devices
CN114417373A (en) Data access method and device for NVMe-oF user mode client
CN112685347A (en) Compatible method and device for PCIE (peripheral component interface express) equipment with different bandwidths and server
CN102981597B (en) The control method of configurable peripheral device and portable terminal device
US20060026328A1 (en) Apparatus And Related Method For Calculating Parity of Redundant Array Of Disks
CN104462010A (en) Electronic equipment and state control method
US8099563B2 (en) Storage device and access instruction sending method
US11093422B2 (en) Processor/endpoint communication coupling configuration system
US9798562B2 (en) Facilitation of guest application display from host operating system
CN105786409B (en) A kind of electronic equipment and resource share method
US11003612B2 (en) Processor/endpoint connection configuration system
TWI596483B (en) Data channel allocation
CN216014148U (en) Server and server backboard
CN103034645B (en) File presentation method, equipment and portable terminal device
JP2002175265A (en) Signal group exchange device and method between a plurality of components in digital signal processor having direct memory access controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant