Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

PCI_22

.pdf
Скачиваний:
16
Добавлен:
10.02.2015
Размер:
2.6 Mб
Скачать

Revision 2.2

)LJXUH 7\SH K &RQILJXUDWLRQ 6SDFH +HDGHU

$OO 3&, FRPSOLDQW GHYLFHV PXVW VXSSRUW WKH 9HQGRU ,' 'HYLFH ,' &RPPDQG 6WDWXV 5HYLVLRQ ,' &ODVV &RGH DQG +HDGHU 7\SH ILHOGV LQ WKH KHDGHU 5HIHU WR 6HFWLRQ

IRU WKH UHTXLUHPHQWV IRU 6XEV\VWHP ,' DQG 6XEV\VWHP 9HQGRU ,' ,PSOHPHQWDWLRQ RI WKH RWKHU UHJLVWHUV LQ D 7\SH K SUHGHILQHG KHDGHU LV RSWLRQDO L H WKH\ FDQ EH WUHDWHG DV UHVHUYHG UHJLVWHUV GHSHQGLQJ RQ GHYLFH IXQFWLRQDOLW\ ,I D GHYLFH VXSSRUWV WKH IXQFWLRQ WKDW WKH UHJLVWHU LV FRQFHUQHG ZLWK WKH GHYLFH PXVW LPSOHPHQW LW LQ WKH GHILQHG ORFDWLRQ DQG ZLWK WKH GHILQHG IXQFWLRQDOLW\

191

Revision 2.2

6.2. Configuration Space Functions

3&, KDV WKH SRWHQWLDO IRU JUHDWO\ LQFUHDVLQJ WKH HDVH ZLWK ZKLFK V\VWHPV PD\ EH FRQILJXUHG 7R UHDOL]H WKLV SRWHQWLDO DOO 3&, GHYLFHV PXVW SURYLGH FHUWDLQ IXQFWLRQV WKDW V\VWHP FRQILJXUDWLRQ VRIWZDUH FDQ XWLOL]H 7KLV VHFWLRQ DOVR OLVWV WKH IXQFWLRQV WKDW QHHG WR EH VXSSRUWHG E\ 3&, GHYLFHV YLD UHJLVWHUV GHILQHG LQ WKH SUHGHILQHG KHDGHU SRUWLRQ RI WKH &RQILJXUDWLRQ 6SDFH 7KH H[DFW IRUPDW RI WKHVH UHJLVWHUV L H QXPEHU RI ELWV LPSOHPHQWHG LV GHYLFH VSHFLILF +RZHYHU VRPH JHQHUDO UXOHV PXVW EH IROORZHG $OO UHJLVWHUV PXVW EH FDSDEOH RI EHLQJ UHDG DQG WKH GDWD UHWXUQHG PXVW LQGLFDWH WKH YDOXH WKDW WKH GHYLFH LV DFWXDOO\ XVLQJ

&RQILJXUDWLRQ 6SDFH LV LQWHQGHG IRU FRQILJXUDWLRQ LQLWLDOL]DWLRQ DQG FDWDVWURSKLF HUURU KDQGOLQJ IXQFWLRQV ,WV XVH VKRXOG EH UHVWULFWHG WR LQLWLDOL]DWLRQ VRIWZDUH DQG HUURU KDQGOLQJ VRIWZDUH $OO RSHUDWLRQDO VRIWZDUH PXVW FRQWLQXH WR XVH , 2 DQG RU 0HPRU\ 6SDFH DFFHVVHV WR PDQLSXODWH GHYLFH UHJLVWHUV

6.2.1. Device Identification

)LYH ILHOGV LQ WKH SUHGHILQHG KHDGHU GHDO ZLWK GHYLFH LGHQWLILFDWLRQ $OO 3&, GHYLFHV DUH UHTXLUHG WR LPSOHPHQW WKHVH ILHOGV *HQHULF FRQILJXUDWLRQ VRIWZDUH ZLOO EH DEOH WR HDVLO\ GHWHUPLQH ZKDW GHYLFHV DUH DYDLODEOH RQ WKH V\VWHP V 3&, EXV HV $OO RI WKHVH UHJLVWHUV DUH UHDG RQO\

Vendor ID

This field identifies the manufacturer of the device. Valid

 

