CN103729187A - Drive program architecture design method and system based on buffer area - Google Patents

Drive program architecture design method and system based on buffer area Download PDF

Info

Publication number
CN103729187A
CN103729187A CN201310753185.9A CN201310753185A CN103729187A CN 103729187 A CN103729187 A CN 103729187A CN 201310753185 A CN201310753185 A CN 201310753185A CN 103729187 A CN103729187 A CN 103729187A
Authority
CN
China
Prior art keywords
buffer zone
driver
buffer
interface
logical channel
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
CN201310753185.9A
Other languages
Chinese (zh)
Other versions
CN103729187B (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.)
Shenzhen Institute of Information Technology
Original Assignee
Shenzhen Institute of Information Technology
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 Shenzhen Institute of Information Technology filed Critical Shenzhen Institute of Information Technology
Priority to CN201310753185.9A priority Critical patent/CN103729187B/en
Publication of CN103729187A publication Critical patent/CN103729187A/en
Application granted granted Critical
Publication of CN103729187B publication Critical patent/CN103729187B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a drive program architecture design method and system based on a buffer area. The drive program architecture design method based on the buffer area relates to a buffer area layer drive program, a logic channel layer drive program and a physical channel layer drive program. The method and system have the advantages that a drive program architecture designed with the method and system provides four kinds of abstract and uniform buffer area interfaces for processing base band service, and great improvement is made in the aspects of cross-platform portability, robustness, configurability and the like compared with a traditional drive program interface.

Description

