lkml.org 
[lkml]   [2015]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v9 14/30] PCI: Introduce pci_host_bridge_ops to support host specific operations
    From
    Date
    On Fri, 2015-04-03 at 17:25 +0800, Yijing Wang wrote:
    > Now we have weak functions like pcibios_root_bridge_prepare()
    > to setup pci host bridge, We could introduce pci_host_bridge_ops
    > which contain host bridge specific ops to setup pci_host_bridge.
    > Then host bridge driver could add pci_host_bridge_ops hooks
    > intead of weak function to setup pci_host_bridge.
    > This patch add following pci_host_bridge_ops hooks:
    >
    > pci_host_bridge_ops {
    > struct pci_ops *ops;
    Trivial nit, but this is 'struct pci_ops *pci_ops' in the code below.

    > +struct pci_host_bridge;
    > +struct pci_host_bridge_ops {
    > + struct pci_ops *pci_ops;
    > + int (*prepare)(struct pci_host_bridge *host);
    > + void (*set_root_bus_speed)(struct pci_host_bridge *host);
    > + int (*scan_bus)(struct pci_host_bridge *host);
    > +};
    > +

    Regards,
    Daniel
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2015-04-07 09:41    [W:4.587 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site