vendor identifiers are allocated by the PCI SIG to ensure

 

uniqueness. 0FFFFh is an invalid value for Vendor ID.

Device ID

This field identifies the particular device. This identifier is

 

allocated by the vendor.

Revision ID

This register specifies a device specific revision identifier.

 

The value is chosen by the vendor. Zero is an acceptable

 

value. This field should be viewed as a vendor defined

 

extension to the Device ID.

Header Type

This byte identifies the layout of the second part of the

 

predefined header (beginning at byte 10h in Configuration

 

Space) and also whether or not the device contains multiple

 

functions. Bit 7 in this register is used to identify a multi-

 

function device. If the bit is 0, then the device is single

 

function. If the bit is 1, then the device has multiple

 

functions. Bits 6 through 0 identify the layout of the second

 

part of the predefined header. The encoding 00h specifies the

 

layout shown in Figure 6-1. The encoding 01h is defined for

 

PCI-to-PCI bridges and is defined in the document PCI to

 

PCI Bridge Architecture Specification. The encoding 02h is

 

defined for a CardBus bridge and is documented in the PC

 

Card Standard. All other encodings are reserved.

192

Revision 2.2

Class Code

The Class Code register is read-only and is used to identify

 

the generic function of the device and, in some cases, a

 

specific register-level programming interface. The register is

 

broken into three byte-size fields. The upper byte (at offset

 

0Bh) is a base class code which broadly classifies the type of

 

function the device performs. The middle byte (at offset 0Ah)

 

is a sub-class code which identifies more specifically the

 

function of the device. The lower byte (at offset 09h)

 

identifies a specific register-level programming interface (if

 

any) so that device independent software can interact with the

 

device. Encodings for base class, sub-class, and programming

 

interface are provided in Appendix D. All unspecified

 

encodings are reserved.

6.2.2. Device Control

7KH &RPPDQG UHJLVWHU SURYLGHV FRDUVH FRQWURO RYHU D GHYLFH V DELOLW\ WR JHQHUDWH DQG UHVSRQG WR 3&, F\FOHV :KHQ D LV ZULWWHQ WR WKLV UHJLVWHU WKH GHYLFH LV ORJLFDOO\ GLVFRQQHFWHG IURP WKH 3&, EXV IRU DOO DFFHVVHV H[FHSW FRQILJXUDWLRQ DFFHVVHV $OO GHYLFHV DUH UHTXLUHG WR VXSSRUW WKLV EDVH OHYHO RI IXQFWLRQDOLW\ ,QGLYLGXDO ELWV LQ WKH &RPPDQG UHJLVWHU PD\ RU PD\ QRW EH LPSOHPHQWHG GHSHQGLQJ RQ D GHYLFH¶V IXQFWLRQDOLW\ )RU LQVWDQFH GHYLFHV WKDW GR QRW LPSOHPHQW DQ , 2 6SDFH ZLOO QRW LPSOHPHQW D ZULWDEOH HOHPHQW DW ELW ORFDWLRQ RI WKH &RPPDQG UHJLVWHU 'HYLFHV W\SLFDOO\ SRZHU XS ZLWK DOO V LQ WKLV UHJLVWHU EXW 6HFWLRQ H[SODLQV VRPH H[FHSWLRQV )LJXUH VKRZV WKH OD\RXW RI WKH UHJLVWHU DQG 7DEOH H[SODLQV WKH PHDQLQJV RI WKH GLIIHUHQW ELWV LQ WKH &RPPDQG UHJLVWHU

15

10

9

8

7

6

5

4

3

2

1

0

