sorry забыл pre
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено goshka 28 июня 2003 г. 13:06
В ответ на: офф: помогите пожалуста по isa прерываниям- нифига не могу понять... отправлено goshka 28 июня 2003 г. 13:02

надо написать обработчик не plug & play advantech ISA АЦП карточки имеющей 7ое прерывание по isa. 

Пока работаю так:

1.допустим чтением pci-to-isa bridge offset 0x60 пишу что irq7 isa роутится в pirqa pci.
2.читаю таблицу pci irq роутинга получаю:

found Intel PIIX4 ISA-PCI controller
bus|dev|lna| bma|lnb| bmb|lnc| bmc|lnd| bmd|slot|res|
000|060|001|1eb8|002|1eb8|003|b802|004|b804|0001|000|
000|058|002|1eb8|003|1eb8|004|b803|001|b801|0002|000|
000|050|003|1eb8|004|1eb8|001|b804|002|b802|0003|000|
000|048|004|1eb8|001|1eb8|002|b801|003|b803|0004|000|
000|008|001|1eb8|002|1eb8|003|b801|004|b803|0000|000|
000|068|001|1eb8|002|1eb8|003|b801|004|b803|0000|000|
000|040|001|1eb8|002|1eb8|003|0000|004|0000|0000|000|

3.а дальше что мне делать с этими цифрами?? - перерыл пол инета найти не могу. Надо определить номер прерывания, на которое завеситься.

Спасибо.

set's IRQ pins. Each entry has the following format:


Byte Offset Size in Bytes Name
0 Byte PCI Bus Number
1 Byte PCI Device Number (in upper five bits)
2 Byte Link Value for INTA#
3 Word IRQ Bitmap for INTA#
5 Byte Link Value for INTB#
6 Word IRQ Bitmap for INTB#
8 Byte Link Value for INTC#
9 Word IRQ Bitmap for INTC#
11 Byte Link Value for INTD#
12 Word IRQ Bitmap for INTD#
14 Byte Slot Number
15 Byte Reserved

PCI Bus Number: The bus number of the slot.

PCI Device Number:The device number of the slot.
Link Value for INTn#:A value of zero means this interrupt pin is not connected to any other interrupt pins and is not connected to any of the Interrupt Router's interrupt pins.


The non-zero link values are specific to a chip set and decided by the chip-set vendor. Here is a suggested implementation:

A value of 1 through the number of interrupt pins on the Interrupt Router means the pin is connected to that PIRQn# pin of the Interrupt Router.

• A value larger than the number of interrupt pins on the Interrupt Router means the pin is wire OR'd together with other slot interrupt pins, but the group is not connected to any PIRQn# pin on the Interrupt Router.

• Other interpretations of the link values are possible. For instance, the link value may indicate which byte of Configuration Space to access for this link, or which I/O Port to access for the link. The specific interpretation of the link value is decided by the manufacturer of the Interrupt Router and is supported by the driver for that router.

IRQ Bitmap for INTn#: This value shows which of the standard AT IRQs this PCI's interrupts can be routed to. This provides the routing options for one particular PCI interrupt pin. In this bitmap, bit 0 corresponds to IRQ0, bit 1 to IRQ1, and so on. A 1 bit in this bitmap indicates that routing is possible; a 0 bit indicates that no routing is possible.


This bitmap must be the same for all pins that have the same link number.

Slot Number: This value is used to communicate whether the table entry is for a system-board device or an add-in slot. For system-board devices, the slot number should be set to zero. For add-in slots, the slot number should be set to a value that corresponds with the physical placement of the slot on the system board. This provides a way to correlate physical slots with PCI device numbers.


Values (with the exception of zero) are OEM-specific. For end-user ease-of-use, slots in the system should be clearly labeled (such as solder mask, back panel, and so on).

It should be noted that the slot entries of the PCI IRQ Routing Table are compatible with the PCI IRQ Routing Options Table of the PCI BIOS Specification, Revision 2.1. This makes it possible to support both the PCI IRQ Routing Table and the PCI BIOS specification with only one table in ROM.



Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru