[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cdi-devel] [PATCH] Update cdi-osdep.h to contain OS-specific structs for PCI and DMA



On Thu, Dec 10, 2009 at 09:52:10AM +1000, Matthew Iselin wrote:
> 
> Signed-off-by: Matthew Iselin <matthew@xxxxxxxxxxxxxx>

Added some hunks from the other patches which belong here logically
(like introducing fields of the new types in existing structs) and
German comments. Looks fine otherwise and is committed now.

> ---
>  include/cdi-osdep.h |   20 +++++++++++++++++++-
>  1 files changed, 19 insertions(+), 1 deletions(-)
> 
> diff --git a/include/cdi-osdep.h b/include/cdi-osdep.h
> index 6227e91..2095580 100644
> --- a/include/cdi-osdep.h
> +++ b/include/cdi-osdep.h
> @@ -26,10 +26,28 @@
>   * the driver with the CDI library.
>   *
>   * @param name Name of the driver
> - * @param drv Pointer to a driver description (struct cdi_driver*)
> + * @param drv A driver description (struct cdi_driver)
>   * @param deps List of names of other drivers on which this driver depends
>   * \endenglish
>   */
>  #define CDI_DRIVER(name, drv, deps...) /* TODO */
>  
> +/**
> + * \english
> + * OS-specific PCI data.
> + * \endenglish
> + */
> +typedef struct
> +{
> +} cdi_pci_device_osdep;
> +
> +/**
> + * \english
> + * OS-specific DMA data.
> + * \endenglish
> + */
> +typedef struct
> +{
> +} cdi_dma_osdep;
> +
>  #endif
> -- 
> 1.6.0.4
> 
> _______________________________________________
> cdi-devel mailing list
> cdi-devel@xxxxxxxxxx
> http://list.tyndur.org/cgi-bin/mailman/listinfo/cdi-devel