Reserved

 

 

 

 

 

 

 

 

 

 

 

)DVW %DFN WR %DFN (QDEOH

 

 

 

 

 

 

 

 

 

 

 

6(55 (QDEOH

 

 

 

 

 

 

 

 

 

 

 

6WHSSLQJ &RQWURO

 

 

 

 

 

 

 

 

 

 

 

3DULW\ (UURU 5HVSRQVH

 

 

 

 

 

 

 

 

 

 

 

9*$ 3DOHWWH 6QRRS

 

 

 

 

 

 

 

 

 

 

 

0HPRU\ :ULWH DQG ,QYDOLGDWH (QDEOH

 

 

 

 

 

 

 

 

 

6SHFLDO &\FOHV

 

 

 

 

 

 

 

 

 

 

 

%XV 0DVWHU

 

 

 

 

 

 

 

 

 

 

 

0HPRU\ 6SDFH

 

 

 

 

 

 

 

 

 

 

 

,2 6SDFH

 

 

 

 

 

 

 

 

 

 

 

)LJXUH &RPPDQG 5HJLVWHU /D\RXW

 

 

 

 

193

Revision 2.2

7DEOH &RPPDQG 5HJLVWHU %LWV

Bit Location

Description

0Controls a device’s response to I/O Space accesses. A value of 0 disables the device response. A value of 1 allows the device to respond to I/O Space accesses. State after RST# is 0.

1Controls a device’s response to Memory Space accesses. A value of

0disables the device response. A value of 1 allows the device to respond to Memory Space accesses. State after RST# is 0.

2Controls a device’s ability to act as a master on the PCI bus. A value of 0 disables the device from generating PCI accesses. A value of 1 allows the device to behave as a bus master. State after RST# is 0.

3Controls a device’s action on Special Cycle operations. A value of 0 causes the device to ignore all Special Cycle operations. A value of 1 allows the device to monitor Special Cycle operations. State after

RST# is 0.

4This is an enable bit for using the Memory Write and Invalidate command. When this bit is 1, masters may generate the command. When it is 0, Memory Write must be used instead. State after RST# is

0.This bit must be implemented by master devices that can generate the Memory Write and Invalidate command.

5This bit controls how VGA compatible and graphics devices handle accesses to VGA palette registers. When this bit is 1, palette snooping is enabled (i.e., the device does not respond to palette register writes and snoops the data). When the bit is 0, the device should treat palette write accesses like all other accesses. VGA compatible devices should implement this bit. Refer to Section 3.10. for more details on VGA palette snooping.

194

Revision 2.2

7DEOH &RPPDQG 5HJLVWHU %LWV FRQWLQXHG

Bit Location

Description

 

 

6This bit controls the device’s response to parity errors. When the bit is set, the device must take its normal action when a parity error is detected. When the bit is 0, the device sets its Detected Parity Error status bit (bit 15 in the Status register) when an error is detected, but does not assert PERR# and continues normal operation. This bit’s state after RST# is 0. Devices that check parity must implement this bit. Devices are still required to generate parity even if parity checking is disabled.

7This bit is used to control whether or not a device does address/data stepping. Devices that never do stepping must hardwire this bit to 0. Devices that always do stepping must hardwire this bit to 1. Devices that can do either, must make this bit read/write and have it initialize to 1 after RST#.

8This bit is an enable bit for the SERR# driver. A value of 0 disables the SERR# driver. A value of 1 enables the SERR# driver. This bit’s state after RST# is 0. All devices that have an SERR# pin must implement this bit. Address parity errors are reported only if this bit and bit 6 are 1.

9This optional read/write bit controls whether or not a master can do fast back-to-back transactions to different devices. Initialization software will set the bit if all targets are fast back-to-back capable. A value of 1 means the master is allowed to generate fast back-to-back transactions to different agents as described in Section 3.4.2. A value of 0 means fast back-to-back transactions are only allowed to the same agent. This bit’s state after RST# is 0.

10-15 Reserved.

195

Revision 2.2

6.2.3. Device Status

7KH 6WDWXV UHJLVWHU LV XVHG WR UHFRUG VWDWXV LQIRUPDWLRQ IRU 3&, EXV UHODWHG HYHQWV 7KH GHILQLWLRQ RI HDFK RI WKH ELWV LV JLYHQ LQ 7DEOH DQG WKH OD\RXW RI WKH UHJLVWHU LV VKRZQ LQ )LJXUH 'HYLFHV PD\ QRW QHHG WR LPSOHPHQW DOO ELWV GHSHQGLQJ RQ GHYLFH IXQFWLRQDOLW\ )RU LQVWDQFH D GHYLFH WKDW DFWV DV D WDUJHW EXW ZLOO QHYHU VLJQDO 7DUJHW $ERUW ZRXOG QRW LPSOHPHQW ELW 5HVHUYHG ELWV VKRXOG EH UHDG RQO\ DQG UHWXUQ ]HUR ZKHQ UHDG

5HDGV WR WKLV UHJLVWHU EHKDYH QRUPDOO\ :ULWHV DUH VOLJKWO\ GLIIHUHQW LQ WKDW ELWV FDQ EH UHVHW EXW QRW VHW $ RQH ELW LV UHVHW ZKHQHYHU WKH UHJLVWHU LV ZULWWHQ DQG WKH ZULWH GDWD LQ WKH FRUUHVSRQGLQJ ELW ORFDWLRQ LV D )RU LQVWDQFH WR FOHDU ELW DQG QRW DIIHFW DQ\ RWKHU ELWV ZULWH WKH YDOXH B B B E WR WKH UHJLVWHU

15

14

13

12

11

10

9

8

7

6

5

4

0

 

 

 

 

 

 

 

 

 

 

 

 

5HVHUYHG

 

 

 

 

 

 

 

 

 

 

 

 

Capabilities List

 

 

 

 

 

 

 

 

 

 

 

 

66 MHz Capable

 

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

 

 

 

 

 

 

 

 

 

 

 

Fast Back-to-Back Capable

 

 

 

 

 

 

 

 

 

 

 

 

Master Data Parity Error

 

 

 

 

 

 

 

 

 

 

 

 

DEVSEL timing

 

 

 

 

 

 

 

 

 

 

 

 

00 - fast

 

 

 

 

 

 

 

 

 

 

 

 

01 - medium

 

 

 

 

 

 

 

 

 

 

 

 

10 - slow

 

 

 

 

 

 

 

 

 

 

 

 

Signaled Target Abort

 

 

 

 

 

 

 

 

 

 

 

 

Received Target Abort

 

 

 

 

 

 

 

 

 

 

 

 

Received Master Abort

 

 

 

 

 

 

 

 

 

 

 

 

Signaled System Error

 

 

 

 

 

 

 

 

 

 

 

 

Detected Parity Error

 

 

 

)LJXUH 6WDWXV 5HJLVWHU /D\RXW

 

196

Revision 2.2

7DEOH 6WDWXV 5HJLVWHU %LWV

Bit Location

Description

0-3 Reserved.

4This optional read-only bit indicates whether or not this device implements the pointer for a New Capabilities linked list at offset 34h. A value of zero indicates that no New Capabilities linked list is available. A value of one indicates that the value read at offset 34h is a pointer in Configuration Space to a linked list of new capabilities. Refer to Section 6.7. for details on New Capabilities.

5This optional read-only bit indicates whether or not this device is capable of running at 66 MHz as defined in Chapter 7. A value of zero indicates 33 MHz. A value of 1 indicates that the device is 66 MHz capable.

6This bit is reserved42.

7This optional read-only bit indicates whether or not the target is capable of accepting fast back-to-back transactions when the transactions are not to the same agent. This bit can be set to 1 if the device can accept these transactions and must be set to 0 otherwise. Refer to Section 3.4.2. for a complete description of requirements for setting this bit.

8This bit is only implemented by bus masters. It is set when three conditions are met: 1) the bus agent asserted PERR# itself (on a read) or observed PERR# asserted (on a write); 2) the agent setting the bit acted as the bus master for the operation in which the error occurred; and 3) the Parity Error Response bit (Command register) is set.

