PCI: fix ram_address() to use phys_addr_t

Since it handles physical address it should really be this.

It's not like many drivers actually used it anyway. It shouldn't harm
compatibility, drivers calling it with only 32bit would leave garbage in
the higher bits but since on x86 it's a noop anyway, it would end up in
the MSB register tha's ignored because it expects a 32bit result.
This commit is contained in:
François Revol
2017-11-21 21:44:01 +01:00
parent 66672a5fa4
commit 16bb99fdac
9 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ struct pci_module_info {
uint32 value /* value to write */
);
void * (*ram_address) (const void *physical_address_in_system_memory);
phys_addr_t (*ram_address) (phys_addr_t physical_address_in_system_memory);
status_t (*find_pci_capability) (
uchar bus,
+1 -1
View File
@@ -25,7 +25,7 @@ typedef struct pci_device_module_info {
void (*write_io_32)(pci_device *device, addr_t mappedIOAddress,
uint32 value);
void *(*ram_address)(pci_device *device, const void *physicalAddress);
phys_addr_t (*ram_address)(pci_device *device, phys_addr_t physicalAddress);
uint32 (*read_pci_config)(pci_device *device, uint16 offset,
uint8 size);