The method and system of the driver framework design based on buffer zone
Technical field
The present invention relates to moving communicating field, relate in particular to the method and system of the driver framework design based on buffer zone.
Background technology
Digital signal processing (embedded) field in mobile communication base band business, various base band business (WIMAX, LTE, UMTS, TD-SCDMA, GSM etc.) operate on a set of driver platform software, or a kind of base band business operates on multiple hardwares platform under the support of a set of driver platform software.In existing treatment technology, in order to reach basic-level support multiple hardwares platform, high level to be supported to the demand of multiple base band business, software platform need to provide for every kind of hardware platform and every kind of business processing the driver of Complete customization.When service needed is changed hardware platform, code relevant to hardware platform in software platform (driver software) just need to significantly be revised.In built-in field, also do not exist and both supported TI hardware platform at present, support again Freescale hardware platform and other hardware platform software platform.
Digital signal processing (embedded) field in mobile communication base band business, in order to reach basic-level support multiple hardwares platform, high level to be supported to the demand of multiple base band business, software platform need to provide for every kind of hardware platform and every kind of business processing the driver of Complete customization.When service needed is changed hardware platform, code relevant to hardware platform in software platform (driver software) just need to significantly be revised.This modification brings larger workload and risk to Software for Design, exploitation, test, maintenance.As can be seen here, traditional framework mode makes driver software (software platform) have certain defect at aspects such as reusability, portability, configurability, maintainabilitys.
Digital signal processing (embedded) field in mobile communication base band business, various base band business (WIMAX, LTE, UMTS, TD-SCDMA, GSM etc.) operate on a set of driver platform software, or a kind of base band business operates on multiple hardwares platform under the support of a set of driver platform software.For example, general dsp chip (as TI DSP, Freescale DSP, LSI DSP etc.) or with the hardware platforms such as SOC chip of dsp processor core or CPU core.In traditional processing, in order to reach basic-level support multiple hardwares platform, high level to be supported to the demand of multiple base band business, software platform need to provide for every kind of hardware platform and every kind of business processing the software of Complete customization.For example, the version A of base band business operates on TI DSP, the version B of identical base band business operates on Freescale DSP, in order to support this two covers hardware platform, the normal architectural schemes adopting of software platform is that two cover drivers are provided respectively, and two cover USBDI functions also inconsistent (interface is generally designed to rely on hardware, and hardware is different, and interface function is also different).The consequence causing is like this, if business release A need to operate on Freescale DSP hardware platform or business release B need to operate on TI DSP hardware platform, code relevant to hardware platform in the software platform of business release A or business release B just need to significantly be revised, and this modification brings larger workload and risk to Software for Design, exploitation, test, maintenance.As can be seen here, traditional software platform framework mode makes driver software (software platform) have certain defect at aspects such as reusability, portability, configurability, maintainabilitys.
In multi-purpose computer field, there are at present the commercializations such as Windows, Linux, Unix or open source operating system that (such as the VFS interface of Linux) of unified interface, the software platform of cross-platform (supporting ARM/X86/MIPS/SPARC/SH etc.) are provided.But in built-in field, the DSP/BIOS platform that for example TI provides is only supported the DSP of TI series, the SmartDSP OS of Freesacle only supports Freescale series DSP etc., also do not exist and both supported TI hardware platform at present, support again Freescale hardware platform and other hardware platform software platform.
Summary of the invention
In order to solve the problems of the prior art, the invention provides a kind of method of the driver framework design based on buffer zone.
A kind of method that the invention provides driver framework design based on buffer zone, comprises buffer zone layer driver, logical channel layer driver, physical channel layer driver, the function interface that base band business is used buffer zone driver to provide; Buffer zone driver and logical channel driver are inheritances, and logical channel realizes the function that the function pointer of buffer zone points to, and when logical channel creates example to the function pointer assignment of buffer zone; Logical channel driver and physical channel driver are syntagmatic or paradigmatic relation, on a physical channel, can support a plurality of logical channels, logical channel layer driver used the handling function of physical channel layer driver, by configuration function, is configured; What physical channel driver operated is hardware, completes reception and the transmission of data.
As a further improvement on the present invention, buffer zone comprises cyclic buffer, block buffer, frame buffer zone and fixing buffer zone, and the method also comprises cyclic buffer interface, block buffer interface, frame buffer zone interface and fixing buffer zone interface.
As a further improvement on the present invention, described cyclic buffer comprises read pointer, write pointer, pre-read pointer, pre-write pointer, when described fixedly buffer zone is read and write at every turn, and specified source addresses, destination address and length.
As a further improvement on the present invention, described block buffer has following feature: by read-write pointer, safeguard this buffer zone; Total piece number must be more than or equal to 2; While reading the data of each piece, returning to length is all the length of valid data in this piece; Same, synchronization is supported repeatedly write operation, does not support repeatedly read operation.
As a further improvement on the present invention, described frame buffer zone has following feature:
Frame buffer zone is used queue to manage, and queue at least contains message queue and idle queues;
The frame buffer zone size that each queue element (QE) points to is identical;
Bind each queue element (QE) and each frame buffer zone.
The present invention also provides a kind of driver framework designed system based on buffer zone, comprises buffer zone layer driver, logical channel layer driver, physical channel layer driver, the function interface that base band business is used buffer zone driver to provide; Buffer zone driver and logical channel driver are inheritances, and logical channel realizes the function that the function pointer of buffer zone points to, and when logical channel creates example to the function pointer assignment of buffer zone; Logical channel driver and physical channel driver are syntagmatic or paradigmatic relation, on a physical channel, can support a plurality of logical channels, logical channel layer driver used the handling function of physical channel layer driver, by configuration function, is configured; What physical channel driver operated is hardware, completes reception and the transmission of data.
As a further improvement on the present invention, buffer zone comprises cyclic buffer, block buffer, frame buffer zone and fixing buffer zone, and the method also comprises cyclic buffer interface, block buffer interface, frame buffer zone interface and fixing buffer zone interface.
As a further improvement on the present invention, described cyclic buffer comprises read pointer, write pointer, pre-read pointer, pre-write pointer, when described fixedly buffer zone is read and write at every turn, and specified source addresses, destination address and length.
As a further improvement on the present invention, described block buffer has following feature: by read-write pointer, safeguard this buffer zone;
Total piece number must be more than or equal to 2;
While reading the data of each piece, returning to length is all the length of valid data in this piece;
Same, synchronization is supported repeatedly write operation, does not support repeatedly read operation.
As a further improvement on the present invention, described frame buffer zone has following feature:
Frame buffer zone is used queue to manage, and queue at least contains message queue and idle queues;
The frame buffer zone size that each queue element (QE) points to is identical;
Bind each queue element (QE) and each frame buffer zone.
The invention has the beneficial effects as follows: the present invention is analyzing on the basis of existing mobile communication base band business (comprising WIMAX, LTE, UMTS, TD-SCDMA, GSM etc.) data processing feature, obtain the base band business of four classes based on buffer zone (comprising business based on cyclic buffer, the business based on block buffer, the business based on frame buffer zone, the business based on fixing buffer zone etc.).According to this four classes buffer zone business, take out four class buffer zones, and based on this four classes Buffer Design, go out the device driver framework of Embedded Software Platform.The driver framework of the present invention's design, for base band business processing provides abstract, the unified buffer zone of four classes interface, is all greatly improved than traditional USBDI at aspects such as cross-platform transplantability, robustness and configurability.
Accompanying drawing explanation
Fig. 1 is the driver framework figure based on buffer zone of the present invention.
Fig. 2 is cyclic buffer of the present invention structural drawing.
Fig. 3 is block buffer of the present invention structural drawing.
Fig. 4 is frame buffer zone of the present invention structural drawing.
Fig. 5 is fixedly buffer zone of the present invention structural drawing.
Embodiment
After mobile communication base band business (WIMAX, LTE, UMTS, TD-SCDMA, GSM etc.) data processing is analyzed, can find the following features that base band business processing has:
1. because the reason such as the data processing speed of processor and Peripheral Interface is different, business datum flow is large, business datum comprises that the data such as control stream, Media Stream, commissioning stream are all used buffer zone to carry out data buffer storage;
2. from processing speed, memory source, take and consider, to the operation of buffer zone, can be divided into the read-write that first copy is processed again (read-write of band copy) mode and do not copy these two kinds of modes of read-write of directly processing on buffer zone;
3. base band type of service has determined the attribute of buffer zone, these attributes comprise buffer zone type (comprise cyclic buffer, piece race way, frame buffer zone and fixedly buffer zone), size, level(Level1RAM in DDR RAM, sheet, Level2RAM etc. in sheet), read-write mode (read-write of band copy or direct read/write), whether need to use DMA to carry out auxiliary transmission etc.;
4. base band business can abstractly be four kinds of buffer zone business, i.e. cyclic buffer business, block buffer business, frame buffer zone business and fixedly buffer zone business.The present invention has designed the similar buffer zone interface of four classes, and they are cyclic buffer interface, frame buffer zone interface, block buffer interface and fixing buffer zone interface.
As shown in Figure 1, framework can be divided into following three layers to the driver framework based on buffer zone of the present invention's design:
1. buffer zone layer (ccf layer) driver: this layer of device independent, support the demands such as cross-platform, reusable;
2. logical channel layer driver: logical channel is all relevant to hardware device and base band business, so different hardware devices or different base band business need to realize the driver of inheriting buffer zone characteristic;
3. physical channel layer driver: physical channel is relevant to hardware device, so different hardware devices need be realized different drivers.
The three-tier architecture design of above-mentioned driver meets to rely on is inverted principle, high-rise base band business procedure and bsp driver all rely on buffer zone ccf layer, bottom layer driving driver is realized the function of buffer zone frame requirements, and the function that high-rise base band business is used buffer zone framework to provide, high-rise base band business is uncorrelated mutually with bsp driver, mutually independent (low coupling).Wherein, the present invention has introduced the concept of logical channel in framework, the corresponding buffer zone/application example of a kind of logical channel.The difference of logical channel and physical channel is, a plurality of logical channels can be supported in a physical channel, and this mechanism makes every kind of business processing can use independently logical channel, reduces the mutually exclusive operation that sharing channel is brought, and raises the efficiency and stability.In addition, the Object-Oriented Design that this driver framework can adopt C language, realizes inheritance model, makes buffer zone operation have polymorphism, meets the operation requirements such as buffer area read-write, reception and transmission of each logical channel class.
In the driver framework figure shown in Fig. 1, buffer zone is divided into cyclic buffer, block buffer, frame buffer zone and fixing buffer zone.
Wherein, the cyclic buffer shown in Fig. 2 has following feature:
1. by read-write pointer, safeguard this buffer zone (pre-reading in fact in addition and pre-write pointer), the renewal unit of giving tacit consent to various pointers is Byte;
2. the data packet length that application is inserted at every turn can be unequal, because data length is unequal, generally in packet, has data length field;
The packet acquiescence of 3. at every turn filling in is all (application data bag can not line up, and driver completes alignment work) of 4 byte-aligned;
4. when buffer zone (Buffer) trailing space is not enough, need to increase Pad bag (acquiescence Pad packet format: 0xFFFF0000+Pad length).Suppose that Pad length is 256, Pad bag is 0xFFFF0100.
Piece shown in Fig. 3 (bank) buffer zone has following characteristics:
1. by read-write pointer, safeguard this buffer zone;
2. the renewal unit of various pointers is a Bank Size;
3. the data packet length that application is inserted at every turn can be unequal, but fill at every turn, can not surpass a Bank Size;
4. total Bank number must be more than or equal to 2, i.e. n >=2;
While 5. reading the data of each Bank, returning to length is all the length of valid data in this Bank;
6. same Bank, synchronization is supported repeatedly write operation, does not support repeatedly read operation;
7. at present can not be by this type Buffer management for chip chamber (because receiving end does not receive Bank write pointer, except the non-timed sends to receiving end by these write pointers).
Frame buffer zone shown in Fig. 4 has following feature:
1. frame buffer zone (Frame Buffer) used queue to manage, and in general queue at least contains message queue (MsgQue) and idle queues (FreeQue);
2. the Frame Buffer size that each queue element (QE) points to is identical;
3. between each Frame Buffer, can be continuous, can be also discontinuous;
4. the data packet length of application is variable, but can not surpass Frame Size, generally in queue element (QE), has field list to show data packet length;
5. each queue element (QE) and each Frame Buffer bind.
Fixedly buffer zone shown in Fig. 5 has following feature:
1. drive and do not make any buffer memory;
While 2. reading and writing at every turn, specified source addresses, destination address and length;
3. similar Copy function, the space that the data of certain length are started to another address from certain address Copy.
As shown in Figure 1, the present invention adopts the Object-Oriented Design of C language, and the mutual relationship between its module is as follows:
1. base band business is used the function interface that buffer zone driver (buffer zone class) provides;
2. buffer zone driver and logical channel driver (logical channel class) are inheritances, and logical channel class is inherited buffer zone class.Logical channel realizes the function that the function pointer of buffer zone points to, and when logical channel creates example to the function pointer assignment of buffer zone;
3. logical channel driver and physical channel driver (physical channel class) are syntagmatic/paradigmatic relations, on a physical channel, can support a plurality of logical channels, in driver, logical channel class is used the handling function of physical channel class, by configuration function, is configured;
4. physical channel driver (physical channel class) operation is hardware, completes reception and the transmission of data.
The driver framework of application the present invention design, in driver, the process analysis procedure analysis of mobile communication base band business operation is as follows:
1. the read-write of buffer zone, comprises read-write or direct read/write that band copies, only needs maximum 1 call back function.Cyclic buffer for example, needs the buffer area read-write function of calling logic channel types, and current readjustment is in order to support the read-write of multiple cyclic buffer form;
2. the reception of buffer zone and transmission, only need to carry out 2 function calls can receive or send.These 2 function calls are respectively buffer zone class (as base class or parent) calling logic channel types (as derived class or subclass) interfaces, and logical channel class interface calls physical channel class (hardware) interface, and the operation that just can complete hardware receives and sends.Adopt Virtual File System to carry out digital received and sent (also needing function call after system call 6 times) with Linux and compare, in the present invention, function readjustment number of times greatly reduces, and program operational efficiency promotes.
As seen from Figure 1, according to the thought of layering/module, the driver framework based on four class buffer zones can adopt object-oriented method design, comprises following three contents:
1. buffer zone structure and Interface design
First carry out buffer zone layer (ccf layer) structure and Interface design, it comprises two steps below:
The 1st step: referring to figs. 2 to Fig. 5, according to cyclic buffer, block buffer, frame buffer zone, the fixing structural drawing of buffer zone, by buffer zone difference called after struct T_CyclicBuf, struct T_BankBuf, struct T_FrameBuf, struct T_FixBuf, and according to structural drawing, determine the structure member of each buffer zone structure;
The 2nd step: the Interface design of carrying out buffer zone class.For Buffer Design, go out various framework function, xx_read () for example, xx_write (), xx_send () etc., xx represents buffer zone name.
2. logical channel structure and Interface design
Next is logical channel layer structure and Interface design, and it has also comprised two steps, specific as follows:
The 1st step: the structural design of logical channel class, logical channel class is inherited buffer zone class, and in C language, inheritance need be placed in the structure of buffer zone class the 1st structure member of logical channel class, buffer zone class can be inherited by a plurality of logical channel classes, thereby supports the operation of multiple buffer zone.For example, the structural design of the Srio Directio passage based on cyclic buffer is as follows:
struct?T_CyclicBuf_SrioDirectioCh;
The 2nd step: the Interface design of logical channel class.Most of functions of logical channel class are to realize buffer zone class related function pointer, and these functions are not opened to the outside world, only have and create and close function, and the peculiar function opening of a small amount of logical channel class.For example, the establishment of struct T_CyclicBuf_SrioDirectioCh and close function yy_open () and yy_close (), yy is logical channel module name.
3. physical channel structure and Interface design.
Finally physical channel layer structure and Interface design.Physical channel is determined by hardware corridor completely, comprises structure and interface.For example, physical channel structure is: struct T_SrioDirectioCh; Physical channel interface is zz_open (), zz_close (), zz_transfer ().
The invention also discloses a kind of driver framework designed system based on buffer zone, comprise buffer zone layer driver, logical channel layer driver, physical channel layer driver, the function interface that base band business is used buffer zone driver to provide; Buffer zone driver and logical channel driver are inheritances, and logical channel realizes the function that the function pointer of buffer zone points to, and when logical channel creates example to the function pointer assignment of buffer zone; Logical channel driver and physical channel driver are syntagmatic or paradigmatic relation, on a physical channel, can support a plurality of logical channels, logical channel layer driver used the handling function of physical channel layer driver, by configuration function, is configured; What physical channel driver operated is hardware, completes reception and the transmission of data.
Buffer zone comprises cyclic buffer, block buffer, frame buffer zone and fixing buffer zone, and the method also comprises cyclic buffer interface, block buffer interface, frame buffer zone interface and fixing buffer zone interface.
Described cyclic buffer comprises read pointer, write pointer, pre-read pointer, pre-write pointer, when described fixedly buffer zone is read and write at every turn, and specified source addresses, destination address and length.
Described block buffer has following feature: by read-write pointer, safeguard this buffer zone; Total piece number must be more than or equal to 2; While reading the data of each piece, returning to length is all the length of valid data in this piece; Same, synchronization is supported repeatedly write operation, does not support repeatedly read operation.
Described frame buffer zone has following feature: frame buffer zone is used queue to manage, and queue at least contains message queue and idle queues; The frame buffer zone size that each queue element (QE) points to is identical; Bind each queue element (QE) and each frame buffer zone.
Adopt architecture technology of the present invention, can make device driver obtain good effect at aspects such as portability, robustness, efficiency, dirigibilities.First be portable raising, mainly comprise two kinds of portabilities.The first portability is the portability of base band business, on based on software platform of the present invention, only need to revise relevant configuration, such as buffer zone, task and other device resource allocation strategy, software platform just can easily be supported different base band business or support multiple base band business simultaneously.The second portability is the portability of hardware platform, by realizing newly-increased driver (part that hardware device is relevant), carry out the support to new hardware platform, and buffer zone interface remains unchanged, because base band business is only used buffer zone interface, so base band business procedure without any changes, thereby easily reach the cross-platform characteristic of high-rise base band business.Just because of these two kinds of portabilities, the software platform based on architecture design of the present invention is supported the operation of following scene:
(1) switching of base band business.For example from UMTS base band business, switch to base band business WIMAX or switch to base band business WIMAX and base band business LTE from base band business UMTS, except revising the configuration files such as resource distribution, task configuration, bsp driver is without modification.
(2) switching of bsp driver.For example from TI hardware platform, switch to Freescale hardware platform, only need be switched to the device driver of Freescale hardware platform, base band business and the software platform interface calling are that high-level business correlative code does not need to revise.
Architecture technology of the present invention also can improve the dirigibility that base band business software is disposed.For example two modular services have information interaction, belong to cyclic buffer business, use cyclic buffer operation-interface.Now these two modules are switched to two cores mutual of two chip chambers from the deployment of two cores of same chip, no matter which kind of interface chip chamber is used, for base band business, still use cyclic buffer operation-interface to complete the read-write operation of data, it seems that the base band business that is modified in of hardware be transparent, and concrete hardware-related operation is realized by the logical channel that depends on buffer zone interface.Certainly, the configuration code that setup code is relevant with platform also needs to revise.
Aspect the raising of robustness, architecture technology of the present invention carries out standardization to four kinds of buffer zone operations, provides quadruplet similar function interface, comprises the operations such as reading and writing, reception, transmission.Because these function interfaces are through fully test, and there is higher reusability, and and function parameter is judged and guaranteed, process and compare with traditional direct use array or special function, it is abnormal that these normalizing operations will reduce memory overwriting etc., makes calling program more healthy and stronger.Simultaneously, adopt modular framework, reduce coupling between module and module, when increasing or revising hardware, only need according to buffer zone interface, carry out design, realization and the test of this driver of modules, reduce and revised the impact that whole driver is brought.
Aspect efficiency raising, architecture technology of the present invention is used inheritance mechanism (C language is used function pointer) to realize the various operations of buffer zone.From the level of base band calling service buffer zone operation, at most only need the two-layer object that just can reach operational hardware, complete transmission or the reception of data.
Architecture technology of the present invention is exploitation unification, reusable driver test platform provides the foundation.Buffer zone abstract, makes no matter how hardware platform changes, and the buffer zone interface externally providing can not change, this variation with do not change, the Uniting of the driver test platform based on buffer zone and test case optimization are become than being easier to.Use the present invention, the reusable a set of test case of various hardware platforms and test platform.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. a method for the design of the driver framework based on buffer zone, is characterized in that, comprises buffer zone layer driver, logical channel layer driver, physical channel layer driver, the function interface that base band business is used buffer zone driver to provide; Buffer zone driver and logical channel driver are inheritances, and logical channel realizes the function that the function pointer of buffer zone points to, and when logical channel creates example to the function pointer assignment of buffer zone; Logical channel driver and physical channel driver are syntagmatic or paradigmatic relation, on a physical channel, can support a plurality of logical channels, logical channel layer driver used the handling function of physical channel layer driver, by configuration function, is configured; What physical channel driver operated is hardware, completes reception and the transmission of data.
2. method according to claim 1, it is characterized in that: buffer zone comprises cyclic buffer, block buffer, frame buffer zone and fixing buffer zone, the method also comprises cyclic buffer interface, block buffer interface, frame buffer zone interface and fixing buffer zone interface.
3. method according to claim 2, is characterized in that: described cyclic buffer comprises read pointer, write pointer, pre-read pointer, pre-write pointer, when described fixedly buffer zone is read and write at every turn, and specified source addresses, destination address and length.
4. method according to claim 2, is characterized in that, described block buffer has following feature:
By read-write pointer, safeguard this buffer zone;
Total piece number must be more than or equal to 2;
While reading the data of each piece, returning to length is all the length of valid data in this piece;
Same, synchronization is supported repeatedly write operation, does not support repeatedly read operation.
5. method according to claim 2, is characterized in that, described frame buffer zone has following feature:
Frame buffer zone is used queue to manage, and queue at least contains message queue and idle queues;
The frame buffer zone size that each queue element (QE) points to is identical;
Bind each queue element (QE) and each frame buffer zone.
6. the driver framework designed system based on buffer zone, is characterized in that, comprises buffer zone layer driver, logical channel layer driver, physical channel layer driver, the function interface that base band business is used buffer zone driver to provide; Buffer zone driver and logical channel driver are inheritances, and logical channel realizes the function that the function pointer of buffer zone points to, and when logical channel creates example to the function pointer assignment of buffer zone; Logical channel driver and physical channel driver are syntagmatic or paradigmatic relation, on a physical channel, can support a plurality of logical channels, logical channel layer driver used the handling function of physical channel layer driver, by configuration function, is configured; What physical channel driver operated is hardware, completes reception and the transmission of data.
7. system according to claim 6, it is characterized in that: buffer zone comprises cyclic buffer, block buffer, frame buffer zone and fixing buffer zone, the method also comprises cyclic buffer interface, block buffer interface, frame buffer zone interface and fixing buffer zone interface.
8. system according to claim 7, is characterized in that: described cyclic buffer comprises read pointer, write pointer, pre-read pointer, pre-write pointer, when described fixedly buffer zone is read and write at every turn, and specified source addresses, destination address and length.
9. system according to claim 7, is characterized in that: described block buffer has following feature:
By read-write pointer, safeguard this buffer zone;
Total piece number must be more than or equal to 2;
While reading the data of each piece, returning to length is all the length of valid data in this piece;
Same, synchronization is supported repeatedly write operation, does not support repeatedly read operation.
10. system according to claim 7, is characterized in that, described frame buffer zone has following feature:
Frame buffer zone is used queue to manage, and queue at least contains message queue and idle queues;
The frame buffer zone size that each queue element (QE) points to is identical;
Bind each queue element (QE) and each frame buffer zone.
CN201310753185.9A 2013-12-31 2013-12-31 Drive program architecture design method and system based on buffer area Expired - Fee Related CN103729187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310753185.9A CN103729187B (en) 2013-12-31 2013-12-31 Drive program architecture design method and system based on buffer area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310753185.9A CN103729187B (en) 2013-12-31 2013-12-31 Drive program architecture design method and system based on buffer area

