PowerPC PCI queries
From: Krishna (krishnavora_at_indiatimes.com)
Date: 08/05/04
- Next message: Norm Dresner: "Re: How to hide services messages on boot"
- Previous message: Måns Rullgård: "Re: How to hide services messages on boot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 5 Aug 2004 03:10:59 -0700
Hi,
I have recently started work on a PowerPC 405 based driver. I'm having
a few queries which I hope you guys could help me with. Please forgive
my ignorance if these questions sound trivial as I have just started
work with PCI drivers :
1. I'm calling pci_alloc_consistent(), mem_map_reserve that area &
then mmap (remap_page_range) that region for userland access. The PCI
device is then programmed with the bus addresses. My question is, now
if the user reads/writes to that memory egion, how are the DMA
channels set up? Specifically if the kernel accesses these reserved
pages how does the kernel set up the DMA channels? Where is the code
for this?
2. I might need to disable CONFIG_PCI due to a lot of custom PCI
changes & then hack around. If I disable CONFIG_PCI & then try setting
up DMA using get_free_pages() et al directly, will it work?
TIA,
Krishna V.
- Next message: Norm Dresner: "Re: How to hide services messages on boot"
- Previous message: Måns Rullgård: "Re: How to hide services messages on boot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|