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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user