Publications (2)

Publication Number Publication Date
CN103729187A true CN103729187A (en) 2014-04-16
CN103729187B CN103729187B (en) 2017-02-15

Family

ID=50453273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310753185.9A Expired - Fee Related CN103729187B (en) 2013-12-31 2013-12-31 Drive program architecture design method and system based on buffer area

Country Status (1)

Country Link
CN (1) CN103729187B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407843A (en) * 2014-10-22 2015-03-11 浪潮软件集团有限公司 Dependency inversion optimization method for decoupling high-low layer modules
CN106330764A (en) * 2016-08-15 2017-01-11 北京蓝海讯通科技股份有限公司 Method for managing data buffering, application for managing data buffering and computing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801020A (en) * 2005-12-28 2006-07-12 河北工业大学 Embedded field bus protocol interface device and implementation method
CN101788803A (en) * 2010-01-15 2010-07-28 上海维宏电子科技有限公司 Easily expansible numerical control system based on Windows
CN102541760A (en) * 2012-01-04 2012-07-04 记忆科技(深圳)有限公司 Computer system based on solid-state hard disk
US20120284587A1 (en) * 2008-06-18 2012-11-08 Super Talent Electronics, Inc. Super-Endurance Solid-State Drive with Endurance Translation Layer (ETL) and Diversion of Temp Files for Reduced Flash Wear

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801020A (en) * 2005-12-28 2006-07-12 河北工业大学 Embedded field bus protocol interface device and implementation method
US20120284587A1 (en) * 2008-06-18 2012-11-08 Super Talent Electronics, Inc. Super-Endurance Solid-State Drive with Endurance Translation Layer (ETL) and Diversion of Temp Files for Reduced Flash Wear
CN101788803A (en) * 2010-01-15 2010-07-28 上海维宏电子科技有限公司 Easily expansible numerical control system based on Windows
CN102541760A (en) * 2012-01-04 2012-07-04 记忆科技(深圳)有限公司 Computer system based on solid-state hard disk

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
殷一鸣: "基于虚拟机技术的安全驱动模型设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407843A (en) * 2014-10-22 2015-03-11 浪潮软件集团有限公司 Dependency inversion optimization method for decoupling high-low layer modules
CN106330764A (en) * 2016-08-15 2017-01-11 北京蓝海讯通科技股份有限公司 Method for managing data buffering, application for managing data buffering and computing device
CN106330764B (en) * 2016-08-15 2019-11-15 北京蓝海讯通科技股份有限公司 Manage method, application and the calculating equipment of data buffering

