CN102110054B - Communication method and device for PCI (peripheral component interconnect) equipment and system memory - Google Patents
Communication method and device for PCI (peripheral component interconnect) equipment and system memory Download PDFInfo
- Publication number
- CN102110054B CN102110054B CN2009101892823A CN200910189282A CN102110054B CN 102110054 B CN102110054 B CN 102110054B CN 2009101892823 A CN2009101892823 A CN 2009101892823A CN 200910189282 A CN200910189282 A CN 200910189282A CN 102110054 B CN102110054 B CN 102110054B
- Authority
- CN
- China
- Prior art keywords
- system memory
- pci equipment
- pci
- internal memory
- location district
- 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.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 14
- 230000002093 peripheral effect Effects 0.000 title abstract 2
- 238000013507 mapping Methods 0.000 claims abstract description 14
- 230000008859 change Effects 0.000 claims description 7
- 238000007599 discharging Methods 0.000 claims 2
- 230000008569 process Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Abstract
The invention belongs to the technical field of computers, and discloses a communication method and device of PCI (peripheral component interconnect) equipment and a system memory. The method comprises the following steps: acquiring the address range of the system memory and the addressing range of the PCI equipment; determining whether the address range of the system memory completely belongs to the addressing range of the PCI equipment; and executing the following steps when a part of the address range of the system memory exceeds the addressing range of the PCI equipment: constructing the mapping relationship between the PCI equipment and the address of the system memory in the addressing range to achieve communication; setting a memory address forwarding area; and controlling the address of the system memory out of the addressing range of the PCI equipment to communicate with the PCI equipment through the memory address forwarding area. The method solves the problem that the CPU memory address out of the addressing range of the PCI equipment can not be communicated with the PCI equipment because the system memory address is larger than the addressing range of the PCI equipment, thereby providing great convenience for the application of a user.
Description
Technical field
The invention belongs to field of computer technology, be specifically related to the means of communication and the device of a kind of PCI equipment and Installed System Memory.
Background technology
The PCI slot is based on the expansion slot of PCI local bus; Be positioned at (the Accelerate Graphical Port of AGP on the mainboard; AGP) below of slot, industrial standard architecture bus (IndustrialStandard Architecture, ISA) top of slot.Its bit wide is 32 or 64, and frequency of operation is generally 33MHz, and general peak data transfer rate is 133MB/sec (32) and 266MB/sec (64).PCI slot can peg graft video card, sound card, network interface card, built-in Modem, built-in adsl Modem, USB2.0 card, IEEE1394 card, ide interface card, RAID card, TV card, video frequency collection card and other miscellaneous expansion card.The PCI slot is the main expansion slot of mainboard, can obtain nearly all function that present computer can be realized through the different expansion card of pegging graft, and is genuine " general-purpose " expansion slot.
In the practical implementation process, be provided with the memory headroom that both share between the CPU of computing machine and the PCI equipment, the memory headroom control PCI equipment of device drives through sharing, Data transmission between CPU and PCI equipment simultaneously at both.
For example; With the shared memory space is that control is example with status register; The control of equipment and status register are used for the information of opertaing device and fetch equipment: for example drive can be through reading its controller and status register for the PCI scsi device; Obtain a scsi device, this scsi device has been ready to a blocks of data is write scsi disk.Simultaneously, can also be after device power-on, through controller and status register writing information are come starting outfit.
Wherein, in the shared memory space of CPU and PCI equipment, be that inner mapping relations of depositing the address realize communication of data; If the memory address of CPU is in the addressing range of PCI; Then can set up mapping relations, carry out the data communication between CPU and the PCI equipment, if still memory address is greater than the addressing range of PCI; And the memory range that CPU uses exceeds the PCI addressing range, then can cause can't setting up normal data communication between CPU and the PCI equipment.
How solving owing to the addressing range of system memory address scope greater than PCI, cause can't carrying out between CPU and the PCI equipment problem of communication, is one of direction of field of computer technology research.
Summary of the invention
The object of the present invention is to provide the means of communication of a kind of PCI equipment and Installed System Memory, be intended to solve, cause to carry out between CPU and the PCI equipment problem of communication owing to the addressing range of system memory address scope greater than PCI.
The embodiment of the invention is achieved in that the means of communication of a kind of PCI equipment and Installed System Memory, said method comprising the steps of:
Obtain the addressing range of system memory address scope and PCI equipment;
Judge that said system memory address scope is whether all within the addressing range of said PCI equipment;
When the part of said system memory address scope is outside the addressing range of said PCI equipment, then carry out following steps:
Said PCI equipment and the system memory address in its addressing range are set up mapping relations, carry out communication;
One internal memory is set changes the location district; Controlling system memory address outside the said PCI device addressing scope changes the location district through said internal memory and carries out the communication with said PCI equipment.
An also purpose of the embodiment of the invention is to provide the communication device of a kind of PCI equipment and Installed System Memory, and said device comprises:
The information acquisition module is used to obtain the addressing range of system memory address scope and PCI equipment;
The information comparison module is used to judge that said system memory address scope is whether all within the addressing range of said PCI equipment;
Communication module is used to carry out communication; And,
Internal memory changes the location district module is set, and being used to be provided with an internal memory changes the location district, and said communication module is controlled system memory address outside the said PCI device addressing scope to be changeed the location district through said internal memory and carry out the communication with said PCI equipment.
The embodiment of the invention is provided with an internal memory through the communal space at PCI equipment and Installed System Memory changes the location district; The system memory address that exceeds PCI device addressing scope; Can change the communication of realization of location district and PCI equipment through this internal memory; Solved owing to the addressing range of system memory address scope, caused to carry out between CPU and the PCI equipment problem of communication, brought great convenience for user's use greater than PCI.
Description of drawings
Fig. 1 shows the process flow diagram of the means of communication of PCI equipment that the embodiment of the invention provides and Installed System Memory;
Fig. 2 shows the structural drawing of the communication device of PCI equipment that the embodiment of the invention provides and Installed System Memory.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is provided with an internal memory through the communal space at PCI equipment and Installed System Memory changes the location district, and the system memory address that exceeds PCI device addressing scope can change the communication of realization of location district and PCI equipment through this internal memory.
Fig. 1 shows the flow process of the means of communication of PCI equipment that the embodiment of the invention provides and Installed System Memory.
In step S101, when having PCI equipment to connect computer system, obtain the addressing range of system memory address scope and PCI equipment;
In step S102, judge that said system memory address scope is whether all within the addressing range of said PCI equipment; If then carry out step S103, otherwise carry out step S105;
In step S103, (Direct Memory Access, DMA) mapping relations are carried out communication of data according to the DMA mapping relations of setting up to set up the direct memory access (DMA) of said PCI equipment and said system memory address;
Certainly, the DMA mapping relations are in the memory headroom that both share, to set up.
In step S104, said PCI equipment and the system memory address in its addressing range are set up the DMA mapping relations;
In step S105, an internal memory is set changes the location district; Wherein, this internal memory commentaries on classics location district is arranged in the memory headroom of PCI equipment and Installed System Memory DMA mapping.
In the practical implementation process, confirm that according to the size of said PCI equipment and the disposable maximum delivered data of said system memory address said internal memory changes the size in location district.
In step S106, whether the system memory address that judgement need be carried out data communication is the address within the addressing range of PCI equipment, if the DMA mapping relations of then setting up according to step S104 are carried out communication, otherwise carry out step S107;
In step S107, the system memory address outside the said PCI device addressing scope changes the location district through said internal memory and carries out the communication with said PCI equipment.
This step S107 specifically comprises:
(1), the system memory address outside the said PCI device addressing scope when the PCI equipment sending data, institute is sent data copies to internal memory and change the location district, said internal memory changes the location district said data is sent to corresponding PCI equipment;
(2), when the system memory address of PCI equipment outside said PCI device addressing scope sends data, institute is sent data be sent to said internal memory and change the location district, said internal memory commentaries on classics location district copies to corresponding system memory address with said data.
In step S108, judge whether said system is out of service, if then carry out step S109, otherwise proceed S106;
In step S109, discharge the internal memory that said internal memory changes the location district.
Fig. 2 shows the structure of the communication device of PCI equipment that the embodiment of the invention provides and Installed System Memory.Said device comprises that information acquisition module 21, information comparison module 22, internal memory change the location district module 23, communication module 24, system's operation judge module 25 and internal memory commentaries on classics location district control module 26 are set.
Wherein, information acquisition module 21 obtains the addressing range of system memory address scope and PCI equipment;
When said information comparison module 22 judged that said system memory address scope is all within the addressing range of said PCI equipment, communication module 24 was set up the laggard row communication of mapping relations with said PCI equipment and system memory address;
When said information comparison module 22 judged that said system memory address scope does not have all within the addressing range of said PCI equipment, internal memory commentaries on classics location district was provided with module 23 internal memory commentaries on classics location district is set;
In the practical implementation process; Said internal memory changes the location district size that module 23 is judged said PCI equipment and the disposable maximum delivered data of said system memory address is set, and confirms that according to the size of said PCI equipment and the disposable maximum delivered data of said system memory address said internal memory changes the size in location district.
In the practical implementation process, internal memory commentaries on classics location district is provided with module 23 internal memory commentaries on classics location district is set in the DMA of said PCI equipment and said Installed System Memory mapping.
In the practical implementation process, said communication module 24 comprises forwarding module 241:
Wherein, Installed System Memory copies to internal memory with the system memory address data outside the said PCI device addressing scope changes the location district; Perhaps, the PCI equipment sending data is sent to said internal memory changes the location district;
System's operation judge module 25 judges whether said system is out of service; If system's operation judge module 25 judges that said system does not have out of service; Then internal memory commentaries on classics location district control module 26 is occupied said internal memory is changeed the location district; If system's operation judge module 25 judges that said system is out of service, internal memory changes the said internal memory of location district control module 26 releases and changes the location district.
The embodiment of the invention is changeed the location district through an internal memory is set; The system memory address that exceeds PCI device addressing scope can change the communication of realization of location district and PCI equipment through this internal memory; Solved owing to the addressing range of system memory address greater than PCI; Cause to carry out between CPU and the PCI equipment problem of communication, bring great convenience for user's use.
Should be understood that, concerning those of ordinary skills, can improve or conversion, and these improvement and conversion all should belong to the protection domain of accompanying claims of the present invention according to above-mentioned explanation.
Claims (6)
1. the means of communication of PCI equipment and Installed System Memory is characterized in that, said method comprising the steps of:
Obtain the addressing range of system memory address scope and PCI equipment;
Judge that said system memory address scope is whether all within the addressing range of said PCI equipment;
When the part of said system memory address scope is outside the addressing range of said PCI equipment, then carry out following steps:
Said PCI equipment and the system memory address in its addressing range are set up mapping relations, carry out communication;
One internal memory is set changes the location district; Controlling system memory address outside the said PCI device addressing scope changes the location district through said internal memory and carries out the communication with said PCI equipment;
The step that one internal memory commentaries on classics location district is set specifically comprises:
Confirm that according to the size of said PCI equipment and the disposable maximum delivered data of said system memory address said internal memory changes the size in location district;
System memory address outside the said PCI device addressing scope specifically comprises through the step that said internal memory changes the communication of realization of location district and said PCI equipment:
System memory address outside the said PCI device addressing scope sends data with institute and copies to internal memory commentaries on classics location district when the PCI equipment sending data, and said internal memory changes the location district said data are sent to corresponding PCI equipment;
When the system memory address of PCI equipment outside said PCI device addressing scope sends data, institute is sent data be sent to said internal memory commentaries on classics location district, said internal memory changes the location district said data is copied to corresponding system memory address.
2. the means of communication of PCI equipment as claimed in claim 1 and Installed System Memory is characterized in that, said internal memory changes the location district and is arranged in the shared memory space of said PCI equipment and said system memory address.
3. the means of communication of PCI equipment as claimed in claim 1 and Installed System Memory is characterized in that, said method also comprises:
Judge whether said system is out of service;
If then discharging said internal memory changes the location district, otherwise keep said internal memory to change the operation in location district.
4. the communication device of PCI equipment and Installed System Memory is characterized in that said device comprises:
The information acquisition module is used to obtain the addressing range of system memory address scope and PCI equipment;
The information comparison module is used to judge that said system memory address scope is whether all within the addressing range of said PCI equipment;
Communication module is used to carry out communication; And,
Internal memory changes the location district module is set, and being used to be provided with an internal memory changes the location district, and said communication module is controlled system memory address outside the said PCI device addressing scope to be changeed the location district through said internal memory and carry out the communication with said PCI equipment;
Said internal memory changes the location district module is set; Also be used to judge the size of said PCI equipment and the disposable maximum delivered data of said system memory address, and confirm that according to the size of said PCI equipment and the disposable maximum delivered data of said system memory address said internal memory changes the size in location district;
Said communication module comprises:
Forwarding module is used for the data that receive are sent to the system memory address outside corresponding PCI equipment or the PCI device addressing scope.
5. the communication device of PCI equipment as claimed in claim 4 and Installed System Memory is characterized in that, internal memory commentaries on classics location district is provided with module and in the shared memory space of said PCI equipment and said system memory address internal memory commentaries on classics location district is set.
6. the communication device of PCI equipment as claimed in claim 4 and Installed System Memory is characterized in that, said device also comprises:
System's operation judge module is used to judge whether said system is out of service;
Internal memory changes location district control module, is used for discharging or keeps said internal memory commentaries on classics location district.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101892823A CN102110054B (en) | 2009-12-23 | 2009-12-23 | Communication method and device for PCI (peripheral component interconnect) equipment and system memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101892823A CN102110054B (en) | 2009-12-23 | 2009-12-23 | Communication method and device for PCI (peripheral component interconnect) equipment and system memory |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102110054A CN102110054A (en) | 2011-06-29 |
CN102110054B true CN102110054B (en) | 2012-11-28 |
Family
ID=44174220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101892823A Expired - Fee Related CN102110054B (en) | 2009-12-23 | 2009-12-23 | Communication method and device for PCI (peripheral component interconnect) equipment and system memory |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102110054B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164368B (en) * | 2013-03-29 | 2016-02-10 | 惠州Tcl移动通信有限公司 | The method and system of a kind of embedded device compatible different addresses mapped inner-storage chip |
CN107193752B (en) * | 2017-05-19 | 2020-08-25 | 苏州浪潮智能科技有限公司 | Method for solving problem of insufficient allocation of memory addresses of external plug-in cards |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1365052A (en) * | 2001-07-12 | 2002-08-21 | 威盛电子股份有限公司 | PCI data reading system and reading method using reading demand conduit |
-
2009
- 2009-12-23 CN CN2009101892823A patent/CN102110054B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1365052A (en) * | 2001-07-12 | 2002-08-21 | 威盛电子股份有限公司 | PCI data reading system and reading method using reading demand conduit |
Also Published As
Publication number | Publication date |
---|---|
CN102110054A (en) | 2011-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100487632C (en) | Dual media storage device | |
CN101416137B (en) | Power-optimized frame synchronization for multiple USB controllers with non-uniform frame rates | |
CN100583067C (en) | Method fir accessing information, memory controller and information handling system | |
CN102063406B (en) | Network shared Cache for multi-core processor and directory control method thereof | |
US8631185B2 (en) | Method and system for transferring high-speed data within a portable device | |
CN101350001A (en) | Data sharing and transfer systems and methods | |
CN101673209A (en) | Method for updating program of multiple single chip microcomputers | |
CN101986655A (en) | Storage network and data reading and writing method thereof | |
US8069282B2 (en) | SD switch box in a cellular handset | |
CN103631534B (en) | Data storage system and managing method thereof | |
CN103412822A (en) | Operation method of non-volatile RAM, data operation method and relevant device | |
CN108089822A (en) | Management method, system, equipment and the storage medium of storage chip | |
CN102609380B (en) | SDRAM (synchronous dynamic random access memory) controller data writing quick response method based on AXI (advanced extensible interface) bus | |
US20100023669A1 (en) | Host controller disposed in multi-function card reader | |
CN1331037C (en) | Storing card with multi-interfae function and transmitting mode selective method | |
CN101403972A (en) | Memory card guiding method and device of embedded system | |
CN102110054B (en) | Communication method and device for PCI (peripheral component interconnect) equipment and system memory | |
CN104298474A (en) | External connection computing device acceleration method and device for implementing method on the basis of server side and external cache system | |
CN102053937A (en) | Method and system for calling flash memory of SPI (serial peripheral interface) in LPC (low pin count) bus | |
CN205983448U (en) | A control chip and solid state hard drives for solid state hard drives | |
CN102043741B (en) | Circuit and method for pipe arbitration | |
WO2021042972A1 (en) | Smart card management apparatus and method | |
CN101588404A (en) | Method and device for implementing multiple application management for universal integrated circuit card | |
CN103412798B (en) | Mixing stores implementation method and the system of snapshot | |
CN101303674A (en) | USB equipment containing self device driver |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121128 |