X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fahci.h;h=a956c6ff5df78c37c0a66cdde88772dd251f34a3;hb=185e586dac02be44c7e707754cf6bb313ade2bba;hp=6d917121c67bc5e60b11ccb06bb094e8bbfbc159;hpb=e536ab8849b2b4f6d68bbc8e1d1f9bc033db06bd;p=u-boot diff --git a/include/ahci.h b/include/ahci.h index 6d917121c6..a956c6ff5d 100644 --- a/include/ahci.h +++ b/include/ahci.h @@ -135,17 +135,21 @@ struct ahci_sg { }; struct ahci_ioports { - u32 cmd_addr; - u32 scr_addr; - u32 port_mmio; + void __iomem *cmd_addr; + void __iomem *scr_addr; + void __iomem *port_mmio; struct ahci_cmd_hdr *cmd_slot; struct ahci_sg *cmd_tbl_sg; - u32 cmd_tbl; + ulong cmd_tbl; u32 rx_fis; }; struct ahci_probe_ent { +#ifdef CONFIG_DM_PCI + struct udevice *dev; +#else pci_dev_t dev; +#endif struct ahci_ioports port[AHCI_MAX_PORTS]; u32 n_ports; u32 hard_port_no;