9-10

These bits encode the timing of DEVSEL#. Section 3.6.1. specifies

 

three allowable timings for assertion of DEVSEL#. These are

 

encoded as 00b for fast, 01b for medium, and 10b for slow (11b is

 

reserved). These bits are read-only and must indicate the slowest time

 

that a device asserts DEVSEL# for any bus command except

 

Configuration Read and Configuration Write.

42 In Revision 2.1 of this specification, this bit was used to indicate whether or not a device supported User Definable Features.

197

Revision 2.2

7DEOH 6WDWXV 5HJLVWHU %LWV FRQWLQXHG

Bit Location

Description

11This bit must be set by a target device whenever it terminates a transaction with Target-Abort. Devices that will never signal TargetAbort do not need to implement this bit.

12This bit must be set by a master device whenever its transaction is terminated with Target-Abort. All master devices must implement this bit.

13This bit must be set by a master device whenever its transaction (except for Special Cycle) is terminated with Master-Abort. All master devices must implement this bit.

14This bit must be set whenever the device asserts SERR#. Devices who will never assert SERR# do not need to implement this bit.

15This bit must be set by the device whenever it detects a parity error, even if parity error handling is disabled (as controlled by bit 6 in the Command register).

6.2.4.Miscellaneous Registers

7KLV VHFWLRQ GHVFULEHV WKH UHJLVWHUV WKDW DUH GHYLFH LQGHSHQGHQW DQG RQO\ QHHG WR EH LPSOHPHQWHG E\ GHYLFHV WKDW SURYLGH WKH GHVFULEHG IXQFWLRQ

