lkml.org 
[lkml]   [1999]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: resending patch: Documentation/pci.txt
Date
From
> Damn it! The name appears to have changed between 2.2 and 2.3.

It did. That maybe good to note

> In pci.h the struct in 2.2.13 (and I would assume later) had
>
> unsigned long base_address[6]
>
> which cooresponded to the various PCI Base Address Registers.
>
> Why did this change, and what was wrong with the old base_address[] array?
> Since every PCI driver is supposed to get the address from this field, I
> think this is a legitimate question.

2.2.x you get the value from the PCI registers. Its a copy of the BAR with flags
With 2.3.x you get told the start/end/size of each resource and if it is
I/O or memory. Resource objects are portable for all busses. Also they do the
things like 64bit using dual BAR's properly for you, and they can do magic
mappings as needed.

Alan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.046 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site