Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28593
b: refs/heads/master
c: 733a7fe
h: refs/heads/master
i:
  28591: 8889708
v: v3
  • Loading branch information
Grant Grundler authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent e0fa0b3 commit 90b032f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7e6600d762bf7c04b48c8d9bd0ab26d04a8d11f
refs/heads/master: 733a7fe12248072e1bca729c88a26298666f1956
14 changes: 11 additions & 3 deletions trunk/Documentation/pci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,17 @@ have been remapped by the kernel.

See Documentation/IO-mapping.txt for how to access device memory.

You still need to call request_region() for I/O regions and
request_mem_region() for memory regions to make sure nobody else is using the
same device.
The device driver needs to call pci_request_region() to make sure
no other device is already using the same resource. The driver is expected
to determine MMIO and IO Port resource availability _before_ calling
pci_enable_device(). Conversely, drivers should call pci_release_region()
_after_ calling pci_disable_device(). The idea is to prevent two devices
colliding on the same address range.

Generic flavors of pci_request_region() are request_mem_region()
(for MMIO ranges) and request_region() (for IO Port ranges).
Use these for address resources that are not described by "normal" PCI
interfaces (e.g. BAR).

All interrupt handlers should be registered with SA_SHIRQ and use the devid
to map IRQs to devices (remember that all PCI interrupts are shared).
Expand Down

0 comments on commit 90b032f

Please sign in to comment.