&DFKH/LQH 6L]H

7KLV UHDG ZULWH UHJLVWHU VSHFLILHV WKH V\VWHP FDFKHOLQH VL]H LQ XQLWV RI ':25'V 7KLV UHJLVWHU PXVW EH LPSOHPHQWHG E\ PDVWHU GHYLFHV WKDW FDQ JHQHUDWH WKH 0HPRU\ :ULWH DQG ,QYDOLGDWH FRPPDQG UHIHU WR 6HFWLRQ 7KH YDOXH LQ WKLV UHJLVWHU LV DOVR XVHG E\ PDVWHU GHYLFHV WR GHWHUPLQH ZKHWKHU WR XVH 5HDG 5HDG /LQH RU 5HDG 0XOWLSOH FRPPDQGV IRU DFFHVVLQJ PHPRU\ UHIHU WR 6HFWLRQ

6ODYH GHYLFHV WKDW ZDQW WR DOORZ PHPRU\ EXUVWLQJ XVLQJ FDFKHOLQH ZUDS DGGUHVVLQJ PRGHUHIHU WR 6HFWLRQ PXVW LPSOHPHQW WKLV UHJLVWHU WR NQRZ ZKHQ D EXUVW VHTXHQFH ZUDSV WR WKH EHJLQQLQJ RI WKH FDFKHOLQH

7KLV ILHOG PXVW EH LQLWLDOL]HG WR DW RST#

$ GHYLFH PD\ OLPLW WKH QXPEHU RI FDFKHOLQH VL]HV WKDW LW FDQ VXSSRUW )RU H[DPSOH LW PD\ DFFHSW RQO\ SRZHUV RI OHVV WKDQ ,I DQ XQVXSSRUWHG YDOXH LV ZULWWHQ WR WKH &DFKH/LQH 6L]H UHJLVWHU WKH GHYLFH VKRXOG EHKDYH DV LI D YDOXH RI ZDV ZULWWHQ

/DWHQF\ 7LPHU

7KLV UHJLVWHU VSHFLILHV LQ XQLWV RI 3&, EXV FORFNV WKH YDOXH RI WKH /DWHQF\ 7LPHU IRU WKLV 3&, EXV PDVWHU UHIHU WR 6HFWLRQ 7KLV UHJLVWHU PXVW EH LPSOHPHQWHG DV ZULWDEOH E\ DQ\ PDVWHU WKDW FDQ EXUVW PRUH WKDQ WZR GDWD SKDVHV 7KLV UHJLVWHU PD\ EH LPSOHPHQWHG DV UHDG RQO\ IRU GHYLFHV WKDW EXUVW WZR RU IHZHU GDWD SKDVHV EXW WKH KDUGZLUHG YDOXH PXVW EH OLPLWHG WR RU OHVV $ W\SLFDO LPSOHPHQWDWLRQ ZRXOG EH WR EXLOG WKH ILYH KLJK RUGHU ELWV OHDYLQJ WKH ERWWRP WKUHH DV UHDG RQO\ UHVXOWLQJ LQ D WLPHU JUDQXODULW\ RI HLJKW FORFNV $W RST# WKH UHJLVWHU PXVW EH LQLWLDOL]HG WR LI SURJUDPPDEOH

198

Revision 2.2

%XLOW LQ 6HOI 7HVW %,67

7KLV RSWLRQDO UHJLVWHU LV XVHG IRU FRQWURO DQG VWDWXV RI %,67 'HYLFHV WKDW GR QRW VXSSRUW %,67 PXVW DOZD\V UHWXUQ D YDOXH RI L H WUHDW LW DV D UHVHUYHG UHJLVWHU $ GHYLFH ZKRVH %,67 LV LQYRNHG PXVW QRW SUHYHQW QRUPDO RSHUDWLRQ RI WKH 3&, EXV )LJXUH

VKRZV WKH UHJLVWHU OD\RXW DQG 7DEOH GHVFULEHV WKH ELWV LQ WKH UHJLVWHU

7

6

5

4

3

2

1

0

Rsvd

Start BIST

BIST capable

)LJXUH %,67 5HJLVWHU /D\RXW

7DEOH %,67 5HJLVWHU %LWV

Bit Location

Description

7Return 1 if device supports BIST. Return 0 if the device is not BIST capable.

6Write a 1 to invoke BIST. Device resets the bit when BIST is complete. Software should fail the device if BIST is not complete after 2 seconds.

5-4

3-0

Reserved. Device returns 0.

A value of 0 means the device has passed its test. Non-zero values mean the device failed. Device-specific failure codes can be encoded in the non-zero value.

&DUG%XV &,6 3RLQWHU

7KLV RSWLRQDO UHJLVWHU LV XVHG E\ WKRVH GHYLFHV WKDW ZDQW WR VKDUH VLOLFRQ EHWZHHQ &DUG%XV DQG 3&, 7KH ILHOG LV XVHG WR SRLQW WR WKH &DUG ,QIRUPDWLRQ 6WUXFWXUH &,6 IRU WKH &DUG%XV FDUG

)RU D GHWDLOHG H[SODQDWLRQ RI WKH &,6 UHIHU WR WKH 3&0&,$ Y VSHFLILFDWLRQ 7KH VXEMHFW LV FRYHUHG XQGHU WKH KHDGLQJ &DUG 0HWDIRUPDW DQG GHVFULEHV WKH W\SHV RI LQIRUPDWLRQ SURYLGHG DQG WKH RUJDQL]DWLRQ RI WKLV LQIRUPDWLRQ

,QWHUUXSW /LQH

7KH ,QWHUUXSW /LQH UHJLVWHU LV DQ HLJKW ELW UHJLVWHU XVHG WR FRPPXQLFDWH LQWHUUXSW OLQH URXWLQJ LQIRUPDWLRQ 7KH UHJLVWHU LV UHDG ZULWH DQG PXVW EH LPSOHPHQWHG E\ DQ\ GHYLFHRU GHYLFH IXQFWLRQ WKDW XVHV DQ LQWHUUXSW SLQ 3267 VRIWZDUH ZLOO ZULWH WKH URXWLQJ LQIRUPDWLRQ LQWR WKLV UHJLVWHU DV LW LQLWLDOL]HV DQG FRQILJXUHV WKH V\VWHP

7KH YDOXH LQ WKLV UHJLVWHU WHOOV ZKLFK LQSXW RI WKH V\VWHP LQWHUUXSW FRQWUROOHU V WKH GHYLFH V LQWHUUXSW SLQ LV FRQQHFWHG WR 7KH GHYLFH LWVHOI GRHV QRW XVH WKLV YDOXH UDWKHU LW LV XVHG E\ GHYLFH GULYHUV DQG RSHUDWLQJ V\VWHPV 'HYLFH GULYHUV DQG RSHUDWLQJ V\VWHPV

199

Revision 2.2

FDQ XVH WKLV LQIRUPDWLRQ WR GHWHUPLQH SULRULW\ DQG YHFWRU LQIRUPDWLRQ 9DOXHV LQ WKLV

UHJLVWHU DUH V\VWHP DUFKLWHFWXUH VSHFLILF

,QWHUUXSW 3LQ

7KH ,QWHUUXSW 3LQ UHJLVWHU WHOOV ZKLFK LQWHUUXSW SLQ WKH GHYLFH RU GHYLFH IXQFWLRQ XVHV $ YDOXH RI FRUUHVSRQGV WR INTA# $ YDOXH RI FRUUHVSRQGV WR INTB# $ YDOXH RI FRUUHVSRQGV WR INTC# $ YDOXH RI FRUUHVSRQGV WR INTD# 'HYLFHV RU GHYLFH IXQFWLRQV WKDW GR QRW XVH DQ LQWHUUXSW SLQ PXVW SXW D LQ WKLV UHJLVWHU 7KH YDOXHV K WKURXJK ))K DUH UHVHUYHG 7KLV UHJLVWHU LV UHDG RQO\ 5HIHU WR 6HFWLRQ IRU IXUWKHU GHVFULSWLRQ RI WKH XVDJH RI WKH INTx# SLQV