Also Published As

Publication number Publication date
CN103729187B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US9823851B2 (en) Secure migratable architecture having security features
US9430296B2 (en) System partitioning to present software as platform level functionality via inter-partition bridge including reversible mode logic to switch between initialization, configuration, and execution mode
CN103150279B (en) Method allowing host and baseboard management controller to share device
CN101520738A (en) Virtual machine system based on the management technology of equipment access storage and equipment access control method thereof
US9135050B2 (en) Extensible network configuration management
US20120158817A1 (en) Distributed Computing Architecture
CN101135980A (en) Device and method for realizing zero copy based on Linux operating system
CN105051682B (en) software interface for hardware device
CN102681893B (en) The cross-platform implementation method of executable program and mobile terminal
US20110219373A1 (en) Virtual machine management apparatus and virtualization method for virtualization-supporting terminal platform
CN103377070A (en) Field bus interface abstract method
CN109376009A (en) A kind of method and device of shared resource
CN114363170A (en) Container service network configuration method and related product
CN112416571A (en) Resource management method, operating system and management device for industrial Internet of things nodes
CN111045646A (en) Vehicle-mounted application cross-hardware platform based on virtualization technology
CN104133671B (en) The hardware interface screening arrangement and method of a kind of digital processing device
CN103729187A (en) Drive program architecture design method and system based on buffer area
CN109271236A (en) A kind of method, apparatus of traffic scheduling, computer storage medium and terminal
US10133492B2 (en) Electronic system with interface control mechanism and method of operation thereof
CN109033436A (en) A kind of multiple version JDBC driving coexistence methods of same database and system
CN105229600A (en) Capability-based device driver framework
US20100023948A1 (en) Allocating resources in a multicore environment
CN104657225B (en) Across the Cell data transmission system of embedded type virtual platform based on OKL4
CN111596962A (en) Real-time microkernel system based on high-speed protocol channel and initialization method thereof
KR20220108710A (en) Systems and methods for data transfer for computational storage devices

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

Granted publication date: 20170215

Termination date: 20201231

CF01 Termination of patent right due to non-payment of annual fee