CN1700197A - Method for reading and writing non-standard temporary register in standard interface devices - Google Patents

Method for reading and writing non-standard temporary register in standard interface devices Download PDF

Info

Publication number
CN1700197A
CN1700197A CN 200510077693 CN200510077693A CN1700197A CN 1700197 A CN1700197 A CN 1700197A CN 200510077693 CN200510077693 CN 200510077693 CN 200510077693 A CN200510077693 A CN 200510077693A CN 1700197 A CN1700197 A CN 1700197A
Authority
CN
China
Prior art keywords
standard
parameter
interface devices
temporary register
standard interface
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.)
Granted
Application number
CN 200510077693
Other languages
Chinese (zh)
Other versions
CN100378699C (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.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2005100776935A priority Critical patent/CN100378699C/en
Publication of CN1700197A publication Critical patent/CN1700197A/en
Application granted granted Critical
Publication of CN100378699C publication Critical patent/CN100378699C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention relates to a method of nonstandard temporary register inside read and write standard interface device. It posits standard order's nonuse parameter as handling parameter; when standard interface device receives the standard order, detest handling parameter reads the corresponding value of nonstandard temporary register and storages it to corresponding output temporary register of standard order's output nonuse parameter so that users can read the value of output temporary register to know the value of nonstandard temporary register.

Description

The method of reading and writing non-standard temporary register in standard interface devices
Technical field
The invention relates to a kind of method of reading and writing non-standard temporary register in standard interface devices, be particularly to use comprise the standard commands that input does not utilize parameter, to order about the method that standard interface devices reads the value of non-standard temporary register or writes the reading and writing non-standard temporary register in standard interface devices of data to the non-standard temporary register.
Background technology
Progress based on the computer system research and development technology, people are for the stability of computer peripheral apparatus, the requirement of ductility and usefulness, day by day promote, therefore, in the process of development computer peripheral device, the debug of computer peripheral apparatus and the test analysis of usefulness, become the development computer peripheral apparatus indispensable link, for this reason, the research staff can be provided with non-standard temporary register in computer peripheral apparatus, with the specific function of the state or the On/Off device of logger computer peripheral device, and by the value that reads or change these non-standard temporary registers, to analyze action.
Because these non-standard temporary registers are to be hidden on the computer peripheral apparatus, and general main frame provides a standard interface, it is only to be used for the defined working storage of access standard interface, for these non-standard temporary registers, the method of the non-standard temporary register of the general common accessing computer peripheral device of computer system adopts the universal asynchronous reception and forwarder (the UniversalAsynchronous Receiver/Transmitter of easy means mostly; UART) or internal integrated circuit (InterIntegrated Circuit; I2C) interfacial process, its system chipset because of computer peripheral apparatus only need take the bipod position, it is erasable non-standard temporary register, this method is to utilize to receive the value that the pin position receives desire read-write non-standard temporary register, transmit the content that writes success or read non-standard temporary register by sending the pin position again, yet the computer system that the method must be combined with universal asynchronous reception and forwarder and internal integrated circuit is just captured the value of non-standard temporary register, lacks flexibility in the use.
On the other hand, also there is manufacturer's utilization to peddle merchant's order (Vender specific command) and comes the access non-standard temporary register in standard interface devices, yet, only keep 9Ah in the ATA/ATAPI standard specification, C0h~C3h, 8xh, F0h, F7h, command codes such as FAh~FFh peddle merchant order, for use, but if mostly peddle merchant's order be set use many functions after, and the utilization of research staff's desire then may be peddled the not enough awkward situation of merchant's order when peddling merchant's command definition standard interface devices and carrying out the order of read-write non-standard temporary register.
Therefore, the present invention is directed to the problems referred to above and propose a kind of method of reading and writing non-standard temporary register in standard interface devices, it is to utilize at least one input of standard commands not utilize parameter and at least one output of response criteria order not to utilize the corresponding output working storage of parameter, order about standard interface devices read-write non-standard temporary register, to address the above problem.
Because above-mentioned existing reading and writing non-standard temporary register in standard interface devices, the inventor is based on being engaged in this type of product design manufacturing abundant for many years practical experience and professional knowledge, and the utilization of cooperation scientific principle, actively studied innovation, in the hope of founding a kind of method of new reading and writing non-standard temporary register in standard interface devices, can improve the method for general existing reading and writing non-standard temporary register in standard interface devices, make it have more practicality.Through constantly research, design, and after studying repeatedly and improving, create the present invention who has practical value finally.
Summary of the invention
The objective of the invention is to, a kind of method of new reading and writing non-standard temporary register in standard interface devices is provided, technical matters to be solved is to make it that the providing of standard commands that input does not utilize parameter is provided, to set the order of reading and writing non-standard temporary register in standard interface devices, supply the order of standard interface devices acceptance criteria to read or to change the value of non-standard temporary register, then, the providing of output working storage of parameter correspondence is not provided by the output of responding this standard commands again, with the value with non-standard temporary register be stored to output working storage after, the value that reads the output working storage is to learn the value of non-standard temporary register, by this, reach the purpose of read-write non-standard temporary register, thereby be suitable for practicality more.
Another object of the present invention is to, a kind of method of reading and writing non-standard temporary register in standard interface devices is provided, technical matters to be solved is to make the input of its established standards order not utilize parameter for confirming parameter, detect this affirmation parameter for standard interface devices, to confirm the value of desire read-write non-standard temporary register, avoid standard interface devices by this under unexpected situation, read or change the value of this non-standard temporary register, thereby be suitable for practicality more.
The object of the invention to solve the technical problems realizes by the following technical solutions.A kind of method of reading non-standard temporary register in standard interface devices according to the present invention's proposition, it is to utilize at least one input of a standard commands not utilize parameter not utilize the corresponding output working storage of parameter with at least one output of responding this standard commands, read the value of at least one non-standard temporary register in the standard interface devices, this method comprises the following step: it is that an execution parameter is to this standard interface devices that this input of setting this standard commands does not utilize parameter; Assign comprise this execution parameter this standard commands to this standard interface devices, detect this execution parameter for this standard interface devices, read the value of this non-standard temporary register; The value that stores this non-standard temporary register is exported working storage to this; And the value that reads this output working storage.
The object of the invention to solve the technical problems also adopts following technical measures further to realize.
The aforesaid method of reading non-standard temporary register in standard interface devices, wherein said this input of setting this standard commands do not utilize parameter be an execution parameter to the step of this standard interface devices, more comprise the following step: it is that an affirmation parameter is to this standard interface devices that at least one input of setting another standard commands does not utilize parameter; And assign comprise this affirmation parameter this standard commands to this standard interface devices, detect this affirmations parameter for this standard interface devices, affirmation desires to read the value of this non-standard temporary register.
The aforesaid method of reading non-standard temporary register in standard interface devices, it is that an execution parameter is to the step of this standard interface devices that wherein said this input in this standard commands of setting does not utilize parameter, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, read value for this standard interface devices according to this indexing parameter to this non-standard temporary register that should indexing parameter.
The aforesaid method of reading non-standard temporary register in standard interface devices, wherein said standard interface devices are the devices that can be an ATA specification.
The aforesaid method of reading non-standard temporary register in standard interface devices, wherein said standard interface devices are the devices that can be an ATAPI specification.
The object of the invention to solve the technical problems also realizes by the following technical solutions.A kind of method of reading non-standard temporary register in standard interface devices according to the present invention's proposition, it is to utilize the plural number input of a standard commands not utilize parameter not utilize the corresponding output working storage of parameter with at least one output of this standard commands of response, read the value of at least one non-standard temporary register in the standard interface devices, this method comprises the following step: it is that an affirmation parameter and an execution parameter are to this standard interface devices that this input of setting this standard commands does not utilize parameter; Assign comprise this affirmation parameter and this execution parameter this standard commands to this standard interface devices, detect this affirmation parameter and this execution parameter for this standard interface devices, to confirm to desire to read the value of this non-standard temporary register, confirm afterwards and read the value of this non-standard temporary register; The value that stores this non-standard temporary register is exported working storage to this; And the value that reads this output working storage.
The object of the invention to solve the technical problems also adopts following technical measures further to realize.
The aforesaid method of reading non-standard temporary register in standard interface devices, it is wherein said that not utilize parameter in this input of setting this standard commands be that an affirmation parameter and an execution parameter are to the step of this standard interface devices, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, read the value of this corresponding non-standard temporary register according to this indexing parameter for this standard interface devices.
The object of the invention to solve the technical problems also realizes by the following technical solutions.A kind of method of writing non-standard temporary register in standard interface devices according to the present invention's proposition, it is to utilize the plural number input of a standard commands not utilize parameter, write at least one non-standard temporary register in data to a standard interface devices, this method comprises the following step: it is that an execution parameter and a data parameters are to this standard interface devices that this input of setting this standard commands does not utilize parameter; Assign comprise this execution parameter and this data parameters this standard commands to this standard interface devices, detect this execution parameter for this standard interface devices, to read this data parameters; And write this data parameters to this non-standard temporary register.
The object of the invention to solve the technical problems also adopts following technical measures further to realize.
The aforesaid method of writing non-standard temporary register in standard interface devices, wherein this input of setting this standard commands do not utilize parameter be an execution parameter and a data parameters to the step of this standard interface devices, more comprise the following step: it is that an affirmation parameter is to this standard interface devices that at least one input of setting another standard commands does not utilize parameter; And assign comprise this affirmation parameter this standard commands to this standard interface devices, detect this affirmations parameter for this standard interface devices, affirmation desires to write data to this non-standard temporary register.
The aforesaid method of writing non-standard temporary register in standard interface devices, it is wherein said that not utilize parameter in this input of setting this standard commands be that an execution parameter and a data parameters are to the step of this standard interface devices, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, write this data parameters to this non-standard temporary register for this standard interface devices according to this indexing parameter.
The aforesaid method of writing non-standard temporary register in standard interface devices, wherein said standard interface devices are the devices that can be an ATA specification.
The aforesaid method of writing non-standard temporary register in standard interface devices, wherein said standard interface devices are the devices that can be an ATAPI specification.
The object of the invention to solve the technical problems also realizes by the following technical solutions.A kind of method of writing non-standard temporary register in standard interface devices according to the present invention's proposition, it utilizes the plural number input of a standard commands not utilize parameter, write at least one non-standard temporary register in data to a standard interface devices, this method comprises the following step: it is one to confirm that parameter, an execution parameter and a data parameters are to this standard interface devices that this input of setting this standard commands does not utilize parameter; Assign comprise this affirmation parameter, this execution parameter and this data parameters this standard commands to this standard interface devices, detect this affirmation parameter and this execution parameter for this standard interface devices, to confirm desiring to write data, confirm the back and read this data parameters to this non-standard temporary register; And write this data parameters to this non-standard temporary register.
The object of the invention to solve the technical problems also adopts following technical measures further to realize.
The aforesaid method of writing non-standard temporary register in standard interface devices, it is in the step of affirmation parameter, an execution parameter and a data parameters that wherein said this input in this standard commands of setting does not utilize parameter, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, write this data parameters to this non-standard temporary register for this standard interface devices according to this indexing parameter.
The present invention compared with prior art has tangible advantage and beneficial effect.By above technical scheme as can be known, major technique of the present invention thes contents are as follows:
The method of reading and writing non-standard temporary register in standard interface devices of the present invention, it is that input by the established standards order does not utilize parameter to be execution parameter, and assign comprise execution parameter standard commands to standard interface devices, make standard interface devices detecting execution parameter to read the value of corresponding non-standard temporary register, and the value of storage non-standard temporary register is to this output working storage, the value that reads this output working storage is to learn the value of non-standard temporary register, in addition, the present invention also can not utilize parameter to be execution parameter and data parameters by the input of established standards order, the confession standard interface devices carries out the incident of corresponding execution parameter, so that data parameters is write in the non-standard temporary register of corresponding execution parameter.
Moreover, this method more can not utilize parameter for execution parameter in the input of established standards order before, the input of setting another standard commands does not utilize parameter for confirming parameter, assign comprise this affirmation parameter this standard commands to this standard interface devices, make the control module detecting of this standard interface devices confirm parameter, carry out the function of this non-standard temporary register of read-write to confirm desire, perhaps directly when the input of established standards order does not utilize parameter for execution parameter, setting another does not again utilize parameter for confirming parameter, make the control module detecting of this standard interface devices confirm parameter, carry out the function of this non-standard temporary register of read-write to confirm desire.
By technique scheme, the method for reading and writing non-standard temporary register in standard interface devices of the present invention has following advantage at least:
The invention relates to a kind of method of reading and writing non-standard temporary register in standard interface devices, it is to use and comprises the standard commands that at least one input do not utilize parameter and do not utilize the corresponding output working storage of parameter with at least one output of this standard commands of response, do not utilize parameter to be execution parameter by the input of setting this standard commands, detect this execution parameter for this standard interface devices, to read the value of non-standard temporary register, and the value of this non-standard temporary register is stored in the output working storage, read the output working storage learning the value of non-standard temporary register for the user, thereby be suitable for practicality more.
In addition, when desiring to write data to non-standard temporary register, also can not utilize parameter to be execution parameter and data parameters by the input of setting this standard commands, detect this execution parameter for this standard interface devices, so that data parameters is write in the non-standard temporary register, by this, provide a pipeline to set the order of the value of read-write non-standard temporary register, in order to the elasticity of lifting read-write non-standard temporary register, thereby be suitable for practicality more.
In sum, the method for the reading and writing non-standard temporary register in standard interface devices that the present invention is special, it can read the output working storage learning the value of non-standard temporary register for the user, and can promote the elasticity of read-write non-standard temporary register.It has above-mentioned many advantages and practical value, and in class methods, do not see have similar design to publish or use and really genus innovation, no matter it is all having bigger improvement on method or on the function, have large improvement technically, and produced handy and practical effect, and the method for more existing reading and writing non-standard temporary register in standard interface devices has the multinomial effect of enhancement, thereby be suitable for practicality more, and have the extensive value of industry, really be a new and innovative, progressive, practical new design.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, below especially exemplified by preferred embodiment, and conjunction with figs., be described in detail as follows.
Description of drawings
Figure 1A: the form shfft that is MEDIA UNLOCK standard commands of the present invention.
Figure 1B: be the form shfft that the present invention responds MEDIA UNLOCK standard commands.
Fig. 2: be the process flow diagram that the present invention reads the value of non-standard temporary register.
Fig. 3 A: be the form shfft that the present invention comprises the MEDIA UNLOCK standard commands of execution parameter.
Fig. 3 B: be that the present invention responds MEDIA UNLOCK standard commands and includes the form shfft of the value of non-standard temporary register.
Fig. 4: be the present invention another read the process flow diagram of the value of non-standard temporary register.
Fig. 5: be the form shfft that comprises the MEDIA UNLOCK standard commands of execution parameter and indexing parameter of the present invention.
Fig. 6: be that the present invention writes the process flow diagram of data to non-standard temporary register.
Fig. 7: be the form shfft that the present invention comprises the MEDIA UNLOCK standard commands of execution parameter and data parameters.
Fig. 8: be the present invention another write the process flow diagram of data to non-standard temporary register.
Fig. 9: be the form shfft that the present invention comprises the MEDIA UNLOCK standard commands of execution parameter, indexing parameter and data parameters.
Figure 10: be the another process flow diagram that reads the value of non-standard temporary register of the present invention.
Figure 11: be the another process flow diagram that writes data to non-standard temporary register of the present invention.
Figure 12: be the form shfft that the present invention comprises the MEDIA UNLOCK standard commands of confirming parameter.
Figure 13 A to Figure 13 C is another form shfft that comprises the MEDIA UNLOCK standard commands of confirming parameter for the present invention.
Figure 14: be the another process flow diagram that reads the value of non-standard temporary register of the present invention.
Figure 15: be the form shfft that the present invention comprises the MEDIA UNLOCK standard commands of confirming parameter, indexing parameter and execution parameter.
Figure 16: be the another process flow diagram that writes data to non-standard temporary register of the present invention.
Embodiment
Reach technological means and the effect that predetermined goal of the invention is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, its embodiment of method, the step of the reading and writing non-standard temporary register in standard interface devices that foundation the present invention is proposed, describe in detail as after.
In known method, it is to use the method at UART and I2C interface, perhaps order about standard interface devices read-write non-standard temporary register by peddling merchant's order, it is that at least one input by standard commands does not utilize parameter not utilize the corresponding output working storage of parameter with at least one output of this standard commands of response that the present invention is different from known techniques, orders about the value that standard interface devices read or changed non-standard temporary register.
In the standard interface specification, as advance rank technology attachment specification (Advanced TechnologyAttachment; ATA) with advance rank technology attachment specification package interface (AT Attachment PacketInterface; ATAPI) standard interface specification, all definition has standard commands, see also Figure 1A and be form shfft for MEDIA UNLOCK standard commands, as shown in the figure, it is to include plural input parameter, it is a Features working storage parameter, a Sector Count working storage parameter, a LBA Low working storage parameter, a LBA Mid working storage parameter and a LBA High working storage parameter, and above-mentioned input parameter is to be all input not utilize parameter (no-available parameter; Na), do not influence the execution of standard commands, then select random number to insert on the practice arbitrarily because of input utilizes the value of parameter; One Device working storage parameter, it is except setting the input parameter according to the regulation of MEDIA UNLOCK standard commands at Bit4, Bit5 and Bit7, and all the other Bit are all input and do not utilize parameter, can arbitrarily insert numerical value; And a Command working storage parameter, it is the command code for standard commands, is the standard commands sign indicating number DFh of MEDIA UNLOCK in this example.
Wherein, it is as follows in the method for this ATA/ATAPI interface device to assign MEDIA UNLOCK standard commands, at first, set the input parameter of MEDIA UNLOCK standard commands in regular turn, promptly set Features working storage parameter in regular turn, Sector Count working storage parameter, LBA Low working storage parameter, LBAMid working storage parameter, one LBA High working storage parameter and Device working storage parameter, just write above-mentioned parameter value and be stored in the inner pairing input working storage of this ATA/ATAPI interface device, then, assign and store Command working storage parameter to the order working storage of this standard interface devices correspondence, when the order working storage of the control module detecting Command of this standard interface devices working storage parameter correspondence has the action of storage, just can begin to decipher, and obtain the input parameter value of this standard commands in working storages in all inputs of corresponding MEDIA UNLOCK standard commands, to carry out the standard Event of corresponding MEDIA UNLOCK standard commands.
When this standard interface devices is finished the execution of MEDIA UNLOCK standard commands, the control module of this standard interface devices is can write output parameter to the output working storage of responding MEDIA UNLOCK standard commands, seeing also Figure 1B is for responding the form shfft of MEDIA UNLOCK standard commands, as shown in the figure, the output parameter of responding MEDIA UNLOCK standard commands is to include an Error working storage parameter, one Sector Count working storage parameter, one LBA Low working storage parameter, an one LBA Mid working storage parameter and a LBA High working storage parameter, above-mentioned output parameter is that promptly this control module is arbitrarily to insert numerical value does not utilize the parameter correspondence in this output output working storage for output does not utilize parameter; One Device working storage parameter, this control module is except the regulation according to response MEDIA UNLOCK standard commands, must write outside the output parameter at Bit4, Bit5 and the Bit7 of the output working storage of corresponding Device working storage parameter, all the other Bit are all output and do not utilize parameter, can arbitrarily insert numerical value; An and Status working storage parameter, this control module is except the regulation according to response MEDIA UNLOCK standard commands, must write outside the output parameter at Bit0, Bit3, Bit5, Bit6 and the Bit7 of the output working storage of corresponding Status working storage parameter, all the other Bit are all output and do not utilize parameter, can insert numerical value arbitrarily.
See also Fig. 2, it is the process flow diagram that the present invention reads the value of non-standard temporary register, below be that not utilize parameter not utilize the corresponding output working storage of parameter with at least one output of response MEDIA UNLOCK standard commands be example at least one input with the MEDIA UNLOCK standard commands of ATA/ATAPI, with explanation as the value that reads a non-standard temporary register set in the ATA/ATAPI standard interface devices, at first, shown in step S10, it is an execution parameter that the input of established standards order does not utilize parameter, and store this execution parameter corresponding input working storage to this standard interface devices, as shown in Figure 3A, the LBA Mid working storage parameter that this embodiment promptly sets MEDIA UNLOCK standard commands is Ach, with as execution parameter, after all input parameters for the treatment of this MEDIA UNLOCK standard commands are all set the input working storage that is stored to this standard interface devices correspondence; Continue, shown in step S11, assign comprise execution parameter standard commands to this standard interface devices, the value of promptly assigning the Command working storage parameter shown in Fig. 3 A is to this standard interface devices, promptly setting Command working storage parameter is the standard commands sign indicating number DFh of MEDIA UNLOCK, and stores this standard commands corresponding order working storage to this standard interface devices.
When the control module detecting order working storage of this standard interface devices has the action of storage, this control module is all the input working storages that can detect the MEDIA UNLOCK standard commands of corresponding diagram 3A, to carry out the standard Event of corresponding MEDIA UNLOCK standard commands, in addition, when the value of control module detecting LBA Mid working storage is ACh, be the value that can read, suppose that this value is 60h a non-standard temporary register that should execution parameter.
Afterwards, control module will be according to shown in the step S12, the value that stores this non-standard temporary register is exported working storage to this, after control module is finished standard Event, desire to write output parameter when exporting working storage, promptly can be with the value of this non-standard temporary register of being read, do not utilize parameter and write to corresponding output working storage as output, this embodiment is after control module is finished MEDIA UNLOCK standard Event, this control module with the value of this non-standard temporary register as the LBA Mid working storage parameter of Fig. 3 B and be stored in the corresponding output working storage, i.e. LBA Mid working storage; At last, execution in step S13, read the value of this output working storage, after control module is finished MEDIA UNLOCK standard Event, control module can allow the Bit7 (BSY) of the Status working storage parameter shown in Fig. 3 B be 0, be the Bit7 that control module can write 0 to Status working storage, finished MEDIA UNLOCK standard Event to represent this standard interface devices, equally also finish the action of reading this non-standard temporary register this moment, so the research staff learns that the BSY value of Status working storage is at 0 o'clock at once, promptly can read the value of LBA Mid working storage, to learn the value of this non-standard temporary register.
See also Fig. 4, be the present invention another read the process flow diagram of the value of non-standard temporary register, as shown in the figure, when desiring to order about standard interface devices and read the value of non-standard temporary register, at first, shown in step S20 and step S21, an input of setting MEDIA UNLOCK standard commands does not utilize parameter to be execution parameter, and another input of setting MEDIA UNLOCK standard commands does not utilize parameter one indexing parameter, and store this execution parameter and this indexing parameter corresponding input working storage to this standard interface devices, as shown in Figure 5, the LBA Mid working storage parameter that this embodiment promptly sets MEDIA UNLOCK standard commands is 11h, defining promptly that this LBA Mid working storage parameter value reads the execution parameter of non-standard temporary register and set LBA High working storage parameter for the indication standard interface devices is AEh, promptly defines this LBA High working storage parameter value and be the indexing parameter of the non-standard temporary register of desiring to read.
After all input parameters for the treatment of this MEDIA UNLOCK standard commands are all set the input working storage that is stored to this standard interface devices correspondence, shown in step S22, assign comprise execution parameter and indexing parameter standard commands to standard interface devices, and store this standard commands corresponding order working storage to this standard interface devices, so that this control module is carried out the standard Event of corresponding MEDIA UNLOCK standard commands, in addition, when the value of control module detecting LBA Mid working storage is 11h, be can be, read value non-standard temporary register that should indexing parameter according to the stored indexing parameter of LBAHigh working storage; Afterwards, carry out step S23 and step S24, wherein, see also the step S12 of Fig. 2 and step S13 to learn the execution of step S23 and step S24 to read the value of this non-standard temporary register.
In addition, see also Fig. 6, method of the present invention is except that using MEDIA UNLOCK standard commands to read the value of this non-standard temporary register, also can write data to this non-standard temporary register, at first, can be according to shown in the step S30, it is an execution parameter and a data parameters that the plural number input of setting MEDIA UNLOCK standard commands does not utilize parameter, and store this execution parameter and this data parameters corresponding input working storage to this standard interface devices, please consult Fig. 7 simultaneously, the LBA Mid working storage parameter that this embodiment promptly sets MEDIA UNLOCK standard commands is the data parameters of desiring to write for this standard interface devices of indication writes data in the execution parameter and the LBA Low working storage parameter of non-standard temporary register, and the value of supposing this execution parameter is that the value of FCh and this data parameters is 2Dh.
After all input parameters for the treatment of this MEDIA UNLOCK standard commands are all set the input working storage that is stored to this standard interface devices correspondence, execution in step S31 assign comprise this execution parameter and this data parameters standard commands in standard interface devices, and store the order working storage of this standard commands to this standard interface devices, for this control module according to this standard commands, carry out corresponding MEDIA UNLOCK standard Event, and detect this execution parameter to read this data parameters; At last, according to writing this data parameters shown in the step S32 to in should this non-standard temporary register of execution parameter.
See also Fig. 8, be the present invention another write the process flow diagram of data to non-standard temporary register, as shown in the figure, when desiring to order about standard interface devices and write data to non-standard temporary register, at first, can be according to shown in step S40 and the step S41, it is an execution parameter and a data parameters that the plural number input of setting MEDIA UNLOCK standard commands does not utilize parameter, and setting another input of this standard commands, not utilize parameter be an indexing parameter, and storage execution parameter, data parameters and indexing parameter corresponding input working storage to this standard interface devices, please consult Fig. 9 simultaneously, the LBA Low working storage parameter that this embodiment promptly sets the MEDIAUNLOCK standard commands is the data parameters of desiring to write, LBA Mid working storage parameter writes the indexing parameter that data are this non-standard temporary register of desiring to write in the execution parameter of non-standard temporary register and LBA High working storage parameter for this standard interface devices of indication, and the value of supposing this data parameters is 23h, the value of this execution parameter is that FFh and this indexing parameter are ADh.
After all input parameters for the treatment of this MEDIA UNLOCK standard commands are all set the input working storage that number is stored to this standard interface devices correspondence, carry out step S42 assign comprise this execution parameter, this data parameters and this indexing parameter standard commands in standard interface devices, and store the order working storage of this standard commands to this standard interface devices, for this control module according to this standard commands, carry out corresponding standard Event, and detect this execution parameter to read this data parameters; At last, according to writing this data parameters shown in the step S43 to in should the non-standard temporary register of indexing parameter.
Because the value of the LBA Mid working storage parameter of MEDIA UNLOCK standard commands is arbitrarily to insert for input does not utilize parameter, the person of issuing an order does not note so easily, and insert to the value of LBA Mid working storage parameter by chance identical at random with execution parameter, cause this control module identification will read and write this non-standard temporary register, for avoiding the generation of this situation, please consult Figure 10 and Figure 11 simultaneously, at first, please respectively according to shown in step S50 or the step S60, at least one input of setting a standard commands does not utilize parameter for confirming parameter, and store this affirmation parameter corresponding input working storage to this standard interface devices, see also Figure 12, as shown in the figure, with Sector Count working storage parameter, inputs such as LBA Low working storage parameter and LBA Mid working storage parameter do not utilize parameter as confirming parameter, are set at 01h in regular turn, 02h, 03h.
After all input parameters for the treatment of this MEDIA UNLOCK standard commands are all set the input working storage that is stored to this standard interface devices correspondence, respectively according to shown in step S51 or the step S61, assign comprise confirm parameter standard commands in standard interface devices, and store the order working storage comprise the standard commands of confirming parameter correspondence to this standard interface devices, control module detecting for this standard interface devices, when this control module detecting Sector Count working storage, LBA Low working storage, the value of LBA Mid working storage is 01h, 02h, during 03h, control module can confirm that user's desire reads and writes the value of this non-standard temporary register or write data to non-standard temporary register, even more can close the standard Event that will carry out originally.
Then, the input that further execution in step S52 to S56 sets another standard commands does not utilize parameter, to read the value of non-standard temporary register, or the input that further execution in step S62 to S65 sets another standard commands does not utilize parameter, to write data to non-standard temporary register, aforesaid step S52 to S56 is identical with the mentioned step of Fig. 4, step S62 to S65 is identical with the mentioned step of Fig. 8, do not repeat them here, in addition, if control module detecting Sector Count working storage, the LBALow working storage, the value of LBA Mid working storage is 03h, 02h, during 01h, promptly close the function of read-write non-standard temporary register, and recover the function that this standard commands is original definition.
In addition, the present invention also provides the method for another setting check parameter, read and write the value of this non-standard temporary register for standard interface devices affirmation desire, the input that the method is promptly set plural standard commands does not in regular turn utilize parameter for confirming parameter, please consult simultaneously shown in Figure 13 A to Figure 13 C, the Sector Count working storage parameter of promptly setting plural MEDIA UNLOCK standard commands in regular turn is 01h, 02h and 03h and store this affirmation parameter in to input working storage that should standard interface devices, by assign continuously comprise confirm parameter MEDIA UNLOCK standard commands in standard interface devices, the value of detecting Sector Count working storage when control module in regular turn is 01h, when 02h and 03h, then can confirm the value of desire read-write non-standard temporary register, reverse order is then for closing the function of read-write non-standard temporary register.
The present invention uses the input of standard commands not utilize parameter not utilize the corresponding output working storage of parameter with the output of this standard commands of response, order this standard interface devices to read or change the value of non-standard temporary register, it is the device that can apply to the conformance with standard interface specification, the present invention also can apply to other and contain the standard commands that input does not utilize parameter except that applying to meet the device of ATA or ATAPI specification.
See also Figure 14, it is the process flow diagram that reads the value of non-standard temporary register for the present invention is another, this embodiment is different from an embodiment and is, this embodiment does not only utilize parameter by the plural number input of setting a standard commands, can confirm to desire to read the value of working storage and read for standard interface devices; At first, shown in step S70 and step S71, the input of established standards order do not utilize parameter be one confirm parameter and an execution parameter and established standards order another import that not utilize parameter be an indexing parameter, and store this affirmation parameter, this execution parameter and this indexing parameter corresponding input working storage to this standard interface devices, see also Figure 15, promptly set the Features working storage parameter of MEDIA UNLOCK standard commands respectively, Sector Count working storage parameter and LBA Low working storage parameter are 01h in regular turn, 02h, 03h, with as confirming parameter, LBA Mid working storage parameter is 11h, with as execution parameter, setting LBA High working storage parameter in addition is AEh, with as indexing parameter, hence one can see that, and this embodiment does not need an as above embodiment, and the input that must set other standard commands is not utilized as the affirmation parameter.
Then, execution in step S72 assign comprise confirm parameter, indexing parameter and execution parameter standard commands to standard interface devices, confirm to desire to read the value of non-standard temporary register according to this affirmation parameter and execution parameter for control module, and read the value of the non-standard temporary register of manipulative indexing parameter; At last, execution in step S73 is to step S74, and wherein, step S73 is can consult the step S23 of Fig. 4 to step S24 to step S74, by this, and to obtain the value of non-standard temporary register.
In addition, see also Figure 16, it is the process flow diagram for the another preferred embodiment of the present invention, this embodiment such as a same embodiment, only do not utilize parameter, can confirm to desire to write data to this non-standard temporary register of standard interface devices for standard interface devices by the plural number input of setting a standard commands; At first, shown in step S80 and step S81, it is affirmation parameter, a data parameters and an execution parameter that the input of established standards order does not utilize parameter, and setting another input of this standard commands, not utilize parameter be an indexing parameter, and store this affirmation parameter, this execution parameter, this indexing parameter and this data parameters corresponding input working storage to this standard interface devices; Then, carry out step S82 assign comprise confirm parameter, indexing parameter, data parameters and execution parameter standard commands to standard interface devices, confirm to desire to write data according to this affirmation parameter and execution parameter for control module, and read this data parameters to non-standard temporary register; Afterwards, according to writing data parameters shown in the step S83 to non-standard temporary register that should indexing parameter.
In sum, the invention relates to a kind of method of reading and writing non-standard temporary register in standard interface devices, it is to use and comprises the standard commands that at least one input do not utilize parameter and do not utilize the corresponding output working storage of parameter with at least one output of this standard commands of response, do not utilize parameter to be execution parameter by the input of setting this standard commands, detect this execution parameter for this standard interface devices, to read the value of non-standard temporary register, and the value of this non-standard temporary register is stored in the output working storage, read the output working storage to learn the value of non-standard temporary register for the user.
In addition, when desiring to write data to non-standard temporary register, also can not utilize parameter to be execution parameter and data parameters by the input of setting this standard commands, detect this execution parameter for this standard interface devices, so that data parameters is write in the non-standard temporary register, by this, the order that provides a pipeline to set the value of read-write non-standard temporary register is in order to promote the elasticity of read-write non-standard temporary register.
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, though the present invention discloses as above with preferred embodiment, yet be not in order to limit the present invention, any those skilled in the art, in not breaking away from the technical solution of the present invention scope, when the method that can utilize above-mentioned announcement and technology contents are made a little change or be modified to the equivalent embodiment of equivalent variations, in every case be the content that does not break away from technical solution of the present invention, according to technical spirit of the present invention to any simple modification that above embodiment did, equivalent variations and modification all still belong in the scope of technical solution of the present invention.

Claims (14)

1, a kind of method of reading non-standard temporary register in standard interface devices, it is characterized in that it is to utilize at least one input of a standard commands not utilize parameter not utilize the corresponding output working storage of parameter with at least one output of responding this standard commands, read the value of at least one non-standard temporary register in the standard interface devices, this method comprises the following step:
It is that an execution parameter is to this standard interface devices that this input of setting this standard commands does not utilize parameter;
Assign comprise this execution parameter this standard commands to this standard interface devices, detect this execution parameter for this standard interface devices, read the value of this non-standard temporary register;
The value that stores this non-standard temporary register is exported working storage to this; And
Read the value of this output working storage.
2, the method for reading non-standard temporary register in standard interface devices according to claim 1, it is characterized in that wherein in this input of setting this standard commands do not utilize parameter be an execution parameter to the step of this standard interface devices, more comprise the following step:
It is one to confirm that parameter is to this standard interface devices that at least one input of setting another standard commands does not utilize parameter; And
Assign comprise this affirmation parameter this standard commands to this standard interface devices, detect this affirmations parameter for this standard interface devices, affirmation desires to read the value of this non-standard temporary register.
3, the method for reading non-standard temporary register in standard interface devices according to claim 1, it is characterized in that wherein not utilizing parameter in this input of setting this standard commands is that an execution parameter is to the step of this standard interface devices, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, read value for this standard interface devices according to this indexing parameter to this non-standard temporary register that should indexing parameter.
4, the method for reading non-standard temporary register in standard interface devices according to claim 1 is characterized in that wherein this standard interface devices is the device that can be an ATA specification.
5, the method for reading non-standard temporary register in standard interface devices according to claim 1 is characterized in that wherein this standard interface devices is the device that can be an ATAPI specification.
6, a kind of method of reading non-standard temporary register in standard interface devices, it is characterized in that it is to utilize the plural number input of a standard commands not utilize parameter not utilize the corresponding output working storage of parameter with at least one output of this standard commands of response, read the value of at least one non-standard temporary register in the standard interface devices, this method comprises the following step:
It is one to confirm that a parameter and an execution parameter are to this standard interface devices that this input of setting this standard commands does not utilize parameter;
Assign comprise this affirmation parameter and this execution parameter this standard commands to this standard interface devices, detect this affirmation parameter and this execution parameter for this standard interface devices, to confirm to desire to read the value of this non-standard temporary register, confirm afterwards and read the value of this non-standard temporary register;
The value that stores this non-standard temporary register is exported working storage to this; And
Read the value of this output working storage.
7, the method for reading non-standard temporary register in standard interface devices according to claim 6, it is characterized in that wherein not utilizing parameter in this input of setting this standard commands is that an affirmation parameter and an execution parameter are to the step of this standard interface devices, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, read the value of this corresponding non-standard temporary register according to this indexing parameter for this standard interface devices.
8, a kind of method of writing non-standard temporary register in standard interface devices is characterized in that it is to utilize the plural number input of a standard commands not utilize parameter, writes at least one non-standard temporary register in data to a standard interface devices, and this method comprises the following step:
It is that an execution parameter and a data parameters are to this standard interface devices that this input of setting this standard commands does not utilize parameter;
Assign comprise this execution parameter and this data parameters this standard commands to this standard interface devices, detect this execution parameter for this standard interface devices, to read this data parameters; And
Write this data parameters to this non-standard temporary register.
9, the method for writing non-standard temporary register in standard interface devices according to claim 8, this input that it is characterized in that setting therein this standard commands do not utilize parameter be an execution parameter and a data parameters to the step of this standard interface devices, more comprise the following step:
It is one to confirm that parameter is to this standard interface devices that at least one input of setting another standard commands does not utilize parameter; And
Assign comprise this affirmation parameter this standard commands to this standard interface devices, detect this affirmations parameter for this standard interface devices, affirmation desires to write data to this non-standard temporary register.
10, the method for writing non-standard temporary register in standard interface devices according to claim 8, it is characterized in that not utilizing parameter in this input of setting this standard commands is that an execution parameter and a data parameters are to the step of this standard interface devices, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, write this data parameters to this non-standard temporary register for this standard interface devices according to this indexing parameter.
11, the method for writing non-standard temporary register in standard interface devices according to claim 8 is characterized in that wherein this standard interface devices is the device that can be an ATA specification.
12, the method for writing non-standard temporary register in standard interface devices according to claim 8 is characterized in that wherein this standard interface devices is the device that can be an ATAPI specification.
13, a kind of method of writing non-standard temporary register in standard interface devices is characterized in that its plural number that utilizes standard commands input does not utilize parameter, writes at least one non-standard temporary register in data to a standard interface devices, and this method comprises the following step:
It is one to confirm that parameter, an execution parameter and a data parameters are to this standard interface devices that this input of setting this standard commands does not utilize parameter;
Assign comprise this affirmation parameter, this execution parameter and this data parameters this standard commands to this standard interface devices, detect this affirmation parameter and this execution parameter for this standard interface devices, to confirm desiring to write data, confirm the back and read this data parameters to this non-standard temporary register; And
Write this data parameters to this non-standard temporary register.
14, the method for writing non-standard temporary register in standard interface devices according to claim 13, it is characterized in that not utilizing parameter in this input of setting this standard commands is in the step of affirmation parameter, an execution parameter and a data parameters, more comprise a step, its be another input of setting this standard commands do not utilize parameter be an indexing parameter to this standard interface devices, write this data parameters to this non-standard temporary register for this standard interface devices according to this indexing parameter.
CNB2005100776935A 2005-06-22 2005-06-22 Method for reading and writing non-standard temporary register in standard interface devices Active CN100378699C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100776935A CN100378699C (en) 2005-06-22 2005-06-22 Method for reading and writing non-standard temporary register in standard interface devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100776935A CN100378699C (en) 2005-06-22 2005-06-22 Method for reading and writing non-standard temporary register in standard interface devices

Publications (2)

Publication Number Publication Date
CN1700197A true CN1700197A (en) 2005-11-23
CN100378699C CN100378699C (en) 2008-04-02

Family

ID=35476265

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100776935A Active CN100378699C (en) 2005-06-22 2005-06-22 Method for reading and writing non-standard temporary register in standard interface devices

Country Status (1)

Country Link
CN (1) CN100378699C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100380349C (en) * 2006-03-21 2008-04-09 威盛电子股份有限公司 Method for determining sequence stepping technology connecting standard (SATA) bridging device identity
CN100397371C (en) * 2006-02-15 2008-06-25 威盛电子股份有限公司 Method for identifying bridge
CN100445970C (en) * 2006-03-21 2008-12-24 威盛电子股份有限公司 Method for determining bridging device identity
CN101387942A (en) * 2008-10-08 2009-03-18 矽创电子股份有限公司 Method for controlling non-standard apparatus by standard command

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69428512T2 (en) * 1993-12-30 2002-05-29 Ncr Int Inc Configuration procedures for computer peripheral devices
US20040052166A1 (en) * 2002-09-16 2004-03-18 Koninklijke Philips Electronics N.V. Command set for removable rewritable computer storage
CN100349146C (en) * 2004-12-13 2007-11-14 威盛电子股份有限公司 Method for actuating standard interface devices perform non-standard events

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100397371C (en) * 2006-02-15 2008-06-25 威盛电子股份有限公司 Method for identifying bridge
CN100380349C (en) * 2006-03-21 2008-04-09 威盛电子股份有限公司 Method for determining sequence stepping technology connecting standard (SATA) bridging device identity
CN100445970C (en) * 2006-03-21 2008-12-24 威盛电子股份有限公司 Method for determining bridging device identity
CN101387942A (en) * 2008-10-08 2009-03-18 矽创电子股份有限公司 Method for controlling non-standard apparatus by standard command

Also Published As

Publication number Publication date
CN100378699C (en) 2008-04-02

Similar Documents

Publication Publication Date Title
CN1187733C (en) Speech recognition system, server and client, and control method thereof
CN1869915A (en) Memory card providing hardware acceleration for read operations
CN1975653A (en) Method for receiving and processing pointer input
CN1794168A (en) Information processing device, information processing method, semiconductor device, and computer program
CN1851667A (en) Graphic user interface test method and system
CN1700197A (en) Method for reading and writing non-standard temporary register in standard interface devices
JP2014532237A (en) Method and apparatus for efficiently increasing command queue length for accessing storage
CN1619576A (en) System and method for detecting a hand-drawn object in electronic ink input
CN1317744A (en) Semiconductor memory device
CN1110759C (en) Information processing method and apparatus
CN1447242A (en) Control device suitable to quick flash memory card and its construction methods
CN1725204A (en) Method for connecting read-write squeece technology to non-standard temporary storage in normalized device
CN101076055A (en) Method for converting toll-ticket format
CN1469621A (en) Portable information apparatus for processing inputted data from external apparatus and method thereof
CN1622114A (en) Mobile scanning and storing device and method
CN1851701A (en) Binary data access method
CN2651825Y (en) Experimental facility with computer control
CN115577113A (en) Knowledge graph platform
US7406556B2 (en) Method for reading and writing non-standard register of standard interface device
CN101692197A (en) MEMS accelerometer based intelligent handwriting system and identification method thereof
CN101056312A (en) A method and system for communication between the devices
CN1744072A (en) Programmeable multiple digital waveform generating method and its device
CN101036107A (en) Method for inputting letter using pointer for portable device and the portable device
CN1275127C (en) Chinese characters input method according to stroke sequence and keyboard thereof
CN1889032A (en) External MS memory card interface switching device

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