0,1B*17 DQG 0$;B/$7

7KHVH UHDG RQO\ E\WH UHJLVWHUV DUH XVHG WR VSHFLI\ WKH GHYLFH¶V GHVLUHG VHWWLQJV IRU /DWHQF\ 7LPHU YDOXHV )RU ERWK UHJLVWHUV WKH YDOXH VSHFLILHV D SHULRG RI WLPH LQ XQLWV RI ó PLFURVHFRQG 9DOXHV RI LQGLFDWH WKDW WKH GHYLFH KDV QR PDMRU UHTXLUHPHQWV IRU WKH VHWWLQJV RI /DWHQF\ 7LPHUV

0,1B*17 LV XVHG IRU VSHFLI\LQJ KRZ ORQJ D EXUVW SHULRG WKH GHYLFH QHHGV DVVXPLQJ D FORFN UDWH RI 0+] 0$;B/$7 LV XVHG IRU VSHFLI\LQJ KRZ RIWHQ WKH GHYLFH QHHGV WR JDLQ DFFHVV WR WKH 3&, EXV

'HYLFHV VKRXOG VSHFLI\ YDOXHV WKDW ZLOO DOORZ WKHP WR PRVW HIIHFWLYHO\ XVH WKH 3&, EXV DV ZHOO DV WKHLU LQWHUQDO UHVRXUFHV 9DOXHV VKRXOG EH FKRVHQ DVVXPLQJ WKDW WKH WDUJHW GRHV QRW LQVHUW DQ\ ZDLW VWDWHV

Implementation Example: Choosing MIN_GNT and MAX_LAT

$ IDVW (WKHUQHW FRQWUROOHU 0EV KDV D E\WH EXIIHU IRU HDFK WUDQVIHU GLUHFWLRQ 2SWLPDO XVDJH RI WKHVH LQWHUQDO UHVRXUFHV LV DFKLHYHG ZKHQ WKH GHYLFH WUHDWV HDFK EXIIHU DV WZR E\WH SLQJ SRQJ EXIIHUV (DFK E\WH EXIIHU KDV HLJKW ':25'6 RI GDWD WR EH WUDQVIHUUHG UHVXOWLQJ LQ HLJKW GDWD SKDVHV RQ WKH 3&, EXV 7KHVH HLJKW GDWD SKDVHV WUDQVODWH WR ó PLFURVHFRQG DW 0+] VR WKH 0,1B*17 YDOXH IRU WKLV GHYLFH LV ³ ´ :KHQ PRYLQJ GDWD WKH GHYLFH ZLOO QHHG WR HPSW\ RU ILOO D E\WH EXIIHU HYHU\ μVDVVXPLQJ D WKURXJKSXW RI 0% V 7KLV ZRXOG FRUUHVSRQG WR D 0$;B/$7 YDOXH RI

6XEV\VWHP 9HQGRU ,' DQG 6XEV\VWHP ,'

7KHVH UHJLVWHUV DUH XVHG WR XQLTXHO\ LGHQWLI\ WKH H[SDQVLRQ ERDUG RU VXEV\VWHP ZKHUH WKH 3&, GHYLFH UHVLGHV 7KH\ SURYLGH D PHFKDQLVP IRU H[SDQVLRQ ERDUG YHQGRUV WR GLVWLQJXLVK WKHLU ERDUGV IURP RQH DQRWKHU HYHQ WKRXJK WKH ERDUGV PD\ KDYH WKH VDPH 3&, FRQWUROOHU RQ WKHP DQG WKHUHIRUH WKH VDPH 9HQGRU ,' DQG 'HYLFH ,'

43 For x86 based PCs, the values in this register correspond to IRQ numbers (0-15) of the standard dual 8259 configuration. The value 255 is defined as meaning "unknown" or "no connection" to the interrupt controller. Values between 15 and 254 are reserved.

200

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]