CN100418075C - Object stack structure of driver - Google Patents

Object stack structure of driver Download PDF

Info

Publication number
CN100418075C
CN100418075C CNB2006100872000A CN200610087200A CN100418075C CN 100418075 C CN100418075 C CN 100418075C CN B2006100872000 A CNB2006100872000 A CN B2006100872000A CN 200610087200 A CN200610087200 A CN 200610087200A CN 100418075 C CN100418075 C CN 100418075C
Authority
CN
China
Prior art keywords
bus
filter
port
piles
controlling
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
CNB2006100872000A
Other languages
Chinese (zh)
Other versions
CN1866229A (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 CNB2006100872000A priority Critical patent/CN100418075C/en
Publication of CN1866229A publication Critical patent/CN1866229A/en
Application granted granted Critical
Publication of CN100418075C publication Critical patent/CN100418075C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to an object stack structure of a driver, particularly to an object stack structure of a driver, which can utilizes a standard IDE driver to support the hot plug function of a serial ATA device. The object stack structure is mainly composed of a bus unit stack, at least one port device stack and at least one serial ATA device stack which are respectively corresponding to a bus, each channel on the bus and a serial ATA device connected to each channel, wherein the bus unit stack is provided with an upper layer bus filter device object; all the port device stacks are respectively provided with a lower layer port filter device object and an upper port filter device object. The object stack structure can provide the hot plug function by utilizing all filter device objects for bus state monitoring and signal transmission connection.

Description

The object stack device that is used for the controlling and driving program
Technical field
The invention relates to a kind of programmed control that drives external unit by standard I D E device driver, especially refer to a kind of driver object stacked structure that utilizes standard I D E driver to support the hot plug function of serial ATA device, it mainly is to insert appropriate filters device object in the driver object stacked structure of standard IDE device, and the function of hot plug can be provided so as to the condition monitoring that carries out bus and signal passing interface.
Background technology
In recent years, because the high development of information related industry and people increase day by day to the requirement of information products computing and transmission speed, make the dealer constantly be devoted to the exploitation of various transmission interface specifications.With regard to storage interface, by the ATA of transfer rate 16MBps (Advanced Technology Attachment the earliest, the advanced techniques attachment device) interface, improvement is the ATA66 interface of the ATA33 interface of 33MBps, transfer rate 66MBps, and even interface specifications such as ATA100 and ATA133.But because above-mentioned interface specification is the data transfer mode transmission with parallel (parallel) formula, it is more not only to transmit required signal wire quantity, and noise is bigger, and the length of transmission line is subjected to bigger restriction, and the lifting of its transfer rate is also comparatively difficult.
Because the dealer of each side constantly attempts exploitation, existing serial (serial) formula ata interface specification emerges on the market, not only makes transfer rate obtain fulminant lifting, and the function of hot plug still can be provided, and further promotes the convenience that it uses.
In order to meet the compatibility in peripheral equipment upgrading stage, the framework that serial ATA can downward compatible standard IDE driver in the design of interface specification.The object stacked structure of its driver is as shown in Figure 1, consist predominantly of that a bus unit piles up 130, port device piles up 150, port device piles up 155, disk set pile up 170 and optical disc apparatus pile up 190.
Bus unit piles up 130 to have main bus and connects entity apparatus object (Host BusAdapter Physical Device Object; HBA PDO) 12 and main bus connect functional object (HBA Function Device Object; HBA FDO) 14, port device piles up 150 and has passage entity apparatus object (channel PDO) 161 and channel function device object (channel FDO) 163, and port device piles up 155 and has passage entity apparatus object 181 and channel function device object 183.
In addition, still set up disk entity apparatus object 165 and CD entity apparatus object 185 respectively according to the peripheral device classification that each passage connected.
Afterwards, then be to set up disk functional device object 167 and CD function device object 187 respectively, through under the disk drive segmentation filter device object 169 and CD filter for installation object 189 linked up with the disk drive and the CD player (not shown) of serial respectively respectively again.
Though the object stacked structure of above-mentioned driver can utilize the standard IDE driver to drive the serial ATA device, because the standard IDE driver does not provide the hot plug function, so can lose the convenience that it uses because of using the hot plug function.
For this reason, how at the existing shortcoming of above-mentioned common technology,, become a development priority to design a kind of hot plug function of utilizing the standard IDE driver to support the serial ATA device.
Summary of the invention
In view of this, the invention provides a kind of object stack device that is used for the controlling and driving program, it is mainly constructed and includes: a bus unit piles up, as its interface of linking up between a pci bus of the IDE bus on corresponding upper strata and lower floor; At least one port device piles up, and corresponding at least one passage on the IDE bus, lays respectively at the position, upper strata that bus unit piles up, in order to carry out the function of each passage; And at least one IDE device piles up, and corresponding at least one serial ATA device that is connected to each passage, lays respectively at the position, upper strata that the pairing port device of passage that each serial ATA device connected piles up; Wherein, bus unit piles up and is provided with a upper strata bus filter for installation object; Each port device piles up and is respectively equipped with a lower floor's port filter device object and a upper strata ports filter apparatus object; Utilize the state of each filter for installation object monitor bus, and obtain the interface standard of bus, thereby the function of hot plug can be provided; Wherein, each port device piles up and includes a passage entity apparatus object and a channel function device object.
Description of drawings
Fig. 1 is the object stacked structure synoptic diagram of known drive program;
Fig. 2 is the object stacked structure synoptic diagram of a preferred embodiment of the present invention.
Embodiment
Now for making those skilled in the art further understanding and understanding be arranged to feature of the present invention, structure and the effect reached, sincerely help with preferable enforcement legend and cooperate detailed explanation, illustrate as afterwards:
Seeing also Fig. 2, is the object stacked structure synoptic diagram of a preferred embodiment of the present invention.The present invention mainly is the function of utilizing the IDE driver of standard to drive the serial ATA device and hot plug can being provided.
With connection one a string type Winchester disk drive and a string type CD player on the IDE bus is example, employed integrated device electronics (Integrated Drive Electronics; IDE) driver includes peripheral element extension interface (Peripheral ComponentInterconnect; PCI) driver (PCI.SYS) 201, bus driver (PCIIDE.SYS) 203, port drivers (ATAPI.SYS) 205, disk driver (DISK.SYS) 207 and disc drives program (CDROM.SYS) 209.In addition, utilize a filter driver (filter driver) 41 to insert the filter for installation object in the appropriate location, the function of hot plug can be provided.
Its object stacked structure is as shown in the figure, and the bus unit that includes the bottom substantially piles up (Bus Device Stack) 230; First port device in middle level piles up (PortDevice Stack) 250 and second port device and piles up 255; With the disk set of the superiors pile up 270 and optical disc apparatus pile up 290.Seeing through disk drive affiliated segmentation filter device object (PartMgr.sys) 269 and CD filter for installation object (redbook.sys) 289 more respectively links up with the disk drive and the CD player of serial respectively.
The formation of its each structure is then at first set up a main bus by PCI driver 201 and is connected entity apparatus object (Host Bus Adapter Physical Device Object; HBA PDO) 22, build main bus by bus driver 203 again and connect functional object (HBA Function Device Object; HBA FDO) 24 the stack (attach) thereon the layer position.The present invention's this moment utilizes this filter driver 41 to set up a bus filter for installation object (filter device object; Filter DO) 320 positions, upper strata that are superimposed on HBA DO22 become a upper filter assemblies object (upper-level filterDO).HBA PDO 22, HBA FDO 24 and bus filtrator DO 320 forms a bus unit and pile up 230, and be corresponding and carry out the function of bus.
Bus filtrator DO 320 can set up a bus input and output requirement package (IORequest Package; IRP shows), and utilize bus IRP to inquire to the driver (as the PCI driver) of its lower floor the interface standard of its bus to make driver can use this interface standard access main bus to connect the data of register (HBA register).
When the bus of operating system inquiry HBA FDO 24 concerns (BusRelations), bus driver 203 will be repaid its passage (channel) state, and set up the first passage entity apparatus object 261 and the second channel entity apparatus object 281 of each passage on the corresponding IDE bus.Bus filtrator DO 320 can monitor above-mentioned inquiry and repayment, and sets up the first ports filter apparatus object 321 and the second ports filter apparatus object 341 by filter driver 41, is superimposed on respectively on the corresponding passage PDO.
The port filter DO 321,341 of this position can be obtained the pointer (pointer) of pci bus interface by bus filtrator DO 320, obtain the interface standard of pci bus, and definable and set up a port filter interface standard (filter-defined interface).
Afterwards, operating system will be written into port drivers 205, and set up first passage functional device object 263 and second channel functional device object 283 by this port drivers, be superimposed on the position, upper strata of the first port filter DO 321 and the second port filter DO 341 respectively.Utilize filter driver 41 to set up one the 3rd ports filter apparatus object 323 and one the 4th ports filter apparatus object 343 again, be superimposed on the position, upper strata of first passage FDO 263 and second channel FDO 283 respectively.
Wherein, first passage PDO 261, the first port filter DO 321, first passage FDO 263 and the 3rd port filter 323 formation first port device pile up 250; Second channel PDO 281, the second port filter DO 341, second channel FDO 283 and 343 of the 4th port filters form second port device and pile up 255.The first port filter DO 321 and the second port filter DO 341 are respectively first and second port device and pile up lower filter device object (lower-level filterDO) in 250,255; The 3rd port filter DO 323 and 343 of the 4th port filter DO are respectively first and second port device and pile up upper filter assemblies object (upper-level filter DO) in 250,255.
The the 3rd and the 4th port filter DO 323,343 can set up a port input and output requirement package (IRP respectively, do not show), and utilize port input and output requirement package to inquire first and second port filter DO 321,341 defined port filter interface standards respectively.In addition, the 3rd and the 4th port filter DO 323,343 can require package to transmit toward lower floor these port input and output respectively, and process passage FDO 263 and 283, port filter 321 and 341 are to passage PDO 261 and 281 etc.First and second port filter DO 321,341 receives after this IRP, required data are stored in the data buffer with its defined port filter interface standard, and the 3rd and the 4th port filter DO 323,343 promptly can the port filter interface standard obtain its required data.
The the 3rd and the 4th port filter DO 323,343 still can port filter interface standard access main bus adapter register (register), so as to monitoring on its pairing passage whether the hot plug incident takes place, the device that perhaps connected produces abnormality, and according to the abnormality of hot plug incident or device and notifying operation system (for example Windows) carries out actions such as rescanning or replacement to the passage or the device of correspondence.
When the bus of operating system inquiry passage FDO 263,283 concerns, port drivers 205 will be repaid the device that each passage connects, and set up the entity apparatus object of corresponding each device.Present embodiment is to connect a serial ATA disk drive with first passage, and it is that example describes that second channel connects a serial ATA CD player.
At this moment, port drivers 205 repayment are also set up a disk entity apparatus object 265 and a CD entity apparatus object 285, are superimposed on the position, upper strata of the 3rd port filter DO 323 and the 4th port filter DO 343 respectively.And the 3rd and the 4th port filter DO 323,343 can monitor above-mentioned inquiry and repayment, and set up the first device filter for installation object 325 and second by filter driver 41 and install filter for installation object 345, be superimposed on the position, upper strata of disk PDO 265 and CD PDO 285 respectively.
At last, then set up disk functional device object 267 and CD function device object 287 respectively by disk driver 207 and disc drives program 209 respectively, be superimposed on the position, upper strata of the first device filtrator DO 325 and the second device filtrator DO 345 respectively.Wherein, disk PDO 265, the first device filtrator DO 325 and disk FDO 267 formation disk sets pile up 270; CD PDO 285, the second device filtrator DO 345 and 287 of CD FDO form optical disc apparatus and pile up, and see through disk drive affiliated segmentation filter device object 269 and CD filter for installation object 289 more respectively and link up with the disk drive and the CD player of serial respectively.First and second device filtrator DO the 325, the 345th is respectively disk set and piles up 270 and the lower filter device object of optical disc apparatus in piling up.
In stacked structure of the present invention, first and second device filtrator DO the 325, the 345th, sata disk machine and the serial CD player that can set its corresponding connection of institute respectively are the hot swappable device.It mainly is when the possibility of operating system inquiry unit (capability), by monitoring this inquiry and the repayment device is hot-swappable.
Utilize the object stacked structure of driver of the present invention, can drive the serial ATA device, and the function of hot plug can be provided, significantly improve the convenience that uses by the driver of standard IDE device.
In sum, when knowing the object stacked structure that the invention relates to a kind of driver, especially refer to a kind of driver object stacked structure that utilizes the standard IDE driver to support the hot plug function of serial ATA device, it mainly is to insert appropriate filters device object in the driver object stacked structure of standard IDE device, state so as to controlling bus, and obtain the interface standard of bus, thereby can provide the function of hot plug.
Though the present invention by the preferred embodiment explanation as above, this preferred embodiment is not in order to limit the present invention.Those skilled in the art without departing from the spirit and scope of the present invention, should have the ability this preferred embodiment is made various changes and replenished, so protection scope of the present invention is as the criterion with the scope of claims.
Being simply described as follows of symbol in the accompanying drawing:
12: main bus connects the entity apparatus object
130: bus unit is stacking
14: main bus connects the functional device object
150,155: port device piles up
161,181: passage entity apparatus object
163,183: channel function device object
165: disk entity apparatus object
167: disk functional device object
169: segmentation filter device object
170: disk set piles up
185: CD entity apparatus object
187: CD function device object
189: CD filter for installation object
190: optical disc apparatus piles up
The 201:PCI driver
203: bus driver
205: port drivers
207: disk driver
209: the disc drives program
22: main bus connects the entity apparatus object
230: bus unit piles up
24: main bus connects the functional device object
Port device piled up in 250: the first
Port device piled up in 255: the second
261: first passage entity apparatus object
263: first passage functional device object
265: disk entity apparatus object
267: disk functional device object
269: segmentation filter device object
270: disk set piles up
281: second channel entity apparatus object
283: second channel functional device object
285: CD entity apparatus object
287: CD function device object
289: CD filter for installation object
290: optical disc apparatus piles up
305: bus filter for installation object
321: the first ports filter apparatus objects
323: the three ports filter apparatus objects
325: the first device filter for installation objects
341: the second ports filter apparatus objects
343: the four ports filter apparatus objects
345: the second device filter for installation objects
41: filter driver

Claims (13)

1. an object stack device that is used for the controlling and driving program is characterized in that, the described object stack device that is used for the controlling and driving program includes:
One bus unit piles up, as its interface of linking up between a pci bus of the IDE bus on corresponding upper strata and lower floor;
At least one port device piles up, and corresponding at least one passage on this IDE bus, lays respectively at the position, upper strata that this bus unit piles up, in order to carry out the function of each passage; And
At least one IDE device piles up, and corresponding at least one serial ATA device that is connected to each passage, lays respectively at the position, upper strata that the pairing port device of passage that each serial ATA device connected piles up;
Wherein, this bus unit piles up and is provided with a upper strata bus filter for installation object; Each port device piles up and is respectively equipped with a lower floor's port filter device object and a upper strata ports filter apparatus object; Utilize the state of each filter for installation object monitor bus, and obtain the interface standard of bus, thereby the function of hot plug can be provided;
Wherein, each port device piles up and includes a passage entity apparatus object and a channel function device object.
2. the object stack device that is used for the controlling and driving program according to claim 1 is characterized in that, each IDE device piles up and still is provided with bed device filter for installation object, is a hot swappable device in order to set corresponding serial ATA device.
3. the object stack device that is used for the controlling and driving program according to claim 1, it is characterized in that this bus unit piles up and from bottom to top includes a main bus adapter entity apparatus object, a main bus adapter functional device object and this upper strata bus filter for installation object in regular turn.
4. the object stack device that is used for the controlling and driving program according to claim 3 is characterized in that, this main bus adapter entity apparatus is set up by a PCI driver liking.
5. the object stack device that is used for the controlling and driving program according to claim 3 is characterized in that, this main bus adapter functional device is set up by a bus driver liking.
6. the object stacked structure of driver according to claim 1, it is characterized in that each port device piles up and from bottom to top includes this passage entity apparatus object, this lower floor's ports filter apparatus object, this channel function device object and this upper strata ports filter apparatus object respectively in regular turn.
7. the object stack device that is used for the controlling and driving program according to claim 6 is characterized in that, this lower floor's ports filter apparatus object can be obtained the interface standard of this pci bus, and defines a port filter interface standard.
8. the object stack device that is used for the controlling and driving program according to claim 7, it is characterized in that, this upper strata ports filter apparatus object can be set up a port input and output requirement package, in order to inquire defined this port filter interface standard of this lower floor's port filter.
9. the object stack device that is used for the controlling and driving program according to claim 6, it is characterized in that, this upper strata ports filter apparatus object can be monitored the hot plug incident on the pairing passage and the abnormality of device, and selects this passage and device are carried out wherein a kind of action of rescanning and replacement according to this hot plug incident and abnormality notifying operation system.
10. the object stack device that is used for the controlling and driving program according to claim 6 is characterized in that, this passage entity apparatus is set up by a bus driver or a port drivers liking.
11. the object stack device that is used for the controlling and driving program according to claim 2, it is characterized in that each IDE device piles up and from bottom to top includes a device entity device object, this time bed device filter for installation object and an apparatus function device object respectively in regular turn.
12. the object stack device that is used for the controlling and driving program according to claim 11 is characterized in that, this device entity device is set up by a port drivers liking.
13. the object stack device that is used for the controlling and driving program according to claim 1 is characterized in that, each filter for installation is set up by a filter driver liking.
CNB2006100872000A 2006-06-19 2006-06-19 Object stack structure of driver Active CN100418075C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100872000A CN100418075C (en) 2006-06-19 2006-06-19 Object stack structure of driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100872000A CN100418075C (en) 2006-06-19 2006-06-19 Object stack structure of driver

Publications (2)

Publication Number Publication Date
CN1866229A CN1866229A (en) 2006-11-22
CN100418075C true CN100418075C (en) 2008-09-10

Family

ID=37425254

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100872000A Active CN100418075C (en) 2006-06-19 2006-06-19 Object stack structure of driver

Country Status (1)

Country Link
CN (1) CN100418075C (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2501082Y (en) * 2001-08-27 2002-07-17 慧亚科技股份有限公司 Heat connect-disconnect apparatus for asynchronous terminal adapter interface
CN1409228A (en) * 2002-08-27 2003-04-09 威盛电子股份有限公司 Adaptive entity layer device with parallel and series ATA interface
CN1475923A (en) * 2002-08-05 2004-02-18 ������������ʽ���� Data transmission controlling system, electronic apparatus, program and data transmission controlling method
US20050086459A1 (en) * 2003-10-15 2005-04-21 Sundial Confidential Method and apparatus for driving a non-native SATA hard disk
CN1740984A (en) * 2004-08-25 2006-03-01 鸿富锦精密工业(深圳)有限公司 The serial high-order hard disk structure interface device for testing functions of motherboard

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2501082Y (en) * 2001-08-27 2002-07-17 慧亚科技股份有限公司 Heat connect-disconnect apparatus for asynchronous terminal adapter interface
CN1475923A (en) * 2002-08-05 2004-02-18 ������������ʽ���� Data transmission controlling system, electronic apparatus, program and data transmission controlling method
CN1409228A (en) * 2002-08-27 2003-04-09 威盛电子股份有限公司 Adaptive entity layer device with parallel and series ATA interface
US20050086459A1 (en) * 2003-10-15 2005-04-21 Sundial Confidential Method and apparatus for driving a non-native SATA hard disk
CN1740984A (en) * 2004-08-25 2006-03-01 鸿富锦精密工业(深圳)有限公司 The serial high-order hard disk structure interface device for testing functions of motherboard

Also Published As

Publication number Publication date
CN1866229A (en) 2006-11-22

Similar Documents

Publication Publication Date Title
US7627708B2 (en) Multi-host USB device
US7424582B2 (en) Storage system, formatting method and computer program to enable high speed physical formatting
US20060059293A1 (en) Universal serial bus switching hub
AU2005246952C1 (en) Method for overcoming system administration blockage
US8037247B2 (en) Methods, computer program products, and systems for providing an upgradeable hard disk
WO2007121344A1 (en) Method for automatically switching usb peripherals between usb hosts
JP2002288108A5 (en) External storage device and computer system using the same
US20050041459A1 (en) Interface for removable storage devices
EP2677439A2 (en) Active cable management
US7225290B2 (en) ATA and SATA compliant controller
CN1650276A (en) ATA/SATA combined controller
CN102376338B (en) Hard disk module
CN100418075C (en) Object stack structure of driver
CN102147710B (en) Management hub, in order to manage the method for multiple drivers be connected with a main frame
CN206370051U (en) Interface compatibility circuit
US7533205B2 (en) Control method and system of constructing raid configuration across multiple host bus adapters
US7966433B2 (en) Method for enhancing performance of data access between a personal computer and a USB Mass Storage, associated personal computer, and storage medium storing an associated USB Mass Storage driver
US7900028B2 (en) Method for initializing bus device
US20050033876A1 (en) Method for guaranteeing a device minimum bandwidth on a USB bus
US7549006B2 (en) Structure of object stacks for driver
KR101352084B1 (en) hybrid storage device and electronic system adopting the drive
CN1735855B (en) Method and apparatus for handling data transfers
EP2096527A1 (en) A solit-state disk
CN102253812A (en) Method for improving soft RAID (redundant array of independent disk) performance based on Loongson processor
JP4892275B2 (en) Storage system and configuration change method thereof

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