阅读:1083回复:1
pci地址如何映射
我做一pci9054、双口ram、tms320c31的pci卡,想知道计算机如何访问到我的双口ram上。双口ram数据线16位,对计算机来说,他的地址是什么。
best wishes kapok@371.net |
|
|
沙发#
发布于:2003-07-15 21:34
basically, the resouces on pci board, I/O ports, memory register and ram can be seen by host through PCI;
as 9054, after booting, bios will assign following base address on so call bars location: herewith is in my pc bar0:memory range: 0xE9001000 - 0xE90010ff bar1:I/O range: 0xDC00 - 0xDCff bar2:memory range: 0xe7000000 - 0xe7ffffff bar3:memory range: 0xe8000000 - 0xe8ffffff these base address are assigned by bios during boot and can be different from pc to pc, slot to slot and time to time. as device driver, you just need to get these base address and map to kernel virtual address then read/write accoring to required opertion. hope this help. hong |
|